| | |
| | | 'common.idcard':'ID Number', |
| | | 'common.introduction':'Introduction', |
| | | 'common.execute':'Execute', |
| | | 'common.success':'Success', |
| | | 'common.fail':'Fail', |
| | | '':'', |
| | | '':'', |
| | | '':'', |
| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Col, Form, Input, Row, Checkbox, Slider, Select, Drawer, Space, Button, InputNumber, Card } from 'antd'; |
| | | import { message, Form, Input, Row, Checkbox, Slider, Select, Drawer, Space, Button, InputNumber, Card } from 'antd'; |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import { createStyles } from 'antd-style'; |
| | | import * as Utils from '../utils' |
| | |
| | | const { curSprite, configForm: form } = props; |
| | | |
| | | useEffect(() => { |
| | | }, []); |
| | | form.resetFields(); |
| | | if (curSprite) { |
| | | form.setFieldsValue({ |
| | | |
| | | // shelf |
| | | row: curSprite?.data?.row, |
| | | bay: curSprite?.data?.bay, |
| | | shelfNo: curSprite?.data?.shelfNo, |
| | | }) |
| | | } |
| | | }, [props, form]); |
| | | |
| | | const formValuesChange = (changeList) => { |
| | | if (curSprite && changeList && changeList.length > 0) { |
| | |
| | | break; |
| | | } |
| | | } |
| | | message.success(intl.formatMessage({ id: 'common.success', defaultMessage: '操作成功' })); |
| | | } |
| | | |
| | | props.onSubmit({ ...values }, confirmSettings); |
| | |
| | | copyGap: 0, |
| | | autoIncrement: false, |
| | | incrementValue: 'row', |
| | | incrementMode: 'Ascending', |
| | | incrementMode: 'ascending', |
| | | }} |
| | | onFinish={handleFinish} |
| | | autoComplete="off" |
| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Col, Form, Input, Row, Checkbox, Slider, Select, Drawer, Space, Button, InputNumber, Card } from 'antd'; |
| | | import { Col, Form, Input, Row, message, Slider, Select, Drawer, Space, Button, InputNumber, Card } from 'antd'; |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import { createStyles } from 'antd-style'; |
| | | import * as Utils from '../utils' |
| | |
| | | switch (values.type) { |
| | | case Utils.SENSOR_TYPE.SHELF: |
| | | console.log(values); |
| | | console.log(curSprite); |
| | | break; |
| | | case Utils.SENSOR_TYPE.AGV: |
| | | break; |
| | |
| | | |
| | | const settingsFinish = (values, fn) => { |
| | | fn(); |
| | | setSettingsVisible(false); |
| | | setSpriteBySettings(null); |
| | | // setSettingsVisible(false); |
| | | // setSpriteBySettings(null); |
| | | } |
| | | |
| | | return ( |