|
@@ -26,6 +26,7 @@ import { notifyActionSuccess } from 'utils/CommonFunction'; |
|
|
import { PNSPS_BUTTON_THEME } from "themes/buttonConst"; |
|
|
import { PNSPS_BUTTON_THEME } from "themes/buttonConst"; |
|
|
import { ThemeProvider } from "@emotion/react"; |
|
|
import { ThemeProvider } from "@emotion/react"; |
|
|
import { FormattedMessage, useIntl } from "react-intl"; |
|
|
import { FormattedMessage, useIntl } from "react-intl"; |
|
|
|
|
|
import {isDummyLoggedIn} from "utils/Utils" |
|
|
|
|
|
|
|
|
const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); |
|
|
const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); |
|
|
//import * as ProofStatus from "utils/statusUtils/ProofStatus"; |
|
|
//import * as ProofStatus from "utils/statusUtils/ProofStatus"; |
|
@@ -58,6 +59,9 @@ const FormPanel = ({ formData }) => { |
|
|
React.useEffect(() => { |
|
|
React.useEffect(() => { |
|
|
if (formData) { |
|
|
if (formData) { |
|
|
setData(formData); |
|
|
setData(formData); |
|
|
|
|
|
if (isDummyLoggedIn()){ |
|
|
|
|
|
set_paymentMethod("demandNote") |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, [formData]); |
|
|
}, [formData]); |
|
|
|
|
|
|
|
@@ -284,99 +288,164 @@ const FormPanel = ({ formData }) => { |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
actionValue && formData.creditor==false ? |
|
|
actionValue && formData.creditor==false ? |
|
|
<Grid item xs={12} sx={{ mb: 1, }}> |
|
|
|
|
|
<table style={tabelStyle}> |
|
|
|
|
|
<tr style={tabelStyle}> |
|
|
|
|
|
<th style={tabelStyle} width="50" align="left"></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMethodMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="confirmingDealine" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="PaymentCoonpletDealine" /></th> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "online"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("online") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payOnline" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="fps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="card" /></li> |
|
|
|
|
|
<li><FormattedMessage id="pps" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:30 p.m.</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
{ |
|
|
|
|
|
isOverDnReviseDeadline() ? |
|
|
|
|
|
<></> : |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "demandNote"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("demandNote") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payDn" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="atm" /></li> |
|
|
|
|
|
<li><FormattedMessage id="pps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="phoneBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eCheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="fps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="hkpo" /></li> |
|
|
|
|
|
<li><FormattedMessage id="store" /></li> |
|
|
|
|
|
<li><FormattedMessage id="post" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.beforeClosingDate, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payDnRemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
} |
|
|
|
|
|
{ |
|
|
|
|
|
isOverNpgoReviseDeadline() ? |
|
|
|
|
|
<></> : |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "office"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("office") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payNPGO" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="cheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="cash" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payNPGORemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
isDummyLoggedIn()? |
|
|
|
|
|
<Grid item xs={12} sx={{ mb: 1, }}> |
|
|
|
|
|
<table style={tabelStyle}> |
|
|
|
|
|
<tr style={tabelStyle}> |
|
|
|
|
|
<th style={tabelStyle} width="50" align="left"></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMethodMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="confirmingDealine" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="PaymentCoonpletDealine" /></th> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "demandNote"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("demandNote") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payDn" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="atm" /></li> |
|
|
|
|
|
<li><FormattedMessage id="pps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="phoneBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eCheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="fps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="hkpo" /></li> |
|
|
|
|
|
<li><FormattedMessage id="store" /></li> |
|
|
|
|
|
<li><FormattedMessage id="post" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.beforeClosingDate, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payDnRemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "office"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("office") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payNPGO" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="cheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="cash" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payNPGORemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
|
|
|
</Grid>: |
|
|
|
|
|
<Grid item xs={12} sx={{ mb: 1, }}> |
|
|
|
|
|
<table style={tabelStyle}> |
|
|
|
|
|
<tr style={tabelStyle}> |
|
|
|
|
|
<th style={tabelStyle} width="50" align="left"></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="400" align="left"><FormattedMessage id="paymentMethodMeans" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="confirmingDealine" /></th> |
|
|
|
|
|
<th style={tabelStyle} width="300" align="left"><FormattedMessage id="PaymentCoonpletDealine" /></th> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "online"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("online") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payOnline" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="fps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="card" /></li> |
|
|
|
|
|
<li><FormattedMessage id="pps" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 2:30 p.m.</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
{ |
|
|
|
|
|
isOverDnReviseDeadline() ? |
|
|
|
|
|
<></> : |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "demandNote"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("demandNote") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payDn" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="atm" /></li> |
|
|
|
|
|
<li><FormattedMessage id="pps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="phoneBank" /></li> |
|
|
|
|
|
<li><FormattedMessage id="eCheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="fps" /></li> |
|
|
|
|
|
<li><FormattedMessage id="hkpo" /></li> |
|
|
|
|
|
<li><FormattedMessage id="store" /></li> |
|
|
|
|
|
<li><FormattedMessage id="post" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.beforeClosingDate, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payDnRemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
} |
|
|
|
|
|
{ |
|
|
|
|
|
isOverNpgoReviseDeadline() ? |
|
|
|
|
|
<></> : |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<Checkbox |
|
|
|
|
|
checked={paymentMethod == "office"} |
|
|
|
|
|
onChange={() => { |
|
|
|
|
|
set_paymentMethod("office") |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}><FormattedMessage id="payNPGO" /></td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<ul> |
|
|
|
|
|
<li><FormattedMessage id="cheque" /></li> |
|
|
|
|
|
<li><FormattedMessage id="cash" /></li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td style={tabelStyle}>{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m.</td> |
|
|
|
|
|
<td style={tabelStyle}> |
|
|
|
|
|
<FormattedMessage id="payNPGORemark" values={{ |
|
|
|
|
|
date: DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" })) + " 12:30 p.m." |
|
|
|
|
|
}} /> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
|
|
|
: |
|
|
: |
|
|
isOverReviseDeadline() ? |
|
|
isOverReviseDeadline() ? |
|
|