Commit 39886eb0 by zhangquan

轮胎bug

1 parent 359641d3
......@@ -1223,6 +1223,7 @@ export default {
},
// 处理数据结构对比后台所需的参数
handleProductArrParam(arr, codearr, isGetDetail = false) {
arr = arr.filter(item => item?.attributeGroup != 'tireBatchNew' && item?.attributeGroup != 'tireDTONew')
let newArr = [],
filterList = []
const codeList = Array.from(new Set(codearr))
......@@ -1271,27 +1272,26 @@ export default {
}
}
}
if (!isGetDetail) {
codeList.forEach((item, index) => {
if (this.TDOTableData[item]) {
for (let key in this.TDOTableData[item]) {
for (let i = 0; i < 4; i++) {
let _obj = {
name: item,
index: index,
value: {
attributeGroup: key,
attributeName: key,
attributeValue: this.TDOTableData[item][key][i],
sort: i
}
codeList.forEach((item, index) => {
if (this.TDOTableData[item]) {
for (let key in this.TDOTableData[item]) {
for (let i = 0; i < 4; i++) {
let _obj = {
name: item,
index: index,
value: {
attributeGroup: key,
attributeName: key,
attributeValue: this.TDOTableData[item][key][i],
sort: i
}
blackArr[index].push(_obj)
}
// const _hasItem = blackArr[index]?.find(prodi => prodi.name == item && prodi?.value?. ==sort )
blackArr[index].push(_obj)
}
}
})
}
}
})
// codeList为已选中产品的packageCode
for (let i = 0; i < blackArr.length; i++) {
for (let j = 0; j < blackArr[i].length; j++) {
......@@ -2115,7 +2115,6 @@ export default {
// 检查轮胎信息是否已填
checkTDOTableDataFn() {
const allPageCodeList = this.equityRadio == 1 ? this.packageCodeList : this.autoPackageCodeList
console.log(allPageCodeList, this.TDOTableData)
let isEmpty = false
try {
allPageCodeList.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!