Lou
2024-02-05 d10f56e9212d497bf873b599cd1098be2cb93b49
subPackage/workbench/views/selfCheckDetail.vue
@@ -8,7 +8,7 @@
         <text>标签</text>
         <text>{{label || "未完善"}}</text>
      </view>
      <view class="item-row flex j-c-s-b a-i-c">
      <!-- <view class="item-row flex j-c-s-b a-i-c">
         <text>场所负责人</text>
         <text>{{info.principal || "未完善"}}</text>
      </view>
@@ -19,7 +19,7 @@
      <view class="item-row flex j-c-s-b a-i-c">
         <text>检查人</text>
         <text>{{info.name}}</text>
      </view>
      </view> -->
      <view class="item-row flex j-c-s-b a-i-c">
         <text>检查时间</text>
         <text>{{info.createTime}}</text>
@@ -85,7 +85,7 @@
      <view class="mt-20 bgc-ff">
         <block v-for="(item,index) in itemList">
            <block v-for="(i,k) in item.children">
               <block v-for="(n,m) in info.patrolRecordVOList">
               <block v-for="(n,m) in info.taskPlaceRecordVOList">
                  <!-- <view class="item-row flex j-c-s-b a-i-c" v-if="i.id == n.itemId && n.state == 1">
                     <text class="item-left">{{i.title}}</text>
                     <text>不存在</text>
@@ -151,6 +151,7 @@
      <view class="blank"></view>
      <!-- <footer-btn @click="submitInfo" v-if="roleType == 2 && (info.status == 4 || info.status == 3)"     /> -->
      <audit-action v-if="roleType == 1 && info.status == 1" @handle="submitAudit" />
      <footer-btn v-if="roleType == 2 && info.status == 3" text="重新提交" @click="navTo" />
   </view>
</template>
@@ -164,7 +165,8 @@
   } from '@/api/place/place.js'
   import {
      getPlaceCheckDetail
      getPlaceCheckDetail,
      auditPlaceCheck
   } from '@/api/reporting/reporting.js'
   import auditAction from '../components/actionBtn.vue'
@@ -203,7 +205,7 @@
         getDetail(id) {
            getPlaceCheckDetail({
               task: id
               taskId: id
            }).then(res => {
               let data = res.data;
               // this.info = res.data;
@@ -214,7 +216,7 @@
                     .labelName;
               }
               let ids = [];
               for (let i of data.patrolRecordVOList) {
               for (let i of data.taskPlaceRecordVOList) {
                  if ((data.status == 4 || data.status == 3) && this.roleType == 2) {
                     if (i.rectificationImageUrls) {
                        i.urls = this.$setImageUrl(i.rectificationImageUrls, 2);
@@ -243,7 +245,7 @@
            uni.showLoading({
               title: "上传中..."
            })
            let children = this.info.patrolRecordVOList;
            let children = this.info.taskPlaceRecordVOList;
            let lists = [].concat(event.file)
            let fileListLen = item.urls.length;
            lists.map((item) => {
@@ -252,7 +254,7 @@
                  status: 'uploading',
                  message: '上传中'
               })
               this.$set(this.info, "patrolRecordVOList", children)
               this.$set(this.info, "taskPlaceRecordVOList", children)
            })
            for (let i = 0; i < lists.length; i++) {
               const result = await this.uploadFilePromise(lists[i].url)
@@ -260,16 +262,16 @@
                  url: result.data.link,
                  name: result.data.name
               }))
               this.$set(this.info, "patrolRecordVOList", children)
               this.$set(this.info, "taskPlaceRecordVOList", children)
               fileListLen++
            }
            this.loadingClose()
         },
         deleteImages(event, index) {
            let children = this.info.patrolRecordVOList;
            let children = this.info.taskPlaceRecordVOList;
            children[index].urls.splice(event.index, 1);
            this.$set(this.info, "patrolRecordVOList", children)
            this.$set(this.info, "taskPlaceRecordVOList", children)
         },
         setImages(key) {
@@ -297,7 +299,7 @@
               title: "加载中..."
            })
            let data = this.info;
            for (let i of data.patrolRecordVOList) {
            for (let i of data.taskPlaceRecordVOList) {
               if (i.urls) {
                  i.rectificationImageUrls = this.setImages(i.urls)
               }
@@ -325,7 +327,7 @@
            uni.showLoading({
               title: "加载中..."
            })
            auditPlaceCheckReform({
            auditPlaceCheck({
               id: this.info.id,
               taskId: this.info.taskId,
               status: val.type,
@@ -340,7 +342,14 @@
                  }, 300)
               }
            })
         }
         },
         navTo() {
            uni.navigateTo({
               url: "/subPackage/label/check"
            })
         },
      }
   }
</script>