From 3c738f4fe2762bba8087e5a22fc0dc06560eab0e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 08 Aug 2024 10:01:17 +0800
Subject: [PATCH] 三色任务与自查任务
---
subPackage/workbench/views/counterfraudReportDetail.vue | 57 ++++++++-------------------------------------------------
1 files changed, 8 insertions(+), 49 deletions(-)
diff --git a/subPackage/workbench/views/counterfraudReportDetail.vue b/subPackage/workbench/views/counterfraudReportDetail.vue
index 9b76fe5..ba006e1 100644
--- a/subPackage/workbench/views/counterfraudReportDetail.vue
+++ b/subPackage/workbench/views/counterfraudReportDetail.vue
@@ -60,45 +60,6 @@
</view>
</view>
</view>
-
- <!-- <view class="mb-20" v-if="n.remark">
- <view class="f-26 mb-10 c-00">描述</view>
- <view class="f-28 c-00">
- {{n.remark}}
- </view>
- </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 && (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)">
- <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 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>
- </view>
- </view> -->
-
- <!-- <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 == 2 && (info.status == 4 || info.status == 3)?false:true"></u-textarea>
- </view> -->
-
-
-
</u-collapse-item>
</u-collapse>
</block>
@@ -108,7 +69,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" />
+ <actionBtnTwo :dataItem="info" v-if="roleType == 1" @handle="submitAudit" />
<footer-btn v-if="roleType == 2 && info.status == 3" text="重新提交" @click="navTo" />
</view>
</template>
@@ -130,11 +91,11 @@
getCounterfraudReportDetail,
auditCounterfraudReport
} from "@/api/counterfraud/counterfraud.js"
- import auditAction from '../components/actionBtn.vue'
+ import actionBtnTwo from '../components/actionBtnTwo.vue'
export default {
mixins: [uploadMixin],
components: {
- auditAction
+ actionBtnTwo
},
data() {
return {
@@ -159,6 +120,10 @@
if (roleName == "民警" || roleName == "系统管理员") {
this.roleType = 1;
}
+ if (option.roleType) {
+ // 不显示按钮
+ this.roleType = option.roleType
+ }
await this.getItem();
this.taskId = option.id;
@@ -179,13 +144,6 @@
id: this.id
}).then(res => {
let data = res.data;
- // this.info = res.data;
- // this.images = 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]
- // .labelName;
- // }
let ids = [];
for (let i of data.taskPlaceRecordVOList) {
if ((data.status == 4 || data.status == 3) && this.roleType == 2) {
@@ -309,6 +267,7 @@
}
if (val.type == 3) {
data.reasonFailure = val.remark;
+ data.remark = val.remark;
}
auditCounterfraudReport(data).then(res => {
--
Gitblit v1.9.3