Commit 9ffad6b0 by 张立顺

feat 权益提单商品新增车型过滤

1 parent 2c260918
......@@ -242,7 +242,7 @@
<!-- 改装件信息 -->
<div v-if="(refitFormObj.customFlag && equityRadio == '2') || (refitFormObj.autoFlag && equityRadio == '1') || refitFormObj.showFlag" class="container m-t-10">
<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>
<!-- 其他信息 -->
......@@ -1924,6 +1924,23 @@ 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) {
// 2023 7月底版本 改版
let attrList = [],
......@@ -2336,6 +2353,7 @@ export default {
this.$apis.beforeSale.getCarTypeListApi(params).then(res => {
this.baseData.carTypeOptions = res || []
})
this.packageToCarType(this.editForm.vehicle.vehicleSeriesId)
},
// 跳转
whereToGo(id) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!