🐛 装货管理与运输计划货物信息列统一为仅一种货物时不显示等N种货物

This commit is contained in:
2026-11-03 19:41:25 +08:00
parent 4ed80268b4
commit 28baa69e8f
3 changed files with 15 additions and 13 deletions
+3 -3
View File
@@ -2524,9 +2524,9 @@ export default {
Object.values(groups)
.map(group => {
const quantity = this.formatGoodsQuantity(group.quantity);
return `${group.typeName}等${group.count}种货物 | ${quantity}${
group.unit ? ` ${group.unit}` : ''
}`;
const typeName =
group.count > 1 ? `${group.typeName}等${group.count}种货物` : group.typeName;
return `${typeName} | ${quantity}${group.unit ? ` ${group.unit}` : ''}`;
})
.join('; ') || '-'
);