Browse Source

update check not accept btn checking and ui update

CR003
Alex Cheung 1 year ago
parent
commit
a91c53694e
4 changed files with 39 additions and 17 deletions
  1. +18
    -3
      src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js
  2. +19
    -12
      src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
  3. +1
    -1
      src/translations/zh-CN.json
  4. +1
    -1
      src/translations/zh-HK.json

+ 18
- 3
src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js View File

@@ -352,7 +352,11 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
}}><FormattedMessage id="viewDetail" /></a> }}><FormattedMessage id="viewDetail" /></a>
</td> </td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 2:00 p.m.</td> <td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 2:00 p.m.</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 2:30 p.m.</td>
<td style={tabelStyle}>
<FormattedMessage id="payOnlineRemark" values={{
date: DateUtils.dateFormat(closeDate, dft) + ' 2:30 p.m.'
}} />
</td>
</tr> </tr>
<tr> <tr>
<td style={tabelStyle}><FormattedMessage id="payDn" /> <td style={tabelStyle}><FormattedMessage id="payDn" />
@@ -371,13 +375,20 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
<li><FormattedMessage id="store" /></li> <li><FormattedMessage id="store" /></li>
<li><FormattedMessage id="post" /></li> <li><FormattedMessage id="post" /></li>
</ul> </ul>
<Typography variant="h6">
<div style={{ padding: 12 }} dangerouslySetInnerHTML={{ __html: intl.formatMessage({ id: "proofNote" }) }} />
</Typography>
</> </>
); );
setIsWarningPopUp(true); setIsWarningPopUp(true);
}}><FormattedMessage id="viewDetail" /></a> }}><FormattedMessage id="viewDetail" /></a>
</td> </td>
<td style={tabelStyle}>{DateUtils.dateFormat(closingDateOff, dft)} 5:00 p.m.</td> <td style={tabelStyle}>{DateUtils.dateFormat(closingDateOff, dft)} 5:00 p.m.</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 12:00 p.m.</td>
<td style={tabelStyle}>
<FormattedMessage id="payDnRemark" values={{
date: DateUtils.dateFormat(closeDate, dft) + " 12:30 p.m."
}} />
</td>
</tr> </tr>
<tr> <tr>
<td style={tabelStyle}><FormattedMessage id="payNPGO" /> <td style={tabelStyle}><FormattedMessage id="payNPGO" />
@@ -395,7 +406,11 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
}}><FormattedMessage id="viewDetail" /></a> }}><FormattedMessage id="viewDetail" /></a>
</td> </td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 12:00 p.m.</td> <td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 12:00 p.m.</td>
<td style={tabelStyle}>{DateUtils.dateFormat(closeDate, dft)} 12:30 p.m.</td>
<td style={tabelStyle}>
<FormattedMessage id="payNPGORemark" values={{
date: DateUtils.dateFormat(closeDate, dft) + " 12:30 p.m."
}} />
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>


+ 19
- 12
src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js View File

@@ -46,6 +46,7 @@ const ApplicationDetailCard = (
const [orgDetail, setOrgDetail] = useState({}); const [orgDetail, setOrgDetail] = useState({});
const [verified, setVerified] = useState(null); const [verified, setVerified] = useState(null);
const [fileDetail, setfileDetail] = useState({}); const [fileDetail, setfileDetail] = useState({});
const [proofId, setProofId] = useState(null);
const [onReady, setOnReady] = useState(false); const [onReady, setOnReady] = useState(false);


const { register, handleSubmit } = useForm() const { register, handleSubmit } = useForm()
@@ -77,6 +78,7 @@ const ApplicationDetailCard = (
setCompanyName(applicationDetailData.companyName); setCompanyName(applicationDetailData.companyName);
setVerified(applicationDetailData.userData.verifiedBy ? true : false) setVerified(applicationDetailData.userData.verifiedBy ? true : false)
setfileDetail(applicationDetailData.fileDetail); setfileDetail(applicationDetailData.fileDetail);
setProofId(applicationDetailData.proofId);
// setReload(false) // setReload(false)
} }


@@ -255,18 +257,23 @@ const ApplicationDetailCard = (
<ReplayIcon /> <ReplayIcon />
<Typography ml={1} variant="h5"> Re-Submit</Typography> <Typography ml={1} variant="h5"> Re-Submit</Typography>
</Button> </Button>
<Button
// size="large"
variant="contained"
onClick={notAcceptedClick()}
color="error"
sx={{
textTransform: 'capitalize',
alignItems: 'end',
}}>
<CloseIcon />
<Typography ml={1} variant="h5">Not Accept</Typography>
</Button>
{
proofId == null || proofId == 0?
<Button
// size="large"
variant="contained"
onClick={notAcceptedClick()}
color="error"
sx={{
textTransform: 'capitalize',
alignItems: 'end',
}}>
<CloseIcon />
<Typography ml={1} variant="h5">Not Accept</Typography>
</Button>
:
null
}
</> : </> :
(currentApplicationDetailData.status == "confirmed" && currentApplicationDetailData.creditor == 1) ? (currentApplicationDetailData.status == "confirmed" && currentApplicationDetailData.creditor == 1) ?
<> <>


+ 1
- 1
src/translations/zh-CN.json View File

@@ -41,7 +41,7 @@


"confirmingDealine": "确认校对的截止日期", "confirmingDealine": "确认校对的截止日期",
"PaymentCoonpletDealine": "付款截止日期", "PaymentCoonpletDealine": "付款截止日期",
"payOnline":"透过此系统网上付",
"payOnline":"透过此系统网上付",
"payDn":"透过发出一般缴款单付款", "payDn":"透过发出一般缴款单付款",
"payNPGO":"在北角政府合署收款处付款", "payNPGO":"在北角政府合署收款处付款",
"paymentMeans":"付款方式", "paymentMeans":"付款方式",


+ 1
- 1
src/translations/zh-HK.json View File

@@ -41,7 +41,7 @@
"confirmingDealine": "確認校對的截止日期", "confirmingDealine": "確認校對的截止日期",
"PaymentCoonpletDealine": "付款截止日期", "PaymentCoonpletDealine": "付款截止日期",
"payOnline":"透過此系統網上付",
"payOnline":"透過此系統網上付",
"payDn":"透過發出一般繳款單付款", "payDn":"透過發出一般繳款單付款",
"payNPGO":"在北角政府合署收款處付款", "payNPGO":"在北角政府合署收款處付款",
"paymentMeans":"付款方式", "paymentMeans":"付款方式",


Loading…
Cancel
Save