#
luxiaotao1123
2024-04-10 83820ff6205f8a4502576f5cec48c911eb5f48a1
zy-asrs-flow/src/pages/map/drawer/shuttle/view.jsx
@@ -27,20 +27,26 @@
    }
})
const ShuttleView = (props) => {
    const intl = useIntl();
    const { styles } = useStyles();
    const { data } = props;
    const [loading, setLoading] = React.useState(false);
    const [info, setInfo] = React.useState(null);
    useEffect(() => {
        setLoading(true);
        setTimeout(() => {
        const fetchShuttleInfo = async (shuttleNo) => {
            const res = await Http.doGet('/api/map/shuttle/info', { shuttleNo: shuttleNo });
            if (res?.data) {
                setInfo(res.data);
            }
            setLoading(false);
        }, 300)
        }
        fetchShuttleInfo(data.no);
    }, [data]);
    return (
@@ -60,6 +66,11 @@
                                [
                                    {
                                        key: '1',
                                        label: intl.formatMessage({ id: 'map.conveyor.no', defaultMessage: '穿梭车编号' }),
                                        children: info?.shuttleNo,
                                    },
                                    {
                                        key: '1',
                                        label: intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }),
                                        children: <Badge status="processing" text="Running" />,
                                    },