From 1e1cedc70758a7c17ccf63ea11d1db70c409aa66 Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期五, 05 九月 2025 09:45:15 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
---
rsf-admin/src/page/waveRule/WaveRuleCreate.jsx | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx b/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
index 2cb1f91..25a01d6 100644
--- a/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
+++ b/rsf-admin/src/page/waveRule/WaveRuleCreate.jsx
@@ -33,7 +33,7 @@
const WaveRuleCreate = (props) => {
const { open, setOpen } = props;
-
+ const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_wave_rule_code')) || [];
const translate = useTranslate();
const notify = useNotify();
@@ -85,18 +85,14 @@
<DialogContent sx={{ mt: 2 }}>
<Grid container rowSpacing={2} columnSpacing={2}>
<Grid item xs={6} display="flex" gap={1}>
- <TextInput
- label="table.field.waveRule.code"
- source="code"
- parse={v => v}
- autoFocus
- />
- </Grid>
- <Grid item xs={6} display="flex" gap={1}>
- <NumberInput
+ <AutocompleteInput
+ choices={dicts}
+ optionText="label"
label="table.field.waveRule.type"
source="type"
- />
+ optionValue="value"
+ parse={v => v}
+ validate={[required()]} />
</Grid>
<Grid item xs={6} display="flex" gap={1}>
<TextInput
--
Gitblit v1.9.1