Lou
2024-01-17 ef51ae09decb4e016a849d8a5d96be7f44dafc4f
subPackage/workbench/views/labelReportDetail.vue
@@ -139,17 +139,18 @@
      },
      onLoad(option) {
         this.taskId = option.id;
         this.getDetailInfo(option.id);
         let roleName = uni.getStorageSync("activeRole").roleName
         if (roleName == "居民") {
            this.roleType = 2;
         } else {
            this.roleType = 1
         }
      },
      onShow() {
         this.getDetailInfo();
      },
      methods: {
@@ -170,9 +171,9 @@
            }
         },
         getDetailInfo(id) {
         getDetailInfo() {
            getLabelReportingDetail({
               taskId: id
               taskId: this.taskId
            }).then(res => {
               console.log(res);
               let data = res.data;
@@ -188,7 +189,7 @@
               this.remark = data.confirmNotion;
               this.getIndex(data.confirmFlag)
               this.basicData.forEach(item => {
                  item.value = data[item.name]
                  item.value = data[item.name] || "未完善"
               })
               // this.imageUrls = this.setImages(data.imageUrls);
               // this.goodsImageUrls = this.setImages(data.goodsImageUrls);
@@ -217,7 +218,7 @@
               // status: this.selectStatus,
               status: val.type,
               // remark: this.remark
               remark: val.remark
               confirmNotion: val.remark
            }
            // if (this.selectStatus == 3 && !this.remark) {
            //    uni.showToast({
@@ -253,7 +254,7 @@
         navToEdit() {
            uni.navigateTo({
               url: `/subPackage/label/form?id=${this.id}`
               url: `/subPackage/label/form?id=${this.taskId}`
            })
         }