| | |
| | | setLoading(false); |
| | | } |
| | | fetchShuttleInfo(data.no); |
| | | }, [data]); |
| | | |
| | | useEffect(() => { |
| | | console.log(info); |
| | | }, [info]) |
| | | const timer = setInterval(() => { |
| | | fetchShuttleInfo(data.no); |
| | | }, 1000); |
| | | return () => { |
| | | clearInterval(timer); |
| | | } |
| | | }, [data]); |
| | | |
| | | return ( |
| | | <> |
| | |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }), |
| | | children: <Badge status="processing" text="Running" />, |
| | | children: info?.currentLocNo, |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.pallet.barcode', defaultMessage: '托盘条码' }), |
| | | children: '80000010', |
| | | children: info?.zpallet, |
| | | }, |
| | | { |
| | | label: intl.formatMessage({ id: 'map.origin.loc', defaultMessage: '起始库位' }), |