diff --git a/src/views/order/outWarehouse/index.vue b/src/views/order/outWarehouse/index.vue index fc58d0c..8c3da98 100644 --- a/src/views/order/outWarehouse/index.vue +++ b/src/views/order/outWarehouse/index.vue @@ -740,7 +740,7 @@ function calculateFun(id) { distanceKm: 0, }; let hasVehicle = delieryData.value.vehicleTypeNameList.every(item => item.vehicleTypeId) - if (hasVehicle) { + if (id && hasVehicle) { info.vehicleTypeId = delieryData.value.vehicleTypeNameList.map(item => item.vehicleTypeId).join(',') } info.weightTon = delieryData.value.deliveryTon;