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. +