From f6fe949db75c0879ca506eadce6976eb94492d09 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 24 五月 2025 15:39:42 +0800 Subject: [PATCH] 1.出库作业未判断小于零的作业(完成) 2.入出为历史添加库位号,托盘码显示(完成) 3.确认出为完成后,是否清空托盘码(完成) 4.库位主档托盘码未显示(完成) --- rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx b/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx index fea93d5..c4b519f 100644 --- a/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx +++ b/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx @@ -36,6 +36,7 @@ const translate = useTranslate(); const notify = useNotify(); + const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_companys_type')) || []; const handleClose = (event, reason) => { if (reason !== "backdropClick") { @@ -84,14 +85,14 @@ </DialogTitle> <DialogContent sx={{ mt: 2 }}> <Grid container rowSpacing={2} columnSpacing={2}> - <Grid item xs={6} display="flex" gap={1}> + {/* <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.companys.code" source="code" parse={v => v} autoFocus /> - </Grid> + </Grid> */} <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.companys.name" @@ -114,12 +115,14 @@ /> </Grid> <Grid item xs={6} display="flex" gap={1}> - <TextInput + <AutocompleteInput + choices={dicts} + optionText="label" label="table.field.companys.type" source="type" + optionValue="value" parse={v => v} - validate={required()} - /> + validate={[required()]} /> </Grid> <Grid item xs={6} display="flex" gap={1}> <TextInput -- Gitblit v1.9.1