新增MES库区管理功能,包含免密接口、数据处理逻辑及相关控制器、服务和实体的实现。支持库区的增删改查操作,优化用户体验并增强系统的实时数据同步能力。
This commit is contained in:
@@ -18,6 +18,19 @@ export const columns: BasicColumn[] = [
|
||||
{ title: '毛重(KG)', align: 'center', dataIndex: 'grossWeight', width: 100 },
|
||||
{ title: '皮重(KG)', align: 'center', dataIndex: 'tareWeight', width: 100 },
|
||||
{ title: '净重(KG)', align: 'center', dataIndex: 'netWeight', width: 100 },
|
||||
{
|
||||
title: '已入场重量(KG)',
|
||||
align: 'center',
|
||||
dataIndex: 'enteredWeight',
|
||||
width: 120,
|
||||
customRender: ({ text }) => {
|
||||
// 后端实时计算返回,未匹配到入场记录时为 0
|
||||
if (text === null || text === undefined || text === '') return '0';
|
||||
const n = Number(text);
|
||||
if (Number.isNaN(n)) return String(text);
|
||||
return Number.isInteger(n) ? String(n) : n.toFixed(2);
|
||||
},
|
||||
},
|
||||
{ title: '司机', align: 'center', dataIndex: 'driverName', width: 90 },
|
||||
{ title: '手机号', align: 'center', dataIndex: 'driverPhone', width: 120 },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user