From 3fa7cdec6ce44f07a0dc7e1910511ead606990f3 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 11 九月 2025 08:19:53 +0800 Subject: [PATCH] 1 --- zy-acs-flow/src/map/insight/agv/AgvControl.jsx | 70 +++++++++++++++++----------------- 1 files changed, 35 insertions(+), 35 deletions(-) diff --git a/zy-acs-flow/src/map/insight/agv/AgvControl.jsx b/zy-acs-flow/src/map/insight/agv/AgvControl.jsx index a350946..b9f5bf5 100644 --- a/zy-acs-flow/src/map/insight/agv/AgvControl.jsx +++ b/zy-acs-flow/src/map/insight/agv/AgvControl.jsx @@ -281,41 +281,6 @@ </Grid> )} - {showField('endLocNo') && ( - <Grid item xs={12}> - <Controller - name="endLocNo" - control={control} - rules={{ required: translate('ra.validation.required') }} - render={({ field, fieldState }) => { - const selectedOption = endLocOptions.find(option => option.id === field.value) || null; - return ( - <Autocomplete - options={endLocOptions} - getOptionLabel={(option) => option.label} - isOptionEqualToValue={(option, value) => option.id === value.id} - value={selectedOption} - onInputChange={(event, value) => { - setEndLocInputValue(value); - }} - onChange={(event, value) => { - field.onChange(value ? value.id : null); - }} - renderInput={(params) => ( - <TextField - {...params} - label={translate('page.map.insight.control.endLoc')} - error={!!fieldState.error} - helperText={fieldState.error?.message} - /> - )} - /> - ); - }} - /> - </Grid> - )} - {showField('startStaNo') && ( <Grid item xs={12}> <Controller @@ -351,6 +316,41 @@ </Grid> )} + {showField('endLocNo') && ( + <Grid item xs={12}> + <Controller + name="endLocNo" + control={control} + rules={{ required: translate('ra.validation.required') }} + render={({ field, fieldState }) => { + const selectedOption = endLocOptions.find(option => option.id === field.value) || null; + return ( + <Autocomplete + options={endLocOptions} + getOptionLabel={(option) => option.label} + isOptionEqualToValue={(option, value) => option.id === value.id} + value={selectedOption} + onInputChange={(event, value) => { + setEndLocInputValue(value); + }} + onChange={(event, value) => { + field.onChange(value ? value.id : null); + }} + renderInput={(params) => ( + <TextField + {...params} + label={translate('page.map.insight.control.endLoc')} + error={!!fieldState.error} + helperText={fieldState.error?.message} + /> + )} + /> + ); + }} + /> + </Grid> + )} + {showField('endStaNo') && ( <Grid item xs={12}> <Controller -- Gitblit v1.9.1