|
|
|
@ -387,12 +387,23 @@
|
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
:disabled="!query.isPickUp || !query.pickupCompleteOrNot" |
|
|
|
|
v-model="query.pickupVehicleType" |
|
|
|
|
v-model="query.pickupVehicleTypeId" |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择车型" |
|
|
|
|
@change=" |
|
|
|
|
() => { |
|
|
|
|
let _item = {} as any |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.vehicleTypeArr.length; i++) { |
|
|
|
|
const val = details.vehicleTypeArr[i]; |
|
|
|
|
|
|
|
|
|
if (val.dictKey !== query.pickupVehicleTypeId) continue |
|
|
|
|
_item = val |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
query.pickupVehicleType = _item.dictValue || '' |
|
|
|
|
details.query.pickupFee = 0; |
|
|
|
|
handlePrice(false, 'pickup'); |
|
|
|
|
} |
|
|
|
@ -432,14 +443,25 @@
|
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
:disabled="!query.trunklineCompleteOrNot" |
|
|
|
|
v-model="query.trunklineVehicleType" |
|
|
|
|
v-model="query.trunklineVehicleTypeId" |
|
|
|
|
filterable |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择车型" |
|
|
|
|
@change=" |
|
|
|
|
() => { |
|
|
|
|
details.query.totalFreight = 0; |
|
|
|
|
handlePrice(false, 'trunkline'); |
|
|
|
|
let _item = {} as any |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.vehicleTypeArr.length; i++) { |
|
|
|
|
const val = details.vehicleTypeArr[i]; |
|
|
|
|
|
|
|
|
|
if (val.dictKey !== query.trunklineVehicleTypeId) continue |
|
|
|
|
_item = val |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
query.trunklineVehicleType = _item.dictValue || '' |
|
|
|
|
details.query.totalFreight = 0; |
|
|
|
|
handlePrice(false, 'trunkline'); |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
@ -1246,10 +1268,12 @@ const details = reactive<any>({
|
|
|
|
|
/** 是否整车 -- 提货 */ |
|
|
|
|
pickupCompleteOrNot: 0, |
|
|
|
|
/** 提货整车车型 */ |
|
|
|
|
pickupVehicleTypeId: '', |
|
|
|
|
pickupVehicleType: '', |
|
|
|
|
/** 是否整车 -- 干线 */ |
|
|
|
|
trunklineCompleteOrNot: 0, |
|
|
|
|
/** 干线整车车型 */ |
|
|
|
|
trunklineVehicleTypeId: '', |
|
|
|
|
trunklineVehicleType: '', |
|
|
|
|
}, |
|
|
|
|
/** 价格模板数据 */ |
|
|
|
@ -2281,7 +2305,7 @@ const handlePickUpPrice = (pickup, template) => {
|
|
|
|
|
for (let i = 0; i < fullVehicle.length; i++) { |
|
|
|
|
const value = fullVehicle[i]; |
|
|
|
|
|
|
|
|
|
if (Number(value.vehicleType) !== Number(details.query.pickupVehicleType)) continue; |
|
|
|
|
if (Number(value.vehicleType) !== Number(details.query.pickupVehicleTypeId)) continue; |
|
|
|
|
item = value; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -2356,7 +2380,7 @@ const handleTrunkLinePrice = (trunkLine, template) => {
|
|
|
|
|
for (let i = 0; i < fullVehicle.length; i++) { |
|
|
|
|
const value = fullVehicle[i]; |
|
|
|
|
|
|
|
|
|
if (Number(value.vehicleType) !== Number(details.query.trunklineVehicleType)) continue; |
|
|
|
|
if (Number(value.vehicleType) !== Number(details.query.trunklineVehicleTypeId)) continue; |
|
|
|
|
item = value; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|