Browse Source

优化金牌开单录单

dev-xx
qb 4 months ago
parent
commit
d6fe2f7b48
  1. 4
      src/views/distribution/inventory/CreateOrder.vue
  2. 4
      src/views/waybill/CreateZeroOrder.vue

4
src/views/distribution/inventory/CreateOrder.vue

@ -4078,6 +4078,8 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
const { totalCount, totalVolume } = details.totalObj;
if (totalCount < 15 && totalVolume < 0.8 && totalVolume / (totalCount || 1) < 0.11) {
if (value.chargeType === 1) return;
value.chargeType = 1;
value.systemChargeType = 1;
@ -4124,6 +4126,8 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
value.freightPrice = _price;
}
} else {
if (value.chargeType === 2) return;
value.chargeType = 2;
value.systemChargeType = 2;

4
src/views/waybill/CreateZeroOrder.vue

@ -3200,6 +3200,8 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
const { totalCount, totalVolume } = details.totalObj;
if (totalCount < 15 && totalVolume < 0.8 && totalVolume / (totalCount || 1) < 0.11) {
if (value.chargeType === 1) return;
value.chargeType = 1;
value.systemChargeType = 1;
@ -3249,6 +3251,8 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
value.freightPrice = _price;
}
} else {
if (value.chargeType === 2) return;
value.chargeType = 2;
value.systemChargeType = 2;

Loading…
Cancel
Save