标准入库流程--选择国内或者海外的 第一步和第四步的手动查找的文本状态回显不对,且把标准状态改成文本状态

This commit is contained in:
yanyizhou
2021-09-01 10:31:25 +08:00
parent af5c40f250
commit 8fb8546e18
2 changed files with 19 additions and 4 deletions
@@ -1017,9 +1017,12 @@
<template slot-scope="scope">{{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}</template>
</el-table-column>
<el-table-column
prop="standStateShow"
label="标准状态"
prop="textStatus"
label="文本状态"
width="130">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -1020,9 +1020,12 @@
<template slot-scope="scope">{{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}</template>
</el-table-column>
<el-table-column
prop="standStateShow"
label="标准状态"
prop="textStatus"
label="文本状态"
width="130">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
@@ -1061,6 +1064,8 @@ export default {
},
data () {
return {
textStatus:'',//文本状态
textStatusMap: {}, // 文本状态id与name对应
countryArr:'',
activeName:'1',
// 当前流程类型(1待办/2已办)
@@ -1765,6 +1770,12 @@ export default {
}
})
},
// 将文本状态的id与name对应
setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
},
},
created(){
this.getData()
@@ -1794,6 +1805,7 @@ export default {
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
this.treeStatus = true
this.key++
this.setMap(this.standStateOptions);
})
this.busVsFunc()
this.modelFunc()