diff --git a/src/auth/utils.js b/src/auth/utils.js
index 125c9fe..169fb3f 100644
--- a/src/auth/utils.js
+++ b/src/auth/utils.js
@@ -12,6 +12,8 @@ export const hostPath = `http://${hostname}:${hostPort}`;
export const apiPath = window.location.href.match("localhost:3000")?`${hostPath}/api`:(window.location.href.match(":3000")? "http://"+window.location.hostname+":8090/api":`/api`);
export const paymentPath = window.location.href.match("localhost:3000")?`${hostPath}/payment`:`/payment`;
+export const delBugMode = true;
+
/**
* Testing:
* Domain: apigw-isit.staging-eid.gov.hk
diff --git a/src/pages/DemandNote/Create/SearchForm.js b/src/pages/DemandNote/Create/SearchForm.js
index c22bcc9..51f7dae 100644
--- a/src/pages/DemandNote/Create/SearchForm.js
+++ b/src/pages/DemandNote/Create/SearchForm.js
@@ -243,7 +243,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p
defaultValue={dueDate}
InputProps={{ inputProps: { min: DateUtils.dateStr(new Date()) } }}
onChange={(newValue) => {
- setDueDate(DateUtils.dateStr(newValue))
+ setDueDate(newValue.currentTarget.value)
}}
InputLabelProps={{
shrink: true
diff --git a/src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js b/src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
index 25095cd..deb37a3 100644
--- a/src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
+++ b/src/pages/PublicNotice/Details_GLD/ApplicationDetailCard.js
@@ -8,6 +8,7 @@ import {
Stack,
Dialog, DialogTitle, DialogContent, DialogActions, InputAdornment,
} from '@mui/material';
+import {delBugMode} from "auth/utils";
const MainCard = Loadable(lazy(() => import('components/MainCard')));
import { useForm } from "react-hook-form";
import {
@@ -93,6 +94,11 @@ const ApplicationDetailCard = (
setStatus("notAccepted")
};
+ const setCompleteDisable=()=>{
+ if(delBugMode) return false;
+ return (new Date()).getTime() < DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate).getTime();
+ }
+
const complatedClick = () => () => {
let issueDate = DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate);
let current = new Date();
@@ -214,6 +220,7 @@ const ApplicationDetailCard = (
// size="large"
variant="contained"
onClick={doPublish()}
+ disabled={setCompleteDisable()}
sx={{
textTransform: 'capitalize',
alignItems: 'end',
@@ -230,7 +237,7 @@ const ApplicationDetailCard = (
// size="large"
variant="contained"
onClick={complatedClick()}
- disabled={(new Date()).getTime() < DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate).getTime()}
+ disabled={setCompleteDisable()}
sx={{
textTransform: 'capitalize',
alignItems: 'end',
diff --git a/src/pages/authentication/IAmSmartRegister.js b/src/pages/authentication/IAmSmartRegister.js
index a37e7e1..afb1a41 100644
--- a/src/pages/authentication/IAmSmartRegister.js
+++ b/src/pages/authentication/IAmSmartRegister.js
@@ -100,7 +100,7 @@ const Register = () => {
const handleNext = async () => {
if (!idNo) {
- notifyActionError("資料,請返回注冊頁面。")
+ notifyActionError(intl.formatMessage({id: 'iAmSmartNoIdNoMsg'}))
return;
}
const captchaTest = await handleCaptcha();
@@ -169,7 +169,7 @@ const Register = () => {
-
+
) : (
diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js
index 51f452c..d628179 100644
--- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js
+++ b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js
@@ -436,7 +436,7 @@ const CustomFormWizard = (props) => {
- 香港身份證: {iAmSmartData.idNo + "(" + iAmSmartData.checkDigit + ")"}
+ : {iAmSmartData.idNo + "(" + iAmSmartData.checkDigit + ")"}
diff --git a/src/pages/iAmSmart/DirectLoginCallback/index.js b/src/pages/iAmSmart/DirectLoginCallback/index.js
index 1223c82..788d3ff 100644
--- a/src/pages/iAmSmart/DirectLoginCallback/index.js
+++ b/src/pages/iAmSmart/DirectLoginCallback/index.js
@@ -58,6 +58,7 @@ const Index = () => {
},
onError:(error)=>{
console.log(error);
+ window.location.assign("/iamsmart/loginFail");
}
});
}else{
diff --git a/src/translations/en.json b/src/translations/en.json
index 411de36..6033720 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -80,6 +80,7 @@
"backToLogin": "Return to login page",
"registerSubmitted": "Account application submitted successfully.",
"registerFail": "Application failed, please try again later",
+ "iAmSmartNoIdNoMsg": "Invalid information, please return to the registration page.",
"mainPage": "Main Page",
"myPublicNotice": "My Public Notices",
diff --git a/src/translations/zh-CN.json b/src/translations/zh-CN.json
index 2402ffb..3cb2af8 100644
--- a/src/translations/zh-CN.json
+++ b/src/translations/zh-CN.json
@@ -63,7 +63,7 @@
"MSG.payMsg2_2": " 前 完成缴费,我们将于收到缴费确认后处理刊出事宜。" ,
"MSG.payMsg3": "如你在宪报期数{issueYear} 年{issueVolume} 卷, 第{issueNo} 期内有多于一个公共启事的申请,你可选择完成所有此期所有稿件校对确定后,于缴费期限前在「我的公共启事」内合并付款。 ",
- "MSG.proofOutOfTime": "回覆逾时,请重新申请。",
+ "MSG.proofOutOfTime": "回复逾时,请重新申请。",
"MSG.plzSelectApp": "请选择公共启事。",
"MSG.actionFail": "行动失败",
"MSG.paymentHolded": "申请编号 {appNo} 已正在付款的流程中,如相关付款没有成功,请于20分钟后再尝试付款,不便之处,请见谅!",
@@ -79,6 +79,7 @@
"backToLogin": "返回登入页面",
"registerSubmitted": "帐户申请已成功提交。",
"registerFail": "申请失败,请稍后尝试",
+ "iAmSmartNoIdNoMsg": "无效资料,请返回注册页面。",
"mainPage": "主页",
"publicNotice": "公共启事",
@@ -90,7 +91,7 @@
"publicNoticePaymentFPSPay": "公共启事:FPS付款",
"publicNoticePaymentProofDone": "公共启事:校对完成",
"publicNoticePaymentProofDoneAndPaid": "公共启事:校对完成及付款",
- "publicNoticePaymentProofComment": "公共启事:校对回覆",
+ "publicNoticePaymentProofComment": "公共启事:校对回复",
"publicNoticePaymentProofInfo": "公共启事:校对资料",
"proofRecord": "校对记录",
"onlinePaymentHistory": "网上付款记录",
@@ -300,8 +301,8 @@
"reject": "拒绝",
"cancelledStatus": "取消",
"inProgress": "进行中",
- "replied": "已回覆",
- "pendingReply": "未回覆",
+ "replied": "已回复",
+ "pendingReply": "未回复",
"processing": "处理中",
"pendingPayment": "待付款",
"pendingPublish": "待发布",
@@ -365,12 +366,12 @@
"proofId": "校对编号",
"proofDate": "校对日期",
"proofDateFrom": "校对日期(从)",
- "replyDate": "回覆日期",
+ "replyDate": "回复日期",
"fee": "费用",
"payFeeFor": "应缴费用",
"payFor": "支付",
"payFee": "支付金額",
- "replyBefore": "此日期前回覆",
+ "replyBefore": "此日期前回复",
"applicationPublishDate": "刊出日期",
"pleaseCheckReminder": "请下载下列印刷稿档案,并仔细校对",
"payAnd": "缴费及",
@@ -378,17 +379,17 @@
"paymentDeadline": "确定付印及缴费最后限期",
"before": "前",
"page": "页",
- "proofReplyDate": "校对回覆日期",
- "proofReply": "校对回覆",
+ "proofReplyDate": "校对回复日期",
+ "proofReply": "校对回复",
"proofErrorFree": "可以付印(稿件正确)",
"proofWithError": "未能付印(需要修改)",
- "proofExpired": "回覆逾时,请重新申请。",
+ "proofExpired": "回复逾时,请重新申请。",
"sign": "签署",
"requireLoginPassword": "请输入你的登入密码",
- "submitReply": "提交回覆",
+ "submitReply": "提交回复",
"requiredUploadFix": "请上载稿件修改的档案",
"upload": "上载",
- "actionFail": "行动失败: 请检查内容并再次提交回覆",
+ "actionFail": "行动失败: 请检查内容并再次提交回复",
"issueInvalidMsg": "行动失败: 无效宪报期数,请重新申请",
"singleCol":"一格位",
"doubleCol":"二格位",
@@ -434,7 +435,7 @@
"idNo": "身份证号码",
"country": "国家",
"district": "区",
- "noRecordFound": "找不到記錄",
+ "noRecordFound": "找不到记录",
"rowsPerPage": "每页项数",
"date" : "日期",
"keyword": "关键字",
diff --git a/src/translations/zh-HK.json b/src/translations/zh-HK.json
index 86a95ae..c85dba3 100644
--- a/src/translations/zh-HK.json
+++ b/src/translations/zh-HK.json
@@ -79,6 +79,7 @@
"backToLogin": "返回登入頁面",
"registerSubmitted": "帳戶申請已成功提交。",
"registerFail": "申請失敗,請稍後嘗試",
+ "iAmSmartNoIdNoMsg": "無效資料,請返回注冊頁面。",
"mainPage": "主頁",
"publicNotice": "公共啟事",