Browse Source

修复开单带值问题

dev-xx
qb 6 months ago
parent
commit
15758023c3
  1. 8
      src/views/distribution/inventory/CreateOrder.vue
  2. 8
      src/views/waybill/CreateZeroOrder.vue

8
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;
}
};

8
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;
}
};

Loading…
Cancel
Save