diff --git a/src/views/distribution/inventory/BookingNote.vue b/src/views/distribution/inventory/BookingNote.vue
index 47fffcb4..7d8b8dbc 100644
--- a/src/views/distribution/inventory/BookingNote.vue
+++ b/src/views/distribution/inventory/BookingNote.vue
@@ -666,7 +666,10 @@
v-model="query.claimingValue"
>
-
+
+
+
+
-
-
-
handleRefreshText('consigneeAddress', e, '')"
- placeholder="发货地址"
+ placeholder="收货地址"
>
@@ -2362,9 +2362,6 @@ const onEditLoad = async () => {
val.goodsListOptions = [];
- // 计算运费小计
- // if (!val.subtotalFreight) handleComputed(val);
-
// 计算件数最大值
info.value.maxNum += val.num;
details.deepCloneGoodsList.push({ ...val });
@@ -2453,7 +2450,6 @@ const initPageInfo = async (idsArr = []) => {
for (let index = 0; index < details.goodsList.length; index++) {
const element = details.goodsList[index];
- // handleComputed(element);
handleFindGoods(element.goodsName, element);
}
@@ -2772,7 +2768,7 @@ const handleComputed = (row: any, onlyComputedTrunline = false) => {
const { template, trunkLine } = details.priceTemplate;
if (Boolean(isDisabled.value && template && trunkLine))
- handleSpecialBrandPrice(row, trunkLine, template);
+ handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline);
details.query.goodsCode = '-' + details.totalObj.totalCount;
@@ -4070,15 +4066,13 @@ const handleAssignmentItemPriceTrunkline = (value, trunkLine, template, chargeTy
};
/** 金牌 -- 干线特殊处理 */
-const handleSpecialBrandPrice = (value, trunkLine, template) => {
+const handleSpecialBrandPrice = (value, trunkLine, template, isInit) => {
if (!isDisabled.value) return;
- console.log('isDisabled.value :>> ', isDisabled.value);
-
// 总件数小于15件 && 总方数小于0.8 && 总方数 / 总件数小于0.11 则按件计费, 否则以按方计费
const { totalCount, totalVolume } = details.totalObj;
if (totalCount < 15 && totalVolume < 0.8 && totalVolume / (totalCount || 1) < 0.11) {
- if (value.chargeType === 1) return;
+ if (value.chargeType === 1 && !isInit) return;
value.chargeType = 1;
value.systemChargeType = 1;
@@ -4126,7 +4120,7 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
value.freightPrice = _price;
}
} else {
- if (value.chargeType === 2) return;
+ if (value.chargeType === 2 && !isInit) return;
value.chargeType = 2;
value.systemChargeType = 2;
@@ -4410,7 +4404,7 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
if (!isOnload) {
if (trunkLine && template) {
// 如果品牌为金牌, 切模板选择为特殊计费则特殊处理
- if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template);
+ if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template, true);
else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType);
// 是否为区分品类
} else {
diff --git a/src/views/waybill/CreateZeroOrder.vue b/src/views/waybill/CreateZeroOrder.vue
index 269c0032..98193eb1 100644
--- a/src/views/waybill/CreateZeroOrder.vue
+++ b/src/views/waybill/CreateZeroOrder.vue
@@ -269,10 +269,10 @@
"
v-loading="details.loadingObj.consignerLoading"
>
-
-
-
-
+
+
+
+
@@ -296,10 +296,10 @@
"
v-loading="details.loadingObj.consignerLoading"
>
-
-
-
-
+
+
+
+
@@ -325,10 +325,10 @@
"
v-loading="details.loadingObj.consignerLoading"
>
-
-
-
-
+
+
+
+
@@ -339,7 +339,7 @@
handleRefreshText('consigneeAddress', e, '')"
v-model="query.consigneeAddress"
- placeholder="发货地址"
+ placeholder="收货地址"
>
@@ -770,7 +770,10 @@
v-model="query.claimingValue"
>
-
+
+
+
+
-
-
-
{
const { template, trunkLine } = details.priceTemplate;
if (Boolean(isDisabled.value && template && trunkLine))
- handleSpecialBrandPrice(row, trunkLine, template);
+ handleSpecialBrandPrice(row, trunkLine, template, !onlyComputedTrunline);
details.query.goodsCode = '-' + details.totalObj.totalCount;
@@ -3193,14 +3193,14 @@ const handleAssignmentItemPriceTrunkline = (value, trunkLine, template, chargeTy
};
/** 金牌 -- 干线特殊处理 */
-const handleSpecialBrandPrice = (value, trunkLine, template) => {
+const handleSpecialBrandPrice = (value, trunkLine, template, isInit) => {
if (!isDisabled.value) return;
// 总件数小于15件 && 总方数小于0.8 && 总方数 / 总件数小于0.11 则按件计费, 否则以按方计费
const { totalCount, totalVolume } = details.totalObj;
if (totalCount < 15 && totalVolume < 0.8 && totalVolume / (totalCount || 1) < 0.11) {
- if (value.chargeType === 1) return;
+ if (value.chargeType === 1 && !isInit) return;
value.chargeType = 1;
value.systemChargeType = 1;
@@ -3251,7 +3251,7 @@ const handleSpecialBrandPrice = (value, trunkLine, template) => {
value.freightPrice = _price;
}
} else {
- if (value.chargeType === 2) return;
+ if (value.chargeType === 2 && !isInit) return;
value.chargeType = 2;
value.systemChargeType = 2;
@@ -3540,7 +3540,7 @@ const handleAssignmentItemPrice = (value, isOnload = false, chargeType?: number
if (!isOnload) {
if (trunkLine && template) {
// 如果品牌为金牌, 切模板选择为特殊计费则特殊处理
- if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template);
+ if (isDisabled.value) handleSpecialBrandPrice(value, trunkLine, template, true);
else handleAssignmentItemPriceTrunkline(value, trunkLine, template, chargeType);
// 是否为区分品类