diff --git a/src/pages/Proof/Payment/Pay_DN.js b/src/pages/Proof/Payment/Pay_DN.js index 96bce0a..4010d02 100644 --- a/src/pages/Proof/Payment/Pay_DN.js +++ b/src/pages/Proof/Payment/Pay_DN.js @@ -67,7 +67,7 @@ const Index = ({ record }) => { id: 'proofPaymentBody_demandNote2' }, { - closingDateOff: "{closingDateOff}", + closingDateOff: DateUtils.dateStr(record.closingDateOff), email: record?.mail, } ) diff --git a/src/pages/Proof/Reply_Public/ProofForm.js b/src/pages/Proof/Reply_Public/ProofForm.js index 4748c07..9e836c6 100644 --- a/src/pages/Proof/Reply_Public/ProofForm.js +++ b/src/pages/Proof/Reply_Public/ProofForm.js @@ -26,7 +26,7 @@ import { notifyActionSuccess } from 'utils/CommonFunction'; import { PNSPS_BUTTON_THEME } from "themes/buttonConst"; import { ThemeProvider } from "@emotion/react"; import { FormattedMessage, useIntl } from "react-intl"; -import {isDummyLoggedIn} from "utils/Utils" +import { isDummyLoggedIn } from "utils/Utils" const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); //import * as ProofStatus from "utils/statusUtils/ProofStatus"; @@ -59,7 +59,7 @@ const FormPanel = ({ formData }) => { React.useEffect(() => { if (formData) { setData(formData); - if (isDummyLoggedIn()){ + if (isDummyLoggedIn()) { set_paymentMethod("demandNote") } } @@ -77,13 +77,19 @@ const FormPanel = ({ formData }) => { setIsWarningPopUp(true); return; } + let pm = paymentMethod; + if(pm=="demandNote"){ + pm = isOverDnReviseDeadline()?"":pm; + }else if(pm=="office"){ + pm = isOverNpgoReviseDeadline()?"":pm; + } if (actionValue == false && isOverReviseDeadline()) { setWarningText(intl.formatMessage({ id: 'MSG.overReviseDeadline' })); setIsWarningPopUp(true); return; } - else if ( formData.creditor==false && paymentMethod=="") { + else if(formData.creditor == false && pm == "") { setWarningText(intl.formatMessage({ id: 'MSG.plzSelectPaymentMethod' })); setIsWarningPopUp(true); return; @@ -103,17 +109,17 @@ const FormPanel = ({ formData }) => { id: data.id, action: actionValue, vaild: values.vaild, - paymentMethod: paymentMethod + paymentMethod: pm }, files: attachments ? attachments : [], onSuccess: function (responseData) { if (responseData.msg) { - setWarningText(intl.formatMessage({ id: responseData.msg})); + setWarningText(intl.formatMessage({ id: responseData.msg })); setIsWarningPopUp(true); return; } if (responseData.id == params.id) { - notifyActionSuccess(intl.formatMessage({id: "submitted"})) + notifyActionSuccess(intl.formatMessage({ id: "submitted" })) navigate("/proof/pay/" + params.id); } else { navigate("/proof/search"); @@ -292,8 +298,8 @@ const FormPanel = ({ formData }) => { { - actionValue && formData.creditor==false ? - isDummyLoggedIn()? + actionValue && formData.creditor == false ? + isDummyLoggedIn() ? @@ -357,7 +363,7 @@ const FormPanel = ({ formData }) => {
-
: + : @@ -387,117 +393,125 @@ const FormPanel = ({ formData }) => { - { - isOverDnReviseDeadline() ? - <> : - - - - - - - - } - { - isOverNpgoReviseDeadline() ? - <> : - - + + + + + + + + + - - - - - - } + } + + + + + + +
{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:00 p.m. {DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:30 p.m.
- { - set_paymentMethod("demandNote") - }} - /> - -
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
{DateUtils.dateFormat(formData.closingDateOff, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m. - -
+
+ {isOverDnReviseDeadline() ? + <> : + { + set_paymentMethod("demandNote") + }} + /> + } + +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+
{DateUtils.dateFormat(formData.closingDateOff, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m. + +
+ { + isOverNpgoReviseDeadline() ? + <> : { set_paymentMethod("office") }} /> - -
    -
  • -
  • -
-
{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m. - -
+
    +
  • +
  • +
+
{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m. + +
: - isOverReviseDeadline() ? - - - - - + actionValue ? + <> : <> - - - : - - - - - = (formik.values.groupType === "Private Bill" ? 2 : 1)} - onChange={(event) => { - readFile(event) - }} - /> - - - - - - - + { + isOverReviseDeadline() ? + + + + + + : + <> + + + : + + + + + = (formik.values.groupType === "Private Bill" ? 2 : 1)} + onChange={(event) => { + readFile(event) + }} + /> + + + + + + + + + } } diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index f38b859..7444793 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -136,22 +136,22 @@ "publicNoticePaymentProofComment": "公共启事:校对回复", "publicNoticePaymentProofInfo": "公共启事:校对资料", - "proofPaymentHeader_demandNote": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_demandNote": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}

You have selected to make payment by General Demand Note.", - "proofPaymentBody_demandNote2": "The General Demand Note will be sent to the following email address within one working day, but not later than {closingDateOff} 9:00 p.m. :
{email}", - "proofPaymentBody_demandNote3": "Please make payment and return the payment proof (e.g. ATM receipt, internet banking record) to gld_acct@gld.gov.hk by {paymentDeadline}.", - "proofPaymentBody_demandNote4": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_demandNote": "公共启事: 已完成校对并已选择付款方式", + "proofPaymentBody_demandNote": "我们已收到以下申请编号的稿件校对确认和印刷指示。
{appNo}

您已选择以一般缴款单付款。", + "proofPaymentBody_demandNote2": "一般缴款单将在一个工作天内,但不迟于{closingDateOff} 晚上9时前发送至以下电子邮件地址:
{email}", + "proofPaymentBody_demandNote3": "请在{paymentDeadline}前缴交费用并将付款证明(例如自动柜员机收据、网上银行记录)发送至gld_acct@gld.gov.hk。", + "proofPaymentBody_demandNote4": "我们将在收到付款确认通知后处理刊登事宜。", - "proofPaymentHeader_office": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_office": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}", - "proofPaymentBody_office2": "You have selected to make payment at North Point Government Offices Collection Office:

Collection Office at Accounts Section
10/F North Point Government Offices
333 Java Road North Point
", - "proofPaymentBody_office3": "Please print out this page or present your application details on screen at our Collection Office, and complete the payment by {paymentDeadline}.", - "proofPaymentBody_office4": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_office": "公共启事: 已完成校对并已选择付款方式", + "proofPaymentBody_office": "我们已收到以下申请编号的稿件校对确认和印刷指示。
{appNo}", + "proofPaymentBody_office2": "您已选择在北角政府合署收款处付款:

香港北角渣华道333号
北角政府合署10楼
会计部收款处
", + "proofPaymentBody_office3": "请打印此页面或使用电子屏幕设备向收款处职员展示申请详情,并在{paymentDeadline}前完成付款。", + "proofPaymentBody_office4": "我们将在收到付款确认通知后处理刊登事宜。", - "proofPaymentHeader_online": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_online": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}", - "proofPaymentBody_online2": "Please select either to complete the payment now or make payment by {paymentDeadline}.", - "proofPaymentBody_online3": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_online": "公共启事: 已完成校对并已选择付款方式", + "proofPaymentBody_online": "我们已收到以下申请编号的稿件校对确认和印刷指示。
{appNo}", + "proofPaymentBody_online2": "请选择即时完成付款,或在{paymentDeadline}前完成付款。", + "proofPaymentBody_online3": "我们将在收到付款确认通知后处理刊登事宜。", "proofRecord": "校对记录", "onlinePaymentHistory": "网上付款记录", diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index 14a4646..ee62917 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -136,22 +136,22 @@ "publicNoticePaymentProofComment": "公共啟事:校對回覆", "publicNoticePaymentProofInfo": "公共啟事:校對資料", - "proofPaymentHeader_demandNote": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_demandNote": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}

