清单流程修改bug
This commit is contained in:
@@ -131,20 +131,20 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="XCXSSRQ"
|
prop="xcxssrqgj"
|
||||||
align="center"
|
align="center"
|
||||||
label="新车型实施日期">
|
label="新车型实施日期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
|
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="ZCCSSRQ"
|
prop="zccssrqgj"
|
||||||
align="center"
|
align="center"
|
||||||
label="在产车实施日期">
|
label="在产车实施日期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
|
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countryArea"
|
prop="countryAreaShow"
|
||||||
label="国家/地区"
|
label="国家/地区"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -822,14 +822,14 @@ export default {
|
|||||||
code: "", //标准号
|
code: "", //标准号
|
||||||
standName: "", //标准名称
|
standName: "", //标准名称
|
||||||
issueTime: "", //发布日期
|
issueTime: "", //发布日期
|
||||||
XCXSSRQ: "", //新车型实施日期
|
xcxssrqgj: "", //新车型实施日期
|
||||||
ZCCSSRQ: "", //在产车实施日期
|
zccssrqgj: "", //在产车实施日期
|
||||||
textStatus: "", //文本状态
|
textStatus: "", //文本状态
|
||||||
id: ""
|
id: ""
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
choiceForm: {}, //选择标准清单列表
|
choiceForm: {}, //选择标准清单列表
|
||||||
// countryOptions: [], //适用区域下拉框数据
|
countryOptions: [], //国家地区
|
||||||
standStateOptions: [],
|
standStateOptions: [],
|
||||||
standardTypeOptions: [
|
standardTypeOptions: [
|
||||||
{
|
{
|
||||||
@@ -963,7 +963,22 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.sarAccessListDatas = res.data.records;
|
let arr = res.data.records;
|
||||||
|
//国家地区字段转换
|
||||||
|
arr.forEach(item => {
|
||||||
|
if (item.countryArea !== null || item.countryArea !== "") {
|
||||||
|
let k = (item.countryArea || "").split(',')
|
||||||
|
for (let i in this.countryOptions) {
|
||||||
|
for (let m = 0; m < k.length; m++) {
|
||||||
|
if (this.countryOptions[i].value === k[m]) {
|
||||||
|
k[m] = this.countryOptions[i].label
|
||||||
|
}
|
||||||
|
item.countryAreaShow = k.join(',')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.sarAccessListDatas = arr;
|
||||||
this.total = res.data.total;
|
this.total = res.data.total;
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
@@ -1292,15 +1307,14 @@ export default {
|
|||||||
}
|
}
|
||||||
this.dataList = res.data.records;
|
this.dataList = res.data.records;
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.xcxssrqgj === null){
|
if(item.xcxssrqgj === 'undefined'){
|
||||||
this.$set(item, "XCXSSRQ", '');
|
item.xcxssrqgj = ''
|
||||||
this.$set(item, "ZCCSSRQ", '');
|
}
|
||||||
}else{
|
if(item.zccssrqgj === 'undefined'){
|
||||||
this.$set(item, "XCXSSRQ", item.xcxssrqgj);
|
item.zccssrqgj = ''
|
||||||
this.$set(item, "ZCCSSRQ", item.zccssrqgj);
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.listForm.dataList = res.data.records;
|
this.listForm.dataList = this.dataList;
|
||||||
let formId = [];
|
let formId = [];
|
||||||
this.dataList.map(item => {
|
this.dataList.map(item => {
|
||||||
formId.push(item.id);
|
formId.push(item.id);
|
||||||
@@ -1402,7 +1416,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES //适用车型
|
this.energyKindOptions = res.data.ENERGYTYPES //适用车型
|
||||||
this.countryOptions = res.data.COUNTRY;
|
this.countryOptions = res.data.COUNTRY; //国家/地区
|
||||||
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
||||||
this.setMap(this.standStateOptions);
|
this.setMap(this.standStateOptions);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user