From 5c89140b21241426067a10ca6ed4448ff8f8e4e2 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Thu, 13 Aug 2026 20:55:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/business/waybill-manage.js | 2 +- .../components/business-crud-page.vue | 8 +++ .../components/master-order-detail.vue | 25 +++++++-- .../components/master-order-dispatch.vue | 54 +++++++++++++------ src/views/business/voucher-manage.vue | 43 ++++++++++----- 5 files changed, 99 insertions(+), 33 deletions(-) diff --git a/src/option/business/waybill-manage.js b/src/option/business/waybill-manage.js index dc1d2b4..a629a5a 100644 --- a/src/option/business/waybill-manage.js +++ b/src/option/business/waybill-manage.js @@ -432,7 +432,7 @@ export const option = { { label: '运费', prop: 'freight', - formatter: row => formatFreightTotal(row), + formatter: row => formatFreight(row), minWidth: 120, addDisplay: false, editDisplay: false, diff --git a/src/views/business/components/business-crud-page.vue b/src/views/business/components/business-crud-page.vue index 3f514d6..7521056 100644 --- a/src/views/business/components/business-crud-page.vue +++ b/src/views/business/components/business-crud-page.vue @@ -11082,6 +11082,14 @@ export default { this.$message.warning('请选择至少一条数据'); return; } + const nonRoadWaybills = this.selectionList.filter(row => { + const transportType = String(row.transportType || '').trim(); + return transportType !== '公路运输' && transportType.toLowerCase() !== 'road'; + }); + if (nonRoadWaybills.length) { + this.$message.warning('公路配置仅支持运输方式为“公路运输”的运单'); + return; + } if (typeof this.api.roadLoading !== 'function') { this.$message.warning('公路配载功能暂未配置'); return; diff --git a/src/views/business/components/master-order-detail.vue b/src/views/business/components/master-order-detail.vue index b526abb..9051f12 100644 --- a/src/views/business/components/master-order-detail.vue +++ b/src/views/business/components/master-order-detail.vue @@ -1,7 +1,7 @@ @@ -125,7 +129,11 @@ :content="row.arrivalAddress || '-'" placement="top" > - {{ formatTransportPlanDistrictAddress(row.arrivalAddress) }} + {{ + isTransportPlanPage + ? formatTransportPlanProvinceCityDistrict(row.arrivalAddress) + : formatTransportPlanProvinceCityDistrict(row.arrivalAddress) + }} {{ row.arrivalAddress || '-' }} @@ -2335,14 +2343,172 @@
-