You have selected to make payment by General Demand Note.", - "proofPaymentBody_demandNote2": "The General Demand Note will be sent to the following email address within one working day, but not later than {closingDateOff} 9:00 p.m. :
{email}", - "proofPaymentBody_demandNote3": "Please make payment and return the payment proof (e.g. ATM receipt, internet banking record) to gld_acct@gld.gov.hk by {paymentDeadline}.", - "proofPaymentBody_demandNote4": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_demandNote": "公共啟事: 已完成校對並已選擇付款方式", + "proofPaymentBody_demandNote": "我們已收到以下申請編號的稿件校對確認和印刷指示。
{appNo}
您已選擇以一般繳款單付款。", + "proofPaymentBody_demandNote2": "一般繳款單將在一個工作天內,但不遲於{closingDateOff} 晚上9時前發送至以下電子郵件地址:
{email}", + "proofPaymentBody_demandNote3": "請在{paymentDeadline}前繳交費用並將付款證明(例如自動櫃員機收據、網上銀行記錄)發送至gld_acct@gld.gov.hk。", + "proofPaymentBody_demandNote4": "我們將在收到付款確認通知後處理刊登事宜。", - "proofPaymentHeader_office": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_office": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}", - "proofPaymentBody_office2": "You have selected to make payment at North Point Government Offices Collection Office:

Collection Office at Accounts Section
10/F North Point Government Offices
333 Java Road North Point
", - "proofPaymentBody_office3": "Please print out this page or present your application details on screen at our Collection Office, and complete the payment by {paymentDeadline}.", - "proofPaymentBody_office4": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_office": "公共啟事: 已完成校對並已選擇付款方式", + "proofPaymentBody_office": "我們已收到以下申請編號的稿件校對確認和印刷指示。
{appNo}", + "proofPaymentBody_office2": "您已選擇在北角政府合署收款處付款:

香港北角渣華道333號
北角政府合署10樓
會計部收款處
", + "proofPaymentBody_office3": "請列印此頁面或使用電子屏幕設備向收款處職員展示申請詳情,並在{paymentDeadline}之前完成付款。", + "proofPaymentBody_office4": "我們將在收到付款確認通知後處理刊登事宜。", - "proofPaymentHeader_online": "Public Notice: Proofreading Completed and Payment Means Selected", - "proofPaymentBody_online": "We have received the manuscript proofreading confirmation and printing instructions for application number: {appNo}", - "proofPaymentBody_online2": "Please select either to complete the payment now or make payment by {paymentDeadline}.", - "proofPaymentBody_online3": "We will process the publication after receiving payment confirmation.", + "proofPaymentHeader_online": "公共啟事: 已完成校對並已選擇付款方式", + "proofPaymentBody_online": "我們已收到以下申請編號的稿件校對確認和印刷指示。
{appNo}", + "proofPaymentBody_online2": "請選擇即時完成付款,或在{paymentDeadline}前完成付款。", + "proofPaymentBody_online3": "我們將在收到付款確認通知後處理刊登事宜。",