From c3707e6d7b7631a3b66667b1f7692dd1921548f9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 三月 2024 15:05:11 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/locales/en-US/map.ts | 4 ++
zy-asrs-flow/src/pages/map/components/mapCopySettings.jsx | 85 ++++++++++++++++++++++++++++++++++--------
zy-asrs-flow/src/pages/map/components/mapSettings.jsx | 2
3 files changed, 73 insertions(+), 18 deletions(-)
diff --git a/zy-asrs-flow/src/locales/en-US/map.ts b/zy-asrs-flow/src/locales/en-US/map.ts
index b14533a..45de220 100644
--- a/zy-asrs-flow/src/locales/en-US/map.ts
+++ b/zy-asrs-flow/src/locales/en-US/map.ts
@@ -45,6 +45,10 @@
'map.settings.sub.copy.count': 'Count',
'map.settings.sub.copy.gap': 'Gap',
'map.settings.sub.copy.id': 'ID',
+ 'map.settings.sub.copy.shelf.auto-increment-value': 'Increment Value',
+ 'map.settings.sub.copy.increment.mode': 'Increment Mode',
+ 'map.settings.sub.copy.ascend': 'Ascending',
+ 'map.settings.sub.copy.descend': 'Descending',
'': '',
'': '',
'': '',
diff --git a/zy-asrs-flow/src/pages/map/components/mapCopySettings.jsx b/zy-asrs-flow/src/pages/map/components/mapCopySettings.jsx
index e2af697..c51b37c 100644
--- a/zy-asrs-flow/src/pages/map/components/mapCopySettings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/mapCopySettings.jsx
@@ -1,5 +1,5 @@
import React, { useState, useRef, useEffect } from 'react';
-import { Col, Form, Input, Row, Checkbox, Slider, Select, Drawer, Space, Button, InputNumber, Switch } from 'antd';
+import { Col, Form, Input, Row, Checkbox, Slider, Select, Drawer, Space, Button, InputNumber, Segmented } from 'antd';
import { FormattedMessage, useIntl, useModel } from '@umijs/max';
import { createStyles } from 'antd-style';
import * as Utils from '../utils'
@@ -108,26 +108,77 @@
style={{
width: '60%',
}}
- // min={0}
+ // min={0}
/>
</Form.Item>
</Col>
- {curSprite?.data?.type === 'AGV' && (
- <Col span={24}>
- <Form.Item
- name='id'
- label={intl.formatMessage({ id: 'map.settings.sub.copy.id', defaultMessage: '搴忓彿' })}
- labelCol={{ span: 8 }}
- >
- <InputNumber
- style={{
- width: '60%',
- }}
- min={0}
- />
- </Form.Item>
- </Col>
+ {curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && (
+ <>
+ <Col span={24}>
+ <Form.Item
+ name='id'
+ label={intl.formatMessage({ id: 'map.settings.sub.copy.id', defaultMessage: '搴忓彿' })}
+ labelCol={{ span: 8 }}
+ >
+ <InputNumber
+ style={{
+ width: '60%',
+ }}
+ min={0}
+ />
+ </Form.Item>
+ </Col>
+ </>
+ )}
+
+ {curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && (
+ <>
+ <Col span={24}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.sub.copy.shelf.auto-increment-value', defaultMessage: '鑷闀垮��' })}
+ labelCol={{ span: 8 }}
+ >
+ <Segmented
+ block
+ options={[
+ {
+ label: intl.formatMessage({ id: 'map.settings.shelf.row', defaultMessage: '鎺�' }),
+ value: 'row'
+ },
+ {
+ label: intl.formatMessage({ id: 'map.settings.shelf.bay', defaultMessage: '鍒�' }),
+ value: 'bay'
+ },
+ ]}
+ onChange={(value) => {
+ }}
+ />
+ </Form.Item>
+ </Col>
+ <Col span={24}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.sub.copy.increment.mode', defaultMessage: '澧為暱鏂瑰紡' })}
+ labelCol={{ span: 8 }}
+ >
+ <Segmented
+ block
+ options={[
+ {
+ label: intl.formatMessage({ id: 'map.settings.sub.copy.ascend', defaultMessage: '鍗囧簭' }),
+ value: 'Ascending'
+ },
+ {
+ label: intl.formatMessage({ id: 'map.settings.sub.copy.descend', defaultMessage: '闄嶅簭' }),
+ value: 'Descending'
+ },
+ ]}
+ onChange={(value) => {
+ }}
+ />
+ </Form.Item>
+ </Col>
+ </>
)}
</Row>
diff --git a/zy-asrs-flow/src/pages/map/components/mapSettings.jsx b/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
index ba5b05f..d4013c3 100644
--- a/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/mapSettings.jsx
@@ -339,7 +339,7 @@
</Form.Item>
<Form.Item>
<Button
- type="dashed"
+ type="link"
onClick={() => {
if (lastCopiedSprites) {
lastCopiedSprites.forEach(copiedSprite => {
--
Gitblit v1.9.1