From 1ec363b2a7195cb47e35a7e119012e20366aa71a Mon Sep 17 00:00:00 2001 From: verou <857149855@qq.com> Date: 星期二, 18 三月 2025 10:00:33 +0800 Subject: [PATCH] feat:字典选择器 --- rsf-admin/src/page/basicInfo/loc/LocEdit.jsx | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx b/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx index ab883db..3ea6793 100644 --- a/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx +++ b/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx @@ -66,7 +66,7 @@ <Grid container rowSpacing={2} columnSpacing={2}> <Grid item xs={6} display="flex" gap={1}> <ReferenceInput - source="warehouseId$" + source="warehouseId" reference="warehouse" > <AutocompleteInput @@ -99,12 +99,19 @@ /> </Grid> <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.loc.type" + <ReferenceInput source="type" - parse={v => v} - validate={required()} - /> + reference="dictData" + filter={{ dictTypeCode: 'sys_loc_type' }} + > + <AutocompleteInput + label="table.field.loc.type" + optionText="label" + optionValue="value" + parse={v => v} + validate={[required()]} + /> + </ReferenceInput> </Grid> <Grid item xs={6} display="flex" gap={1}> <TextInput -- Gitblit v1.9.1