#
luxiaotao1123
2024-05-09 c9264a364d9b1fe45384fd5ba3d6e65190fe28be
src/core/warehouse.jsx
@@ -28,11 +28,18 @@
        const timer = setInterval(() => {
            console.log('do');
            getBoxData().then(res => {
                // res.push({
                //     locNo: "A100301001",
                //     row: 3,
                //     bay: 1,
                //     lev: 1,
                //     locSts: "STOCK",
                // })
                setBoxData(res);
            })
            getAgvData().then(res => {
                console.log(JSON.stringify(res))
                // console.log(JSON.stringify(res))
                if (res && res.length > 0) {
                    setAgvData(res);
                }
@@ -46,7 +53,7 @@
        }, INTERVAL_TIME * 1.1);
        return () => {
            // clearInterval(timer);
            clearInterval(timer);
        }
    }, [])
@@ -60,10 +67,6 @@
    const shelfEl = useMemo(() => {
        return shelfData.map((data, index) => <Shelf key={index} {...data} />)
    }, []);
    const shelfEl1 = useMemo(() => {
        return shelfData.slice(0, 1).map((data, index) => <Shelf key={index} {...data} />)
    }, []);
    const boxEl = useMemo(() => {