diff --git a/src/views/distribution/inventory/CreateOrder.vue b/src/views/distribution/inventory/CreateOrder.vue index 41e062df..e5035014 100644 --- a/src/views/distribution/inventory/CreateOrder.vue +++ b/src/views/distribution/inventory/CreateOrder.vue @@ -2459,7 +2459,7 @@ const handleComputed = (row: any, onlyComputedTrunline = false) => { ? computeNumber(row.price, '*', row[_trunklineKey]).result : 0; - if (onlyComputedTrunline) { + if (!onlyComputedTrunline) { // 计算提货价格 -- 行 if (_pickupKey) row.subtotalPickup = _pickupKey @@ -2679,9 +2679,9 @@ const handlePickUpPrice = (pickup, template) => { if ( (pickup || template) && template.pickupIsMinCost && - Number(template.pickupMinCostMode) === 1 + Number(template.pickupCompleteOrNot) === 0 ) { - switch (Number(template.dispatchMinCostType)) { + switch (Number(template.pickupMinCostType)) { // 价格 case 1: details.query.pickupFee = pickup.minCost > _total ? pickup.minCost : _total; @@ -3500,7 +3500,7 @@ const handleAssignmentItemPriceWarehouseManagementPrice = ( // 不区分品类 -- 暂时默认为按件 value.warehouseManagementPrice = getObjType(additionalCategory) === 'array' && additionalCategory.length > 0 - ? additionalCategory[0].price || 0 + ? additionalCategory[0].warehouseManagementPrice || 0 : 0; } }; diff --git a/src/views/waybill/CreateZeroOrder.vue b/src/views/waybill/CreateZeroOrder.vue index 55ba484a..0ab248ab 100644 --- a/src/views/waybill/CreateZeroOrder.vue +++ b/src/views/waybill/CreateZeroOrder.vue @@ -2006,7 +2006,7 @@ const handleComputed = (row: any, onlyComputedTrunline = false) => { ? computeNumber(row.price, '*', row[_trunklineKey]).result : 0; - if (onlyComputedTrunline) { + if (!onlyComputedTrunline) { // 计算提货价格 -- 行 if (_pickupKey) row.subtotalPickup = _pickupKey @@ -2219,9 +2219,9 @@ const handlePickUpPrice = (pickup, template) => { if ( (pickup || template) && template.pickupIsMinCost && - Number(template.pickupMinCostMode) === 1 + Number(details.query.pickupCompleteOrNot) === 0 ) { - switch (Number(template.dispatchMinCostType)) { + switch (Number(template.pickupMinCostType)) { // 价格 case 1: details.query.pickupFee = pickup.minCost > _total ? pickup.minCost : _total; @@ -3026,7 +3026,7 @@ const handleAssignmentItemPriceWarehouseManagementPrice = ( // 不区分品类 -- 暂时默认为按件 value.warehouseManagementPrice = getObjType(additionalCategory) === 'array' && additionalCategory.length > 0 - ? additionalCategory[0].price || 0 + ? additionalCategory[0].warehouseManagementPrice || 0 : 0; } };