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 @@