Commit 27e252c9 by 张立顺

feat 权益下单 新增筛选

1 parent 11e769ae
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
<!-- 改装件信息 --> <!-- 改装件信息 -->
<div v-if="(refitFormObj.customFlag && equityRadio == '2') || (refitFormObj.autoFlag && equityRadio == '1') || refitFormObj.showFlag" class="container m-t-10"> <div v-if="(refitFormObj.customFlag && equityRadio == '2') || (refitFormObj.autoFlag && equityRadio == '1') || refitFormObj.showFlag" class="container m-t-10">
<p class="edit-title">改装件信息</p> <p class="edit-title">改装件信息</p>
<div style="padding: 20px 20px 1px;"><glsx-combi-form ref="refitRef" :isEdit="true" :isInline="false" defaultWidth="320px" :formObj="refitFormObj" :formData="refitFormData" :formRules="refitRules"></glsx-combi-form></div> <div style="padding: 20px 20px 1px"><glsx-combi-form ref="refitRef" :isEdit="true" :isInline="false" defaultWidth="320px" :formObj="refitFormObj" :formData="refitFormData" :formRules="refitRules"></glsx-combi-form></div>
</div> </div>
<!-- 其他信息 --> <!-- 其他信息 -->
...@@ -1972,13 +1972,30 @@ export default { ...@@ -1972,13 +1972,30 @@ export default {
// }) // })
// } // }
}, },
packageToCarType(cartype = '') {
if (cartype && this.editForm.orderStatus != 2) {
let _list = []
this.copyCustomProductList.forEach(item => {
// 套餐商品不做过滤
console.log(item, 'copyCustomProductList')
if (item.vehicleSeriesConfigs && item.vehicleSeriesConfigs.some(ele => ele.vehicleSeriesId == cartype)) {
_list.push(item)
} else {
if (this.autoPackageCodeList.includes(item.packageCode)) {
this.changeRaido(false, item, true)
}
}
})
this.customProductList = _list
}
},
packageAttr(recovery = false, productArrData, detailInfo) { packageAttr(recovery = false, productArrData, detailInfo) {
// 2023 7月底版本 改版 // 2023 7月底版本 改版
let attrList = [], let attrList = [],
packCode = [] packCode = []
detailInfo.attributes.forEach(item => { detailInfo.attributes.forEach(item => {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode) let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
if(targetItem){ if (targetItem) {
if (targetItem && item.parentId) { if (targetItem && item.parentId) {
targetItem.parentId = item.parentId targetItem.parentId = item.parentId
targetItem.parentName = item.parentName targetItem.parentName = item.parentName
...@@ -2106,7 +2123,6 @@ export default { ...@@ -2106,7 +2123,6 @@ export default {
} }
} }
packCode.push(item.packageCode) packCode.push(item.packageCode)
const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode) const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode)
const hasTire = _curProdTarget?.groupAttributeList?.find(el => el.attributeGroup == 'tireDTONew' || el.attributeGroup == 'tireBatchNew') const hasTire = _curProdTarget?.groupAttributeList?.find(el => el.attributeGroup == 'tireDTONew' || el.attributeGroup == 'tireBatchNew')
...@@ -2304,6 +2320,7 @@ export default { ...@@ -2304,6 +2320,7 @@ export default {
this.$apis.beforeSale.getCarTypeListApi(params).then(res => { this.$apis.beforeSale.getCarTypeListApi(params).then(res => {
this.baseData.carTypeOptions = res || [] this.baseData.carTypeOptions = res || []
}) })
this.packageToCarType(this.editForm.vehicle.vehicleSeriesId)
}, },
// 跳转 // 跳转
whereToGo(id) { whereToGo(id) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!