瀏覽代碼

fix bug

master
Anna Ho 1 年之前
父節點
當前提交
ec4ba41bee
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. +7
    -7
      src/pages/Proof/Reply_Public/ProofForm.js

+ 7
- 7
src/pages/Proof/Reply_Public/ProofForm.js 查看文件

@@ -77,11 +77,11 @@ const FormPanel = ({ formData }) => {
setIsWarningPopUp(true); setIsWarningPopUp(true);
return; return;
} }
if(paymentMethod=="demandNote"){
paymentMethod = isOverDnReviseDeadline()?"":paymentMethod;
}else if(paymentMethod=="office"){
paymentMethod = isOverNpgoReviseDeadline?"":paymentMethod;
let pm = paymentMethod;
if(pm=="demandNote"){
pm = isOverDnReviseDeadline()?"":pm;
}else if(pm=="office"){
pm = isOverNpgoReviseDeadline?"":pm;
} }


if (actionValue == false && isOverReviseDeadline()) { if (actionValue == false && isOverReviseDeadline()) {
@@ -89,7 +89,7 @@ const FormPanel = ({ formData }) => {
setIsWarningPopUp(true); setIsWarningPopUp(true);
return; return;
} }
else if(formData.creditor == false && paymentMethod == "") {
else if(formData.creditor == false && pm == "") {
setWarningText(intl.formatMessage({ id: 'MSG.plzSelectPaymentMethod' })); setWarningText(intl.formatMessage({ id: 'MSG.plzSelectPaymentMethod' }));
setIsWarningPopUp(true); setIsWarningPopUp(true);
return; return;
@@ -109,7 +109,7 @@ const FormPanel = ({ formData }) => {
id: data.id, id: data.id,
action: actionValue, action: actionValue,
vaild: values.vaild, vaild: values.vaild,
paymentMethod: paymentMethod
paymentMethod: pm
}, },
files: attachments ? attachments : [], files: attachments ? attachments : [],
onSuccess: function (responseData) { onSuccess: function (responseData) {


Loading…
取消
儲存