新增物料类型处理逻辑,确保在保存和编辑称重记录时自动设置默认物料类型。更新前端表单以支持密炼物料的选择和显示,优化用户体验。添加分类字典和数据字典的事件广播功能,增强系统的实时数据同步能力。
This commit is contained in:
@@ -13,7 +13,8 @@ export const columns: BasicColumn[] = [
|
||||
{ title: '车号', align: 'center', dataIndex: 'plateNumber', width: 120 },
|
||||
{ title: '发货单位', align: 'center', dataIndex: 'senderUnit', width: 160, ellipsis: true },
|
||||
{ title: '收货单位', align: 'center', dataIndex: 'receiverUnit', width: 160, ellipsis: true },
|
||||
{ title: '货物名称', align: 'center', dataIndex: 'goodsName', width: 140, ellipsis: true },
|
||||
{ title: '密炼物料', align: 'center', dataIndex: 'mixerMaterialNames', width: 160, ellipsis: true },
|
||||
{ title: '类型', align: 'center', dataIndex: 'materialType_dictText', width: 90 },
|
||||
{ title: '毛重(KG)', align: 'center', dataIndex: 'grossWeight', width: 100 },
|
||||
{ title: '皮重(KG)', align: 'center', dataIndex: 'tareWeight', width: 100 },
|
||||
{ title: '净重(KG)', align: 'center', dataIndex: 'netWeight', width: 100 },
|
||||
@@ -77,10 +78,17 @@ export const formSchema: FormSchema[] = [
|
||||
componentProps: { placeholder: '出厂时自动带出客户简称' },
|
||||
},
|
||||
{
|
||||
label: '货物名称',
|
||||
field: 'goodsName',
|
||||
label: '密炼物料',
|
||||
field: 'mixerMaterialNames',
|
||||
component: 'Input',
|
||||
componentProps: { placeholder: '请输入货物名称' },
|
||||
componentProps: { placeholder: '由桌面端称重操作填入,可手动编辑' },
|
||||
},
|
||||
{
|
||||
label: '类型',
|
||||
field: 'materialType',
|
||||
component: 'JDictSelectTag',
|
||||
componentProps: { dictCode: 'xslmes_weight_material_type' },
|
||||
defaultValue: '1',
|
||||
},
|
||||
{
|
||||
label: '毛重(KG)',
|
||||
@@ -119,6 +127,7 @@ export const superQuerySchema = {
|
||||
inoutDirection: { title: '进出方向', order: 1, view: 'list', dictCode: 'xslmes_inout_direction' },
|
||||
plateNumber: { title: '车号', order: 2, view: 'text' },
|
||||
weighDate: { title: '称重日期', order: 3, view: 'date' },
|
||||
grossWeight: { title: '毛重(KG)', order: 4, view: 'number' },
|
||||
netWeight: { title: '净重(KG)', order: 5, view: 'number' },
|
||||
materialType: { title: '类型', order: 4, view: 'list', dictCode: 'xslmes_weight_material_type' },
|
||||
grossWeight: { title: '毛重(KG)', order: 5, view: 'number' },
|
||||
netWeight: { title: '净重(KG)', order: 6, view: 'number' },
|
||||
};
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
api: list,
|
||||
columns,
|
||||
canResize: true,
|
||||
// 更新列配置缓存 key,避免用户历史列顺序覆盖默认顺序
|
||||
tableSetting: { cacheKey: 'mesXslWeightRecordColumns_v20260507' },
|
||||
formConfig: {
|
||||
schemas: searchFormSchema,
|
||||
autoSubmitOnEnter: true,
|
||||
|
||||
Reference in New Issue
Block a user