lbq
2026-01-05 72139f39a0845f8de31fd44bc5dd7077df17d48e
rsf-admin/src/page/orders/preparation/MatPreparationPanel.jsx
@@ -28,6 +28,32 @@
    '& .opt': {
        width: 200
    },
    // 添加列宽样式
    '& .col-code': {
        width: 120,
        minWidth: 120,
        maxWidth: 150,
    },
    '& .col-name': {
        width: 180,
        minWidth: 150,
        maxWidth: 250,
    },
    '& .col-spec': {
        width: 120,
        minWidth: 120,
        maxWidth: 200,
    },
    '& .col-unit': {
        width: 80,
        minWidth: 60,
        maxWidth: 100,
    },
    '& .col-quantity': {
        width: 100,
        minWidth: 80,
        maxWidth: 120,
    },
}));
const MatPreparationPanel = () => {
@@ -60,11 +86,16 @@
                        expandSingle
                        omit={['id', 'taskId', 'createTime', 'createBy$', 'memo', 'taskId', 'orderId', 'orderItemId', 'matnrId']}
                    >
                        <NumberField source="id" />
                        {/* <NumberField source="taskId" label="table.field.taskItem.taskId" /> */}
                        <TextField source="matnrCode" label="物料编码" cellClassName="col-code" />,
                        <TextField source="maktx" label="物料名称" cellClassName="col-name" />,
                        {/* <TextField source="spec" label="规格" cellClassName="col-spec" />, */}
                        {/* <TextField source="unit" label="单位" cellClassName="col-unit" />, */}
                        <TextField source="anfme" label="数量" cellClassName="col-quantity" />,
                        {/* <NumberField source="id" />
                        <NumberField source="taskId" label="table.field.taskItem.taskId" />
                        <NumberField source="orderId" label="table.field.preparationItem.orderId" />
                        <NumberField source="orderType$" label="table.field.preparationItem.orderType" />
                        {/* <TextField source="sourceCode" label="table.field.taskItem.sourceCode" /> */}
                        <TextField source="sourceCode" label="table.field.taskItem.sourceCode" />
                        <NumberField source="orderItemId" label="table.field.preparationItem.orderItemId" />
                        <NumberField source="matnrId" label="table.field.preparationItem.matnrId" />
                        <TextField source="maktx" label="table.field.preparationItem.maktx" />
@@ -73,7 +104,7 @@
                        <NumberField source="anfme" label="table.field.preparationItem.anfme" />
                        <TextField source="batch" label="table.field.preparationItem.batch" />
                        <TextField source="spec" label="table.field.preparationItem.spec" />
                        <TextField source="model" label="table.field.preparationItem.model" />
                        <TextField source="model" label="table.field.preparationItem.model" /> */}
                        {/* <TextField source="updateBy$" label="common.field.updateBy"/>
                        <TextField source="createBy$" label="common.field.createBy"/>
                        <DateField source="updateTime" label="common.field.updateTime" showTime />