#
luxiaotao1123
2024-03-29 aa279db8d074ad92990b743e52ff3ac9e3fa9fbe
#
2个文件已修改
18 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -17,17 +17,19 @@
    const { curSprite, curFloor } = props;
    const [activeTabKey, setActiveTabKey] = useState('view');
    const locNo = curSprite.data.no + '-' + curFloor;
    const [curLocNo, setCurLocNo] = React.useState(curSprite.data.no + '-' + curFloor);
    useEffect(() => {
        const locNo = curSprite.data.no + '-' + curFloor;
        props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '库位号' }) + ': ' + locNo);
        setCurLocNo(locNo);
    }, [curSprite]);
    const contentList = {
        view: (
            <ShelfView
                locNo={locNo}
                curLocNo={curLocNo}
                setCurLocNo={setCurLocNo}
                data={curSprite.data}
                curFloor={curFloor}
            />
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -60,13 +60,11 @@
    const intl = useIntl();
    const { styles } = useStyles();
    const refContainer = useRef();
    const { curLocNo, setCurLocNo } = props;
    const [loading, setLoading] = React.useState(false);
    const [shelfList, setShelfList] = React.useState([]);
    const [curLocNo, setCurLocNo] = React.useState(props.locNo);
    useEffect(() => {
        setCurLocNo(props.locNo)
        endThree();
        setLoading(true);
@@ -101,12 +99,12 @@
            shelfThree.handleClick = (locNo) => {
                setCurLocNo(locNo);
            }
            fetchShelfInfo(props.locNo);
            fetchShelfInfo(curLocNo);
            setLoading(false);
        }, 300)
        return endThree;
    }, [props.data.uuid, props.locNo]);
    }, [props.data.uuid]);
    return (
        <>