| | |
| | | <text v-if="info.status == 1">待审核</text> |
| | | <text v-if="info.status == 2">审核成功</text> |
| | | <text v-if="info.status == 3">审核驳回</text> |
| | | <text v-if="info.status == 4">待接收</text> |
| | | <text v-if="info.status == 4">待完成</text> |
| | | </view> |
| | | <view class="item-row flex j-c-s-b a-i-c" v-if="info.status == 3 && info.reasonFailure"> |
| | | <text>驳回原因</text> |
| | |
| | | <text class="item-left">{{i.title}}</text> |
| | | <text>不存在</text> |
| | | </view> --> |
| | | <u-collapse ref="collapse" :value="ids" v-if="i.id == n.itemId && n.state == 0"> |
| | | <u-collapse v-if="i.id == n.itemId && n.state == 0" ref="collapse"> |
| | | <u-collapse-item :name="n.itemId" :title="i.title" value="存在"> |
| | | <view class="mb-20" v-if="n.imageUrls"> |
| | | <view class="f-26 mb-10 c-00">隐患照片</view> |
| | |
| | | |
| | | <view class="mb-20" v-if="roleType == 2 || (roleType == 1 && n.rectificationImageUrls)"> |
| | | <view class="f-26 mb-10 c-00">整改后照片</view> |
| | | <u-upload v-if="roleType == 2" :fileList="n.urls" |
| | | :previewFullImage="uploadConfig.previewFullImage" |
| | | <u-upload v-if="roleType == 2 && (info.status == 4 || info.status == 3)" |
| | | :fileList="n.urls" :previewFullImage="uploadConfig.previewFullImage" |
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" |
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" |
| | | @afterRead="afterReadImgs($event,n,m)" @delete="deleteImages($event,m)"> |
| | |
| | | </u-upload> |
| | | |
| | | |
| | | <view class="flex flex-wrap" v-if="roleType == 1 && n.rectificationImageUrls"> |
| | | <view class="flex flex-wrap" v-if="info.status != 4 && n.rectificationImageUrls "> |
| | | <view class="mr-20" v-for="r in ($setImageUrl(n.rectificationImageUrls))"> |
| | | <u-image :src="r" width="140rpx" height="140rpx" |
| | | @click="previewImage($setImageUrl(n.rectificationImageUrls),i)"></u-image> |
| | |
| | | |
| | | <view class="" v-if="roleType == 2 || (roleType == 1 && n.rectificationRemark)"> |
| | | <view class="f-26 mb-10 c-00">整改后描述</view> |
| | | <u-textarea v-model="n.rectificationRemark" placeholder="请输入处罚说明内容" |
| | | placeholderClass="c-99 f-26" :disabled="roleType == 1?true:false"></u-textarea> |
| | | <u-textarea v-model="n.rectificationRemark" placeholder="请输入整改后描述" |
| | | placeholderClass="c-99 f-26" |
| | | :disabled="roleType == 2 && (info.status == 4 || info.status == 3)?false:true"></u-textarea> |
| | | </view> |
| | | <!-- <view class="" style="height:140rpx;"></view> --> |
| | | </u-collapse-item> |
| | | </u-collapse> |
| | | </block> |
| | |
| | | await this.getItem(); |
| | | this.getDetail(option.id); |
| | | }, |
| | | onReady() { |
| | | // onReady() { |
| | | // setTimou(() => { |
| | | // if (this.$refs.collapse) { |
| | | // this.$nextTick(() => { |
| | | // this.$refs.collapse.init(); |
| | | // }) |
| | | // } |
| | | // }, 300) |
| | | |
| | | }, |
| | | // }, |
| | | |
| | | methods: { |
| | | |
| | | |
| | | handleOpenChange(item, index) { |
| | | //根据文档使用$nextTick,获取高度无效,试用setTimeout |
| | | setTimeout(() => { |
| | | this.$refs.collapse[index].queryRect(); |
| | | }, 100); |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | getDetail(id) { |
| | | getPlaceCheckReformDetail({ |
| | | taskId: id |
| | |
| | | } |
| | | let ids = []; |
| | | for (let i of data.patrolRecordVOList) { |
| | | if ((data.status == 1 || data.status == 3) && this.roleType == 2) { |
| | | if ((data.status == 4 || data.status == 3) && this.roleType == 2) { |
| | | if (i.rectificationImageUrls) { |
| | | i.urls = this.$setImageUrl(i.rectificationImageUrls, 2); |
| | | } else { |
| | |
| | | } |
| | | this.ids = ids; |
| | | this.info = data; |
| | | // if (this.$refs.collapse) { |
| | | // this.$nextTick(() => { |
| | | // this.$refs.collapse.init() |
| | | // }) |
| | | // } |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.collapse.init(); |
| | | }) |
| | | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | getItem() { |
| | | getPlaceCheckItem().then(res => { |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | //整改提交 |
| | | submitInfo() { |
| | | uni.showLoading({ |
| | |
| | | if (data.status == 3) { |
| | | data.status = 1; |
| | | } |
| | | |
| | | if (data.status == 4) { |
| | | data.status = 1; |
| | | } |
| | | addPlaceCheckReform(data).then(res => { |
| | | uni.hideLoading() |
| | | if (res.code == 200) { |