| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | } from '@/api/place/place.js' |
| | | |
| | | import { |
| | | getPlaceCheckDetail |
| | | getPlaceCheckDetail, |
| | | auditPlaceCheck |
| | | } from '@/api/reporting/reporting.js' |
| | | |
| | | import auditAction from '../components/actionBtn.vue' |
| | |
| | | |
| | | getDetail(id) { |
| | | getPlaceCheckDetail({ |
| | | task: id |
| | | taskId: id |
| | | }).then(res => { |
| | | let data = res.data; |
| | | // this.info = res.data; |
| | |
| | | .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); |
| | |
| | | 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) => { |
| | |
| | | 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) |
| | |
| | | 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) { |
| | |
| | | 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) |
| | | } |
| | |
| | | uni.showLoading({ |
| | | title: "加载中..." |
| | | }) |
| | | auditPlaceCheckReform({ |
| | | auditPlaceCheck({ |
| | | id: this.info.id, |
| | | taskId: this.info.taskId, |
| | | status: val.type, |
| | |
| | | }, 300) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | navTo() { |
| | | uni.navigateTo({ |
| | | url: "/subPackage/label/check" |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |