| | |
| | | '': '', |
| | | 'map.pallet.barcode': 'Pallet Barcode', |
| | | 'map.is.enable': 'Enable or Not', |
| | | 'map.enable': 'Enable', |
| | | 'map.diable': 'Disable', |
| | | 'map.handle': 'Handle', |
| | | 'map.loc.sts': 'Location Status', |
| | | 'map.loc.operation': 'Location Operation', |
| | | 'map.loc.lock': 'Lock', |
| | |
| | | } |
| | | }) |
| | | |
| | | |
| | | const updateEnable = async (deviceNo, enable) => { |
| | | const resp = await Http.doPost('api/dict/update', {val}); |
| | | if (resp.code === 200) { |
| | | message.success(intl.formatMessage({ id: 'page.update.success', defaultMessage: '更新成功' })); |
| | | return true; |
| | | } else { |
| | | message.error(resp.msg); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | const ShuttleView = (props) => { |
| | | const intl = useIntl(); |
| | |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.is.enable', defaultMessage: '是否启用' }), |
| | | children: 'Disabled', |
| | | children: <BoolValueIcon value={info?.enable} />, |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.loc.operation', defaultMessage: '库位操作' }), |
| | |
| | | children: ( |
| | | <> |
| | | <Button className={styles.tableButton} size='default' type="primary" danger> |
| | | <FormattedMessage id='map.loc.lock' defaultMessage='锁定' /> |
| | | <FormattedMessage id='map.diable' defaultMessage='禁用' /> |
| | | </Button> |
| | | <Button className={styles.tableButton} size='default' disabled> |
| | | <FormattedMessage id='map.loc.unlock' defaultMessage='解锁' /> |
| | | <FormattedMessage id='map.enable' defaultMessage='启用' /> |
| | | </Button> |
| | | <Button className={styles.tableButton} size='default'> |
| | | <FormattedMessage id='map.loc.reset' defaultMessage='清除库位' /> |
| | | <FormattedMessage id='map.handle' defaultMessage='手动操作' /> |
| | | </Button> |
| | | </> |
| | | ) |