From 6791877c765ceb16a3596f2184f0b7ba9e5b7134 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Thu, 13 Jun 2024 16:08:39 +0800 Subject: [PATCH] uu --- .../buns-edit-sheet/buns-edit-sheet.vue | 9 ++++++-- .../buns-order-templates/bo-operator-tmp.vue | 2 +- .../buns-post-edit-templates/bpe-cost-tmp.vue | 21 +++++++++++++------ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/components/buns-edit-sheet/buns-edit-sheet.vue b/components/buns-edit-sheet/buns-edit-sheet.vue index 067a6d1..03c1165 100644 --- a/components/buns-edit-sheet/buns-edit-sheet.vue +++ b/components/buns-edit-sheet/buns-edit-sheet.vue @@ -56,7 +56,12 @@ return { } } - } + }, + okCloseModal: { + default () { + return true + } + }, }, data() { return { @@ -80,7 +85,7 @@ const val = this.submitVals this.$emit('onSure', val) this.$emit('update:value', val) - this.handleCloseModal() + this.okCloseModal && this.handleCloseModal() } } } diff --git a/components/buns-order-templates/bo-operator-tmp.vue b/components/buns-order-templates/bo-operator-tmp.vue index e55b88d..9a7228c 100644 --- a/components/buns-order-templates/bo-operator-tmp.vue +++ b/components/buns-order-templates/bo-operator-tmp.vue @@ -11,7 +11,7 @@ - + {{staticInfo.piaoNum}} 总票数 diff --git a/components/buns-post-edit-templates/bpe-cost-tmp.vue b/components/buns-post-edit-templates/bpe-cost-tmp.vue index 4451375..bd51deb 100644 --- a/components/buns-post-edit-templates/bpe-cost-tmp.vue +++ b/components/buns-post-edit-templates/bpe-cost-tmp.vue @@ -94,27 +94,27 @@ - + - 首重费 + 首重费 - 续重单价 + 续重单价 - 应收 + 应收 - 实收 + 实收 @@ -206,6 +206,8 @@ } }, async calcWaybillFee(params = {}) { + // calcFeeType计算入参特殊处理 + params.calcFeeType == 3 && (params.calcFeeType = 1); let res = await apiService.calcWaybillFee({ custNo: this.modelInfo.custNo, ...params }) this.modelInfo.feeItems = res.data.feeList this.modelInfo.freight = res.data.totalFee @@ -246,8 +248,15 @@ }) this.modelInfo.freight = total }, - handleCostItemSure(data){ + async handleCostItemSure(data){ + if(data.feeCode == '9999') { + if(!data.realFee) { + this.showToast("实收不能为空") + return false + } + } this.modelInfo.feeItems.push({ ...data }) + this.costModal.show = false setTimeout(()=>{ this.calteFreight() }, 500)