From 1bc33546a044cbc84dd9595c19dbcd9a4e309fc9 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期六, 10 一月 2026 14:06:10 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/sta/StaEdit.jsx |  100 +++++++++++++++++++++++--------------------------
 1 files changed, 47 insertions(+), 53 deletions(-)

diff --git a/zy-acs-flow/src/page/sta/StaEdit.jsx b/zy-acs-flow/src/page/sta/StaEdit.jsx
index 42ecc8b..a203a00 100644
--- a/zy-acs-flow/src/page/sta/StaEdit.jsx
+++ b/zy-acs-flow/src/page/sta/StaEdit.jsx
@@ -63,14 +63,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.sta.uuid"
                                 source="uuid"
                                 parse={v => v}
                                 autoFocus
                             />
-                        </Stack>
+                        </Stack> */}
                         <Stack direction='row' gap={2}>
                             <ReferenceInput
                                 source="zoneId"
@@ -81,23 +81,23 @@
                                     label="table.field.sta.zoneId"
                                     optionText="name"
                                     filterToQuery={(val) => ({ name: val })}
+                                    validate={required()}
                                 />
                             </ReferenceInput>
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.sta.staNo"
                                 source="staNo"
                                 parse={v => v}
+                                validate={required()}
                             />
                         </Stack>
-                        <Stack direction='row' gap={2}>
+                        {/* <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.sta.name"
                                 source="name"
                                 parse={v => v}
                             />
-                        </Stack>
+                        </Stack> */}
                         <Stack direction='row' gap={2}>
                             <ReferenceInput
                                 source="staType"
@@ -108,11 +108,8 @@
                                     label="table.field.sta.staType"
                                     optionText="name"
                                     filterToQuery={(val) => ({ name: val })}
-                                    validate={required()}
                                 />
                             </ReferenceInput>
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <ReferenceInput
                                 source="code"
                                 reference="code"
@@ -120,71 +117,68 @@
                             >
                                 <AutocompleteInput
                                     label="table.field.sta.code"
-                                    optionText="uuid"
+                                    optionText="data"
                                     filterToQuery={(val) => ({ data: val })}
+                                    validate={required()}
                                 />
                             </ReferenceInput>
                         </Stack>
                         <Stack direction='row' gap={2}>
                             <NumberInput
+                                label="table.field.sta.capacity"
+                                source="capacity"
+                                validate={required()}
+                            />
+                            <NumberInput
                                 label="table.field.sta.offset"
                                 source="offset"
+                                validate={required()}
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.sta.autoing"
-                                source="autoing"
-                                parse={v => v}
+                            <NumberInput
+                                label="table.field.sta.angle"
+                                source="angle"
+                                validate={required()}
                             />
+                            {/* <NumberInput
+                                label="table.field.sta.occCnt"
+                                source="occCnt"
+                                InputProps={{ readOnly: true }}
+                                disabled
+                            /> */}
                         </Stack>
                         <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.sta.loading"
-                                source="loading"
-                                parse={v => v}
+                            <NumberInput
+                                label="table.field.sta.rsvInCnt"
+                                source="rsvInCnt"
+                                // InputProps={{ readOnly: true }}
+                                // disabled
+                            />
+                            <NumberInput
+                                label="table.field.sta.rsvOutCnt"
+                                source="rsvOutCnt"
+                                // InputProps={{ readOnly: true }}
+                                // disabled
                             />
                         </Stack>
-                        <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.sta.inEnable"
-                                source="inEnable"
-                                parse={v => v}
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.sta.outEnable"
-                                source="outEnable"
-                                parse={v => v}
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.sta.zpallet"
-                                source="zpallet"
-                                parse={v => v}
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <ReferenceInput
-                                source="staSts"
-                                reference="staSts"
-                                perPage={REFERENCE_INPUT_PAGESIZE}
-                            >
-                                <AutocompleteInput
-                                    label="table.field.sta.staSts"
-                                    optionText="name"
-                                    filterToQuery={(val) => ({ name: val })}
-                                />
-                            </ReferenceInput>
-                        </Stack>
-
                     </Grid>
                     <Grid item xs={12} md={4}>
                         <Typography variant="h6" gutterBottom>
                             {translate('common.edit.title.common')}
                         </Typography>
+                        {/* <ReferenceInput
+                            source="staSts"
+                            reference="staSts"
+                            perPage={REFERENCE_INPUT_PAGESIZE}
+                        >
+                            <AutocompleteInput
+                                label="table.field.sta.staSts"
+                                optionText="name"
+                                filterToQuery={(val) => ({ name: val })}
+                            />
+                        </ReferenceInput> */}
+
                         <StatusSelectInput />
                         <Box mt="2em" />
                         <MemoInput />

--
Gitblit v1.9.1