- 자금이체_처리결과: 리스트,필터,상세정보 수정

This commit is contained in:
HyeonJongKim
2025-10-17 17:08:44 +09:00
parent 3886e93b49
commit ec16b6ec11
11 changed files with 360 additions and 327 deletions

View File

@@ -7,6 +7,12 @@ export enum AccountHolderSearchType {
ACCOUNT_NO = 'ACCOUNT_NO'
}
export enum AccountHolderResultStatus {
ALL = "ALL",
SUCCESS = "SUCCESS",
FAIl = "FAIL"
}
export interface AccountHolderSearchListItem {
tid?: string;
accountNo?: string;

View File

@@ -1,33 +1,49 @@
import {
FundAccountReceiveAccountNameNo,
FundAccountResultType,
FundAccountResultStatus,
FundAccountSearchDateType,
FundAccountStatus
} from './types';
export const FundAccountStatusBtnGroup = [
{name: '전체', value: FundAccountStatus.ALL},
{name: '등록완료', value: FundAccountStatus.REGIST_COMPLETE},
{name: '이체요청', value: FundAccountStatus.TRANSFER_REQUEST},
{name: '요청성공', value: FundAccountStatus.REQUEST_SUCCESS},
{name: '요청실패', value: FundAccountStatus.REQUEST_FAIL}
{ name: '전체', value: FundAccountStatus.ALL },
{ name: '등록완료', value: FundAccountStatus.REGIST_COMPLETE },
{ name: '이체요청', value: FundAccountStatus.TRANSFER_REQUEST },
{ name: '요청성공', value: FundAccountStatus.REQUEST_SUCCESS },
{ name: '요청실패', value: FundAccountStatus.REQUEST_FAIL }
];
export const FundAccountResultStatusBtnGroup = [
{ name: '전체', value: FundAccountResultStatus.ALL },
{ name: '요청', value: FundAccountResultStatus.REQUEST },
{ name: '성공', value: FundAccountResultStatus.SUCCESS },
{ name: '실패', value: FundAccountResultStatus.FAIL },
]
export const getFundAccountStatusName = (status?: string): string => {
if (!status) return '';
const found = FundAccountStatusBtnGroup.find(item => item.value === status);
return found ? found.name : status;
};
export const FundAccountResultTypeBtnGroup = [
{name: '요청일자', value: FundAccountResultType.RequestDate},
{name: '이체일자', value: FundAccountResultType.ProcessDate}
export const getFundAccountResultStatusName = (status?: string): string => {
if (!status) return '';
const found = FundAccountResultStatusBtnGroup.find(item => item.value === status);
return found ? found.name : status;
}
export const FundAccountResultSearchDateTypeBtnGroup = [
{ name: '요청일자', value: FundAccountSearchDateType.REQUEST_DATE },
{ name: '이체일자', value: FundAccountSearchDateType.APPLICATION_DATE }
];
export const FundAccountReceiveAccountNameNoOptionsGroup = [
{name: '수취인', value: FundAccountReceiveAccountNameNo.ReceiveAccountName },
{name: '계좌번호', value: FundAccountReceiveAccountNameNo.ReceiveAccountNo },
{ name: '수취인', value: FundAccountReceiveAccountNameNo.ReceiveAccountName },
{ name: '계좌번호', value: FundAccountReceiveAccountNameNo.ReceiveAccountNo },
];
export const FundAccountReceiveBankCodeOptionsGroup = [
{name: 'KB', value: 'KB'}
{ name: 'KB', value: 'KB' }
];

View File

@@ -4,10 +4,15 @@ export enum FundAccountTabKeys {
TransferList = 'TransferList',
ResultList = 'ResultList'
};
export enum FundAccountResultType {
RequestDate = 'RequestDate',
ProcessDate = 'ProcessDate',
export enum FundAccountSearchDateType {
REQUEST_DATE = 'REQUEST_DATE',
APPLICATION_DATE = 'APPLICATION_DATE'
};
export interface FundAccountTabProps {
activeTab: FundAccountTabKeys;
};
@@ -43,6 +48,13 @@ export enum FundAccountStatus {
REQUEST_SUCCESS = 'REQUEST_SUCCESS',
REQUEST_FAIL = 'REQUEST_FAIL'
};
export enum FundAccountResultStatus {
ALL = '',
REQUEST = 'REQUEST',
SUCCESS = 'SUCCESS',
FAIL = 'FAIL'
}
export interface ExtensionFundAccountTransferListParams {
mid: string;
searchCl: string;
@@ -76,11 +88,13 @@ export interface FundAccountTransferContentItem {
};
export interface ExtensionFundAccountTransferExcelParams {
mid: string;
email: string;
fromDate: string;
toDate: string;
status: FundAccountStatus;
};
export interface ExtensionFundAccountTransferExcelResponse {};
export interface ExtensionFundAccountTransferExcelResponse {
status: boolean;
};
export interface ExtensionFundAccountTransferDetailParams {
mid: string;
tid: string;
@@ -100,25 +114,27 @@ export interface ExtensionFundAccountTransferDetailResponse {
};
export interface ExtensionFundAccountResultSummaryParams {
mid: string;
fromDate: string;
toDate: string;
};
}
export interface ExtensionFundAccountResultSummaryResponse {
totalCount: number;
totalAmount: number;
successCount: number;
successAmount: number;
failCount: number;
failAmount: number;
pendingCount: number;
pendingAmount: number;
totalRequestCount: number;
totalRequestAmount: number;
totalSuccessCount: number;
totalSuccessAmount: number;
totalFailCount: number;
totalFailAmount: number;
};
// 자금이체_결과조회 Request
export interface ExtensionFundAccountResultListParams {
mid?: string;
searchCl?: string;
searchValue?: string;
searchDateType?: FundAccountSearchDateType;
fromDate?: string;
toDate?: string;
status?: FundAccountStatus;
pagination?: DefaultRequestPagination;
bankCode?: string;
resultStatus?: FundAccountResultStatus;
page?: DefaultRequestPagination;
};
export interface ExtensionFundAccountResultListResponse extends DefaulResponsePagination {
content: Array<FundAccountResultContent>;
@@ -129,40 +145,41 @@ export interface FundAccountResultContent {
};
export interface FundAccountResultContentItem {
tid?: string;
mid?: string;
requestDate?: string;
transferAmount?: number;
receiveBankName?: string;
receiveAccountNo?: string;
receiveAccountName?: string;
status?: string;
processDate?: string;
failReason?: string;
applicationDate?: string;
accountName?: string;
accountNo?: string;
amount?: number;
resultStatus?: string;
resultMessage?: string;
};
export interface ExtensionFundAccountResultExcelParams {
mid: string;
email: string;
searchDateType: FundAccountSearchDateType
fromDate: string;
toDate: string;
status: FundAccountStatus;
};
export interface ExtensionFundAccountResultExcelResponse {};
export interface ExtensionFundAccountResultExcelResponse {
status: boolean;
};
export interface ExtensionFundAccountResultDetailParams {
mid: string;
tid: string;
};
export interface ExtensionFundAccountResultDetailResponse {
tid: string;
requestDate: string;
transferAmount: number;
receiveBankName: string;
receiveAccountNo: string;
receiveAccountName: string;
status: FundAccountStatus;
processDate: string;
mid: string;
moid: string;
amount: number;
accountName: string;
accountNo: string;
applicationDate: string;
requsetDate: string;
resultMessage: string;
failReason: string;
fee: number;
afterBalance: number;
transferMemo: string;
bankTid: string;
bankCode: string;
};
export interface ExtensionFundAccountBalanceParams {
mid: string;