Pārlūkot izejas kodu

proof isOverTime:proofPaymentDeadline -> reviseDeadline

master
Anna Ho pirms 1 gada
vecāks
revīzija
f5bf95fc51
2 mainītis faili ar 10 papildinājumiem un 7 dzēšanām
  1. +10
    -5
      src/pages/Proof/Reply_Public/ProofForm.js
  2. +0
    -2
      src/translations/en.json

+ 10
- 5
src/pages/Proof/Reply_Public/ProofForm.js Parādīt failu

@@ -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;
}




+ 0
- 2
src/translations/en.json Parādīt failu

@@ -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",


Notiek ielāde…
Atcelt
Saglabāt