From 6c1d09d5e692f0b43f5dfb2288a4aef728046b06 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 07 四月 2025 16:51:25 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-admin/src/page/asnOrder/AsnOrderPanel.jsx | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/rsf-admin/src/page/asnOrder/AsnOrderPanel.jsx b/rsf-admin/src/page/asnOrder/AsnOrderPanel.jsx index 0d858d2..61763e5 100644 --- a/rsf-admin/src/page/asnOrder/AsnOrderPanel.jsx +++ b/rsf-admin/src/page/asnOrder/AsnOrderPanel.jsx @@ -15,7 +15,7 @@ import { DataGrid } from '@mui/x-data-grid'; import PrintModal from './PrintModal'; import { width } from "@mui/system"; -const AsnOrderPanel = ({ setBillReload }) => { +const AsnOrderPanel = ({ billReload }) => { const record = useRecordContext(); if (!record) return null; const translate = useTranslate(); @@ -26,14 +26,7 @@ useEffect(() => { debouncedHttp({ maktx }); - setBillReload(http) }, [asnId, maktx]); - - useEffect(() => { - setBillReload(http) - }, []); - - const http = async (parmas) => { const res = await request.post('/asnOrderItem/page', { ...parmas, asnId }); @@ -45,9 +38,12 @@ } + useEffect(() => { + billReload.current = http + }, []); + + const debouncedHttp = useMemo(() => debounce(http, 300), []); - - const columns = [ { -- Gitblit v1.9.1