From f5bf95fc510ca693bea7b65e1fb1a34cd2973c2d Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 22 Mar 2024 16:35:49 +0800 Subject: [PATCH 1/2] proof isOverTime:proofPaymentDeadline -> reviseDeadline --- src/pages/Proof/Reply_Public/ProofForm.js | 15 ++++++++++----- src/translations/en.json | 2 -- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pages/Proof/Reply_Public/ProofForm.js b/src/pages/Proof/Reply_Public/ProofForm.js index b12719e..eebd6b7 100644 --- a/src/pages/Proof/Reply_Public/ProofForm.js +++ b/src/pages/Proof/Reply_Public/ProofForm.js @@ -67,7 +67,7 @@ const FormPanel = ({ formData }) => { } if (isOverTime()) { - setWarningText("回覆逾時,請重新申請。"); + setWarningText(intl.formatMessage({id: 'MSG.proofOutOfTime'})); setIsWarningPopUp(true); return; } @@ -80,7 +80,12 @@ const FormPanel = ({ formData }) => { vaild: values.vaild, }, files: attachments ? attachments : [], - onSuccess: function () { + onSuccess: function (responseData) { + if(responseData.msg){ + setWarningText(intl.formatMessage({id: 'MSG.proofOutOfTime'})); + setIsWarningPopUp(true); + return; + } notifyActionSuccess("提交成功!") if (actionValue) { navigate("/proof/pay/" + params.id); @@ -127,10 +132,10 @@ const FormPanel = ({ formData }) => { } const isOverTime = () => { - let proofPaymentDeadline = DateUtils.convertToDate(formik.values?.proofPaymentDeadline); - if (!proofPaymentDeadline) return true; + let reviseDeadline = DateUtils.convertToDate(formik.values?.reviseDeadline); + if (!reviseDeadline) return true; let current = new Date(); - return current.getTime() > proofPaymentDeadline; + return current.getTime() > reviseDeadline; } diff --git a/src/translations/en.json b/src/translations/en.json index 11f0cff..a35813a 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -74,8 +74,6 @@ "MSG.pay_credity1": "We have received your confirmed application for proofreading and printing instructions regarding application number {appNo}. We will arrange for its publication with in the Year {year}, Volume {issueVolume}, Issue {issueNo} of the Official Gazette.", "MSG.pay_credity2": "The fee for this public notice will be consolidated in the next Payment Notice. Please ensure timely payment.", - - "registerTitle1": "Become", "registerTitle2": "Gazette Notice", "registerTitle3": "Publisher now", From 423cff4718437d0d172fef91d763fd82b2ffc268 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 22 Mar 2024 16:43:02 +0800 Subject: [PATCH 2/2] update label --- src/pages/DemandNote/Search/DataGrid.js | 2 +- src/translations/zh-CN.json | 2 +- src/translations/zh-HK.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/DemandNote/Search/DataGrid.js b/src/pages/DemandNote/Search/DataGrid.js index fdad4ab..9aba097 100644 --- a/src/pages/DemandNote/Search/DataGrid.js +++ b/src/pages/DemandNote/Search/DataGrid.js @@ -440,7 +440,7 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) }} > - Calculating, please wait ... + Please wait ... diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index 5c4cb30..7f02aeb 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -437,7 +437,7 @@ "creditorAccount": "债权人帐户", "nameEng": "姓名 (英文)", "nameChi": "姓名 (中文)", - "expiryDate": "过期日期", + "expiryDate": "屆滿日期", "create": "创建", "confirmTo": "确定", diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index b5b1661..62aba7d 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -440,7 +440,7 @@ "creditorAccount": "債權人帳戶", "nameEng": "姓名 (英文)", "nameChi": "姓名 (中文)", - "expiryDate": "過期日期", + "expiryDate": "屆滿日期", "create": "創建", "confirmTo": "確定",