#
luxiaotao1123
2024-04-12 7a4e91b335fabe83fc7bd9cef007d93438a48f3f
#
2个文件已修改
22 ■■■■ 已修改文件
zy-asrs-flow/src/locales/en-US/map.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shuttle/view.jsx 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/locales/en-US/map.ts
@@ -26,6 +26,9 @@
    '': '',
    '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',
zy-asrs-flow/src/pages/map/drawer/shuttle/view.jsx
@@ -28,7 +28,16 @@
    }
})
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();
@@ -136,7 +145,7 @@
                                    },
                                    {
                                        label: intl.formatMessage({ id: 'map.is.enable', defaultMessage: '是否启用' }),
                                        children: 'Disabled',
                                        children: <BoolValueIcon value={info?.enable} />,
                                    },
                                    {
                                        label: intl.formatMessage({ id: 'map.loc.operation', defaultMessage: '库位操作' }),
@@ -144,13 +153,13 @@
                                        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>
                                            </>
                                        )