From bf616f97b4d1a96e0ee89c52178a88e044e52a1d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 21 九月 2024 10:40:24 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/funcSta/FuncStaCreate.jsx |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/zy-acs-flow/src/page/funcSta/FuncStaCreate.jsx b/zy-acs-flow/src/page/funcSta/FuncStaCreate.jsx
index ed4b8f9..170c63d 100644
--- a/zy-acs-flow/src/page/funcSta/FuncStaCreate.jsx
+++ b/zy-acs-flow/src/page/funcSta/FuncStaCreate.jsx
@@ -85,14 +85,6 @@
                         <DialogContent>
                             <Grid container rowSpacing={2} columnSpacing={2}>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <TextInput
-                                        label="table.field.funcSta.uuid"
-                                        source="uuid"
-                                        parse={v => v}
-                                        autoFocus
-                                    />
-                                </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
                                     <ReferenceInput
                                         source="zoneId"
                                         reference="zone"
@@ -101,6 +93,7 @@
                                             label="table.field.funcSta.zoneId"
                                             optionText="name"
                                             filterToQuery={(val) => ({ name: val })}
+                                            validate={required()}
                                         />
                                     </ReferenceInput>
                                 </Grid>
@@ -125,8 +118,19 @@
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
-                                        label="table.field.funcSta.type"
+                                        label="table.field.funcSta.uuid"
+                                        source="uuid"
+                                        parse={v => v}
+                                    />
+                                </Grid>
+                                <Grid item xs={6} display="flex" gap={1}>
+                                    <SelectInput
                                         source="type"
+                                        label="table.field.funcSta.type"
+                                        choices={[
+                                            { id: 'CHARGE', name: 'page.funcSta.enums.type.charge' },
+                                            { id: 'STANDBY', name: 'page.funcSta.enums.type.standby' },
+                                        ]}
                                         parse={v => v}
                                     />
                                 </Grid>
@@ -150,16 +154,19 @@
                                     />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <TextInput
-                                        label="table.field.funcSta.state"
+                                    <SelectInput
                                         source="state"
+                                        label="table.field.funcSta.state"
+                                        choices={[
+                                            { id: 'IDLE', name: 'page.funcSta.enums.state.idle' },
+                                            { id: 'OCCUPIED', name: 'page.funcSta.enums.state.occupied' },
+                                        ]}
                                         parse={v => v}
                                     />
                                 </Grid>
-
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <StatusSelectInput />
-                                </Grid>
+                                </Grid> */}
                                 <Grid item xs={12} display="flex" gap={1}>
                                     <Stack direction="column" spacing={1} width={'100%'}>
                                         <MemoInput />

--
Gitblit v1.9.1