Commit 8422c76c by 张权

同步v2.1.2紧急版本代码

1 parent dfada6f3
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
} }
], ],
invoicePrice: [{ required: true, message: '请输入车辆价格', trigger: 'change' }], invoicePrice: [{ required: true, message: '请输入车辆价格', trigger: 'change' }],
// vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }], vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }],
vehicleBrandId: [{ required: true, message: '请选择车品牌', trigger: 'change' }], vehicleBrandId: [{ required: true, message: '请选择车品牌', trigger: 'change' }],
vehicleSubBrandId: [{ required: true, message: '请选择车子品牌', trigger: 'change' }], vehicleSubBrandId: [{ required: true, message: '请选择车子品牌', trigger: 'change' }],
vehicleSeriesId: [{ required: true, message: '请选择车系', trigger: 'change' }], vehicleSeriesId: [{ required: true, message: '请选择车系', trigger: 'change' }],
...@@ -979,9 +979,9 @@ export default { ...@@ -979,9 +979,9 @@ export default {
let arrt4 = `attributes[${blackArr[i][j].index}].attributeDTOList[${j}].sort` let arrt4 = `attributes[${blackArr[i][j].index}].attributeDTOList[${j}].sort`
let obj = { let obj = {
[arrt1]: blackArr[i][j].value.attributeGroup, [arrt1]: blackArr[i][j].value.attributeGroup,
[arrt2]: blackArr[i][j].value.attributeName, [arrt2]: blackArr[i][j].value.attributeName == 'afterTireScale' ? 'tireScale' : blackArr[i][j].value.attributeName,
[arrt3]: this.priceFormat(blackArr[i][j].value.attributeName, blackArr[i][j].value.attributeValue), [arrt3]: this.priceFormat(blackArr[i][j].value.attributeName, blackArr[i][j].value.attributeValue),
[arrt4]: blackArr[i][j].value.sort [arrt4]: blackArr[i][j].value.attributeName == 'afterTireScale' ? 1 : blackArr[i][j].value.sort
} }
newParaArr.push(obj) newParaArr.push(obj)
} }
...@@ -992,7 +992,6 @@ export default { ...@@ -992,7 +992,6 @@ export default {
concactArr.forEach(item => { concactArr.forEach(item => {
this.formatProduct = Object.assign(this.formatProduct, item) this.formatProduct = Object.assign(this.formatProduct, item)
}) })
// console.log(this.formatProduct, '自选权益')
} else { } else {
concactArr.forEach(item => { concactArr.forEach(item => {
this.autoFormatProduct = Object.assign(this.autoFormatProduct, item) this.autoFormatProduct = Object.assign(this.autoFormatProduct, item)
...@@ -1167,6 +1166,22 @@ export default { ...@@ -1167,6 +1166,22 @@ export default {
}, },
getPackageList() { getPackageList() {
this.$apis.beforeSale.getPackageListApi({}).then(res => { this.$apis.beforeSale.getPackageListApi({}).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.toTestProductData(res) this.toTestProductData(res)
}) })
}, },
...@@ -1194,6 +1209,9 @@ export default { ...@@ -1194,6 +1209,9 @@ export default {
if (item.attributeName.includes('price')) { if (item.attributeName.includes('price')) {
item.attributeValue = item.attributeValue / 100 item.attributeValue = item.attributeValue / 100
} }
if (item.attributeName == 'tireScale' && item.sort == 1) {
item.attributeName = 'afterTireScale'
}
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) { if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) {
this.compensationNameDisable = true this.compensationNameDisable = true
} }
...@@ -1226,6 +1244,9 @@ export default { ...@@ -1226,6 +1244,9 @@ export default {
} else if (item.attributeName == 'planId') { } else if (item.attributeName == 'planId') {
this.getCase(parseInt(item.attributeValue)) this.getCase(parseInt(item.attributeValue))
} }
if (item.attributeName == 'tireScale' && item.sort == 1) {
item.attributeName = 'afterTireScale'
}
if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) { if (item.attributeName == 'buy_car_type' && item.attributeValue == 1) {
this.compensationNameDisable = true this.compensationNameDisable = true
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!