| | |
| | | 'common.undefined':'Undefined', |
| | | 'common.phone':'Phone', |
| | | 'common.email':'Email', |
| | | 'common.select.cancel':'Cancel Selection', |
| | | 'common.realname':'Real Name', |
| | | 'common.idcard':'ID Number', |
| | | 'common.introduction':'Introduction', |
| | |
| | | }, [batchSprites]); |
| | | |
| | | const handleOk = (values) => { |
| | | console.log(values); return true; |
| | | console.log(values); |
| | | if (batchSprites?.length > 0) { |
| | | // loading |
| | | batchSprites.forEach(sprite => { |
| | | if (sprite.data?.type === Utils.SENSOR_TYPE.SHELF) { |
| | | if (values.shelfType) { |
| | | |
| | | if (values.shelfType !== null) { |
| | | } |
| | | if (values.top !== null) { |
| | | } |
| | | if (values.right !== null) { |
| | | } |
| | | if (values.bottom !== null) { |
| | | } |
| | | if (values.left !== null) { |
| | | } |
| | | if (values.value !== null) { |
| | | } |
| | | Utils.showSheflType(sprite); |
| | | } |
| | |
| | | label={intl.formatMessage({ id: 'map.settings.shelf.type', defaultMessage: '类型' })} |
| | | rules={[ |
| | | { |
| | | required: true, |
| | | required: false, |
| | | }, |
| | | ]} |
| | | > |
| | | <Select |
| | | style={{ width: 120 }} |
| | | style={{ width: 160 }} |
| | | options={[ |
| | | { |
| | | label: intl.formatMessage({ id: 'common.select.cancel', defaultMessage: '取消选择' }), |
| | | value: null |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.settings.shelf.store', defaultMessage: '库位' }), |
| | | value: Utils.SHELF_TYPE.STORE |
| | |
| | | value: Utils.SHELF_TYPE.DISABLE |
| | | }, |
| | | ]} |
| | | defaultValue={0} |
| | | /> |
| | | </ProForm.Item> |
| | | <ProForm.Item |