From cebd9afa05ca5b17ca62b672010c29d115b89d60 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 18 二月 2025 09:47:03 +0800 Subject: [PATCH] #新增 1. 添加批次规则信息 2. 物料添加控制属性 --- rsf-admin/src/page/matnr/MatnrEdit.jsx | 88 ++++++++++++++++++++++++++++++++++++-------- 1 files changed, 72 insertions(+), 16 deletions(-) diff --git a/rsf-admin/src/page/matnr/MatnrEdit.jsx b/rsf-admin/src/page/matnr/MatnrEdit.jsx index 7c85bda..086aa72 100644 --- a/rsf-admin/src/page/matnr/MatnrEdit.jsx +++ b/rsf-admin/src/page/matnr/MatnrEdit.jsx @@ -64,6 +64,21 @@ {translate('common.edit.title.main')} </Typography> <Stack direction='row' gap={2}> + <TextInput + label="table.field.matnr.name" + source="name" + parse={v => v} + autoFocus + /> + </Stack> + <Stack direction='row' gap={2}> + <TextInput + label="table.field.matnr.code" + source="code" + parse={v => v} + /> + </Stack> + <Stack direction='row' gap={2}> <ReferenceInput source="shipperId" reference="shipper" @@ -77,20 +92,6 @@ </ReferenceInput> </Stack> <Stack direction='row' gap={2}> - <TextInput - label="table.field.matnr.name" - source="name" - parse={v => v} - /> - </Stack> - <Stack direction='row' gap={2}> - <TextInput - label="table.field.matnr.code" - source="code" - parse={v => v} - /> - </Stack> - <Stack direction='row' gap={2}> <ReferenceInput source="groupId" reference="matnrGroup" @@ -98,6 +99,19 @@ > <AutocompleteInput label="table.field.matnr.groupId" + optionText="code" + filterToQuery={(val) => ({ code: val })} + /> + </ReferenceInput> + </Stack> + <Stack direction='row' gap={2}> + <ReferenceInput + source="batchRegularId" + reference="batchRegular" + perPage={REFERENCE_INPUT_PAGESIZE} + > + <AutocompleteInput + label="table.field.matnr.batchRegularId" optionText="code" filterToQuery={(val) => ({ code: val })} /> @@ -146,8 +160,8 @@ </Stack> <Stack direction='row' gap={2}> <TextInput - label="table.field.matnr.desc" - source="desc" + label="table.field.matnr.describle" + source="describle" parse={v => v} /> </Stack> @@ -201,6 +215,48 @@ validate={required()} /> </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.safetyQty" + source="safetyQty" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.minQty" + source="minQty" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.maxQty" + source="maxQty" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.stagnate" + source="stagnate" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.validity" + source="validity" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.validityWarr" + source="validityWarr" + /> + </Stack> + <Stack direction='row' gap={2}> + <NumberInput + label="table.field.matnr.flagCheck" + source="flagCheck" + /> + </Stack> </Grid> <Grid item xs={12} md={4}> -- Gitblit v1.9.1