linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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}`
            })
         }