| | |
| | | </block> |
| | | </view> |
| | | |
| | | |
| | | <view class="image-wrap bgc-ff" v-if="roleType == 1 && info.status == 1 && info.rectificationFlag == 2"> |
| | | <view class="mb-20"> |
| | | 验收照片 |
| | | </view> |
| | | <view class="flex flex-wrap"> |
| | | <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage" |
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" :maxCount="uploadConfig.maxCount" |
| | | :capture="uploadConfig.capture" @afterRead="afterReadImg" @delete="deletePic"> |
| | | <view class="upload-item upload-icon flex_base"> |
| | | <u-icon name="/static/icon/upload.png" width="60rpx" height="60rpx"></u-icon> |
| | | </view> |
| | | </u-upload> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | <view class="image-wrap bgc-ff" v-if="info.status == 2 && imageUrls.length"> |
| | | <view class="mb-20"> |
| | | 验收照片 |
| | | </view> |
| | | <view class="flex flex-wrap"> |
| | | <view class="mr-20" v-for="i in imageUrls"> |
| | | <u-image :src="i" width="140rpx" height="140rpx" @click="previewImage(imageUrls,i)"></u-image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="blank"></view> |
| | | <!-- <footer-btn @click="submitInfo" v-if="roleType == 2 && (info.status == 4 || info.status == 3)"/> --> |
| | | <!-- <block v-if="info.rectificationFlag == 2"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | form: { |
| | | images: [] |
| | | }, |
| | | info: {}, |
| | | images: [], |
| | | signatureUrl: [], |
| | |
| | | roleType: '', //1.民警/系统管理员 2.场所负责人 / 学校主体 |
| | | ids: [], |
| | | taskId: "", |
| | | type: 1 // 2学校主体 |
| | | type: 1, // 2学校主体 |
| | | imageUrls: [] |
| | | } |
| | | }, |
| | | async onLoad(option) { |
| | |
| | | let data = res.data; |
| | | // this.info = res.data; |
| | | this.images = this.$setImageUrl(res.data.rectificationNoticeImgUrl); |
| | | this.imageUrls = this.$setImageUrl(res.data.imageUrls); |
| | | // this.signatureUrl = this.$setImageUrl(res.data.signaturePath); |
| | | if (res.data.placePoiLabelVOList.length) { |
| | | this.label = res.data.placePoiLabelVOList[res.data.placePoiLabelVOList.length - 1] |
| | |
| | | uni.showLoading({ |
| | | title: "加载中..." |
| | | }) |
| | | auditPlaceCheck({ |
| | | let data = { |
| | | id: this.info.id, |
| | | taskId: this.info.taskId, |
| | | status: val.type, |
| | | rectificationFlag: val.type == 3 ? 1 : 2, |
| | | reasonFailure: val.remark |
| | | }).then(res => { |
| | | } |
| | | |
| | | if (this.form.images.length) { |
| | | let urls = [] |
| | | this.form.images.forEach(e => { |
| | | urls.push(e.name) |
| | | }) |
| | | data.imageUrls = urls.join(",") |
| | | } else { |
| | | this.$showTips("请上传验收照片") |
| | | return; |
| | | } |
| | | |
| | | auditPlaceCheck(data).then(res => { |
| | | uni.hideLoading() |
| | | if (res.code == 200) { |
| | | this.$showTips("操作成功", "success"); |