- 부가서비스 접근 권한 경고 다이얼로그 주석 해제
- 계좌성명 조회 신청 후 상세 페이지 표시 관련 코드 주석으로 추가
This commit is contained in:
@@ -85,7 +85,12 @@ export interface ExtensionAccountHolderSearchRequestParams extends ExtensionRequ
|
||||
|
||||
export interface ExtensionAccountHolderSearchRequestResponse {
|
||||
status: boolean;
|
||||
data?: string;
|
||||
data?: {
|
||||
tid?: string;
|
||||
accountName?: string;
|
||||
searchStatus?: string;
|
||||
resultMessage?: string;
|
||||
};
|
||||
error?: {
|
||||
root?: string;
|
||||
errKey?: string;
|
||||
|
||||
@@ -1019,7 +1019,8 @@
|
||||
"bank": "Bank",
|
||||
"select": "Select",
|
||||
"request": "Request",
|
||||
"searchRequest": "Search Request"
|
||||
"searchRequest": "Search Request",
|
||||
"searchRequestSuccess": "Search Reqeust Complete"
|
||||
},
|
||||
"faceAuth": {
|
||||
"authentication": "Authentication",
|
||||
|
||||
@@ -1019,7 +1019,8 @@
|
||||
"bank": "은행",
|
||||
"select": "선택",
|
||||
"request": "신청",
|
||||
"searchRequest": "조회 신청"
|
||||
"searchRequest": "조회 신청",
|
||||
"searchRequestSuccess": "조회 신청을 성공하였습니다."
|
||||
},
|
||||
"faceAuth": {
|
||||
"authentication": "인증",
|
||||
|
||||
@@ -200,9 +200,9 @@ export const AccountHolderAuthPage = () => {
|
||||
sortType
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -214,9 +214,9 @@ export const AccountHolderSearchPage = () => {
|
||||
sortType
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -9,16 +9,21 @@ import {
|
||||
useSetOnBack
|
||||
} from '@/widgets/sub-layout/use-sub-layout';
|
||||
import { useExtensionAccountHolderSearchRequestMutation } from '@/entities/additional-service/api/account-holder-search/use-extension-account-holder-search-reqeust-mutation';
|
||||
import { ExtensionAccountHolderSearchRequestParams } from '@/entities/additional-service/model/account-holder-search/types';
|
||||
import { ExtensionAccountHolderSearchRequestParams, ExtensionAccountHolderSearchRequestResponse } from '@/entities/additional-service/model/account-holder-search/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { NumericFormat } from 'react-number-format';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
import { AccountHolderSearchDetail } from '@/entities/additional-service/ui/account-holder-search/detail/account-holder-search-detail';
|
||||
|
||||
export const AccountHolderSearchRequestPage = () => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
// const [detailOn, setDetailOn] = useState<boolean>(false);
|
||||
// const [detailMid, setDetailMid] = useState<string>('');
|
||||
// const [detailTid, setDetailTid] = useState<string>('');
|
||||
|
||||
const userMid = useStore.getState().UserStore.mid;
|
||||
const midOptionsWithoutGids = useStore.getState().UserStore.selectOptionsMidsWithoutGids;
|
||||
const bankList = useStore.getState().CommonStore.bankList
|
||||
@@ -54,21 +59,31 @@ export const AccountHolderSearchRequestPage = () => {
|
||||
setFormData({ ...formData, [field]: value });
|
||||
};
|
||||
|
||||
// const setDetailData = (response: ExtensionAccountHolderSearchRequestResponse) => {
|
||||
// if (formData.mid) {
|
||||
// setDetailMid(formData.mid);
|
||||
// }
|
||||
// if (response?.data?.tid) {
|
||||
// setDetailTid(response.data.tid);
|
||||
// }
|
||||
// setDetailOn(true);
|
||||
// }
|
||||
|
||||
const onClickToRequest = () => {
|
||||
const reuqestParams: ExtensionAccountHolderSearchRequestParams = {
|
||||
const requestParams: ExtensionAccountHolderSearchRequestParams = {
|
||||
mid: formData.mid,
|
||||
bankCode: formData.bankCode,
|
||||
accountNo: formData.accountNo
|
||||
}
|
||||
|
||||
console.log("Account holder search request params: ", reuqestParams);
|
||||
|
||||
accountHolderSearchRequest(reuqestParams)
|
||||
accountHolderSearchRequest(requestParams)
|
||||
.then((response) => {
|
||||
if (response.status) {
|
||||
console.log("Account holder search request success: ", response.status)
|
||||
snackBar(t('common.requestSuccess'))
|
||||
snackBar(t('additionalService.accountHolderSearch.searchRequestSuccess'))
|
||||
navigate(PATHS.additionalService.accountHolderSearch.list);
|
||||
//setDetailData(response)
|
||||
} else {
|
||||
const errorMessage = response.error?.message || t('common.requestFailed');
|
||||
snackBar(`[${t('common.failed')}] ${errorMessage}`);
|
||||
@@ -88,7 +103,8 @@ export const AccountHolderSearchRequestPage = () => {
|
||||
return (
|
||||
formData.mid.trim() !== '' &&
|
||||
formData.bankCode.trim() !== '' &&
|
||||
formData.accountNo.trim() !== ''
|
||||
formData.accountNo.trim() !== '' &&
|
||||
formData.accountNo.length > 9
|
||||
)
|
||||
}
|
||||
|
||||
@@ -164,6 +180,12 @@ export const AccountHolderSearchRequestPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{/* <AccountHolderSearchDetail
|
||||
detailOn={detailOn}
|
||||
setDetailOn={setDetailOn}
|
||||
mid={detailMid}
|
||||
tid={detailTid}
|
||||
></AccountHolderSearchDetail> */}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -277,9 +277,9 @@ export const AlimtalkListPage = () => {
|
||||
sendCl
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -224,9 +224,9 @@ export const ArsListPage = () => {
|
||||
sortType
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -233,9 +233,9 @@ export const FaceAuthPage = () => {
|
||||
sortType
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -30,9 +30,9 @@ export const FundAccountTransferListPage = () => {
|
||||
navigate(PATHS.home);
|
||||
});
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -196,9 +196,9 @@ export const KeyInPaymentPage = () => {
|
||||
sortType
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
|
||||
@@ -267,9 +267,9 @@ export const PayoutListPage = () => {
|
||||
return rs;
|
||||
};
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -202,9 +202,9 @@ export const SmsPaymentPage = () => {
|
||||
smsCl
|
||||
]);
|
||||
|
||||
// if (!hasAccess) {
|
||||
// return <AccessDeniedDialog />;
|
||||
// }
|
||||
if (!hasAccess) {
|
||||
return <AccessDeniedDialog />;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user