#
luxiaotao1123
2024-10-11 e436043d179e2ee733aeac80e3e32dfa9f1aab5d
#
1个文件已修改
132 ■■■■■ 已修改文件
zy-acs-flow/src/map/settings/CopyDrawer.jsx 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/settings/CopyDrawer.jsx
@@ -181,23 +181,135 @@
                                        />
                                    </Grid>
                                    {deviceType === DEVICE_TYPE.SHELF && (
                                        <>
                                        </>
                                    {(deviceType === DEVICE_TYPE.SHELF && watch('autoIncrement')) && (
                                        <Grid item xs={12}>
                                            <FormControl fullWidth>
                                                <FormLabel sx={{
                                                    mb: 1
                                                }}>
                                                    {translate('page.map.settings.map.copy.field.incrementValue')}
                                                </FormLabel>
                                                <Controller
                                                    name="incrementValue"
                                                    control={control}
                                                    render={({ field }) => (
                                                        <ToggleButtonGroup
                                                            {...field}
                                                            value={field.value}
                                                            exclusive
                                                            onChange={(event, value) => {
                                                                field.onChange(value);
                                                            }}
                                                            fullWidth
                                                        >
                                                            <ToggleButton value="row">
                                                                {translate('page.map.settings.config.shelf.row')}
                                                            </ToggleButton>
                                                            <ToggleButton value="bay">
                                                                {translate('page.map.settings.config.shelf.bay')}
                                                            </ToggleButton>
                                                        </ToggleButtonGroup>
                                                    )}
                                                />
                                            </FormControl>
                                        </Grid>
                                    )}
                                    {deviceType === DEVICE_TYPE.CHARGE && (
                                        <>
                                        </>
                                    {(deviceType === DEVICE_TYPE.CHARGE && watch('autoIncrement')) && (
                                        <Grid item xs={12}>
                                            <FormControl fullWidth>
                                                <FormLabel sx={{
                                                    mb: 1
                                                }}>
                                                    {translate('page.map.settings.map.copy.field.incrementValue')}
                                                </FormLabel>
                                                <Controller
                                                    name="incrementValue"
                                                    control={control}
                                                    render={({ field }) => (
                                                        <ToggleButtonGroup
                                                            {...field}
                                                            value={field.value}
                                                            exclusive
                                                            onChange={(event, value) => {
                                                                field.onChange(value);
                                                            }}
                                                            fullWidth
                                                        >
                                                            <ToggleButton value="no">
                                                                {translate('page.map.settings.config.base.no')}
                                                            </ToggleButton>
                                                        </ToggleButtonGroup>
                                                    )}
                                                />
                                            </FormControl>
                                        </Grid>
                                    )}
                                    {deviceType === DEVICE_TYPE.STATION && (
                                        <>
                                        </>
                                    {(deviceType === DEVICE_TYPE.STATION && watch('autoIncrement')) && (
                                        <Grid item xs={12}>
                                            <FormControl fullWidth>
                                                <FormLabel sx={{
                                                    mb: 1
                                                }}>
                                                    {translate('page.map.settings.map.copy.field.incrementValue')}
                                                </FormLabel>
                                                <Controller
                                                    name="incrementValue"
                                                    control={control}
                                                    render={({ field }) => (
                                                        <ToggleButtonGroup
                                                            {...field}
                                                            value={field.value}
                                                            exclusive
                                                            onChange={(event, value) => {
                                                                field.onChange(value);
                                                            }}
                                                            fullWidth
                                                        >
                                                            <ToggleButton value="no">
                                                                {translate('page.map.settings.config.base.no')}
                                                            </ToggleButton>
                                                        </ToggleButtonGroup>
                                                    )}
                                                />
                                            </FormControl>
                                        </Grid>
                                    )}
                                    {deviceType === DEVICE_TYPE.POINT && (
                                    {(deviceType === DEVICE_TYPE.POINT && watch('autoIncrement')) && (
                                        <>
                                            <Grid item xs={12}>
                                                <FormControl fullWidth>
                                                    <FormLabel sx={{
                                                        mb: 1
                                                    }}>
                                                        {translate('page.map.settings.map.copy.field.incrementValue')}
                                                    </FormLabel>
                                                    <Controller
                                                        name="incrementValue"
                                                        control={control}
                                                        render={({ field }) => (
                                                            <ToggleButtonGroup
                                                                {...field}
                                                                value={field.value}
                                                                exclusive
                                                                onChange={(event, value) => {
                                                                    field.onChange(value);
                                                                }}
                                                                fullWidth
                                                            >
                                                                <ToggleButton value="a">
                                                                    {translate('page.map.settings.config.shelf.a')}
                                                                </ToggleButton>
                                                                <ToggleButton value="b">
                                                                    {translate('page.map.settings.config.shelf.b')}
                                                                </ToggleButton>
                                                            </ToggleButtonGroup>
                                                        )}
                                                    />
                                                </FormControl>
                                            </Grid>
                                        </>
                                    )}