Browse Source

修复金牌特殊计费bug

dev
qb 1 week ago
parent
commit
06445e3816
  1. 7
      src/views/distribution/inventory/CreateOrder.vue
  2. 7
      src/views/waybill/CreateZeroOrder.vue

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

@ -2871,7 +2871,7 @@ const destinationWarehouseNameChange = val => {
const handleComputed = (row: any, onlyComputedTrunline = false) => { const handleComputed = (row: any, onlyComputedTrunline = false) => {
const { template, trunkLine } = details.priceTemplate; const { template, trunkLine } = details.priceTemplate;
if (Boolean(isDisabled.value && template && trunkLine)) if (Boolean(isDisabled.value && template && trunkLine && !onlyComputedTrunline))
handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline); handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline);
details.query.goodsCode = '-' + details.totalObj.totalCount; details.query.goodsCode = '-' + details.totalObj.totalCount;
@ -4552,7 +4552,8 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
if (!isOnload) { if (!isOnload) {
if (trunkLine && template) { if (trunkLine && template) {
// , // ,
if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template, true); if (isDisabled.value && !chargeType)
handleSpecialBrandPrice(value, trunkLine, template, true);
else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType); else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType);
// //
} else { } else {
@ -4591,7 +4592,7 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
} }
// //
if (!isOnload) handleComputed(value); if (!isOnload) handleComputed(value, !isOnload);
}; };
/** /**

7
src/views/waybill/CreateZeroOrder.vue

@ -2161,7 +2161,7 @@ const handleFindGoods = async (goodsName, item, isClearId = 0) => {
const handleComputed = (row: any, onlyComputedTrunline = false) => { const handleComputed = (row: any, onlyComputedTrunline = false) => {
const { template, trunkLine } = details.priceTemplate; const { template, trunkLine } = details.priceTemplate;
if (Boolean(isDisabled.value && template && trunkLine)) if (Boolean(isDisabled.value && template && trunkLine && !onlyComputedTrunline))
handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline); handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline);
details.query.goodsCode = '-' + details.totalObj.totalCount; details.query.goodsCode = '-' + details.totalObj.totalCount;
@ -3648,7 +3648,8 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
if (!isOnload) { if (!isOnload) {
if (trunkLine && template) { if (trunkLine && template) {
// , // ,
if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template, true); if (isDisabled.value && !chargeType)
handleSpecialBrandPrice(value, trunkLine, template, true);
else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType); else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType);
// //
@ -3683,7 +3684,7 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
} }
// //
if (!isOnload) handleComputed(value); if (!isOnload) handleComputed(value, !isOnload);
}; };
/** /**

Loading…
Cancel
Save