From fb01252c1144a9a296c3bcac7f59b4c0dbc5a1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 20 Jul 2023 11:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=B4=A6=E6=97=A5=E6=9C=9F=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98=E7=9A=84=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E6=8F=90=E4=BA=A4=E8=B4=A6=E5=8D=95=E5=90=8E?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=B4=A6=E5=8D=95=E8=A1=A8=E5=8D=95=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoice/Detail.jsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/invoice/Detail.jsx b/src/views/invoice/Detail.jsx index b2de821..f6a2e9a 100644 --- a/src/views/invoice/Detail.jsx +++ b/src/views/invoice/Detail.jsx @@ -35,8 +35,7 @@ function Detail() { invoiceStore .fetchInvoiceDetail(GMDSN, GSN) .then(json => { - let ZDDetail = json.ZDDetail; - + let ZDDetail = json.ZDDetail; if (isNotEmpty(ZDDetail)) { let arrLen = ZDDetail.length; const formData = ZDDetail.map((data, index) => { @@ -104,7 +103,7 @@ function Detail() { const onFinish = values => { const fieldVaule = { ...values, - info_date: isNotEmpty(values["info_date"]) ? values["info_date"].format("YYYY-MM-DD") : null, + info_date: isNotEmpty(values["info_date"]) ? values["info_date"].format("YYYY-MM") : null, info_images: JSON.stringify(arrimg), }; console.log("Success:", fieldVaule); @@ -117,12 +116,13 @@ function Detail() { invoiceStore.invoiceFormData = param; }); if (data.errcode == 0) { + setEdited(true); notification.success({ message: `Notification`, description: "Success Submit!", placement: "top", duration: 4, - }); + }); } }); } @@ -264,15 +264,14 @@ function Detail() { ]}> - -
- Payment is arranged during the last week of each month. If the invoice is issued after the 20th, please select the following month for payment. For urgent payments, please contact the travel advisor. -
- + + + Payment is arranged during the last week of each month. If the invoice is issued after the 20th, please select the following month for payment. For urgent payments, please contact the travel advisor. +