linwei
2024-01-03 72dc4ad6cc57ce01d3537f0841ddec1e8dde5bec
subPackage/workbench/views/hotelReportDetail.vue
@@ -9,7 +9,7 @@
      <view class="licence" v-if="fireImages.length">
         <box-title title="灭火器图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20"   @click="previewImg(i,fireImages)">
            <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20" @click="previewImg(i,fireImages)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -17,7 +17,7 @@
      <view class="planegraph" v-if="scImageUrls.length">
         <box-title title="安全通道图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,scImageUrls)">
            <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,scImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -25,7 +25,7 @@
      <view class="planegraph" v-if="pfImageUrls.length">
         <box-title title="技防设施图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,pfImageUrls)">
            <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,pfImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -33,7 +33,7 @@
      <view class="planegraph" v-if="uanImageUrls.length">
         <box-title title="未成年人入住及照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,uanImageUrls)">
            <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,uanImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -43,7 +43,7 @@
         <box-title title="审核信息" class="box-title"></box-title>
         <view class="info">
            <u-form labelWidth="70" :model="form" ref="form" class="form">
               <u-form-item label="审核状态"  @click="showPicker()" class="form-item" :border-bottom="true">
               <u-form-item label="审核状态" @click="showPicker()" class="form-item" :border-bottom="true">
                  <u--input v-model="form.confirmFlag" disabled disabledColor="#ffffff" placeholder="请选择审核状态"
                     :border="false"></u--input>
                  <u-icon slot="right" name="arrow-right"></u-icon>
@@ -184,27 +184,27 @@
            scImageUrls: [],
            pfImageUrls: [],
            uanImageUrls: [],
            selectStatus: "",
            selectStatus: 2,
            remark: "",
            roleType:"",
                status:1,
            id:""
            roleType: "",
            status: 1,
            id: ""
         }
      },
      onLoad(option) {
         this.taskId = option.id;
         this.getDetailInfo(option.id);
         let roleName = uni.getStorageSync("activeRole").roleName
         if(roleName == "居民"){
         if (roleName == "居民") {
            this.roleType = 2
         }else {
         } else {
            this.roleType = 1
         }
      },
      methods: {
         showPicker() {
            if (this.roleType == 1){
            if (this.roleType == 1) {
               this.isPickerShow = true;
            };
         },
@@ -227,10 +227,11 @@
            })
         },
         previewImg(current,urls){
         previewImg(current, urls) {
            uni.previewImage({
               current,urls
               current,
               urls
            })
         },
@@ -242,7 +243,7 @@
         submit() {
            let data = {
               id: this.id,
               taskId:this.taskId,
               taskId: this.taskId,
               status: this.selectStatus,
               remark: this.remark
            }
@@ -259,26 +260,26 @@
                     title: '更新失败',
                     icon: 'error'
                  })
               }else {
               } else {
                  uni.showToast({
                      title: '提交成功',
                     title: '提交成功',
                  })
                  this.reLoadPrePage();
               }
            })
         },
         //刷新上一页数据后返回
         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();
         },
         },
      }
   }
</script>