修复业务模块bug

This commit is contained in:
2026-08-13 20:55:55 +08:00
parent b25b2fae20
commit 5c89140b21
5 changed files with 99 additions and 33 deletions
@@ -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;