story#6071,编辑车辆页面选择服务逻辑修改

This commit is contained in:
2025-01-17 15:23:29 +08:00
parent 34f968e596
commit f88bddb65b

View File

@ -189,6 +189,7 @@ export default {
id:'',//车辆Id
serviceIds:[],//车辆服务种类,
supplierServiceList:[],
oldSupplierServiceList:[],
show:false,
imageUrl: require('@/assets/arr_right.png'),
vehicleLicenseFrontList: [],
@ -256,6 +257,17 @@ export default {
this.vehicleTypes[8].disabled=false
this.vehicleTypes[9].disabled=false
}
if (newVal == 1 || newVal == 7){
let arr = []
this.supplierServiceList.forEach((item)=>{
if(!(item.name == '拖车服务' || item.name == '大型车救援')){
arr.push(item)
}
})
this.supplierServiceList = arr
}else{
this.supplierServiceList = this.oldSupplierServiceList
}
},
},
@ -385,6 +397,7 @@ export default {
async getSupplierServiceTree(){
let res = await supplierServiceTree();
this.supplierServiceList=res.data
this.oldSupplierServiceList=this.supplierServiceList
},
async vehicleInfo(){
let res= await getInfoById({