|
@@ -8,22 +8,24 @@ export default {
|
|
|
components: {CommitmentConfirmForm},
|
|
|
computed: {
|
|
|
indicatorList() {
|
|
|
- return this.$store.state.template.indicatorList.map(item => {
|
|
|
- if (item.indicatorInputBody) {
|
|
|
- item.indicatorInputBody = item.indicatorInputBody.replace('&', item.inputBody + item.inputSegment)
|
|
|
- }
|
|
|
- return item
|
|
|
- })
|
|
|
+ return this.$store.state.template.indicatorList
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
indicatorList: {
|
|
|
handler(value) {
|
|
|
if (value && value.length > 0 && !this.formStatesInitFlag) {
|
|
|
- value.forEach((item) => {
|
|
|
+ value.forEach((indicatorItem) => {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$set(this.formStates, item.uuid, {
|
|
|
- fileList: []
|
|
|
+ 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,
|
|
|
+ fileList: indicatorItem.expandStr ? indicatorItem.expandStr.split(',').map(item => {
|
|
|
+ return {
|
|
|
+ uuid: item
|
|
|
+ }
|
|
|
+ }) : []
|
|
|
})
|
|
|
})
|
|
|
})
|
|
@@ -99,6 +101,8 @@ export default {
|
|
|
]).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$toast('核查成功')
|
|
|
+ this.formStatesInitFlag = false
|
|
|
+ this.$store.dispatch('template/getPromiseDetail1',this.$route.query.uuid)
|
|
|
}else {
|
|
|
this.$toast('核查失败' + res.msg)
|
|
|
}
|
|
@@ -125,7 +129,7 @@ export default {
|
|
|
<view>
|
|
|
<view v-for="(item,index) in indicatorList" :key="index" class="indicator-style">
|
|
|
<view class="indicator-body">
|
|
|
- {{ item.indicatorInputBody }}
|
|
|
+ {{ item.indicatorInputBody.replace('&', item.inputBody + item.inputSegment) }}
|
|
|
</view>
|
|
|
<view class="title">监管核查
|
|
|
<view>涉及整改、整改扣分结果,需要走审批二次确认</view>
|
|
@@ -142,9 +146,6 @@ export default {
|
|
|
<view v-else>
|
|
|
<view class="other-title">
|
|
|
监管核查
|
|
|
- <view style="color: #FF6B00" v-if="item.approvalStatus === 0">
|
|
|
- 审批状态:待审批
|
|
|
- </view>
|
|
|
<view style="color: #15BE50" v-if="item.approvalStatus === 1">
|
|
|
审批状态:已通过
|
|
|
</view>
|