Alex Cheung 1 year ago
parent
commit
4a667f7d0e
5 changed files with 13 additions and 10 deletions
  1. +1
    -1
      src/pages/DemandNote/Search/DataGrid.js
  2. +10
    -5
      src/pages/Proof/Reply_Public/ProofForm.js
  3. +0
    -2
      src/translations/en.json
  4. +1
    -1
      src/translations/zh-CN.json
  5. +1
    -1
      src/translations/zh-HK.json

+ 1
- 1
src/pages/DemandNote/Search/DataGrid.js View File

@@ -440,7 +440,7 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch })
}} }}
> >
<DialogContent style={{ display: 'flex', }}> <DialogContent style={{ display: 'flex', }}>
<Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography>
<Typography variant="h4" style={{ padding: '16px' }}>Please wait ...</Typography>
</DialogContent> </DialogContent>
</Dialog> </Dialog>
</div> </div>


+ 10
- 5
src/pages/Proof/Reply_Public/ProofForm.js View File

@@ -67,7 +67,7 @@ const FormPanel = ({ formData }) => {
} }


if (isOverTime()) { if (isOverTime()) {
setWarningText("回覆逾時,請重新申請。");
setWarningText(intl.formatMessage({id: 'MSG.proofOutOfTime'}));
setIsWarningPopUp(true); setIsWarningPopUp(true);
return; return;
} }
@@ -80,7 +80,12 @@ const FormPanel = ({ formData }) => {
vaild: values.vaild, vaild: values.vaild,
}, },
files: attachments ? attachments : [], files: attachments ? attachments : [],
onSuccess: function () {
onSuccess: function (responseData) {
if(responseData.msg){
setWarningText(intl.formatMessage({id: 'MSG.proofOutOfTime'}));
setIsWarningPopUp(true);
return;
}
notifyActionSuccess("提交成功!") notifyActionSuccess("提交成功!")
if (actionValue) { if (actionValue) {
navigate("/proof/pay/" + params.id); navigate("/proof/pay/" + params.id);
@@ -127,10 +132,10 @@ const FormPanel = ({ formData }) => {
} }


const isOverTime = () => { 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(); let current = new Date();
return current.getTime() > proofPaymentDeadline;
return current.getTime() > reviseDeadline;
} }






+ 0
- 2
src/translations/en.json View File

@@ -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_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.", "MSG.pay_credity2": "The fee for this public notice will be consolidated in the next Payment Notice. Please ensure timely payment.",




"registerTitle1": "Become", "registerTitle1": "Become",
"registerTitle2": "Gazette Notice", "registerTitle2": "Gazette Notice",
"registerTitle3": "Publisher now", "registerTitle3": "Publisher now",


+ 1
- 1
src/translations/zh-CN.json View File

@@ -439,7 +439,7 @@
"creditorAccount": "债权人帐户", "creditorAccount": "债权人帐户",
"nameEng": "姓名 (英文)", "nameEng": "姓名 (英文)",
"nameChi": "姓名 (中文)", "nameChi": "姓名 (中文)",
"expiryDate": "过期日期",
"expiryDate": "屆滿日期",
"create": "创建", "create": "创建",
"confirmTo": "确定", "confirmTo": "确定",




+ 1
- 1
src/translations/zh-HK.json View File

@@ -442,7 +442,7 @@
"creditorAccount": "債權人帳戶", "creditorAccount": "債權人帳戶",
"nameEng": "姓名 (英文)", "nameEng": "姓名 (英文)",
"nameChi": "姓名 (中文)", "nameChi": "姓名 (中文)",
"expiryDate": "過期日期",
"expiryDate": "屆滿日期",
"create": "創建", "create": "創建",
"confirmTo": "確定", "confirmTo": "確定",




Loading…
Cancel
Save