Commit bb805b77 by zhangquan

轮胎bug修复

1 parent 2a0ce368
......@@ -1053,7 +1053,6 @@ export default {
}
},
inputTdoVal() {
console.log(this.TDOTableData)
if (this.equityRadio == 1) {
this.handleProductArrParam(this.tempAttributeList, this.packageCodeList)
} else {
......@@ -1270,6 +1269,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))
......@@ -1319,28 +1319,25 @@ 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)
}
blackArr[index].push(_obj)
}
}
})
}
console.log(blackArr, codeList, 'codeList')
}
})
// codeList为已选中产品的packageCode
for (let i = 0; i < blackArr.length; i++) {
for (let j = 0; j < blackArr[i].length; j++) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!