From 43c6e4ca1e4a7db22c1c2da4a40d90b0535c1c5c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 31 三月 2025 15:55:52 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-admin/src/page/basicInfo/companys/CompanysEdit.jsx | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/companys/CompanysEdit.jsx b/rsf-admin/src/page/basicInfo/companys/CompanysEdit.jsx index a559320..741ecf7 100644 --- a/rsf-admin/src/page/basicInfo/companys/CompanysEdit.jsx +++ b/rsf-admin/src/page/basicInfo/companys/CompanysEdit.jsx @@ -42,6 +42,7 @@ const CompanysEdit = () => { const translate = useTranslate(); + const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_companys_type')) || []; return ( <Edit @@ -49,6 +50,7 @@ mutationMode={EDIT_MODE} actions={<CustomerTopToolBar />} aside={<EditBaseAside />} + title={"menu.companys"} > <SimpleForm shouldUnregister @@ -63,14 +65,14 @@ <Typography variant="h6" gutterBottom> {translate('common.edit.title.main')} </Typography> - <Stack direction='row' gap={2}> + {/* <Stack direction='row' gap={2}> <TextInput label="table.field.companys.code" source="code" parse={v => v} autoFocus /> - </Stack> + </Stack> */} <Stack direction='row' gap={2}> <TextInput label="table.field.companys.name" @@ -93,12 +95,14 @@ /> </Stack> <Stack direction='row' gap={2}> - <TextInput + <AutocompleteInput + choices={dicts} + optionText="label" label="table.field.companys.type" source="type" + optionValue="value" parse={v => v} - validate={required()} - /> + validate={[required()]} /> </Stack> <Stack direction='row' gap={2}> <TextInput -- Gitblit v1.9.1