#
vincentlu
2026-01-10 1bc33546a044cbc84dd9595c19dbcd9a4e309fc9
zy-acs-flow/src/page/agvModel/AgvModelEdit.jsx
@@ -63,25 +63,23 @@
                        <Typography variant="h6" gutterBottom>
                            {translate('common.edit.title.main')}
                        </Typography>
                        <Stack direction='row' gap={2}>
                        {/* <Stack direction='row' gap={2}>
                            <TextInput
                                label="table.field.agvModel.uuid"
                                source="uuid"
                                parse={v => v}
                                autoFocus
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <TextInput
                                label="table.field.agvModel.type"
                                source="type"
                                parse={v => v}
                            />
                        </Stack>
                        </Stack> */}
                        <Stack direction='row' gap={2}>
                            <TextInput
                                label="table.field.agvModel.name"
                                source="name"
                                parse={v => v}
                            />
                            <TextInput
                                label="table.field.agvModel.type"
                                source="type"
                                parse={v => v}
                            />
                        </Stack>
@@ -90,14 +88,10 @@
                                label="table.field.agvModel.length"
                                source="length"
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.width"
                                source="width"
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.height"
                                source="height"
@@ -108,8 +102,6 @@
                                label="table.field.agvModel.liftHeight"
                                source="liftHeight"
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.diameter"
                                source="diameter"
@@ -121,8 +113,6 @@
                                source="password"
                                parse={v => v}
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.backpack"
                                source="backpack"
@@ -132,12 +122,12 @@
                            <NumberInput
                                label="table.field.agvModel.lowBattery"
                                source="lowBattery"
                                validate={required()}
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.quaBattery"
                                source="quaBattery"
                                validate={required()}
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
@@ -145,21 +135,9 @@
                                label="table.field.agvModel.travelSpeed"
                                source="travelSpeed"
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <NumberInput
                                label="table.field.agvModel.workDirection"
                                source="workDirection"
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <SelectInput
                                label="table.field.agvModel.allDirection"
                                source="allDirection"
                                choices={[
                                    { id: 0, name: '否' },
                                    { id: 1, name: '是' },
                                ]}
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
@@ -168,20 +146,47 @@
                                source="protocol"
                                parse={v => v}
                            />
                        </Stack>
                        <Stack direction='row' gap={2}>
                            <TextInput
                            {/* <TextInput
                                label="table.field.agvModel.mqttTopic"
                                source="mqttTopic"
                                parse={v => v}
                            />
                            /> */}
                        </Stack>
                        <Stack direction='row' gap={2}>
                        </Stack>
                    </Grid>
                    <Grid item xs={12} md={4}>
                        <Typography variant="h6" gutterBottom>
                            {translate('common.edit.title.common')}
                        </Typography>
                        <SelectInput
                            label="table.field.agvModel.allDirection"
                            source="allDirection"
                            choices={[
                                { id: 0, name: 'common.enums.false' },
                                { id: 1, name: 'common.enums.true' },
                            ]}
                        />
                        <SelectInput
                            label="table.field.agvModel.needUndocking"
                            source="needUndocking"
                            choices={[
                                { id: 0, name: 'common.enums.false' },
                                { id: 1, name: 'common.enums.true' },
                            ]}
                            validate={required()}
                        />
                        <SelectInput
                            label="table.field.agvModel.backupAction"
                            source="backupAction"
                            choices={[
                                { id: 0, name: 'common.enums.false' },
                                { id: 1, name: 'common.enums.true' },
                            ]}
                            validate={required()}
                        />
                        <StatusSelectInput />
                        <Box mt="2em" />
                        <MemoInput />