story#6071,车辆类型为小修车时需清除拖车服务类型id
This commit is contained in:
@ -30,10 +30,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
||||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
||||||
<script>
|
<script>
|
||||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||||
let vConsole = new window.VConsole();
|
// let vConsole = new window.VConsole();
|
||||||
(function (doc, win) {
|
(function (doc, win) {
|
||||||
console.log("==window.location.pathname===",window.location.pathname)
|
console.log("==window.location.pathname===",window.location.pathname)
|
||||||
let docEl = doc.documentElement
|
let docEl = doc.documentElement
|
||||||
|
@ -72,7 +72,6 @@ export const myMixins = {
|
|||||||
methods();
|
methods();
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("shengxiaoxi")
|
|
||||||
that.noClick = true;
|
that.noClick = true;
|
||||||
}, 3000)
|
}, 3000)
|
||||||
} else {
|
} else {
|
||||||
|
@ -154,7 +154,7 @@
|
|||||||
<span class="line"></span>
|
<span class="line"></span>
|
||||||
</div>
|
</div>
|
||||||
<div :ref="'checkboxGroup' + index" class="checkbox-group">
|
<div :ref="'checkboxGroup' + index" class="checkbox-group">
|
||||||
<van-checkbox-group v-model="serviceIds" v-for="(item2,index2) in item.children" :key="index2" class="radioWrap" >
|
<van-checkbox-group v-model="serviceIds" v-for="(item2,index2) in item.children" :key="index2" class="radioWrap">
|
||||||
<van-checkbox class="item" :name="item2.id">{{item2.name }}</van-checkbox>
|
<van-checkbox class="item" :name="item2.id">{{item2.name }}</van-checkbox>
|
||||||
</van-checkbox-group>
|
</van-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
@ -462,7 +462,11 @@ export default {
|
|||||||
this.$toast('车辆类型不能为空')
|
this.$toast('车辆类型不能为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
await saveVehicle({
|
if(this.selectedOption.includes(1)){//选择小修车时需清除原本的拖车服务类型
|
||||||
|
let data=this.oldSupplierServiceList.filter(item => item.name ==='拖车服务')
|
||||||
|
this.serviceIds = this.serviceIds.filter(item => !data[0].children.some(obj => obj.id === item));
|
||||||
|
}
|
||||||
|
await saveVehicle({
|
||||||
vehicleId:this.id ? this.id : '',
|
vehicleId:this.id ? this.id : '',
|
||||||
plateNumber:this.carNum ? this.carNum :'',
|
plateNumber:this.carNum ? this.carNum :'',
|
||||||
vehicleType:this.selectedOption?.length>0 ? this.selectedOption.join(',') : '',
|
vehicleType:this.selectedOption?.length>0 ? this.selectedOption.join(',') : '',
|
||||||
|
Reference in New Issue
Block a user