Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-08-14 16:01:17 +08:00
10 changed files with 1611 additions and 517 deletions
+4 -4
View File
@@ -51,9 +51,9 @@ const formatGoodsQuantity = value => {
};
const getSecondCargoTypeName = item =>
item?.cargoType ||
item?.secondCargoTypeName ||
item?.secondCargoType ||
item?.cargoType ||
item?.goodsType ||
item?.type ||
item?.cargoTypeName ||
@@ -97,10 +97,10 @@ const formatGoodsInfo = row => {
const text = Object.entries(groups)
.map(([unit, group]) => {
const quantity = `${formatGoodsQuantity(group.quantity)}${unit}`;
return `${group.typeName}${group.count}种货物 | ${quantity}`;
const quantity = formatGoodsQuantity(group.quantity);
return `${group.typeName}${group.count}种货物 | ${quantity}${unit ? ` ${unit}` : ''}`;
})
.join('; ');
.join(' ');
return text || row.goodsInfo || '';
};