Commit fc21dff8 by 杨北旺

修复线上问题:轮胎

1 parent 29a6f2c8
......@@ -1403,6 +1403,22 @@ export default {
getPackageList() {
let contractNo = this.routeInfo.contractNo == -1 ? '' : this.routeInfo.contractNo
this.$apis.beforeSale.getPackageListApi({ contractNo }).then(res => {
res.forEach((item, index) => {
let obj = null
let id = -1
item.groupAttributeList.forEach((e, idx) => {
if (e.groupName == 'tireScale') {
if (e?.attributeList && e?.attributeList[0]) {
e.attributeList[0].attributeDesc = '规格型号(前轮)'
obj = JSON.parse(JSON.stringify(e))
obj.attributeList[0].attributeDesc = '规格型号(后轮)'
obj.attributeList[0].attributeName = 'afterTireScale'
id = idx
}
}
})
if (id > -1) item.groupAttributeList.splice(id + 1, 0, obj)
})
this.toGetProductData(res)
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!