From 3c738f4fe2762bba8087e5a22fc0dc06560eab0e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 08 Aug 2024 10:01:17 +0800
Subject: [PATCH] 三色任务与自查任务

---
 subPackage/workbench/views/hotelReportDetail.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/subPackage/workbench/views/hotelReportDetail.vue b/subPackage/workbench/views/hotelReportDetail.vue
index 0ae43ee..db94997 100644
--- a/subPackage/workbench/views/hotelReportDetail.vue
+++ b/subPackage/workbench/views/hotelReportDetail.vue
@@ -98,7 +98,7 @@
 					// 	value: '未完善'
 					// },
 					{
-						label: '酒店名称',
+						label: '场所名称',
 						name: 'hotelName',
 						value: '未完善'
 					},
@@ -209,7 +209,6 @@
 		},
 		onLoad(option) {
 			this.taskId = option.id;
-
 			let roleName = uni.getStorageSync("activeRole").roleName
 			if (roleName == "居民") {
 				this.roleType = 2;
@@ -222,7 +221,7 @@
 		},
 
 		onShow() {
-			this.getDetailInfo(this.taskId);
+			this.getDetailInfo();
 		},
 
 		methods: {
@@ -241,15 +240,15 @@
 				}
 			},
 
-			getDetailInfo(id) {
+			getDetailInfo() {
 				getHotelReportingDetail({
-					taskId: id
+					taskId: this.taskId
 				}).then(res => {
 					console.log(res);
 					let data = res.data;
 					this.id = data.id;
 					this.basicData.forEach(item => {
-						item.value = data[item.name]
+						item.value = data[item.name] || "未完善"
 					})
 					this.status = data.confirmFlag;
 					this.remark = data.confirmNotion;
@@ -279,7 +278,7 @@
 					id: this.id,
 					taskId: this.taskId,
 					status: val.type,
-					remark: val.remark
+					confirmNotion: val.remark
 				}
 
 				setHotelReporting(data).then(res => {
@@ -311,7 +310,7 @@
 
 			navToEdit() {
 				uni.navigateTo({
-					url: `/subPackage/label/hotel?id=${this.id}`
+					url: `/subPackage/label/hotel?id=${this.taskId}`
 				})
 			}
 

--
Gitblit v1.9.3