修复业务模块bug
This commit is contained in:
@@ -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 || '';
|
||||
};
|
||||
|
||||
@@ -261,6 +261,7 @@ export const config = {
|
||||
importUrl: '/blade-transport/waybill-manage/import-waybill-manage',
|
||||
defaultForm: {
|
||||
carrierType: '承运商',
|
||||
transportType: 'road',
|
||||
quantityUnit: '吨',
|
||||
priceUnit: '元/吨',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user