From e2d5eda27aee33fb2ed5d17fe69aa4f06793b1f9 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 10 May 2024 17:25:40 +0800 Subject: [PATCH] paymentMethod --- src/pages/Proof/Reply_Public/ProofForm.js | 4 ++++ src/translations/en.json | 1 + src/translations/zh-CN.json | 1 + src/translations/zh-HK.json | 1 + 4 files changed, 7 insertions(+) diff --git a/src/pages/Proof/Reply_Public/ProofForm.js b/src/pages/Proof/Reply_Public/ProofForm.js index a6df980..443a86f 100644 --- a/src/pages/Proof/Reply_Public/ProofForm.js +++ b/src/pages/Proof/Reply_Public/ProofForm.js @@ -82,6 +82,10 @@ const FormPanel = ({ formData }) => { setWarningText(intl.formatMessage({ id: 'MSG.overReviseDeadline' })); setIsWarningPopUp(true); return; + }else if ( formData.creditor==false && paymentMethod=="") { + setWarningText(intl.formatMessage({ id: 'MSG.plzSelectPaymentMethod' })); + setIsWarningPopUp(true); + return; } if (!actionValue) { diff --git a/src/translations/en.json b/src/translations/en.json index c239299..347357f 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -73,6 +73,7 @@ "MSG.proofOutOfTime": "Response out of time, please apply again.", "MSG.overReviseDeadline": "Over Revise Deadline", + "MSG.plzSelectPaymentMethod": "Please select Payment Method", "MSG.plzSelectApp": "Please select application", "MSG.actionFail": "Action failed", "MSG.paymentHolded": "Application number {appNo} is currently in the process of payment. If the payment is unsuccessful, please try again after 20 minutes. We apologise for any inconvenience caused.", diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json index 20200c5..81d1a77 100644 --- a/src/translations/zh-CN.json +++ b/src/translations/zh-CN.json @@ -98,6 +98,7 @@ "MSG.proofOutOfTime": "回复逾时,请重新申请。", "MSG.overReviseDeadline": "超过修改期限", + "MSG.plzSelectPaymentMethod": "请选择付款方式", "MSG.plzSelectApp": "请选择公共启事。", "MSG.actionFail": "行动失败", "MSG.paymentHolded": "申请编号 {appNo} 已正在付款的流程中,如相关付款没有成功,请于20分钟后再尝试付款,不便之处,请见谅!", diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json index 837c7b5..f75f3ce 100644 --- a/src/translations/zh-HK.json +++ b/src/translations/zh-HK.json @@ -99,6 +99,7 @@ "MSG.proofOutOfTime": "回覆逾時,請重新申請。", "MSG.overReviseDeadline": "超過修改期限", "MSG.plzSelectApp": "請選擇公共啟事。", + "MSG.plzSelectPaymentMethod": "請選擇付款方式", "MSG.actionFail": "行動失敗", "MSG.paymentHolded": "申請編號 {appNo} 已正在付款的流程中,如相關付款沒有成功,請於20分鐘後再嘗試付款,不便之處,請見諒!", "MSG.pay_credity1": "我們已收到你已確定申請編號: {appNo} 的稿件校對確定及可付印的指示,並將安排刊登於憲報 期數 {year} 年 {issueVolume} 卷 第 {issueNo} 期內。",