清单 - 清单条目 - 没有回显全
This commit is contained in:
@@ -1165,6 +1165,7 @@ export default {
|
||||
//判断是否是清单类型
|
||||
if (this.selectedAccInfoSearchList.length > 0) {
|
||||
// 追加字段
|
||||
console.log('1168',this.selectedAccInfoSearchList)
|
||||
this.selectedAccInfoSearchList.map(item => {
|
||||
let addList;
|
||||
addList = this.sarAccessInfoList.findIndex(items => {
|
||||
@@ -1472,6 +1473,7 @@ export default {
|
||||
this.sarAccessInfoSearch.page = 1
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){
|
||||
StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
|
||||
console.log('1476',res.data.list)
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
@@ -1479,6 +1481,10 @@ export default {
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
item.zrbm = item.attrInfoCaseMap.zrbm
|
||||
item.sycpx = item.attrInfoCaseMap.sycpx
|
||||
item.typeApplicable = item.attrInfoMap.CLLX
|
||||
item.nylx = item.attrInfoMap.NYLX
|
||||
})
|
||||
this.drawerTotal = res.data.count
|
||||
}, e => {
|
||||
|
||||
@@ -1229,19 +1229,102 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 字段转化
|
||||
changeText(val) {
|
||||
val.forEach(item => {
|
||||
// 责任部门转换
|
||||
if (item.zrbm !== null || item.zrbm !== "") {
|
||||
let k = (item.zrbm || "").split(',')
|
||||
for (let i in this.zrbmOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.zrbmOptions[i].value === k[m]) {
|
||||
k[m] = this.zrbmOptions[i].label
|
||||
}
|
||||
item.zrbm = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
// 能源类型转换
|
||||
if (item.nylx !== null) {
|
||||
let k = (item.nylx || "").split(',')
|
||||
for (let i in this.categoryOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.categoryOptions[i].value === k[m]) {
|
||||
k[m] = this.categoryOptions[i].label
|
||||
}
|
||||
item.nylx = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
// 适用车型转换
|
||||
if (item.typeApplicable !== null) {
|
||||
let k = (item.typeApplicable || "").split(',')
|
||||
for (let i in this.CycxOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.CycxOptions[i].value === k[m]) {
|
||||
k[m] = this.CycxOptions[i].label
|
||||
}
|
||||
item.typeApplicable = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
// s适用产品线转换
|
||||
if (item.sycpx !== null) {
|
||||
let k = (item.sycpx || "").split(',')
|
||||
for (let i in this.sycpxOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.sycpxOptions[i].value === k[m]) {
|
||||
k[m] = this.sycpxOptions[i].label
|
||||
}
|
||||
item.sycpx = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
// 适用认证转换
|
||||
if (item.syrz !== null) {
|
||||
let k = (item.syrz || "").split(',')
|
||||
for (let i in this.syrzOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.syrzOptions[i].value === k[m]) {
|
||||
k[m] = this.syrzOptions[i].label
|
||||
}
|
||||
item.syrz = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
pageInfo() {
|
||||
this.sarAccessInfoSearch.pageNo = 1
|
||||
this.sarAccessInfoSearch.page = 1
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND') {
|
||||
StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
console.log('1476',res.data.list)
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
item.zrbm = item.attrInfoCaseMap.zrbm
|
||||
item.sycpx = item.attrInfoCaseMap.sycpx
|
||||
item.typeApplicable = item.attrInfoMap.CLLX
|
||||
// 适用车型转换
|
||||
if (item.typeApplicable !== null) {
|
||||
let k = (item.typeApplicable || "").split(',')
|
||||
for (let i in this.CycxOptions) {
|
||||
for (let m = 0; m < k.length; m++) {
|
||||
if (this.CycxOptions[i].value === k[m]) {
|
||||
k[m] = this.CycxOptions[i].label
|
||||
}
|
||||
item.typeApplicable = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
item.nylx = item.attrInfoMap.NYLX
|
||||
})
|
||||
this.changeText(this.sarAccessInfoSearchList)
|
||||
this.drawerTotal = res.data.count
|
||||
}, e => {
|
||||
})
|
||||
|
||||
+5
-1
@@ -1306,7 +1306,7 @@ export default {
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){
|
||||
StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
|
||||
console.log('1476',res.data.list)
|
||||
//为空转换
|
||||
for (let i = 0; i < this.sarAccessInfoSearchList.length; i++) {
|
||||
//适用车型为空
|
||||
@@ -1324,6 +1324,10 @@ export default {
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
item.zrbm = item.attrInfoCaseMap.zrbm
|
||||
item.sycpx = item.attrInfoCaseMap.sycpx
|
||||
item.typeApplicable = item.attrInfoMap.CLLX
|
||||
item.nylx = item.attrInfoMap.NYLX
|
||||
})
|
||||
this.changeText(this.sarAccessInfoSearchList)
|
||||
this.drawerTotal = res.data.count
|
||||
|
||||
Reference in New Issue
Block a user