|
@@ -20,7 +20,7 @@ export default {
|
|
|
this.$set(this.formStates, indicatorItem.uuid, {
|
|
|
...indicatorItem,
|
|
|
auditResult: this.checkResultColumns.find(item => item.value === indicatorItem.auditResult) && this.checkResultColumns.find(item => item.value === indicatorItem.auditResult).text,
|
|
|
- auditScore: this.checkGoalColumns.find(item => item.value === indicatorItem.auditScore) && this.checkGoalColumns.find(item => item.value === indicatorItem.auditScore).text,
|
|
|
+ auditScore: indicatorItem.auditResult === 3 ? '' : indicatorItem.auditScore, //后端会直接返回过来具体的分数
|
|
|
fileList: indicatorItem.expandStr ? indicatorItem.expandStr.split(',').map(item => {
|
|
|
return {
|
|
|
uuid: item
|
|
@@ -82,6 +82,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ /* 重新核查 */
|
|
|
+ handleReCommitment(indicateItem) {
|
|
|
+ indicateItem.auditResult = 3
|
|
|
+ indicateItem.auditScore = ''
|
|
|
+ },
|
|
|
onCheckResultSubmit(indicateItem) {
|
|
|
editVerifyTask([
|
|
|
{
|
|
@@ -92,7 +97,6 @@ export default {
|
|
|
indicatorInputBody: indicateItem.indicatorInputBody,
|
|
|
auditor: uni.getStorageSync("userInfo").realName,
|
|
|
auditResult: this.checkResultColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditResult) && this.checkResultColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditResult).value,
|
|
|
- auditScore: this.checkGoalColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditScore) && this.checkGoalColumns.find(item => item.text === this.formStates[indicateItem.uuid].auditScore).value,
|
|
|
auditRemark: this.formStates[indicateItem.uuid].auditRemark,
|
|
|
//文件上传字段
|
|
|
expandStr: this.formStates[indicateItem.uuid].fileList.map(item => item.uuid).join(','),
|
|
@@ -102,7 +106,7 @@ export default {
|
|
|
if (res.code === 0) {
|
|
|
this.$toast('核查成功')
|
|
|
this.formStatesInitFlag = false
|
|
|
- this.$store.dispatch('template/getPromiseDetail1',this.$route.query.uuid)
|
|
|
+ this.$store.dispatch('template/getPromiseDetail',this.$route.query.uuid)
|
|
|
}else {
|
|
|
this.$toast('核查失败' + res.msg)
|
|
|
}
|
|
@@ -135,7 +139,7 @@ export default {
|
|
|
<view>涉及整改、整改扣分结果,需要走审批二次确认</view>
|
|
|
</view>
|
|
|
<van-divider/>
|
|
|
- <CommitmentConfirmForm v-if="!item.approvalStatus"
|
|
|
+ <CommitmentConfirmForm v-if="item.auditResult === 3"
|
|
|
v-model="formStates[item.uuid]">
|
|
|
<template #footer>
|
|
|
<view style="margin: 16px;">
|
|
@@ -146,6 +150,9 @@ export default {
|
|
|
<view v-else>
|
|
|
<view class="other-title">
|
|
|
监管核查
|
|
|
+ <view style="color: #15BE50" v-if="item.approvalStatus === 0">
|
|
|
+ 审批状态:待审批
|
|
|
+ </view>
|
|
|
<view style="color: #15BE50" v-if="item.approvalStatus === 1">
|
|
|
审批状态:已通过
|
|
|
</view>
|
|
@@ -172,8 +179,7 @@ export default {
|
|
|
label="核查得分"
|
|
|
>
|
|
|
<template #input>
|
|
|
- <view v-if="item.auditScore === 0">0分</view>
|
|
|
- <view v-if="item.auditScore === -10">-10分</view>
|
|
|
+ {{item.auditScore }}
|
|
|
</template>
|
|
|
</van-field>
|
|
|
<!--核查说明-->
|
|
@@ -190,14 +196,68 @@ export default {
|
|
|
label="附件"
|
|
|
>
|
|
|
<template #input>
|
|
|
- <view class="file-style">
|
|
|
+ <view v-if="item.expandStr" class="file-style">
|
|
|
<view v-for="(item,index) in item.expandStr.split(',')" @click="handleFileDown(item)" :key="index">
|
|
|
附件{{ index + 1 }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
+ <!--核查人员-->
|
|
|
+ <van-field
|
|
|
+ style="margin-top: 16px"
|
|
|
+ name="auditor"
|
|
|
+ label="核查人员"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ {{ item.auditor }}
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <!--核查时间-->
|
|
|
+ <van-field
|
|
|
+ name="auditTime"
|
|
|
+ label="核查时间"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ {{ item.updateTime | date }}
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+
|
|
|
+ <view v-if="item.approvalStatus !== 0">
|
|
|
+ <van-divider></van-divider>
|
|
|
+ <view class="other-title">核查审批</view>
|
|
|
+ <!--审批人员-->
|
|
|
+ <van-field
|
|
|
+ name="approvalPerson"
|
|
|
+ label="审批人员"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ {{ item.approvalPerson }}
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <!--审批时间-->
|
|
|
+ <van-field
|
|
|
+ name="approvalTime"
|
|
|
+ label="审批时间"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ {{ item.approvalTime | date }}
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <!--审批说明-->
|
|
|
+ <van-field
|
|
|
+ name="approvalRemark"
|
|
|
+ label="审批说明"
|
|
|
+ >
|
|
|
+ <template #input>
|
|
|
+ {{ item.approvalRemark }}
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ </view>
|
|
|
</van-form>
|
|
|
+ <view v-if="item.approvalStatus === 2" style="margin: 16px;">
|
|
|
+ <van-button round block type="info" @click="handleReCommitment(item)">重新核查</van-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|