From 330489869768d499197f172b46df511d188d4669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Wed, 24 May 2023 17:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8D=95=E8=AF=A6=E7=BB=86=E9=A1=B5?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoice/Detail.jsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/invoice/Detail.jsx b/src/views/invoice/Detail.jsx index 2327d1e..4755e0b 100644 --- a/src/views/invoice/Detail.jsx +++ b/src/views/invoice/Detail.jsx @@ -30,6 +30,12 @@ function Detail() { useEffect(() => { console.info("Detail.useEffect: " + GMDSN + "/" + GSN); + defaultShow(); + + }, [GMDSN, GSN]); + + + function defaultShow(){ setDataLoading(true); invoiceStore.fetchInvoiceDetail(GMDSN, GSN) .then((json) => { @@ -85,12 +91,6 @@ function Detail() { .finally(() => { setDataLoading(false); }); - - }, [GMDSN, GSN]); - - - function defaultShow(json){ - } const fileList = toJS(invoicekImages); @@ -201,7 +201,9 @@ function Detail() { runInAction(() => { invoiceStore.invoiceFormData = {'info_money':0,'info_Currency':'','info_date':'','info_gmdsn':GMDSN}; }); - }); + }).finally(()=>{ + defaultShow(); + }) } function addButton(check) { @@ -273,7 +275,7 @@ function Detail() { -
+ 上传照片