diff --git a/src/views/distribution/artery/AddVehicleStowage.vue b/src/views/distribution/artery/AddVehicleStowage.vue index 180a1640..a2aa9928 100644 --- a/src/views/distribution/artery/AddVehicleStowage.vue +++ b/src/views/distribution/artery/AddVehicleStowage.vue @@ -771,9 +771,9 @@ { info.value.maxNum = 0; details.deepCloneGoodsList = []; details.goodsList = data.warehouseWaybill.detailList.map(val => { - val.num = Number(val.num); - val.volume = Number(val.volume); - val.weight = Number(val.weight); - val.price = Number(val.price); - val.subtotalFreight = Number(val.subtotalFreight); + val.num = isNumber(val.num) ? Number(val.num) : 0; + val.volume = isNumber(val.volume) ? Number(val.volume) : 0; + val.weight = isNumber(val.weight) ? Number(val.weight) : 0; + val.price = isNumber(val.price) ? Number(val.price) : 0; + val.subtotalFreight = isNumber(val.subtotalFreight) ? Number(val.subtotalFreight) : 0; val.goodsName = val.productName; // 计算运费小计 - if (!val.subtotalFreight) handleComputed(val); + // if (!val.subtotalFreight) handleComputed(val); // 计算件数最大值 info.value.maxNum += val.num;