Commit 378a2516 by 杨北旺

Merge branch 'v3.23.0' of 192.168.3.233:saas/scrm-micro-appreciation into v3.23.0

2 parents 416e8515 da427a08
......@@ -55,7 +55,6 @@ export default {
width: 100%;
top: 0px;
left: 0px;
overflow-y: auto;
height: 100%;
}
......
......@@ -328,6 +328,7 @@ export default {
PC0005: '',
PC0007: ''
},
allProdList: [],
editCarChildRef: 'editChildRef',
disabled: false,
successDisable: false,
......@@ -1318,20 +1319,7 @@ export default {
}
}
}
if (isGetDetail) {
blackArr.forEach(element => {
element?.forEach(item => {
if (item.value.attributeGroup == 'tireDTONew' || item.value.attributeGroup == 'tireBatchNew') {
if (!this.TDOTableData[item.name]) this.$set(this.TDOTableData, item.name, {})
if (this.TDOTableData[item.name] && !this.TDOTableData[item.name][item.value.attributeGroup]) {
this.$set(this.TDOTableData[item.name], item.value.attributeGroup, {})
}
this.$set(this.TDOTableData[item.name][item.value.attributeGroup], item.value.sort, item.value.attributeValue)
}
})
})
console.log(this.TDOTableData, 'isGetDetail')
} else {
if (!isGetDetail) {
codeList.forEach((item, index) => {
if (this.TDOTableData[item]) {
for (let key in this.TDOTableData[item]) {
......@@ -1607,6 +1595,7 @@ export default {
params.tireFlag = 1
}
this.$apis.beforeSale.getNewPackageListApi(params).then(res => {
this.allProdList = res
res.forEach((item, index) => {
let obj = null
let id = -1
......@@ -1770,7 +1759,15 @@ export default {
}
packCode.push(item.packageCode)
const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode)
const hasTire = _curProdTarget?.groupAttributeList?.find(el => el.attributeGroup == 'tireDTONew' || el.attributeGroup == 'tireBatchNew')
if (hasTire && !this.TDOTableData[item.packageCode]) {
this.$set(this.TDOTableData, item.packageCode, JSON.parse(JSON.stringify(TDO_OBJ)))
}
item.attributeDTOList.forEach(el => {
if (this.TDOTableData[item.packageCode] && (el.attributeGroup == 'tireDTONew' || el.attributeGroup == 'tireBatchNew')) {
this.$set(this.TDOTableData[item.packageCode][el.attributeGroup], el.sort, el.attributeValue)
}
attrList.push({
...el,
packageCode: item.packageCode,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!