Lou
2024-01-16 db8e416fec0ab844026eb7bc91d9f59a457f4e6e
subPackage/workbench/views/labelReportDetail.vue
@@ -17,7 +17,8 @@
      <view class="planegraph" v-if="goodsImageUrls.length">
         <box-title title="物品照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in goodsImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,imageUrls)">
            <view v-for="(i,k) in goodsImageUrls" :key="k" class="ml-20 mt-20"
               @click="previewImg(i,goodsImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -49,7 +50,7 @@
      <!-- <view class="bottom-btn" v-if="(roleType == 1 && status == 1) || (roleType == 2 && status == 2)">
         <u-button type="primary" @click="submit">提交审核</u-button>
      </view> -->
      <footer-btn v-if="roleType ==2 && status == 3" text="重新编辑" @click="navToEdit"></footer-btn>
      <audit-action @handle="submit" v-if="roleType == 1 && status == 1"></audit-action>
      <u-picker :defaultIndex="defaultIndex" :closeOnClickOverlay="true" @close="isPickerShow = false"
@@ -142,7 +143,8 @@
         let roleName = uni.getStorageSync("activeRole").roleName
         if (roleName == "居民") {
            this.roleType = 2
            this.roleType = 2;
         } else {
            this.roleType = 1
         }
@@ -174,6 +176,13 @@
            }).then(res => {
               console.log(res);
               let data = res.data;
               if (this.roleType == 2) {
                  uni.setNavigationBarTitle({
                     title: `${data.labelName}详情`
                  })
               }
               this.id = data.id;
               this.status = data.confirmFlag;
               this.remark = data.confirmNotion;
@@ -236,12 +245,18 @@
         reLoadPrePage() {
            let pages = getCurrentPages();
            let prePage = pages[pages.length - 2];
            prePage.$vm.currentPage = 1,
               prePage.$vm.list = [];
            prePage.$vm.currentPage = 1;
            prePage.$vm.list = [];
            prePage.$vm.getList();
            uni.navigateBack();
         },
         navToEdit() {
            uni.navigateTo({
               url: `/subPackage/label/form?id=${this.id}`
            })
         }
      }
   }
</script>