From d8243dc134e1be05711dfc08bdf8190a84d0761d Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Mon, 25 Dec 2023 10:41:11 +0800
Subject: [PATCH] 修复部分问题

---
 subPackage/workbench/views/hotelReportDetail.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/subPackage/workbench/views/hotelReportDetail.vue b/subPackage/workbench/views/hotelReportDetail.vue
index fa63acc..c0929b1 100644
--- a/subPackage/workbench/views/hotelReportDetail.vue
+++ b/subPackage/workbench/views/hotelReportDetail.vue
@@ -185,19 +185,27 @@
 				pfImageUrls: [],
 				uanImageUrls: [],
 				selectStatus: "",
-				remark: ""
-
+				remark: "",
+				roleType:"",
+                status:1
 			}
 		},
 		onLoad(option) {
 			this.id = option.id;
 			this.getDetailInfo(option.id);
+			let roleName = uni.getStorageSync("activeRole").roleName
+			if(roleName == "居民"){
+				this.roleType = 2
+			}else {
+				this.roleType = 1
+			}
 		},
 
 		methods: {
 			showPicker() {
-				if (this.roleType == 2 && this.status != 2) return;
-				this.isPickerShow = true;
+				if (this.roleType == 1){
+					this.isPickerShow = true;
+				};
 			},
 
 			getDetailInfo(id) {
@@ -209,6 +217,7 @@
 					this.basicData.forEach(item => {
 						item.value = data[item.name]
 					})
+					this.status = data.confirmFlag;
 					this.fireImages = this.$setImageUrl(data.fireImageUrls);
 					this.scImageUrls = this.$setImageUrl(data.scImageUrls);
 					this.pfImageUrls = this.$setImageUrl(data.pfImageUrls);

--
Gitblit v1.9.3