Commit bb805b77 by zhangquan

轮胎bug修复

1 parent 2a0ce368
...@@ -1053,7 +1053,6 @@ export default { ...@@ -1053,7 +1053,6 @@ export default {
} }
}, },
inputTdoVal() { inputTdoVal() {
console.log(this.TDOTableData)
if (this.equityRadio == 1) { if (this.equityRadio == 1) {
this.handleProductArrParam(this.tempAttributeList, this.packageCodeList) this.handleProductArrParam(this.tempAttributeList, this.packageCodeList)
} else { } else {
...@@ -1270,6 +1269,7 @@ export default { ...@@ -1270,6 +1269,7 @@ export default {
}, },
// 处理数据结构对比后台所需的参数 // 处理数据结构对比后台所需的参数
handleProductArrParam(arr, codearr, isGetDetail = false) { handleProductArrParam(arr, codearr, isGetDetail = false) {
arr = arr.filter(item => item?.attributeGroup != 'tireBatchNew' && item?.attributeGroup != 'tireDTONew')
let newArr = [], let newArr = [],
filterList = [] filterList = []
const codeList = Array.from(new Set(codearr)) const codeList = Array.from(new Set(codearr))
...@@ -1319,28 +1319,25 @@ export default { ...@@ -1319,28 +1319,25 @@ export default {
} }
} }
} }
if (!isGetDetail) { codeList.forEach((item, index) => {
codeList.forEach((item, index) => { if (this.TDOTableData[item]) {
if (this.TDOTableData[item]) { for (let key in this.TDOTableData[item]) {
for (let key in this.TDOTableData[item]) { for (let i = 0; i < 4; i++) {
for (let i = 0; i < 4; i++) { let _obj = {
let _obj = { name: item,
name: item, index: index,
index: index, value: {
value: { attributeGroup: key,
attributeGroup: key, attributeName: key,
attributeName: key, attributeValue: this.TDOTableData[item][key][i],
attributeValue: this.TDOTableData[item][key][i], sort: i
sort: i
}
} }
blackArr[index].push(_obj)
} }
blackArr[index].push(_obj)
} }
} }
}) }
} })
console.log(blackArr, codeList, 'codeList')
// codeList为已选中产品的packageCode // codeList为已选中产品的packageCode
for (let i = 0; i < blackArr.length; i++) { for (let i = 0; i < blackArr.length; i++) {
for (let j = 0; j < blackArr[i].length; j++) { 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!