Merge branch 'main' of https://gitea.bpsoft.co.kr/nicepayments/nice-app-web
This commit is contained in:
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionArsApplyParams,
|
ExtensionArsApplyParams,
|
||||||
ExtensionArsApplyResponse
|
ExtensionArsApplyResponse
|
||||||
} from '../model/types';
|
} from '../../model/ars/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionArsDetailParams,
|
ExtensionArsDetailParams,
|
||||||
ExtensionArsDetailResponse
|
ExtensionArsDetailResponse
|
||||||
} from '../model/types';
|
} from '../../model/ars/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionArsDownloadExcelParams,
|
ExtensionArsDownloadExcelParams,
|
||||||
ExtensionArsDownloadExcelResponse
|
ExtensionArsDownloadExcelResponse
|
||||||
} from '../model/types';
|
} from '../../model/ars/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionArsListParams,
|
ExtensionArsListParams,
|
||||||
ExtensionArsListResponse
|
ExtensionArsListResponse
|
||||||
} from '../model/types';
|
} from '../../model/ars/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionArsResendParams,
|
ExtensionArsResendParams,
|
||||||
ExtensionArsResendResponse
|
ExtensionArsResendResponse
|
||||||
} from '../model/types';
|
} from '../../model/ars/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionSmsDetailParams,
|
ExtensionSmsDetailParams,
|
||||||
ExtensionSmsDetailResponse
|
ExtensionSmsDetailResponse
|
||||||
} from '../model/types';
|
} from '../../model/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionSmsDownloadExcelParams,
|
ExtensionSmsDownloadExcelParams,
|
||||||
ExtensionSmsDownloadExcelResponse
|
ExtensionSmsDownloadExcelResponse
|
||||||
} from '../model/types';
|
} from '../../model/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionSmsListParams,
|
ExtensionSmsListParams,
|
||||||
ExtensionSmsListResponse
|
ExtensionSmsListResponse
|
||||||
} from '../model/types';
|
} from '../../model/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
@@ -5,7 +5,7 @@ import { CBDCAxiosError } from '@/shared/@types/error';
|
|||||||
import {
|
import {
|
||||||
ExtensionSmsResendParams,
|
ExtensionSmsResendParams,
|
||||||
ExtensionSmsResendResponse
|
ExtensionSmsResendResponse
|
||||||
} from '../model/types';
|
} from '../../model/types';
|
||||||
import {
|
import {
|
||||||
useMutation,
|
useMutation,
|
||||||
UseMutationOptions
|
UseMutationOptions
|
||||||
7
src/entities/additional-service/model/ars/constant.ts
Normal file
7
src/entities/additional-service/model/ars/constant.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { PaymentStatus } from './types';
|
||||||
|
|
||||||
|
export const PaymentStatusBtnGroup = [
|
||||||
|
{name: '전체', value: PaymentStatus.ALL },
|
||||||
|
{name: '결제완료', value: PaymentStatus.COMPLETE },
|
||||||
|
{name: '미결제', value: PaymentStatus.UNPAID }
|
||||||
|
];
|
||||||
86
src/entities/additional-service/model/ars/types.ts
Normal file
86
src/entities/additional-service/model/ars/types.ts
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import {
|
||||||
|
DefaulResponsePagination,
|
||||||
|
DefaultRequestPagination
|
||||||
|
} from '@/entities/common/model/types';
|
||||||
|
|
||||||
|
export enum PaymentStatus {
|
||||||
|
ALL = 'ALL',
|
||||||
|
COMPLETE = 'COMPLETE',
|
||||||
|
UNPAID = 'UNPAID'
|
||||||
|
};
|
||||||
|
export enum OrderStatus {
|
||||||
|
ALL = 'ALL',
|
||||||
|
PENDING = 'PENDING',
|
||||||
|
SUCCESS = 'SUCCESS',
|
||||||
|
EXPIRED = 'EXPIRED',
|
||||||
|
CANCELED = 'CANCELED',
|
||||||
|
};
|
||||||
|
export interface ExtensionArsResendParams {
|
||||||
|
mid: string;
|
||||||
|
tid: string;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsResendResponse {};
|
||||||
|
export interface ExtensionArsListParams {
|
||||||
|
mid: string;
|
||||||
|
moid: string;
|
||||||
|
fromDate: string;
|
||||||
|
toDate: string;
|
||||||
|
paymentStatus: string;
|
||||||
|
orderStatus: string;
|
||||||
|
minAmount: number;
|
||||||
|
maxAmount: number;
|
||||||
|
page: DefaultRequestPagination;
|
||||||
|
};
|
||||||
|
export interface ArsListContent {
|
||||||
|
tid?: string;
|
||||||
|
paymentDate?: string;
|
||||||
|
paymentStatus?: string;
|
||||||
|
orderStatus?: string;
|
||||||
|
arsPaymentMethod?: string;
|
||||||
|
amount?: number;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsListResponse extends DefaulResponsePagination {
|
||||||
|
content: Array<ArsListContent>;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsDownloadExcelParams {
|
||||||
|
mid: string;
|
||||||
|
moid: string;
|
||||||
|
fromDate: string;
|
||||||
|
toDate: string;
|
||||||
|
paymentStatus: string;
|
||||||
|
orderStatus: string;
|
||||||
|
minAmount: number;
|
||||||
|
maxAmount: number;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsDownloadExcelResponse {};
|
||||||
|
export interface ExtensionArsDetailParams {
|
||||||
|
mid: string;
|
||||||
|
tid: string;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsDetailResponse {
|
||||||
|
corpName: string;
|
||||||
|
mid: string;
|
||||||
|
arsPaymentMethod: string;
|
||||||
|
paymentStatus: string;
|
||||||
|
orderStatus: string;
|
||||||
|
paymentDate: string;
|
||||||
|
goodsName: string;
|
||||||
|
tid: string;
|
||||||
|
buyerName: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
maskPhoneNumber: string;
|
||||||
|
email: string;
|
||||||
|
smsVerificationCode: string;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsApplyParams {
|
||||||
|
mid: string;
|
||||||
|
moid: string;
|
||||||
|
goodsName: string;
|
||||||
|
amount: number;
|
||||||
|
instmntMonth: string;
|
||||||
|
buyerName: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
email: string;
|
||||||
|
arsPaymentMethod: string;
|
||||||
|
};
|
||||||
|
export interface ExtensionArsApplyResponse {};
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
import { FundAccountReceiveAccountNameNo, FundAccountStatus } from './types';
|
import {
|
||||||
|
FundAccountReceiveAccountNameNo,
|
||||||
|
FundAccountResultType,
|
||||||
|
FundAccountStatus
|
||||||
|
} from './types';
|
||||||
|
|
||||||
export const FundAccountStatusBtnGroup = [
|
export const FundAccountStatusBtnGroup = [
|
||||||
{name: '전체', value: FundAccountStatus.ALL},
|
{name: '전체', value: FundAccountStatus.ALL},
|
||||||
@@ -7,6 +11,11 @@ export const FundAccountStatusBtnGroup = [
|
|||||||
{name: '중지', value: FundAccountStatus.PENDING},
|
{name: '중지', value: FundAccountStatus.PENDING},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const FundAccountResultTypeBtnGroup = [
|
||||||
|
{name: '요청일자', value: FundAccountResultType.RequestDate},
|
||||||
|
{name: '이체일자', value: FundAccountResultType.ProcessDate}
|
||||||
|
];
|
||||||
|
|
||||||
export const FundAccountReceiveAccountNameNoOptionsGroup = [
|
export const FundAccountReceiveAccountNameNoOptionsGroup = [
|
||||||
{name: '수취인', value: FundAccountReceiveAccountNameNo.ReceiveAccountName },
|
{name: '수취인', value: FundAccountReceiveAccountNameNo.ReceiveAccountName },
|
||||||
{name: '계좌번호', value: FundAccountReceiveAccountNameNo.ReceiveAccountNo },
|
{name: '계좌번호', value: FundAccountReceiveAccountNameNo.ReceiveAccountNo },
|
||||||
@@ -14,4 +23,4 @@ export const FundAccountReceiveAccountNameNoOptionsGroup = [
|
|||||||
|
|
||||||
export const FundAccountReceiveBankCodeOptionsGroup = [
|
export const FundAccountReceiveBankCodeOptionsGroup = [
|
||||||
{name: 'KB', value: 'KB'}
|
{name: 'KB', value: 'KB'}
|
||||||
]
|
];
|
||||||
@@ -3,11 +3,14 @@ import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/c
|
|||||||
export enum FundAccountTabKeys {
|
export enum FundAccountTabKeys {
|
||||||
TransferList = 'TransferList',
|
TransferList = 'TransferList',
|
||||||
ResultList = 'ResultList'
|
ResultList = 'ResultList'
|
||||||
}
|
};
|
||||||
|
export enum FundAccountResultType {
|
||||||
|
RequestDate = 'RequestDate',
|
||||||
|
ProcessDate = 'ProcessDate',
|
||||||
|
};
|
||||||
export interface FundAccountTabProps {
|
export interface FundAccountTabProps {
|
||||||
activeTab: FundAccountTabKeys;
|
activeTab: FundAccountTabKeys;
|
||||||
}
|
};
|
||||||
|
|
||||||
export enum FundAccountReceiveAccountNameNo {
|
export enum FundAccountReceiveAccountNameNo {
|
||||||
ReceiveAccountNo = 'ReceiveAccountNo',
|
ReceiveAccountNo = 'ReceiveAccountNo',
|
||||||
@@ -98,11 +101,11 @@ export interface ExtensionFundAccountResultSummaryResponse {
|
|||||||
pendingAmount: number;
|
pendingAmount: number;
|
||||||
};
|
};
|
||||||
export interface ExtensionFundAccountResultListParams {
|
export interface ExtensionFundAccountResultListParams {
|
||||||
mid: string;
|
mid?: string;
|
||||||
fromDate: string;
|
fromDate?: string;
|
||||||
toDate: string;
|
toDate?: string;
|
||||||
status: FundAccountStatus;
|
status?: FundAccountStatus;
|
||||||
pagination: FundAccountStatus;
|
pagination?: DefaultRequestPagination;
|
||||||
};
|
};
|
||||||
export interface ExtensionFundAccountResultListResponse extends DefaulResponsePagination {
|
export interface ExtensionFundAccountResultListResponse extends DefaulResponsePagination {
|
||||||
content: Array<FundAccountResultContent>;
|
content: Array<FundAccountResultContent>;
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ export interface ExtensionPayoutListParams {
|
|||||||
fromDate: string;
|
fromDate: string;
|
||||||
toDate: string;
|
toDate: string;
|
||||||
disbursementStatus: PayoutDisbursementStatus;
|
disbursementStatus: PayoutDisbursementStatus;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
page?: DefaultRequestPagination;
|
page?: DefaultRequestPagination;
|
||||||
};
|
};
|
||||||
export interface ExtensionPayoutListResponse extends DefaulResponsePagination{
|
export interface ExtensionPayoutListResponse extends DefaulResponsePagination{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/c
|
|||||||
import { PayoutContent } from './payout/types';
|
import { PayoutContent } from './payout/types';
|
||||||
import { P } from 'node_modules/framer-motion/dist/types.d-Cjd591yU';
|
import { P } from 'node_modules/framer-motion/dist/types.d-Cjd591yU';
|
||||||
import { FundAccountResultContentItem, FundAccountTransferContentItem } from './fund-account/types';
|
import { FundAccountResultContentItem, FundAccountTransferContentItem } from './fund-account/types';
|
||||||
|
import { ArsListContent } from './ars/types';
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
// 공통 Enums 및 타입들
|
// 공통 Enums 및 타입들
|
||||||
@@ -29,10 +30,13 @@ export enum AdditionalServiceCategory {
|
|||||||
AccountHolderAuth = 'AccountHolderAuth',
|
AccountHolderAuth = 'AccountHolderAuth',
|
||||||
AccountHolderSearch = 'AccountHolderSearch',
|
AccountHolderSearch = 'AccountHolderSearch',
|
||||||
LinkPaymentHistory = 'LinkPaymentHistory',
|
LinkPaymentHistory = 'LinkPaymentHistory',
|
||||||
LinkPaymentPending = 'LinkPaymentPending',
|
LinkPaymentWait = 'LinkPaymentWait',
|
||||||
FundAccount = 'FundAccount',
|
FundAccountTransfer = 'FundAccountTransfer',
|
||||||
|
FundAccountResult = 'FundAccountResult',
|
||||||
SettlementAgency = 'SettlementAgency',
|
SettlementAgency = 'SettlementAgency',
|
||||||
|
SMSPayment = 'SMSPayment',
|
||||||
Payout = 'Payout',
|
Payout = 'Payout',
|
||||||
|
Ars = 'Ars',
|
||||||
}
|
}
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
@@ -104,6 +108,11 @@ export interface FilterProps {
|
|||||||
setFilterOn: (filterOn: boolean) => void;
|
setFilterOn: (filterOn: boolean) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ========================================
|
||||||
|
// SMS 결제 통보 관련 타입들
|
||||||
|
// ========================================
|
||||||
|
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
// 키인결제 관련 타입들
|
// 키인결제 관련 타입들
|
||||||
// ========================================
|
// ========================================
|
||||||
@@ -132,14 +141,14 @@ export interface KeyInPaymentFilterProps extends FilterProps {
|
|||||||
startDate: string;
|
startDate: string;
|
||||||
endDate: string;
|
endDate: string;
|
||||||
transactionStatus: KeyInPaymentTransactionStatus;
|
transactionStatus: KeyInPaymentTransactionStatus;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
setMid: (mid: string) => void;
|
setMid: (mid: string) => void;
|
||||||
setStartDate: (startDate: string) => void;
|
setStartDate: (startDate: string) => void;
|
||||||
setEndDate: (endDate: string) => void;
|
setEndDate: (endDate: string) => void;
|
||||||
setTransactionStatus: (transactionStatus: KeyInPaymentTransactionStatus) => void;
|
setTransactionStatus: (transactionStatus: KeyInPaymentTransactionStatus) => void;
|
||||||
setMinAmount: (minAmount: string | number) => void;
|
setMinAmount: (minAmount?: number) => void;
|
||||||
setMaxAmount: (maxAmount: string | number) => void;
|
setMaxAmount: (maxAmount?: number) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
@@ -319,7 +328,7 @@ export interface LinkPaymentHistoryFilterProps extends FilterProps {
|
|||||||
setSendMethod: (sendMethod: LinkPaymentSendMethod) => void;
|
setSendMethod: (sendMethod: LinkPaymentSendMethod) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LinkPaymentPendingSendFilterProps extends FilterProps {
|
export interface LinkPaymentWaitFilterProps extends FilterProps {
|
||||||
mid: string;
|
mid: string;
|
||||||
searchType: LinkPaymentSearchType;
|
searchType: LinkPaymentSearchType;
|
||||||
searchKeyword: string;
|
searchKeyword: string;
|
||||||
@@ -382,7 +391,8 @@ export interface ListItemProps extends
|
|||||||
KeyInPaymentListItem, AccountHolderSearchListItem,
|
KeyInPaymentListItem, AccountHolderSearchListItem,
|
||||||
AccountHolderAuthListItem, LinkPaymentHistoryListItem,
|
AccountHolderAuthListItem, LinkPaymentHistoryListItem,
|
||||||
LinkPaymentWaitListItem,
|
LinkPaymentWaitListItem,
|
||||||
PayoutContent, FundAccountTransferContentItem {
|
PayoutContent, FundAccountTransferContentItem,
|
||||||
|
ArsListContent {
|
||||||
additionalServiceCategory?: AdditionalServiceCategory;
|
additionalServiceCategory?: AdditionalServiceCategory;
|
||||||
mid?: string
|
mid?: string
|
||||||
}
|
}
|
||||||
@@ -666,8 +676,8 @@ export interface ExtensionKeyinListParams extends ExtensionRequestParams {
|
|||||||
fromDate: string;
|
fromDate: string;
|
||||||
toDate: string;
|
toDate: string;
|
||||||
paymentStatus: string;
|
paymentStatus: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
page?: DefaultRequestPagination;
|
page?: DefaultRequestPagination;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -686,8 +696,8 @@ export interface ExtensionKeyinDownloadExcelParams extends ExtensionRequestParam
|
|||||||
fromDate?: string;
|
fromDate?: string;
|
||||||
toDate?: string;
|
toDate?: string;
|
||||||
paymentStatus?: string;
|
paymentStatus?: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExtensionKeyinDownloadExcelResponse {
|
export interface ExtensionKeyinDownloadExcelResponse {
|
||||||
@@ -712,6 +722,7 @@ export interface ExtensionKeyinApplyResponse {
|
|||||||
// ========================================
|
// ========================================
|
||||||
|
|
||||||
// SMS 결제알림 확장 서비스
|
// SMS 결제알림 확장 서비스
|
||||||
|
// ========================================
|
||||||
export interface ExtensionSmsResendParams extends ExtensionRequestParams {
|
export interface ExtensionSmsResendParams extends ExtensionRequestParams {
|
||||||
tid: string;
|
tid: string;
|
||||||
}
|
}
|
||||||
@@ -721,12 +732,12 @@ export interface ExtensionSmsResendResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ExtensionSmsListParams extends ExtensionRequestParams {
|
export interface ExtensionSmsListParams extends ExtensionRequestParams {
|
||||||
tid: string;
|
|
||||||
searchCl: string;
|
searchCl: string;
|
||||||
searchValue: string;
|
searchValue: string;
|
||||||
fromDate: string;
|
fromDate: string;
|
||||||
toDate: string;
|
toDate: string;
|
||||||
smsCl: string;
|
smsCl: string;
|
||||||
|
page?: DefaultRequestPagination;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExtensionSmsListItemProps {
|
export interface ExtensionSmsListItemProps {
|
||||||
@@ -764,89 +775,10 @@ export interface ExtensionSmsDetailResponse {
|
|||||||
receiverName: string;
|
receiverName: string;
|
||||||
sendMessage: string;
|
sendMessage: string;
|
||||||
}
|
}
|
||||||
|
// ========================================
|
||||||
// ARS 카드결제 확장 서비스
|
|
||||||
export interface ExtensionArsResendParams extends ExtensionRequestParams {
|
|
||||||
tid: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsResendResponse {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsListParams extends ExtensionRequestParams {
|
|
||||||
moid: string;
|
|
||||||
fromDate: string;
|
|
||||||
toDate: string;
|
|
||||||
paymentStatus: string;
|
|
||||||
orderStatus: string;
|
|
||||||
minAmount: number;
|
|
||||||
maxAmount: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsListItemProps {
|
|
||||||
tid: string;
|
|
||||||
paymentDate: string;
|
|
||||||
paymentStatus: string;
|
|
||||||
orderStatus: string;
|
|
||||||
arsPaymentMethod: string;
|
|
||||||
amount: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsListResponse extends DefaulResponsePagination {
|
|
||||||
content: Array<ExtensionArsListItemProps>
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsDownloadExcelParams extends ExtensionRequestParams {
|
|
||||||
moid: string;
|
|
||||||
fromDate: string;
|
|
||||||
toDate: string;
|
|
||||||
paymentStatus: string;
|
|
||||||
orderStatus: string;
|
|
||||||
minAmount: number;
|
|
||||||
maxAmount: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsDownloadExcelResponse {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsDetailParams extends ExtensionRequestParams {
|
|
||||||
tid: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsDetailResponse {
|
|
||||||
corpName: string;
|
|
||||||
mid: string;
|
|
||||||
arsPaymentMethod: string;
|
|
||||||
paymentStatus: string;
|
|
||||||
orderStatus: string;
|
|
||||||
paymentDate: string;
|
|
||||||
goodsName: string;
|
|
||||||
tid: string;
|
|
||||||
buyerName: string;
|
|
||||||
phoneNumber: string;
|
|
||||||
maskPhoneNumber: string;
|
|
||||||
email: string;
|
|
||||||
smsVerificationCode: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsApplyParams extends ExtensionRequestParams {
|
|
||||||
moid: string;
|
|
||||||
goodsName: string;
|
|
||||||
amount: number;
|
|
||||||
instmntMonth: string;
|
|
||||||
buyerName: string;
|
|
||||||
phoneNumber: string;
|
|
||||||
email: string;
|
|
||||||
arsPaymentMethod: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ExtensionArsApplyResponse {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 알림톡 확장 서비스
|
// 알림톡 확장 서비스
|
||||||
|
// ========================================
|
||||||
export interface SendMerchantInfoItem {
|
export interface SendMerchantInfoItem {
|
||||||
cardApprovalFlag: boolean;
|
cardApprovalFlag: boolean;
|
||||||
cardCancelFlag: boolean;
|
cardCancelFlag: boolean;
|
||||||
|
|||||||
@@ -0,0 +1,179 @@
|
|||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { FundAccountReceiveAccountNameNo, FundAccountResultType, FundAccountStatus } from '../../model/fund-account/types';
|
||||||
|
import moment from 'moment';
|
||||||
|
import { motion } from 'framer-motion';
|
||||||
|
import { FilterMotionDuration, FilterMotionStyle, FilterMotionVariants } from '@/entities/common/model/constant';
|
||||||
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
|
import { FilterSelect } from '@/shared/ui/filter/select';
|
||||||
|
import { FilterCalendar } from '@/shared/ui/filter/calendar';
|
||||||
|
import { FundAccountReceiveAccountNameNoOptionsGroup, FundAccountReceiveBankCodeOptionsGroup, FundAccountResultTypeBtnGroup, FundAccountStatusBtnGroup } from '../../model/fund-account/constant';
|
||||||
|
import { FilterButtonGroups } from '@/shared/ui/filter/button-groups';
|
||||||
|
import { FilterSelectInput } from '@/shared/ui/filter/select-input';
|
||||||
|
|
||||||
|
export interface FundAccountResultFilterProps {
|
||||||
|
filterOn: boolean;
|
||||||
|
setFilterOn: (filterOn: boolean) => void;
|
||||||
|
mid: string;
|
||||||
|
receiveAccountName: string;
|
||||||
|
receiveAccountNo: string;
|
||||||
|
resultType: FundAccountResultType;
|
||||||
|
fromDate: string;
|
||||||
|
toDate: string;
|
||||||
|
receiveBankCode: string;
|
||||||
|
status: FundAccountStatus;
|
||||||
|
setMid: (mid: string) => void;
|
||||||
|
setReceiveAccountName: (receiveAccountName: string) => void;
|
||||||
|
setReceiveAccountNo: (receiveAccountNo: string) => void;
|
||||||
|
setResultType: (resultType: FundAccountResultType) => void;
|
||||||
|
setFromDate: (fromDate: string) => void;
|
||||||
|
setToDate: (toDate: string) => void;
|
||||||
|
setReceiveBankCode: (receiveBankCode: string) => void;
|
||||||
|
setStatus: (status: FundAccountStatus) => void;
|
||||||
|
};
|
||||||
|
export const FundAccountResultFilter = ({
|
||||||
|
filterOn,
|
||||||
|
setFilterOn,
|
||||||
|
mid,
|
||||||
|
receiveAccountName,
|
||||||
|
receiveAccountNo,
|
||||||
|
resultType,
|
||||||
|
fromDate,
|
||||||
|
toDate,
|
||||||
|
receiveBankCode,
|
||||||
|
status,
|
||||||
|
setMid,
|
||||||
|
setReceiveAccountName,
|
||||||
|
setReceiveAccountNo,
|
||||||
|
setResultType,
|
||||||
|
setFromDate,
|
||||||
|
setToDate,
|
||||||
|
setReceiveBankCode,
|
||||||
|
setStatus
|
||||||
|
}: FundAccountResultFilterProps) => {
|
||||||
|
|
||||||
|
const [filterMid, setFilterMid] = useState<string>(mid);
|
||||||
|
const [filterReceiveAccountName, setFilterReceiveAccountName] = useState<string>(receiveAccountName);
|
||||||
|
const [filterReceiveAccountNo, setFilterReceiveAccountNo] = useState<string>(receiveAccountNo);
|
||||||
|
const [filterFromDate, setFilterFromDate] = useState<string>(moment(fromDate).format('YYYY.MM.DD'));
|
||||||
|
const [filterToDate, setFilterToDate] = useState<string>(moment(toDate).format('YYYY.MM.DD'));
|
||||||
|
const [filterReceiveBankCode, setFilterReceiveBankCode] = useState<string>(receiveBankCode);
|
||||||
|
const [filterStatus, setFilterStatus] = useState<FundAccountStatus>(status);
|
||||||
|
const [filterResultType, setFilterResultType] = useState<FundAccountResultType>(resultType);
|
||||||
|
const [
|
||||||
|
filterReceiveAccountNameNoSelectValue,
|
||||||
|
setFilterReceiveAccountNameNoSelectValue
|
||||||
|
] = useState<FundAccountReceiveAccountNameNo>(FundAccountReceiveAccountNameNo.ReceiveAccountName);
|
||||||
|
const [
|
||||||
|
filterReceiveAccountNameNoInputValue,
|
||||||
|
setFilterReceiveAccountNameNoInputValue
|
||||||
|
] = useState<string>('');
|
||||||
|
|
||||||
|
const onClickToClose = () => {
|
||||||
|
setFilterOn(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToSetFilter = () => {
|
||||||
|
setMid(filterMid);
|
||||||
|
if(filterReceiveAccountNameNoSelectValue === FundAccountReceiveAccountNameNo.ReceiveAccountName){
|
||||||
|
setReceiveAccountName(filterReceiveAccountNameNoInputValue);
|
||||||
|
setReceiveAccountNo('');
|
||||||
|
}
|
||||||
|
else if(filterReceiveAccountNameNoSelectValue === FundAccountReceiveAccountNameNo.ReceiveAccountNo){
|
||||||
|
setReceiveAccountName('');
|
||||||
|
setReceiveAccountNo(filterReceiveAccountNameNoInputValue);
|
||||||
|
}
|
||||||
|
setResultType(filterResultType);
|
||||||
|
setFromDate(filterFromDate);
|
||||||
|
setToDate(filterToDate);
|
||||||
|
setReceiveBankCode(filterReceiveBankCode);
|
||||||
|
setStatus(filterStatus);
|
||||||
|
onClickToClose();
|
||||||
|
};
|
||||||
|
|
||||||
|
let MidOptions = [
|
||||||
|
{name: 'nictest001m', value: 'nictest001m'}
|
||||||
|
];
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setFilterStatus(status);
|
||||||
|
}, [status]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<motion.div
|
||||||
|
id="fullMenuModal"
|
||||||
|
className="full-menu-modal"
|
||||||
|
initial="hidden"
|
||||||
|
animate={ (filterOn)? 'visible': 'hidden' }
|
||||||
|
variants={ FilterMotionVariants }
|
||||||
|
transition={ FilterMotionDuration }
|
||||||
|
style={ FilterMotionStyle }
|
||||||
|
>
|
||||||
|
<div className="full-menu-container">
|
||||||
|
<div className="full-menu-header">
|
||||||
|
<div className="full-menu-title center">필터</div>
|
||||||
|
<div className="full-menu-actions">
|
||||||
|
<button
|
||||||
|
id="closeFullMenu"
|
||||||
|
className="full-menu-close"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={ IMAGE_ROOT + '/ico_close.svg' }
|
||||||
|
alt="닫기"
|
||||||
|
onClick={ () => onClickToClose() }
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="option-list pt-16">
|
||||||
|
<FilterSelect
|
||||||
|
title='가맹점'
|
||||||
|
selectValue={ filterMid }
|
||||||
|
selectSetter={ setFilterMid }
|
||||||
|
selectOptions={ MidOptions }
|
||||||
|
></FilterSelect>
|
||||||
|
<FilterSelectInput
|
||||||
|
title='수취인/계좌번호'
|
||||||
|
selectValue={ filterReceiveAccountNameNoSelectValue }
|
||||||
|
selectSetter={ setFilterReceiveAccountNameNoSelectValue }
|
||||||
|
selectOptions={ FundAccountReceiveAccountNameNoOptionsGroup }
|
||||||
|
inputValue={ filterReceiveAccountNameNoInputValue }
|
||||||
|
inputSetter={ setFilterReceiveAccountNameNoInputValue }
|
||||||
|
></FilterSelectInput>
|
||||||
|
<FilterButtonGroups
|
||||||
|
title='조회 기준'
|
||||||
|
activeValue={ filterResultType }
|
||||||
|
btnGroups={ FundAccountResultTypeBtnGroup }
|
||||||
|
setter={ setFilterResultType }
|
||||||
|
></FilterButtonGroups>
|
||||||
|
<FilterCalendar
|
||||||
|
title='조회기간'
|
||||||
|
startDate={ filterFromDate }
|
||||||
|
endDate={ filterToDate }
|
||||||
|
setStartDate={ setFilterFromDate }
|
||||||
|
setEndDate={ setFilterToDate }
|
||||||
|
></FilterCalendar>
|
||||||
|
<FilterSelect
|
||||||
|
title='은행'
|
||||||
|
selectValue={ filterReceiveBankCode }
|
||||||
|
selectSetter={ setFilterReceiveBankCode }
|
||||||
|
selectOptions={ FundAccountReceiveBankCodeOptionsGroup }
|
||||||
|
></FilterSelect>
|
||||||
|
<FilterButtonGroups
|
||||||
|
title='처리 결과'
|
||||||
|
activeValue={ filterStatus }
|
||||||
|
btnGroups={ FundAccountStatusBtnGroup }
|
||||||
|
setter={ setFilterStatus }
|
||||||
|
></FilterButtonGroups>
|
||||||
|
</div>
|
||||||
|
<div className="apply-row">
|
||||||
|
<button
|
||||||
|
className="btn-50 btn-blue flex-1"
|
||||||
|
onClick={ () => onClickToSetFilter() }
|
||||||
|
>적용</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -28,15 +28,15 @@ export interface PayoutFilterProps {
|
|||||||
fromDate: string;
|
fromDate: string;
|
||||||
toDate: string;
|
toDate: string;
|
||||||
disbursementStatus: PayoutDisbursementStatus;
|
disbursementStatus: PayoutDisbursementStatus;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
setMid: (mid: string) => void;
|
setMid: (mid: string) => void;
|
||||||
setSearchCl: (searchCl: PayoutSearchCl) => void;
|
setSearchCl: (searchCl: PayoutSearchCl) => void;
|
||||||
setFromDate: (fromDate: string) => void;
|
setFromDate: (fromDate: string) => void;
|
||||||
setToDate: (toDate: string) => void;
|
setToDate: (toDate: string) => void;
|
||||||
setDisbursementStatus: (disbursementStatus: PayoutDisbursementStatus) => void;
|
setDisbursementStatus: (disbursementStatus: PayoutDisbursementStatus) => void;
|
||||||
setMinAmount: (minAmount: string | number) => void;
|
setMinAmount: (minAmount?: number) => void;
|
||||||
setMaxAmount: (maxAmount: string | number) => void;
|
setMaxAmount: (maxAmount?: number) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const PayoutFilter = ({
|
export const PayoutFilter = ({
|
||||||
@@ -63,8 +63,8 @@ export const PayoutFilter = ({
|
|||||||
const [filterFromDate, setFilterFromDate] = useState<string>(moment(fromDate).format('YYYY.MM.DD'));
|
const [filterFromDate, setFilterFromDate] = useState<string>(moment(fromDate).format('YYYY.MM.DD'));
|
||||||
const [filterToDate, setFilterToDate] = useState<string>(moment(toDate).format('YYYY.MM.DD'));
|
const [filterToDate, setFilterToDate] = useState<string>(moment(toDate).format('YYYY.MM.DD'));
|
||||||
const [filterDisbursementStatus, setFilterDisbursementStatus] = useState<PayoutDisbursementStatus>(disbursementStatus);
|
const [filterDisbursementStatus, setFilterDisbursementStatus] = useState<PayoutDisbursementStatus>(disbursementStatus);
|
||||||
const [filterMinAmount, setFilterMinAmount] = useState<number | string>(minAmount || '');
|
const [filterMinAmount, setFilterMinAmount] = useState<number | undefined>(minAmount);
|
||||||
const [filterMaxAmount, setFilterMaxAmount] = useState<number | string>(maxAmount || '');
|
const [filterMaxAmount, setFilterMaxAmount] = useState<number | undefined>(maxAmount);
|
||||||
|
|
||||||
const onClickToClose = () => {
|
const onClickToClose = () => {
|
||||||
setFilterOn(false);
|
setFilterOn(false);
|
||||||
|
|||||||
@@ -1,6 +1,163 @@
|
|||||||
import { IMAGE_ROOT } from "@/shared/constants/common";
|
import moment from 'moment';
|
||||||
|
import { SortByKeys } from '@/entities/common/model/types';
|
||||||
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
|
import { ListDateGroup } from '../list-date-group';
|
||||||
|
import { AdditionalServiceCategory } from '../../model/types';
|
||||||
|
import { ExtensionFundAccountResultExcelParams, ExtensionFundAccountResultExcelResponse, ExtensionFundAccountResultListParams, ExtensionFundAccountResultListResponse, ExtensionFundAccountResultSummaryParams, ExtensionFundAccountResultSummaryResponse, FundAccountResultContent, FundAccountResultContentItem, FundAccountResultType, FundAccountStatus } from '../../model/fund-account/types';
|
||||||
|
import { useExtensionFundAccountResultSummaryMutation } from '../../api/fund-account/use-extension-fund-account-result-summary-mutation';
|
||||||
|
import { useExtensionFundAccountResultExcelMutation } from '../../api/fund-account/use-extension-fund-account-result-excel-mutation';
|
||||||
|
import { useExtensionFundAccountResultListMutation } from '../../api/fund-account/use-extension-fund-account-result-list-mutation';
|
||||||
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
|
import { NumericFormat } from 'react-number-format';
|
||||||
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
|
import { FundAccountStatusBtnGroup } from '../../model/fund-account/constant';
|
||||||
|
import { FundAccountResultFilter } from '../filter/fund-account-result-filter';
|
||||||
|
|
||||||
export const FundAccountResultListWrap = () => {
|
export const FundAccountResultListWrap = () => {
|
||||||
|
const { navigate } = useNavigate();
|
||||||
|
|
||||||
|
const [sortBy, setSortBy] = useState<SortByKeys>(SortByKeys.New);
|
||||||
|
const [listItems, setListItems] = useState<Record<string, Array<FundAccountResultContentItem>>>({});
|
||||||
|
const [filterOn, setFilterOn] = useState<boolean>(false);
|
||||||
|
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
||||||
|
const [mid, setMid] = useState<string>('nictest001m');
|
||||||
|
const [receiveAccountName, setReceiveAccountName] = useState<string>('');
|
||||||
|
const [receiveAccountNo, setReceiveAccountNo] = useState<string>('');
|
||||||
|
const [resultType, setResultType] = useState<FundAccountResultType>(FundAccountResultType.RequestDate);
|
||||||
|
const [fromDate, setFromDate] = useState(moment().format('YYYYMMDD'));
|
||||||
|
const [toDate, setToDate] = useState(moment().format('YYYYMMDD'));
|
||||||
|
const [status, setStatus] = useState<FundAccountStatus>(FundAccountStatus.ALL);
|
||||||
|
const [receiveBankCode, setReceiveBankCode] = useState<string>('');
|
||||||
|
|
||||||
|
const [totalCount, setTotalCount] = useState<number>(0);
|
||||||
|
const [totalAmount, setTotalAmount] = useState<number>(0);
|
||||||
|
const [successCount, setSuccessCount] = useState<number>(0);
|
||||||
|
const [successAmount, setSuccessAmount] = useState<number>(0);
|
||||||
|
const [failCount, setFailCount] = useState<number>(0);
|
||||||
|
const [failAmount, setFailAmount] = useState<number>(0);
|
||||||
|
const [pendingCount, setPendingCount] = useState<number>(0);
|
||||||
|
const [pendingAmount, setPendingAmount] = useState<number>(0);
|
||||||
|
|
||||||
|
const { mutateAsync: extensionFundAccountResultList } = useExtensionFundAccountResultListMutation();
|
||||||
|
const { mutateAsync: extensionFundAccountResultExcel } = useExtensionFundAccountResultExcelMutation();
|
||||||
|
const { mutateAsync: extensionFundAccountResultSummary } = useExtensionFundAccountResultSummaryMutation();
|
||||||
|
|
||||||
|
const callList = (option?: {
|
||||||
|
sortBy?: string,
|
||||||
|
val?: string
|
||||||
|
}) => {
|
||||||
|
|
||||||
|
pageParam.sortBy = (option?.sortBy)? option.sortBy: sortBy;
|
||||||
|
setPageParam(pageParam);
|
||||||
|
|
||||||
|
let params: ExtensionFundAccountResultListParams = {
|
||||||
|
mid: mid,
|
||||||
|
fromDate: fromDate,
|
||||||
|
toDate: toDate,
|
||||||
|
status: status,
|
||||||
|
pagination: pageParam
|
||||||
|
};
|
||||||
|
|
||||||
|
extensionFundAccountResultList(params).then((rs: ExtensionFundAccountResultListResponse) => {
|
||||||
|
console.log(rs);
|
||||||
|
setListItems(assembleData(rs.content));
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
const callDownloadExcel = () => {
|
||||||
|
let params: ExtensionFundAccountResultExcelParams = {
|
||||||
|
mid: mid,
|
||||||
|
fromDate: fromDate,
|
||||||
|
toDate: toDate,
|
||||||
|
status: status,
|
||||||
|
};
|
||||||
|
extensionFundAccountResultExcel(params).then((rs: ExtensionFundAccountResultExcelResponse) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const callSummary = () => {
|
||||||
|
let params: ExtensionFundAccountResultSummaryParams = {
|
||||||
|
mid: mid,
|
||||||
|
fromDate: fromDate,
|
||||||
|
toDate: toDate
|
||||||
|
};
|
||||||
|
extensionFundAccountResultSummary(params).then((rs: ExtensionFundAccountResultSummaryResponse) => {
|
||||||
|
console.log(rs);
|
||||||
|
setTotalCount(rs.totalCount);
|
||||||
|
setTotalAmount(rs.totalAmount);
|
||||||
|
setSuccessCount(rs.successCount);
|
||||||
|
setSuccessAmount(rs.successAmount);
|
||||||
|
setFailCount(rs.failCount);
|
||||||
|
setFailAmount(rs.failAmount);
|
||||||
|
setPendingCount(rs.pendingCount);
|
||||||
|
setPendingAmount(rs.pendingAmount);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const assembleData = (content: Array<FundAccountResultContent>) => {
|
||||||
|
let data: any = {};
|
||||||
|
if(content && !!content[0] && content.length > 0){
|
||||||
|
let items: Array<FundAccountResultContentItem> = content[0].items;
|
||||||
|
for(let i=0;i<items.length;i++){
|
||||||
|
let groupDate = moment(items[i]?.requestDate).format('YYYYMMDD');
|
||||||
|
if(!!groupDate && !data.hasOwnProperty(groupDate)){
|
||||||
|
data[groupDate] = [];
|
||||||
|
}
|
||||||
|
if(!!groupDate && data.hasOwnProperty(groupDate)){
|
||||||
|
data[groupDate].push(items[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToDownloadExcel = () => {
|
||||||
|
callDownloadExcel();
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToOpenFilter = () => {
|
||||||
|
setFilterOn(!filterOn);
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
|
setSortBy(sort);
|
||||||
|
callList({sortBy: sort});
|
||||||
|
};
|
||||||
|
const onClickToStatus = (val: FundAccountStatus) => {
|
||||||
|
setStatus(val);
|
||||||
|
callList({val: val});
|
||||||
|
};
|
||||||
|
|
||||||
|
const getListDateGroup = () => {
|
||||||
|
let rs = [];
|
||||||
|
if(Object.keys(listItems).length > 0){
|
||||||
|
for (const [key, value] of Object.entries(listItems)) {
|
||||||
|
rs.push(
|
||||||
|
<ListDateGroup
|
||||||
|
additionalServiceCategory={ AdditionalServiceCategory.FundAccountResult }
|
||||||
|
mid={ mid }
|
||||||
|
key={ key }
|
||||||
|
date={ key }
|
||||||
|
items={ value }
|
||||||
|
></ListDateGroup>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rs;
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
callList();
|
||||||
|
callSummary();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const onClickToNavigate = () => {
|
||||||
|
navigate(PATHS.additionalService.fundAccount.transferRequest);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -8,14 +165,15 @@ export const FundAccountResultListWrap = () => {
|
|||||||
<div className="credit-controls">
|
<div className="credit-controls">
|
||||||
<div>
|
<div>
|
||||||
<input
|
<input
|
||||||
type="text"
|
|
||||||
className="credit-period"
|
className="credit-period"
|
||||||
value="2025.06.01 ~ 2025.06.30"
|
type="text"
|
||||||
|
value={ moment(fromDate).format('YYYY.MM.DD') + '-' + moment(toDate).format('YYYY.MM.DD') }
|
||||||
readOnly={ true }
|
readOnly={ true }
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="filter-btn"
|
className="filter-btn"
|
||||||
aria-label="필터"
|
aria-label="필터"
|
||||||
|
onClick={ () => onClickToOpenFilter() }
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={ IMAGE_ROOT + '/ico_setting.svg' }
|
src={ IMAGE_ROOT + '/ico_setting.svg' }
|
||||||
@@ -26,6 +184,7 @@ export const FundAccountResultListWrap = () => {
|
|||||||
<button
|
<button
|
||||||
className="download-btn"
|
className="download-btn"
|
||||||
aria-label="다운로드"
|
aria-label="다운로드"
|
||||||
|
onClick={ () => onClickToDownloadExcel() }
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={ IMAGE_ROOT + '/ico_download.svg' }
|
src={ IMAGE_ROOT + '/ico_download.svg' }
|
||||||
@@ -33,112 +192,124 @@ export const FundAccountResultListWrap = () => {
|
|||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="account-frame">
|
|
||||||
<div className="credit-summary">
|
|
||||||
<div className="row">
|
|
||||||
<span className="label">잔액</span>
|
|
||||||
<span className="amount22">2,000,000,000<span className="unit">원</span></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="summary-extend">
|
<div className="summary-extend">
|
||||||
<ul className="summary-amount-list">
|
<ul className="summary-amount-list">
|
||||||
<li className="summary-amount-item">
|
<li className="summary-amount-item">
|
||||||
<span className="label">· 요청</span>
|
<span className="label">요청</span>
|
||||||
<span className="value">0<span className="unit"> 원 (0건)</span></span>
|
<span className="value">
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ pendingAmount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span className="unit"> 원 (</span>
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ pendingCount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span>건)</span>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="summary-amount-item">
|
<li className="summary-amount-item">
|
||||||
<span className="label">· 성공</span>
|
<span className="label">성공</span>
|
||||||
<span className="value">50,000,000<span className="unit"> 원 (2,587건)</span></span>
|
<span className="value">
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ successAmount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span className="unit"> 원 (</span>
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ successCount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span>건)</span>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="summary-amount-item">
|
<li className="summary-amount-item">
|
||||||
<span className="label">· 실패</span>
|
<span className="label">실패</span>
|
||||||
<span className="value">534,407<span className="unit"> 원 (21건)</span></span>
|
<span className="value">
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ failAmount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span className="unit"> 원 (</span>
|
||||||
|
<span>
|
||||||
|
<NumericFormat
|
||||||
|
value={ failCount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
<span>건)</span>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="filter-section">
|
<section className="filter-section">
|
||||||
<div className="sort-options">
|
<SortOptionsBox
|
||||||
<button className="sort-btn active">최신순</button>
|
sortBy={ sortBy }
|
||||||
<span className="sort-divider">|</span>
|
onClickToSort={ onClickToSort }
|
||||||
<button className="sort-btn">고액순</button>
|
></SortOptionsBox>
|
||||||
</div>
|
|
||||||
<div className="excrow mr-0">
|
<div className="excrow mr-0">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
<span className="keyword-tag active">전체</span>
|
{
|
||||||
<span className="keyword-tag">성공</span>
|
FundAccountStatusBtnGroup.map((value, index) => (
|
||||||
<span className="keyword-tag">실패</span>
|
<span
|
||||||
|
key={ `key-service-code=${ index }` }
|
||||||
|
className={ `keyword-tag ${(status === value.value)? 'active': ''}` }
|
||||||
|
onClick={ () => onClickToStatus(value.value) }
|
||||||
|
>{ value.name }</span>
|
||||||
|
))
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="transaction-list">
|
<section className="transaction-list">
|
||||||
|
{ getListDateGroup() }
|
||||||
<div className="date-header">25.06.08(일)</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00</span>
|
|
||||||
<span className="separator">ㅣ</span>
|
|
||||||
<span>등록완료</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">5,254,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00</span>
|
|
||||||
<span className="separator">ㅣ</span>
|
|
||||||
<span>등록완료</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">5,254,000원</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="date-header">25.06.08(일)</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00</span>
|
|
||||||
<span className="separator">ㅣ</span>
|
|
||||||
<span>등록완료</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">5,254,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00</span>
|
|
||||||
<span className="separator">ㅣ</span>
|
|
||||||
<span>등록완료</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">5,254,000원</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
<div className="apply-row">
|
<div className="apply-row">
|
||||||
<button className="btn-50 btn-blue flex-1">이체 등록</button>
|
<button
|
||||||
|
className="btn-50 btn-blue flex-1"
|
||||||
|
onClick={ onClickToNavigate }
|
||||||
|
>이체 등록</button>
|
||||||
</div>
|
</div>
|
||||||
|
<FundAccountResultFilter
|
||||||
|
filterOn={ filterOn }
|
||||||
|
setFilterOn={ setFilterOn }
|
||||||
|
mid={ mid }
|
||||||
|
receiveAccountName={ receiveAccountName }
|
||||||
|
receiveAccountNo={ receiveAccountNo }
|
||||||
|
resultType={ resultType }
|
||||||
|
fromDate={ fromDate }
|
||||||
|
toDate={ toDate }
|
||||||
|
receiveBankCode= { receiveBankCode }
|
||||||
|
status={ status }
|
||||||
|
setMid={ setMid }
|
||||||
|
setReceiveAccountName={ setReceiveAccountName }
|
||||||
|
setReceiveAccountNo={ setReceiveAccountNo }
|
||||||
|
setResultType={ setResultType }
|
||||||
|
setFromDate={ setFromDate }
|
||||||
|
setToDate={ setToDate }
|
||||||
|
setReceiveBankCode={ setReceiveBankCode }
|
||||||
|
setStatus={ setStatus }
|
||||||
|
></FundAccountResultFilter>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SortByKeys } from '@/entities/common/model/types';
|
import { SortByKeys } from '@/entities/common/model/types';
|
||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
import { useNavigate } from '@/shared/lib/hooks';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
ExtensionFundAccountBalanceParams,
|
ExtensionFundAccountBalanceParams,
|
||||||
@@ -132,7 +132,7 @@ export const FundAccountTransferListWrap = () => {
|
|||||||
for (const [key, value] of Object.entries(listItems)) {
|
for (const [key, value] of Object.entries(listItems)) {
|
||||||
rs.push(
|
rs.push(
|
||||||
<ListDateGroup
|
<ListDateGroup
|
||||||
additionalServiceCategory={ AdditionalServiceCategory.FundAccount }
|
additionalServiceCategory={ AdditionalServiceCategory.FundAccountTransfer }
|
||||||
mid={ mid }
|
mid={ mid }
|
||||||
key={ key }
|
key={ key }
|
||||||
date={ key }
|
date={ key }
|
||||||
@@ -210,7 +210,7 @@ export const FundAccountTransferListWrap = () => {
|
|||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onClickToSort={ onClickToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<div className="excrow">
|
<div className="excrow mr-0">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
FundAccountStatusBtnGroup.map((value, index) => (
|
FundAccountStatusBtnGroup.map((value, index) => (
|
||||||
@@ -252,6 +252,6 @@ export const FundAccountTransferListWrap = () => {
|
|||||||
setReceiveBankCode={ setReceiveBankCode }
|
setReceiveBankCode={ setReceiveBankCode }
|
||||||
setStatus={ setStatus }
|
setStatus={ setStatus }
|
||||||
></FundAccountTransactionFilter>
|
></FundAccountTransactionFilter>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -52,7 +52,7 @@ export const PaymentInfoWrap = ({
|
|||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</>
|
</>
|
||||||
}{(additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending) &&
|
}{(additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait) &&
|
||||||
<>
|
<>
|
||||||
<li className="kv-row">
|
<li className="kv-row">
|
||||||
<span className="k">진행상태</span>
|
<span className="k">진행상태</span>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export const TitleInfoWrap = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/*링크결제_발송대기*/}
|
{/*링크결제_발송대기*/}
|
||||||
{additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending && (
|
{additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait && (
|
||||||
<>
|
<>
|
||||||
<>
|
<>
|
||||||
<div className="num-amount">
|
<div className="num-amount">
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ export const KeyInPaymentFilter = ({
|
|||||||
const [filterStartDate, setFilterStartDate] = useState<string>(startDate);
|
const [filterStartDate, setFilterStartDate] = useState<string>(startDate);
|
||||||
const [filterEndDate, setFilterEndDate] = useState<string>(endDate);
|
const [filterEndDate, setFilterEndDate] = useState<string>(endDate);
|
||||||
const [filterTransactionStatus, setFilterTransactionStatus] = useState<KeyInPaymentTransactionStatus>(transactionStatus);
|
const [filterTransactionStatus, setFilterTransactionStatus] = useState<KeyInPaymentTransactionStatus>(transactionStatus);
|
||||||
const [filterMinAmount, setFilterMinAmount] = useState<number | string>(minAmount || '');
|
const [filterMinAmount, setFilterMinAmount] = useState<number | undefined>(minAmount);
|
||||||
const [filterMaxAmount, setFilterMaxAmount] = useState<number | string>(maxAmount || '');
|
const [filterMaxAmount, setFilterMaxAmount] = useState<number | undefined>(maxAmount);
|
||||||
|
|
||||||
const variants = {
|
const variants = {
|
||||||
hidden: { x: '100%' },
|
hidden: { x: '100%' },
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
interface DetailDeetsInfoSectionProps {
|
|
||||||
deetsInfo?: any;
|
|
||||||
show?: boolean;
|
|
||||||
onClickToShowInfo?: () => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const DetailDeetsInfoSection = ({
|
|
||||||
deetsInfo,
|
|
||||||
show,
|
|
||||||
onClickToShowInfo
|
|
||||||
}: DetailDeetsInfoSectionProps) => {
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="txn-section">
|
|
||||||
<div className="section-title">상세 정보</div>
|
|
||||||
<ul className="kv-list">
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">이메일</span>
|
|
||||||
<span className="v"></span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">휴대폰번호</span>
|
|
||||||
<span className="v">01073937470</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">상품명</span>
|
|
||||||
<span className="v">곰돌이</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">주문번호</span>
|
|
||||||
<span className="v">mod201705545050</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
interface DetailPaymentInfoSectionProps {
|
|
||||||
paymentInfo?: any;
|
|
||||||
show?: boolean;
|
|
||||||
onClickToShowInfo?: () => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const DetailPaymentInfoSection = ({
|
|
||||||
paymentInfo,
|
|
||||||
show,
|
|
||||||
onClickToShowInfo
|
|
||||||
}: DetailPaymentInfoSectionProps) => {
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="txn-section">
|
|
||||||
<div className="section-title">결제 정보</div>
|
|
||||||
<ul className="kv-list">
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">구매자명</span>
|
|
||||||
<span className="v">김*환</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">발송수단</span>
|
|
||||||
<span className="v">SMS</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">발송일자</span>
|
|
||||||
<span className="v">2025.06.08</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">결제상태(실패횟수)</span>
|
|
||||||
<span className="v">미완료(2)</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">결제수단</span>
|
|
||||||
<span className="v">신용카드</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">결제일자</span>
|
|
||||||
<span className="v"></span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">결제유효일자</span>
|
|
||||||
<span className="v">2025.06.08</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
interface DetailPendingPaymentInfoSectionProps {
|
|
||||||
paymentInfo?: any;
|
|
||||||
show?: boolean;
|
|
||||||
onClickToShowInfo?: () => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const DetailPaymentInfoSection = ({
|
|
||||||
paymentInfo,
|
|
||||||
show,
|
|
||||||
onClickToShowInfo
|
|
||||||
}: DetailPendingPaymentInfoSectionProps) => {
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="txn-section">
|
|
||||||
<div className="section-title">결제 정보</div>
|
|
||||||
<ul className="kv-list">
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">진행상태</span>
|
|
||||||
<span className="v">발송요청</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">요청일자</span>
|
|
||||||
<span className="v">2025.06.05</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">결제유효일자</span>
|
|
||||||
<span className="v">2025.06.08</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">발송수단</span>
|
|
||||||
<span className="v">SMS</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">구매자명</span>
|
|
||||||
<span className="v">김*환</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">이메일</span>
|
|
||||||
<span className="v"></span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">휴대폰번호</span>
|
|
||||||
<span className="v">01073937470</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">상품명</span>
|
|
||||||
<span className="v">곰돌이</span>
|
|
||||||
</li>
|
|
||||||
<li className="kv-row">
|
|
||||||
<span className="k">주문번호</span>
|
|
||||||
<span className="v">moid201705545050</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@ import { IMAGE_ROOT } from '@/shared/constants/common';
|
|||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { ChangeEvent, useState } from 'react';
|
import { ChangeEvent, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
LinkPaymentPendingSendFilterProps,
|
LinkPaymentWaitFilterProps,
|
||||||
LinkPaymentSearchType,
|
LinkPaymentSearchType,
|
||||||
LinkPaymentSendMethod,
|
LinkPaymentSendMethod,
|
||||||
LinkPaymentSendingStatus,
|
LinkPaymentSendingStatus,
|
||||||
@@ -15,7 +15,7 @@ import { FilterDateOptions } from '@/entities/common/model/types';
|
|||||||
import { FilterCalendar } from '@/shared/ui/filter/calendar';
|
import { FilterCalendar } from '@/shared/ui/filter/calendar';
|
||||||
import { FilterButtonGroups } from '@/shared/ui/filter/button-groups';
|
import { FilterButtonGroups } from '@/shared/ui/filter/button-groups';
|
||||||
|
|
||||||
export const LinkPaymentPendingSendFilter = ({
|
export const LinkPaymentWaitSendFilter = ({
|
||||||
filterOn,
|
filterOn,
|
||||||
setFilterOn,
|
setFilterOn,
|
||||||
mid,
|
mid,
|
||||||
@@ -32,7 +32,7 @@ export const LinkPaymentPendingSendFilter = ({
|
|||||||
setEndDate,
|
setEndDate,
|
||||||
setSendMethod,
|
setSendMethod,
|
||||||
setSendingStatus
|
setSendingStatus
|
||||||
}: LinkPaymentPendingSendFilterProps) => {
|
}: LinkPaymentWaitFilterProps) => {
|
||||||
|
|
||||||
|
|
||||||
const [filterMid, setFilterMid] = useState<string>(mid);
|
const [filterMid, setFilterMid] = useState<string>(mid);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { IMAGE_ROOT } from "@/shared/constants/common";
|
import { IMAGE_ROOT } from "@/shared/constants/common";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { LinkPaymentPendingSendFilter } from "./filter/link-payment-pending-send-filter";
|
import { LinkPaymentWaitSendFilter } from "./filter/link-payment-pending-send-filter";
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { PATHS } from "@/shared/constants/paths";
|
import { PATHS } from "@/shared/constants/paths";
|
||||||
import { LinkPaymentWaitList } from "./link-payment-wait-list";
|
import { LinkPaymentWaitList } from "./link-payment-wait-list";
|
||||||
@@ -164,7 +164,7 @@ export const LinkPaymentWaitSendWrap = () => {
|
|||||||
|
|
||||||
<LinkPaymentWaitList
|
<LinkPaymentWaitList
|
||||||
listItems={listItems}
|
listItems={listItems}
|
||||||
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentPending}
|
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentWait}
|
||||||
></LinkPaymentWaitList>
|
></LinkPaymentWaitList>
|
||||||
<div className="apply-row">
|
<div className="apply-row">
|
||||||
<button
|
<button
|
||||||
@@ -172,7 +172,7 @@ export const LinkPaymentWaitSendWrap = () => {
|
|||||||
onClick={() => onClickToNavigate()}
|
onClick={() => onClickToNavigate()}
|
||||||
>결제 신청</button>
|
>결제 신청</button>
|
||||||
</div>
|
</div>
|
||||||
<LinkPaymentPendingSendFilter
|
<LinkPaymentWaitSendFilter
|
||||||
filterOn={filterOn}
|
filterOn={filterOn}
|
||||||
setFilterOn={setFilterOn}
|
setFilterOn={setFilterOn}
|
||||||
mid={mid}
|
mid={mid}
|
||||||
@@ -189,7 +189,7 @@ export const LinkPaymentWaitSendWrap = () => {
|
|||||||
setEndDate={setEndDate}
|
setEndDate={setEndDate}
|
||||||
setSendMethod={setSendMethod}
|
setSendMethod={setSendMethod}
|
||||||
setSendingStatus={setSendingStatus}
|
setSendingStatus={setSendingStatus}
|
||||||
></LinkPaymentPendingSendFilter>
|
></LinkPaymentWaitSendFilter>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,10 @@ export const ListDateGroup = ({
|
|||||||
receiveAccountNo={ items[i]?.receiveAccountNo }
|
receiveAccountNo={ items[i]?.receiveAccountNo }
|
||||||
receiveAccountName={ items[i]?.receiveAccountName }
|
receiveAccountName={ items[i]?.receiveAccountName }
|
||||||
status={ items[i]?.status }
|
status={ items[i]?.status }
|
||||||
processDate={items[i]?.processDate }
|
processDate={ items[i]?.processDate }
|
||||||
|
|
||||||
|
orderStatus={ items[i]?.orderStatus }
|
||||||
|
arsPaymentMethod={ items[i]?.arsPaymentMethod }
|
||||||
></ListItem>
|
></ListItem>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ export const ListItem = ({
|
|||||||
|
|
||||||
transferAmount, receiveBankName,
|
transferAmount, receiveBankName,
|
||||||
receiveAccountNo, receiveAccountName,
|
receiveAccountNo, receiveAccountName,
|
||||||
status, processDate
|
status, processDate,
|
||||||
|
|
||||||
|
orderStatus, arsPaymentMethod
|
||||||
}: ListItemProps) => {
|
}: ListItemProps) => {
|
||||||
const { navigate } = useNavigate();
|
const { navigate } = useNavigate();
|
||||||
const getItemClass = () => {
|
const getItemClass = () => {
|
||||||
@@ -89,7 +91,7 @@ export const ListItem = ({
|
|||||||
else if (paymentStatus === "INACTIVE") {
|
else if (paymentStatus === "INACTIVE") {
|
||||||
rs = 'gray';
|
rs = 'gray';
|
||||||
}
|
}
|
||||||
} else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending) {
|
} else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait) {
|
||||||
if (processStatus === "SEND_REQUEST") {
|
if (processStatus === "SEND_REQUEST") {
|
||||||
rs = 'blue'
|
rs = 'blue'
|
||||||
} else {
|
} else {
|
||||||
@@ -132,7 +134,7 @@ export const ListItem = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait) {
|
||||||
navigate(PATHS.additionalService.linkPayment.pendingDetail, {
|
navigate(PATHS.additionalService.linkPayment.pendingDetail, {
|
||||||
state: {
|
state: {
|
||||||
additionalServiceCategory: additionalServiceCategory,
|
additionalServiceCategory: additionalServiceCategory,
|
||||||
@@ -141,7 +143,7 @@ export const ListItem = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccount) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountTransfer) {
|
||||||
navigate(PATHS.additionalService.fundAccount.transferDetail, {
|
navigate(PATHS.additionalService.fundAccount.transferDetail, {
|
||||||
state: {
|
state: {
|
||||||
additionalServiceCategory: additionalServiceCategory,
|
additionalServiceCategory: additionalServiceCategory,
|
||||||
@@ -150,6 +152,15 @@ export const ListItem = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountResult) {
|
||||||
|
navigate(PATHS.additionalService.fundAccount.resultDetail, {
|
||||||
|
state: {
|
||||||
|
additionalServiceCategory: additionalServiceCategory,
|
||||||
|
mid: mid,
|
||||||
|
tid: tid
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.SettlementAgency) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.SettlementAgency) {
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -162,6 +173,15 @@ export const ListItem = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if (additionalServiceCategory === AdditionalServiceCategory.Ars){
|
||||||
|
navigate(PATHS.additionalService.payout.detail, {
|
||||||
|
state: {
|
||||||
|
additionalServiceCategory: additionalServiceCategory,
|
||||||
|
mid: mid,
|
||||||
|
tid: tid
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
alert('additionalServiceCategory가 존재하지 않습니다.');
|
alert('additionalServiceCategory가 존재하지 않습니다.');
|
||||||
}
|
}
|
||||||
@@ -181,9 +201,16 @@ export const ListItem = ({
|
|||||||
let time = requestDate?.substring(8, 14);
|
let time = requestDate?.substring(8, 14);
|
||||||
timeStr = time?.substring(0, 2) + ':' + time?.substring(2, 4) + ':' + time?.substring(4, 6);
|
timeStr = time?.substring(0, 2) + ':' + time?.substring(2, 4) + ':' + time?.substring(4, 6);
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccount) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountTransfer) {
|
||||||
timeStr = moment(requestDate).format('mm:ss');
|
timeStr = moment(requestDate).format('mm:ss');
|
||||||
}
|
}
|
||||||
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountResult) {
|
||||||
|
timeStr = moment(requestDate).format('mm:ss');
|
||||||
|
}
|
||||||
|
else if (additionalServiceCategory === AdditionalServiceCategory.Ars){
|
||||||
|
let time = paymentDate?.substring(8, 12);
|
||||||
|
timeStr = time?.substring(0, 2) + ':' + time?.substring(2, 4);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -196,25 +223,31 @@ export const ListItem = ({
|
|||||||
str = `${tid}(${amount})`;
|
str = `${tid}(${amount})`;
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.AccountHolderAuth) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.AccountHolderAuth) {
|
||||||
str = `${accountName}(${accountNo})`
|
str = `${accountName}(${accountNo})`;
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.AccountHolderSearch) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.AccountHolderSearch) {
|
||||||
str = `${accountNo}`
|
str = `${accountNo}`;
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentHistory ||
|
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentHistory ||
|
||||||
additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending
|
additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait
|
||||||
) {
|
) {
|
||||||
if (sendMethod === "SMS") {
|
if (sendMethod === "SMS") {
|
||||||
str = `${"buyerName"}(${"휴대폰 번호"})`
|
str = `${"buyerName"}(${"휴대폰 번호"})`;
|
||||||
} else {
|
} else {
|
||||||
str = `${"buyerName"}(${"이메일"})`
|
str = `${"buyerName"}(${"이메일"})`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.Payout) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.Payout) {
|
||||||
str = companyName;
|
str = companyName;
|
||||||
}
|
}
|
||||||
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccount){
|
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccountTransfer){
|
||||||
str = `${receiveAccountName}(${receiveAccountNo})`
|
str = `${receiveAccountName}(${receiveAccountNo})`;
|
||||||
|
}
|
||||||
|
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccountResult){
|
||||||
|
str = `${receiveAccountName}(${receiveAccountNo})`;
|
||||||
|
}
|
||||||
|
else if(additionalServiceCategory === AdditionalServiceCategory.Ars){
|
||||||
|
str = '이름(' + tid + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
@@ -270,7 +303,7 @@ export const ListItem = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait) {
|
||||||
rs.push(
|
rs.push(
|
||||||
<div className="transaction-details">
|
<div className="transaction-details">
|
||||||
<span>{getProcessStatusText(processStatus)}</span>
|
<span>{getProcessStatusText(processStatus)}</span>
|
||||||
@@ -288,7 +321,7 @@ export const ListItem = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccount){
|
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccountTransfer){
|
||||||
rs.push(
|
rs.push(
|
||||||
<div className="transaction-details">
|
<div className="transaction-details">
|
||||||
<span>{ getTime() }</span>
|
<span>{ getTime() }</span>
|
||||||
@@ -297,6 +330,28 @@ export const ListItem = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else if(additionalServiceCategory === AdditionalServiceCategory.FundAccountResult){
|
||||||
|
rs.push(
|
||||||
|
<div className="transaction-details">
|
||||||
|
<span>{ getTime() }</span>
|
||||||
|
<span className="separator">|</span>
|
||||||
|
<span>{ status }</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else if(additionalServiceCategory === AdditionalServiceCategory.Ars){
|
||||||
|
rs.push(
|
||||||
|
<div className="transaction-details">
|
||||||
|
<span>{ getTime() }</span>
|
||||||
|
<span className="separator">|</span>
|
||||||
|
<span>{ paymentStatus }</span>
|
||||||
|
<span className="separator">|</span>
|
||||||
|
<span>{ orderStatus }</span>
|
||||||
|
<span className="separator">|</span>
|
||||||
|
<span>{ arsPaymentMethod }</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
return rs;
|
return rs;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -329,7 +384,7 @@ export const ListItem = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentHistory ||
|
else if (additionalServiceCategory === AdditionalServiceCategory.LinkPaymentHistory ||
|
||||||
additionalServiceCategory === AdditionalServiceCategory.LinkPaymentPending
|
additionalServiceCategory === AdditionalServiceCategory.LinkPaymentWait
|
||||||
) {
|
) {
|
||||||
rs.push(
|
rs.push(
|
||||||
<div className="transaction-amount">
|
<div className="transaction-amount">
|
||||||
@@ -357,7 +412,22 @@ export const ListItem = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccount) {
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountTransfer) {
|
||||||
|
rs.push(
|
||||||
|
<div
|
||||||
|
key="payout-item-amount"
|
||||||
|
className="transaction-amount"
|
||||||
|
>
|
||||||
|
<NumericFormat
|
||||||
|
value={transferAmount}
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
suffix='원'
|
||||||
|
></NumericFormat>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else if (additionalServiceCategory === AdditionalServiceCategory.FundAccountResult) {
|
||||||
rs.push(
|
rs.push(
|
||||||
<div
|
<div
|
||||||
key="payout-item-amount"
|
key="payout-item-amount"
|
||||||
|
|||||||
@@ -44,10 +44,10 @@ export enum AltMsgKeys {
|
|||||||
};
|
};
|
||||||
export interface FilterRangeAmountProps {
|
export interface FilterRangeAmountProps {
|
||||||
title?: string;
|
title?: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
setMinAmount: (minAmount: number | string) => void;
|
setMinAmount: (minAmount: number) => void;
|
||||||
setMaxAmount: (maxAmount: number | string) => void;
|
setMaxAmount: (maxAmount: number) => void;
|
||||||
};
|
};
|
||||||
export interface FilterButtonGroupsProps {
|
export interface FilterButtonGroupsProps {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
@@ -231,8 +231,8 @@ export interface AllTransactionListParams {
|
|||||||
toDate: string;
|
toDate: string;
|
||||||
stateCode: string;
|
stateCode: string;
|
||||||
serviceCode: string;
|
serviceCode: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
dateCl: string;
|
dateCl: string;
|
||||||
goodsName: string;
|
goodsName: string;
|
||||||
cardCode?: string;
|
cardCode?: string;
|
||||||
@@ -260,8 +260,8 @@ export interface EscrowListParams {
|
|||||||
endDate?: string;
|
endDate?: string;
|
||||||
deliveryStatus?: string;
|
deliveryStatus?: string;
|
||||||
settlementStatus?: string;
|
settlementStatus?: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
pagination?: DefaultRequestPagination;
|
pagination?: DefaultRequestPagination;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -274,8 +274,8 @@ export interface BillingListParams {
|
|||||||
requestStatus?: string;
|
requestStatus?: string;
|
||||||
processResult?: string;
|
processResult?: string;
|
||||||
paymentMethod?: string;
|
paymentMethod?: string;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
pagination?: DefaultRequestPagination
|
pagination?: DefaultRequestPagination
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -510,8 +510,8 @@ export interface AllTransactionFilterProps extends FilterProps {
|
|||||||
toDate: string;
|
toDate: string;
|
||||||
stateCode: AllTransactionStateCode;
|
stateCode: AllTransactionStateCode;
|
||||||
serviceCode: AllTransactionServiceCode;
|
serviceCode: AllTransactionServiceCode;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
cardCode?: string;
|
cardCode?: string;
|
||||||
bankCode?: string;
|
bankCode?: string;
|
||||||
searchCl?: AllTransactionSearchCl;
|
searchCl?: AllTransactionSearchCl;
|
||||||
@@ -523,8 +523,8 @@ export interface AllTransactionFilterProps extends FilterProps {
|
|||||||
setToDate: (endDate: string) => void;
|
setToDate: (endDate: string) => void;
|
||||||
setStateCode: (stateCode: AllTransactionStateCode) => void;
|
setStateCode: (stateCode: AllTransactionStateCode) => void;
|
||||||
setServiceCode: (serviceCode: AllTransactionServiceCode) => void;
|
setServiceCode: (serviceCode: AllTransactionServiceCode) => void;
|
||||||
setMinAmount: (minAmount: string | number) => void;
|
setMinAmount: (minAmount?: number) => void;
|
||||||
setMaxAmount: (maxAmount: string | number) => void;
|
setMaxAmount: (maxAmount?: number) => void;
|
||||||
setCardCode: (cardCode: string | undefined) => void;
|
setCardCode: (cardCode: string | undefined) => void;
|
||||||
setBankCode: (bankCode: string | undefined) => void;
|
setBankCode: (bankCode: string | undefined) => void;
|
||||||
setSearchCl: (searchCl: AllTransactionSearchCl | undefined) => void;
|
setSearchCl: (searchCl: AllTransactionSearchCl | undefined) => void;
|
||||||
@@ -553,8 +553,8 @@ export interface EscrowFilterProps extends FilterProps {
|
|||||||
endDate: string;
|
endDate: string;
|
||||||
deliveryStatus: EscrowDeliveryStatus;
|
deliveryStatus: EscrowDeliveryStatus;
|
||||||
settlementStatus: EscrowSettlementStatus;
|
settlementStatus: EscrowSettlementStatus;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
setMid: (mid: string) => void;
|
setMid: (mid: string) => void;
|
||||||
setSearchType: (searchType: EscrowSearchType) => void;
|
setSearchType: (searchType: EscrowSearchType) => void;
|
||||||
setSearchKeyword: (searchKeyword: string) => void;
|
setSearchKeyword: (searchKeyword: string) => void;
|
||||||
@@ -562,8 +562,8 @@ export interface EscrowFilterProps extends FilterProps {
|
|||||||
setEndDate: (endDate: string) => void;
|
setEndDate: (endDate: string) => void;
|
||||||
setDeliveryStatus: (deliveryStatus: EscrowDeliveryStatus) => void;
|
setDeliveryStatus: (deliveryStatus: EscrowDeliveryStatus) => void;
|
||||||
setSettlementStatus: (settlementStatus: EscrowSettlementStatus) => void;
|
setSettlementStatus: (settlementStatus: EscrowSettlementStatus) => void;
|
||||||
setMinAmount: (minAmount: string | number) => void;
|
setMinAmount: (minAmount?: number) => void;
|
||||||
setMaxAmount: (maxAmount: string | number) => void;
|
setMaxAmount: (maxAmount?: number) => void;
|
||||||
};
|
};
|
||||||
export interface BillingFilterProps extends FilterProps {
|
export interface BillingFilterProps extends FilterProps {
|
||||||
mid: string;
|
mid: string;
|
||||||
@@ -574,8 +574,8 @@ export interface BillingFilterProps extends FilterProps {
|
|||||||
requestStatus: BillingRequestStatus;
|
requestStatus: BillingRequestStatus;
|
||||||
processResult: BillingProcessResult;
|
processResult: BillingProcessResult;
|
||||||
paymentMethod: BillingPaymentMethod;
|
paymentMethod: BillingPaymentMethod;
|
||||||
minAmount?: number | string;
|
minAmount?: number;
|
||||||
maxAmount?: number | string;
|
maxAmount?: number;
|
||||||
setMid: (mid: string) => void;
|
setMid: (mid: string) => void;
|
||||||
setSearchType: (searchType: BillingSearchType) => void;
|
setSearchType: (searchType: BillingSearchType) => void;
|
||||||
setSearchKeyword: (searchKeyword: string) => void;
|
setSearchKeyword: (searchKeyword: string) => void;
|
||||||
@@ -584,8 +584,8 @@ export interface BillingFilterProps extends FilterProps {
|
|||||||
setRequestStatus: (requestStatus: BillingRequestStatus) => void;
|
setRequestStatus: (requestStatus: BillingRequestStatus) => void;
|
||||||
setProcessResult: (processResult: BillingProcessResult) => void;
|
setProcessResult: (processResult: BillingProcessResult) => void;
|
||||||
setPaymentMethod: (paymentMethod: BillingPaymentMethod) => void;
|
setPaymentMethod: (paymentMethod: BillingPaymentMethod) => void;
|
||||||
setMinAmount: (minAmount: string | number) => void;
|
setMinAmount: (minAmount?: number) => void;
|
||||||
setMaxAmount: (maxAmount: string | number) => void;
|
setMaxAmount: (maxAmount?: number) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface CashReceiptPurposeUpdateParams {
|
export interface CashReceiptPurposeUpdateParams {
|
||||||
@@ -620,7 +620,7 @@ export interface CashReceiptManualIssueResponse {
|
|||||||
export interface BillingChargeParams {
|
export interface BillingChargeParams {
|
||||||
billKey: string;
|
billKey: string;
|
||||||
productName: string;
|
productName: string;
|
||||||
productAmount: number | string;
|
productAmount: number;
|
||||||
orderNumber: string;
|
orderNumber: string;
|
||||||
buyerName: string;
|
buyerName: string;
|
||||||
paymentRequestDate: string;
|
paymentRequestDate: string;
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ import { ProcessStep } from '../model/types';
|
|||||||
|
|
||||||
export interface CashReceiptHandWrittenIssuanceStep2Props {
|
export interface CashReceiptHandWrittenIssuanceStep2Props {
|
||||||
setProcessStep: (processStep: ProcessStep) => void;
|
setProcessStep: (processStep: ProcessStep) => void;
|
||||||
supplyAmount: number | string;
|
supplyAmount: number;
|
||||||
vatAmount: number | string;
|
vatAmount: number;
|
||||||
taxFreeAmount: number | string;
|
taxFreeAmount: number;
|
||||||
serviceCharge: number | string;
|
serviceCharge: number;
|
||||||
setSupplyAmount: (supplyAmount: number | string) => void;
|
setSupplyAmount: (supplyAmount: number) => void;
|
||||||
setVatAmount: (vatAmount: number | string) => void;
|
setVatAmount: (vatAmount: number) => void;
|
||||||
setTaxFreeAmount: (taxFreeAmount: number | string) => void;
|
setTaxFreeAmount: (taxFreeAmount: number) => void;
|
||||||
setServiceCharge: (serviceCharge: number | string) => void;
|
setServiceCharge: (serviceCharge: number) => void;
|
||||||
};
|
};
|
||||||
export const CashReceiptHandWrittenIssuanceStep2 = ({
|
export const CashReceiptHandWrittenIssuanceStep2 = ({
|
||||||
setProcessStep,
|
setProcessStep,
|
||||||
@@ -63,7 +63,7 @@ export const CashReceiptHandWrittenIssuanceStep2 = ({
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ supplyAmount }
|
value={ supplyAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSupplyAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSupplyAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -75,7 +75,7 @@ export const CashReceiptHandWrittenIssuanceStep2 = ({
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ vatAmount }
|
value={ vatAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setVatAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setVatAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -87,7 +87,7 @@ export const CashReceiptHandWrittenIssuanceStep2 = ({
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ taxFreeAmount }
|
value={ taxFreeAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setTaxFreeAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setTaxFreeAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -99,7 +99,7 @@ export const CashReceiptHandWrittenIssuanceStep2 = ({
|
|||||||
type="text"
|
type="text"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ serviceCharge }
|
value={ serviceCharge }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setServiceCharge(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setServiceCharge(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ export const AllTransactionFilter = ({
|
|||||||
const [filterToDate, setFilterToDate] = useState<string>(toDate);
|
const [filterToDate, setFilterToDate] = useState<string>(toDate);
|
||||||
const [filterStateCode, setFilterStateCode] = useState<AllTransactionStateCode>(stateCode);
|
const [filterStateCode, setFilterStateCode] = useState<AllTransactionStateCode>(stateCode);
|
||||||
const [filterServiceCode, setFilterServiceCode] = useState<AllTransactionServiceCode>(serviceCode);
|
const [filterServiceCode, setFilterServiceCode] = useState<AllTransactionServiceCode>(serviceCode);
|
||||||
const [filterMinAmount, setFilterMinAmount] = useState<number | string>(minAmount || '');
|
const [filterMinAmount, setFilterMinAmount] = useState<number | undefined>(minAmount);
|
||||||
const [filterMaxAmount, setFilterMaxAmount] = useState<number | string>(maxAmount || '');
|
const [filterMaxAmount, setFilterMaxAmount] = useState<number | undefined>(maxAmount);
|
||||||
|
|
||||||
const [filterCardCode, setFilterCardCode] = useState<string | undefined>(cardCode);
|
const [filterCardCode, setFilterCardCode] = useState<string | undefined>(cardCode);
|
||||||
const [filterBankCode, setFilterBankCode] = useState<string | undefined>(bankCode);
|
const [filterBankCode, setFilterBankCode] = useState<string | undefined>(bankCode);
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ export const BillingFilter = ({
|
|||||||
const [filterRequestStatus, setFilterRequestStatus] = useState<BillingRequestStatus>(requestStatus);
|
const [filterRequestStatus, setFilterRequestStatus] = useState<BillingRequestStatus>(requestStatus);
|
||||||
const [filterProcessResult, setFilterProcessResult] = useState<BillingProcessResult>(processResult);
|
const [filterProcessResult, setFilterProcessResult] = useState<BillingProcessResult>(processResult);
|
||||||
const [filterPaymentMethod, setFilterPaymentMethod] = useState<BillingPaymentMethod>(paymentMethod);
|
const [filterPaymentMethod, setFilterPaymentMethod] = useState<BillingPaymentMethod>(paymentMethod);
|
||||||
const [filterMinAmount, setFilterMinAmount] = useState<number | string>(minAmount || '');
|
const [filterMinAmount, setFilterMinAmount] = useState<number | undefined>(minAmount);
|
||||||
const [filterMaxAmount, setFilterMaxAmount] = useState<number | string>(maxAmount || '');
|
const [filterMaxAmount, setFilterMaxAmount] = useState<number | undefined>(maxAmount);
|
||||||
|
|
||||||
const onClickToClose = () => {
|
const onClickToClose = () => {
|
||||||
setFilterOn(false);
|
setFilterOn(false);
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ export const EscrowFilter = ({
|
|||||||
const [filterEndDate, setFilterEndDate] = useState<string>(endDate);
|
const [filterEndDate, setFilterEndDate] = useState<string>(endDate);
|
||||||
const [filterDeliveryStatus, setFilterDeliveryStatus] = useState<EscrowDeliveryStatus>(deliveryStatus);
|
const [filterDeliveryStatus, setFilterDeliveryStatus] = useState<EscrowDeliveryStatus>(deliveryStatus);
|
||||||
const [filterSettlementStatus, setFilterSettlementStatus] = useState<EscrowSettlementStatus>(settlementStatus);
|
const [filterSettlementStatus, setFilterSettlementStatus] = useState<EscrowSettlementStatus>(settlementStatus);
|
||||||
const [filterMinAmount, setFilterMinAmount] = useState<number | string>(minAmount || '');
|
const [filterMinAmount, setFilterMinAmount] = useState<number | undefined>(minAmount);
|
||||||
const [filterMaxAmount, setFilterMaxAmount] = useState<number | string>(maxAmount || '');
|
const [filterMaxAmount, setFilterMaxAmount] = useState<number | undefined>(maxAmount);
|
||||||
|
|
||||||
const onClickToClose = () => {
|
const onClickToClose = () => {
|
||||||
setFilterOn(false);
|
setFilterOn(false);
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { Route } from 'react-router-dom';
|
|||||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||||
import { IntroPage } from './intro/intro-page';
|
import { IntroPage } from './intro/intro-page';
|
||||||
import { ArsCardPaymentListPage } from './ars-card-payment/list-page';
|
import { ArsListPage } from './ars/list-page';
|
||||||
import { ArsCardPaymentRequestPage } from './ars-card-payment/request-page';
|
import { ArsRequestPage } from './ars/request-page';
|
||||||
import { ArsCardPaymentRequestSuccessPage } from './ars-card-payment/request-success-page';
|
import { ArsRequestSuccessPage } from './ars/request-success-page';
|
||||||
import { KeyInPaymentPage } from './key-in-payment/key-in-payment-page';
|
import { KeyInPaymentPage } from './key-in-payment/key-in-payment-page';
|
||||||
import { SmsPaymentNotificationPage } from './sms-payment-notification/sms-payment-notification-page';
|
import { SmsPaymentNotificationPage } from './sms-payment-notification/sms-payment-notification-page';
|
||||||
import { AccountHolderSearchPage } from './account-holder-search/account-holder-search-page';
|
import { AccountHolderSearchPage } from './account-holder-search/account-holder-search-page';
|
||||||
@@ -17,6 +17,7 @@ import { FundAccountTransferListPage } from './fund-account/transfer-list-page';
|
|||||||
import { FundAccountTransferDetailPage } from './fund-account/transfer-detail-page';
|
import { FundAccountTransferDetailPage } from './fund-account/transfer-detail-page';
|
||||||
import { FundAccountTransferRequestPage } from './fund-account/transfer-request-page';
|
import { FundAccountTransferRequestPage } from './fund-account/transfer-request-page';
|
||||||
import { FundAccountResultListPage } from './fund-account/result-list-page';
|
import { FundAccountResultListPage } from './fund-account/result-list-page';
|
||||||
|
import { FundAccountResultDetailPage } from './fund-account/result-detail-page';
|
||||||
import { SettlementAgencyManagePage } from './settlement-agency/manage-page';
|
import { SettlementAgencyManagePage } from './settlement-agency/manage-page';
|
||||||
import { SettlementAgencyDepositPage } from './settlement-agency/deposit-page';
|
import { SettlementAgencyDepositPage } from './settlement-agency/deposit-page';
|
||||||
import { SettlementAgencyMemberPage } from './settlement-agency/member-page';
|
import { SettlementAgencyMemberPage } from './settlement-agency/member-page';
|
||||||
@@ -42,10 +43,10 @@ export const AdditionalServicePages = () => {
|
|||||||
<SentryRoutes>
|
<SentryRoutes>
|
||||||
<Route path={ROUTE_NAMES.additionalService.intro} element={<IntroPage />} />
|
<Route path={ROUTE_NAMES.additionalService.intro} element={<IntroPage />} />
|
||||||
|
|
||||||
<Route path={ROUTE_NAMES.additionalService.arsCardPayment.base}>
|
<Route path={ROUTE_NAMES.additionalService.ars.base}>
|
||||||
<Route path={ROUTE_NAMES.additionalService.arsCardPayment.list} element={<ArsCardPaymentListPage />} />
|
<Route path={ROUTE_NAMES.additionalService.ars.list} element={<ArsListPage />} />
|
||||||
<Route path={ROUTE_NAMES.additionalService.arsCardPayment.request} element={<ArsCardPaymentRequestPage />} />
|
<Route path={ROUTE_NAMES.additionalService.ars.request} element={<ArsRequestPage />} />
|
||||||
<Route path={ROUTE_NAMES.additionalService.arsCardPayment.requestSuccess} element={<ArsCardPaymentRequestSuccessPage />} />
|
<Route path={ROUTE_NAMES.additionalService.ars.requestSuccess} element={<ArsRequestSuccessPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path={ROUTE_NAMES.additionalService.keyInPayment.base}>
|
<Route path={ROUTE_NAMES.additionalService.keyInPayment.base}>
|
||||||
<Route path={ROUTE_NAMES.additionalService.keyInPayment.list} element={<KeyInPaymentPage />} />
|
<Route path={ROUTE_NAMES.additionalService.keyInPayment.list} element={<KeyInPaymentPage />} />
|
||||||
@@ -80,6 +81,7 @@ export const AdditionalServicePages = () => {
|
|||||||
<Route path={ROUTE_NAMES.additionalService.fundAccount.transferDetail} element={<FundAccountTransferDetailPage />} />
|
<Route path={ROUTE_NAMES.additionalService.fundAccount.transferDetail} element={<FundAccountTransferDetailPage />} />
|
||||||
<Route path={ROUTE_NAMES.additionalService.fundAccount.transferRequest} element={<FundAccountTransferRequestPage />} />
|
<Route path={ROUTE_NAMES.additionalService.fundAccount.transferRequest} element={<FundAccountTransferRequestPage />} />
|
||||||
<Route path={ROUTE_NAMES.additionalService.fundAccount.resultList} element={<FundAccountResultListPage />} />
|
<Route path={ROUTE_NAMES.additionalService.fundAccount.resultList} element={<FundAccountResultListPage />} />
|
||||||
|
<Route path={ROUTE_NAMES.additionalService.fundAccount.resultDetail} element={<FundAccountResultDetailPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path={ROUTE_NAMES.additionalService.settlementAgency.base}>
|
<Route path={ROUTE_NAMES.additionalService.settlementAgency.base}>
|
||||||
<Route path={ROUTE_NAMES.additionalService.settlementAgency.manage} element={<SettlementAgencyManagePage />} />
|
<Route path={ROUTE_NAMES.additionalService.settlementAgency.manage} element={<SettlementAgencyManagePage />} />
|
||||||
|
|||||||
@@ -1,217 +0,0 @@
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
|
||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
|
||||||
import {
|
|
||||||
useSetHeaderTitle,
|
|
||||||
useSetHeaderType,
|
|
||||||
useSetFooterMode,
|
|
||||||
useSetOnBack
|
|
||||||
} from '@/widgets/sub-layout/use-sub-layout';
|
|
||||||
|
|
||||||
export const ArsCardPaymentListPage = () => {
|
|
||||||
const { navigate } = useNavigate();
|
|
||||||
|
|
||||||
useSetHeaderTitle('신용카드 ARS 결제');
|
|
||||||
useSetHeaderType(HeaderType.LeftArrow);
|
|
||||||
useSetFooterMode(false);
|
|
||||||
useSetOnBack(() => {
|
|
||||||
navigate(PATHS.home);
|
|
||||||
});
|
|
||||||
|
|
||||||
const onClickToNavigation = () => {
|
|
||||||
navigate(PATHS.additionalService.arsCardPayment.request);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<main>
|
|
||||||
<div className="tab-content">
|
|
||||||
<div className="tab-pane sub active">
|
|
||||||
<section className="summary-section">
|
|
||||||
<div className="credit-controls">
|
|
||||||
<div>
|
|
||||||
<input
|
|
||||||
className="credit-period"
|
|
||||||
type="text"
|
|
||||||
value="2025.06.01 ~ 2025.06.30"
|
|
||||||
readOnly={ true }
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
className="filter-btn"
|
|
||||||
aria-label="필터"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src={ IMAGE_ROOT + '/ico_setting.svg' }
|
|
||||||
alt="검색옵션"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
className="download-btn"
|
|
||||||
aria-label="다운로드"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src={ IMAGE_ROOT +'/ico_download.svg' }
|
|
||||||
alt="다운로드"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="filter-section">
|
|
||||||
<div className="sort-options">
|
|
||||||
<button className="sort-btn active">최신순</button>
|
|
||||||
<span className="sort-divider">|</span>
|
|
||||||
<button className="sort-btn">고액순</button>
|
|
||||||
</div>
|
|
||||||
<div className="excrow">
|
|
||||||
<div className="full-menu-keywords no-padding">
|
|
||||||
<span className="keyword-tag active">전체</span>
|
|
||||||
<span className="keyword-tag">결제완료</span>
|
|
||||||
<span className="keyword-tag">배송등록</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="transaction-list">
|
|
||||||
<div className="date-group">
|
|
||||||
<div className="date-header">25.06.08(일)</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00ㅣ미결제ㅣ결제대기ㅣSMS</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">5,254,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item refund">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot gray"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">최*길(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00ㅣ결제완료ㅣ결제성공ㅣ호전환</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">23,845,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">박*준(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00ㅣ결제완료ㅣ결제성공ㅣ호전환</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">534,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item refund">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot gray"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">이*신(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00ㅣ미결제ㅣ취소완료ㅣSMS</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">4,254,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">김*환(7000)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>20:00ㅣ미결제ㅣ기간만료ㅣSMS</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">948,000원</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="date-group">
|
|
||||||
<div className="date-header">25.06.08(일)</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">신용카드(카카오머니, 카카오)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>승인ㅣ20:00ㅣcroquis01m</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">3,583,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item refund">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot gray"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">신용카드(현대카드., 토스)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>환불ㅣ20:00ㅣcroquis01m</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">874,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">계좌간편결제(국민은행, PAYU)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>승인ㅣ20:00ㅣcroquis01m</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">23,562,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item refund">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot gray"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">휴대폰</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>환불ㅣ20:00ㅣcroquis01m</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">783,000원</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-item approved">
|
|
||||||
<div className="transaction-status">
|
|
||||||
<div className="status-dot blue"></div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-content">
|
|
||||||
<div className="transaction-title">SSG 은행계좌(농협중앙회)</div>
|
|
||||||
<div className="transaction-details">
|
|
||||||
<span>승인ㅣ20:00ㅣcroquis01m</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="transaction-amount">3,923,000원</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<div className="apply-row">
|
|
||||||
<button
|
|
||||||
className="btn-50 btn-blue flex-1"
|
|
||||||
onClick={ () => onClickToNavigation() }
|
|
||||||
>결제 신청</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
217
src/pages/additional-service/ars/list-page.tsx
Normal file
217
src/pages/additional-service/ars/list-page.tsx
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
|
import { HeaderType, SortByKeys } from '@/entities/common/model/types';
|
||||||
|
import {
|
||||||
|
useSetHeaderTitle,
|
||||||
|
useSetHeaderType,
|
||||||
|
useSetFooterMode,
|
||||||
|
useSetOnBack
|
||||||
|
} from '@/widgets/sub-layout/use-sub-layout';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
|
import { ArsListContent, ExtensionArsDownloadExcelParams, ExtensionArsDownloadExcelResponse, ExtensionArsListParams, ExtensionArsListResponse, OrderStatus, PaymentStatus } from '@/entities/additional-service/model/ars/types';
|
||||||
|
import { useExtensionArsListMutation } from '@/entities/additional-service/api/ars/use-extension-ars-list-mutation';
|
||||||
|
import moment from 'moment';
|
||||||
|
import { useExtensionArsDownloadExcelMutation } from '@/entities/additional-service/api/ars/use-extension-ars-download-excel-mutation';
|
||||||
|
import { ListDateGroup } from '@/entities/additional-service/ui/list-date-group';
|
||||||
|
import { AdditionalServiceCategory } from '@/entities/additional-service/model/types';
|
||||||
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
|
import { PaymentStatusBtnGroup } from '@/entities/additional-service/model/ars/constant';
|
||||||
|
|
||||||
|
export const ArsListPage = () => {
|
||||||
|
const { navigate } = useNavigate();
|
||||||
|
|
||||||
|
const [sortBy, setSortBy] = useState<SortByKeys>(SortByKeys.New);
|
||||||
|
const [listItems, setListItems] = useState<Record<string, Array<ArsListContent>>>({});
|
||||||
|
const [filterOn, setFilterOn] = useState<boolean>(false);
|
||||||
|
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
||||||
|
const [mid, setMid] = useState<string>('nictest001m');
|
||||||
|
const [moid, setMoid] = useState<string>('');
|
||||||
|
const [fromDate, setFromDate] = useState<string>(moment().format('YYYYMMDD'));
|
||||||
|
const [toDate, setToDate] = useState<string>(moment().format('YYYYMMDD'));
|
||||||
|
const [paymentStatus, setPaymentStatus] = useState<PaymentStatus>(PaymentStatus.ALL);
|
||||||
|
const [orderStatus, setOrderStatus] = useState<OrderStatus>(OrderStatus.ALL);
|
||||||
|
const [minAmount, setMinAmount] = useState<number>(0);
|
||||||
|
const [maxAmount, setMaxAmount] = useState<number>(0);
|
||||||
|
|
||||||
|
const { mutateAsync: extensionArsList } = useExtensionArsListMutation();
|
||||||
|
const { mutateAsync: extensionArsDownloadExcel } = useExtensionArsDownloadExcelMutation();
|
||||||
|
|
||||||
|
useSetHeaderTitle('신용카드 ARS 결제');
|
||||||
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
|
useSetFooterMode(false);
|
||||||
|
useSetOnBack(() => {
|
||||||
|
navigate(PATHS.home);
|
||||||
|
});
|
||||||
|
|
||||||
|
const callList = (option?: {
|
||||||
|
sortBy?: string,
|
||||||
|
val?: string
|
||||||
|
}) => {
|
||||||
|
pageParam.sortBy = (option?.sortBy)? option.sortBy: sortBy;
|
||||||
|
setPageParam(pageParam);
|
||||||
|
|
||||||
|
let params: ExtensionArsListParams = {
|
||||||
|
mid: mid,
|
||||||
|
moid: moid,
|
||||||
|
fromDate: fromDate,
|
||||||
|
toDate: toDate,
|
||||||
|
paymentStatus: paymentStatus,
|
||||||
|
orderStatus: orderStatus,
|
||||||
|
minAmount: minAmount,
|
||||||
|
maxAmount: maxAmount,
|
||||||
|
page: pageParam
|
||||||
|
};
|
||||||
|
extensionArsList(params).then((rs: ExtensionArsListResponse) => {
|
||||||
|
setListItems(assembleData(rs.content));
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const callDownloadExcel = () => {
|
||||||
|
let params: ExtensionArsDownloadExcelParams = {
|
||||||
|
mid: mid,
|
||||||
|
moid: moid,
|
||||||
|
fromDate: fromDate,
|
||||||
|
toDate: toDate,
|
||||||
|
paymentStatus: paymentStatus,
|
||||||
|
orderStatus: orderStatus,
|
||||||
|
minAmount: minAmount,
|
||||||
|
maxAmount: maxAmount,
|
||||||
|
};
|
||||||
|
extensionArsDownloadExcel(params).then((rs: ExtensionArsDownloadExcelResponse) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const assembleData = (content: Array<ArsListContent>) => {
|
||||||
|
let data: any = {};
|
||||||
|
if(content && content.length > 0){
|
||||||
|
for(let i=0;i<content?.length;i++){
|
||||||
|
let date = content[i]?.paymentDate?.substring(0, 8);
|
||||||
|
let groupDate = moment(date).format('YYYYMMDD');
|
||||||
|
if(!!groupDate && !data.hasOwnProperty(groupDate)){
|
||||||
|
data[groupDate] = [];
|
||||||
|
}
|
||||||
|
if(!!groupDate && data.hasOwnProperty(groupDate)){
|
||||||
|
data[groupDate].push(content[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToNavigation = () => {
|
||||||
|
navigate(PATHS.additionalService.ars.request);
|
||||||
|
};
|
||||||
|
|
||||||
|
const onClickToDownloadExcel = () => {
|
||||||
|
callDownloadExcel();
|
||||||
|
};
|
||||||
|
const onClickToOpenFilter = () => {
|
||||||
|
setFilterOn(!filterOn);
|
||||||
|
};
|
||||||
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
|
setSortBy(sort);
|
||||||
|
callList({sortBy: sort});
|
||||||
|
};
|
||||||
|
const onClickToPaymentStatus = (val: PaymentStatus) => {
|
||||||
|
setPaymentStatus(val);
|
||||||
|
callList({val: val});
|
||||||
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
callList();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const getArsList = () => {
|
||||||
|
let rs = [];
|
||||||
|
if(Object.keys(listItems).length > 0){
|
||||||
|
for (const [key, value] of Object.entries(listItems)) {
|
||||||
|
rs.push(
|
||||||
|
<ListDateGroup
|
||||||
|
additionalServiceCategory={ AdditionalServiceCategory.Ars }
|
||||||
|
mid={ mid }
|
||||||
|
key={ key }
|
||||||
|
date={ key }
|
||||||
|
items={ value }
|
||||||
|
></ListDateGroup>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rs;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<main>
|
||||||
|
<div className="tab-content">
|
||||||
|
<div className="tab-pane sub active">
|
||||||
|
<section className="summary-section">
|
||||||
|
<div className="credit-controls">
|
||||||
|
<div>
|
||||||
|
<input
|
||||||
|
className="credit-period"
|
||||||
|
type="text"
|
||||||
|
value={ moment(fromDate).format('YYYY.MM.DD') + '-' + moment(toDate).format('YYYY.MM.DD') }
|
||||||
|
readOnly={ true }
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
className="filter-btn"
|
||||||
|
aria-label="필터"
|
||||||
|
onClick={ () => onClickToOpenFilter() }
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={ IMAGE_ROOT + '/ico_setting.svg' }
|
||||||
|
alt="검색옵션"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
className="download-btn"
|
||||||
|
aria-label="다운로드"
|
||||||
|
onClick={ () => onClickToDownloadExcel() }
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={ IMAGE_ROOT +'/ico_download.svg' }
|
||||||
|
alt="다운로드"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section className="filter-section">
|
||||||
|
<SortOptionsBox
|
||||||
|
sortBy={ sortBy }
|
||||||
|
onClickToSort={ onClickToSort }
|
||||||
|
></SortOptionsBox>
|
||||||
|
<div className="excrow mr-0">
|
||||||
|
<div className="full-menu-keywords no-padding">
|
||||||
|
{
|
||||||
|
PaymentStatusBtnGroup.map((value, index) => (
|
||||||
|
<span
|
||||||
|
key={ `key-service-code=${ index }` }
|
||||||
|
className={ `keyword-tag ${(paymentStatus === value.value)? 'active': ''}` }
|
||||||
|
onClick={ () => onClickToPaymentStatus(value.value) }
|
||||||
|
>{ value.name }</span>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section className="transaction-list">
|
||||||
|
{ getArsList() }
|
||||||
|
<div className="apply-row">
|
||||||
|
<button
|
||||||
|
className="btn-50 btn-blue flex-1"
|
||||||
|
onClick={ () => onClickToNavigation() }
|
||||||
|
>결제 신청</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
import { useExtensionArsApplyMutation } from '@/entities/additional-service/api/use-extension-ars-apply-mutation';
|
import { useExtensionArsApplyMutation } from '@/entities/additional-service/api/ars/use-extension-ars-apply-mutation';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { HeaderType } from '@/entities/common/model/types';
|
||||||
import {
|
import {
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
useSetOnBack
|
useSetOnBack
|
||||||
} from '@/widgets/sub-layout/use-sub-layout';
|
} from '@/widgets/sub-layout/use-sub-layout';
|
||||||
|
|
||||||
export const ArsCardPaymentRequestPage = () => {
|
export const ArsRequestPage = () => {
|
||||||
const { navigate } = useNavigate();
|
const { navigate } = useNavigate();
|
||||||
|
|
||||||
const { mutateAsync: arsApply } = useExtensionArsApplyMutation();
|
const { mutateAsync: arsApply } = useExtensionArsApplyMutation();
|
||||||
@@ -20,10 +20,10 @@ export const ArsCardPaymentRequestPage = () => {
|
|||||||
useSetHeaderType(HeaderType.LeftArrow);
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
useSetFooterMode(false);
|
useSetFooterMode(false);
|
||||||
useSetOnBack(() => {
|
useSetOnBack(() => {
|
||||||
navigate(PATHS.additionalService.arsCardPayment.list);
|
navigate(PATHS.additionalService.ars.list);
|
||||||
});
|
});
|
||||||
|
|
||||||
const callArsCardPaymentRequest = () => {
|
const callArsRequest = () => {
|
||||||
let arsApplyParams = {
|
let arsApplyParams = {
|
||||||
mid: 'string',
|
mid: 'string',
|
||||||
moid: 'string',
|
moid: 'string',
|
||||||
@@ -36,7 +36,7 @@ export const ArsCardPaymentRequestPage = () => {
|
|||||||
arsPaymentMethod: 'SMS',
|
arsPaymentMethod: 'SMS',
|
||||||
};
|
};
|
||||||
arsApply(arsApplyParams).then((rs) => {
|
arsApply(arsApplyParams).then((rs) => {
|
||||||
navigate(PATHS.additionalService.arsCardPayment.requestSuccess);
|
navigate(PATHS.additionalService.ars.requestSuccess);
|
||||||
console.log(rs)
|
console.log(rs)
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ export const ArsCardPaymentRequestPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onClickToRequest = () => {
|
const onClickToRequest = () => {
|
||||||
callArsCardPaymentRequest();
|
callArsRequest();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -5,14 +5,14 @@ import {
|
|||||||
useSetHeaderType,
|
useSetHeaderType,
|
||||||
useSetFooterMode,
|
useSetFooterMode,
|
||||||
} from '@/widgets/sub-layout/use-sub-layout';
|
} from '@/widgets/sub-layout/use-sub-layout';
|
||||||
export const ArsCardPaymentRequestSuccessPage = () => {
|
export const ArsRequestSuccessPage = () => {
|
||||||
const { navigate } = useNavigate();
|
const { navigate } = useNavigate();
|
||||||
|
|
||||||
useSetHeaderType(HeaderType.NoHeader);
|
useSetHeaderType(HeaderType.NoHeader);
|
||||||
useSetFooterMode(false);
|
useSetFooterMode(false);
|
||||||
|
|
||||||
const onClickToNavigate = () => {
|
const onClickToNavigate = () => {
|
||||||
navigate(PATHS.additionalService.arsCardPayment.list);
|
navigate(PATHS.additionalService.ars.list);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
|
import { HeaderType } from '@/entities/common/model/types';
|
||||||
|
import {
|
||||||
|
useSetHeaderTitle,
|
||||||
|
useSetHeaderType,
|
||||||
|
useSetFooterMode,
|
||||||
|
useSetOnBack
|
||||||
|
} from '@/widgets/sub-layout/use-sub-layout';
|
||||||
|
import { useLocation } from 'react-router';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { NumericFormat } from 'react-number-format';
|
||||||
|
import {
|
||||||
|
ExtensionFundAccountResultDetailParams,
|
||||||
|
ExtensionFundAccountResultDetailResponse,
|
||||||
|
} from '@/entities/additional-service/model/fund-account/types';
|
||||||
|
import moment from 'moment';
|
||||||
|
import { useExtensionFundAccountResultDetailMutation } from '@/entities/additional-service/api/fund-account/use-extension-fund-account-result-detail-mutation';
|
||||||
|
|
||||||
|
export const FundAccountResultDetailPage = () => {
|
||||||
|
const { navigate } = useNavigate();
|
||||||
|
const location = useLocation();
|
||||||
|
|
||||||
|
const tid = location.state.tid;
|
||||||
|
const mid = location.state.mid;
|
||||||
|
|
||||||
|
const [detail, setDetail] = useState<ExtensionFundAccountResultDetailResponse>();
|
||||||
|
|
||||||
|
const { mutateAsync: extensionFundAccountResultDetail } = useExtensionFundAccountResultDetailMutation();
|
||||||
|
|
||||||
|
const callDetail = () => {
|
||||||
|
let params: ExtensionFundAccountResultDetailParams = {
|
||||||
|
tid: tid,
|
||||||
|
mid: mid,
|
||||||
|
};
|
||||||
|
|
||||||
|
extensionFundAccountResultDetail(params).then((rs: ExtensionFundAccountResultDetailResponse) => {
|
||||||
|
setDetail(rs);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
useSetHeaderTitle('자금이체 상세');
|
||||||
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
|
useSetFooterMode(false);
|
||||||
|
useSetOnBack(() => {
|
||||||
|
navigate(PATHS.additionalService.fundAccount.resultList);
|
||||||
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
callDetail();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<main className="full-height">
|
||||||
|
<div className="tab-content">
|
||||||
|
<div className="tab-pane sub active">
|
||||||
|
<div className="pay-top">
|
||||||
|
<div className="num-amount">
|
||||||
|
<span className="amount">
|
||||||
|
<NumericFormat
|
||||||
|
value={ detail?.transferAmount }
|
||||||
|
thousandSeparator
|
||||||
|
displayType="text"
|
||||||
|
suffix='원'
|
||||||
|
></NumericFormat>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="num-store">{ detail?.receiveAccountName }({ detail?.receiveAccountNo })</div>
|
||||||
|
<div className="num-day">{ moment(detail?.processDate).format('YYYY.MM.DD') }</div>
|
||||||
|
</div>
|
||||||
|
<div className="detail-divider"></div>
|
||||||
|
<div className="pay-detail">
|
||||||
|
<div className="detail-title">상세 정보</div>
|
||||||
|
<ul className="kv-list">
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">요청일시</span>
|
||||||
|
<span className="v">{ moment(detail?.processDate).format('YYYY.MM.DD') }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">이체일시</span>
|
||||||
|
<span className="v">{ moment(detail?.requestDate).format('YYYY.MM.DD') }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">이체결과</span>
|
||||||
|
<span className="v">{ detail?.status }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">실패사유</span>
|
||||||
|
<span className="v">{ detail?.failReason }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">수취인명</span>
|
||||||
|
<span className="v">{ detail?.receiveAccountName }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">은행</span>
|
||||||
|
<span className="v">{ detail?.receiveBankName }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">계좌번호</span>
|
||||||
|
<span className="v">{ detail?.receiveAccountNo }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">MID</span>
|
||||||
|
<span className="v">{ mid }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">주문번호</span>
|
||||||
|
<span className="v">{ '주문번호' }</span>
|
||||||
|
</li>
|
||||||
|
<li className="kv-row">
|
||||||
|
<span className="k">TID</span>
|
||||||
|
<span className="v">{ detail?.bankTid }</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -81,8 +81,8 @@ export const FundAccountTransferDetailPage = () => {
|
|||||||
></NumericFormat>
|
></NumericFormat>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="num-store">나이스테스트가맹점</div>
|
<div className="num-store">{ detail?.receiveAccountName }({ detail?.receiveAccountNo })</div>
|
||||||
<div className="num-day">2025.08.19</div>
|
<div className="num-day">{ moment(detail?.processDate).format('YYYY.MM.DD') }</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="detail-divider"></div>
|
<div className="detail-divider"></div>
|
||||||
<div className="pay-detail">
|
<div className="pay-detail">
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const IntroPage = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
className: 'list-wrap01', serviceName: '신용카드 ARS 결제', serviceDesc: '전화 한 통으로 결제 성공 편리하고 안전한 서비스',
|
className: 'list-wrap01', serviceName: '신용카드 ARS 결제', serviceDesc: '전화 한 통으로 결제 성공 편리하고 안전한 서비스',
|
||||||
icon: IMAGE_ROOT + '/icon_ing01.svg', path: PATHS.additionalService.arsCardPayment.list
|
icon: IMAGE_ROOT + '/icon_ing01.svg', path: PATHS.additionalService.ars.list
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
className: 'list-wrap01', serviceName: 'KEY-IN 결제', serviceDesc: '상담 중 카드정보 입력으로 간편한 결제 지원',
|
className: 'list-wrap01', serviceName: 'KEY-IN 결제', serviceDesc: '상담 중 카드정보 입력으로 간편한 결제 지원',
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ export const KeyInPaymentPage = () => {
|
|||||||
const [startDate, setStartDate] = useState(moment().format('YYYY-MM-DD'));
|
const [startDate, setStartDate] = useState(moment().format('YYYY-MM-DD'));
|
||||||
const [endDate, setEndDate] = useState(moment().format('YYYY-MM-DD'));
|
const [endDate, setEndDate] = useState(moment().format('YYYY-MM-DD'));
|
||||||
const [transactionStatus, setTransactionStatus] = useState<KeyInPaymentTransactionStatus>(KeyInPaymentTransactionStatus.ALL)
|
const [transactionStatus, setTransactionStatus] = useState<KeyInPaymentTransactionStatus>(KeyInPaymentTransactionStatus.ALL)
|
||||||
const [minAmount, setMinAmount] = useState<number | string>();
|
const [minAmount, setMinAmount] = useState<number>();
|
||||||
const [maxAmount, setMaxAmount] = useState<number | string>();
|
const [maxAmount, setMaxAmount] = useState<number>();
|
||||||
|
|
||||||
|
|
||||||
useSetHeaderTitle('KEY-IN 결제');
|
useSetHeaderTitle('KEY-IN 결제');
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ export const LinkPaymentWaitDetailPage = () => {
|
|||||||
<div className="tab-pane sub active">
|
<div className="tab-pane sub active">
|
||||||
<div className="pay-top">
|
<div className="pay-top">
|
||||||
<TitleInfoWrap
|
<TitleInfoWrap
|
||||||
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentPending}
|
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentWait}
|
||||||
titleInfo={titleInfo}
|
titleInfo={titleInfo}
|
||||||
></TitleInfoWrap>
|
></TitleInfoWrap>
|
||||||
|
|
||||||
<div className="txn-divider minus"></div>
|
<div className="txn-divider minus"></div>
|
||||||
|
|
||||||
<PaymentInfoWrap
|
<PaymentInfoWrap
|
||||||
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentPending}
|
additionalServiceCategory={AdditionalServiceCategory.LinkPaymentWait}
|
||||||
paymentInfo={paymentInfo}
|
paymentInfo={paymentInfo}
|
||||||
></PaymentInfoWrap>
|
></PaymentInfoWrap>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ export const PayoutListPage = () => {
|
|||||||
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
||||||
const [mid, setMid] = useState<string>('nictest001m');
|
const [mid, setMid] = useState<string>('nictest001m');
|
||||||
const [searchCl, setSearchCl] = useState<PayoutSearchCl>(PayoutSearchCl.REQUEST_DATE);
|
const [searchCl, setSearchCl] = useState<PayoutSearchCl>(PayoutSearchCl.REQUEST_DATE);
|
||||||
const [fromDate, setFromDate] = useState(moment().format('YYYYMMDD'));
|
const [fromDate, setFromDate] = useState<string>(moment().format('YYYYMMDD'));
|
||||||
const [toDate, setToDate] = useState(moment().format('YYYYMMDD'));
|
const [toDate, setToDate] = useState<string>(moment().format('YYYYMMDD'));
|
||||||
const [disbursementStatus, setDisbursementStatus] = useState<PayoutDisbursementStatus>(PayoutDisbursementStatus.ALL);
|
const [disbursementStatus, setDisbursementStatus] = useState<PayoutDisbursementStatus>(PayoutDisbursementStatus.ALL);
|
||||||
const [minAmount, setMinAmount] = useState<number | string>();
|
const [minAmount, setMinAmount] = useState<number>();
|
||||||
const [maxAmount, setMaxAmount] = useState<number | string>();
|
const [maxAmount, setMaxAmount] = useState<number>();
|
||||||
|
|
||||||
const { mutateAsync: extensionPayoutList } = useExtensionPayoutListMutation();
|
const { mutateAsync: extensionPayoutList } = useExtensionPayoutListMutation();
|
||||||
const { mutateAsync: extensionPayoutExcel } = useExtensionPayoutExcelMutation();
|
const { mutateAsync: extensionPayoutExcel } = useExtensionPayoutExcelMutation();
|
||||||
@@ -224,7 +224,7 @@ export const PayoutListPage = () => {
|
|||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onClickToSort={ onClickToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<div className="excrow">
|
<div className="excrow mr-0">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
{
|
{
|
||||||
PayoutDisbursementStatusBtnGroup.map((value, index) => (
|
PayoutDisbursementStatusBtnGroup.map((value, index) => (
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ export const AllTransactionListPage = () => {
|
|||||||
const [toDate, setToDate] = useState(moment().format('YYYYMMDD'));
|
const [toDate, setToDate] = useState(moment().format('YYYYMMDD'));
|
||||||
const [stateCode, setStateCode] = useState<AllTransactionStateCode>(AllTransactionStateCode.ALL);
|
const [stateCode, setStateCode] = useState<AllTransactionStateCode>(AllTransactionStateCode.ALL);
|
||||||
const [serviceCode, setServiceCode] = useState<AllTransactionServiceCode>(AllTransactionServiceCode.ALL);
|
const [serviceCode, setServiceCode] = useState<AllTransactionServiceCode>(AllTransactionServiceCode.ALL);
|
||||||
const [minAmount, setMinAmount] = useState<number | string>();
|
const [minAmount, setMinAmount] = useState<number>();
|
||||||
const [maxAmount, setMaxAmount] = useState<number | string>();
|
const [maxAmount, setMaxAmount] = useState<number>();
|
||||||
const [cardCode, setCardCode] = useState<string | undefined>();
|
const [cardCode, setCardCode] = useState<string | undefined>();
|
||||||
const [bankCode, setBankCode] = useState<string | undefined>();
|
const [bankCode, setBankCode] = useState<string | undefined>();
|
||||||
const [searchCl, setSearchCl] = useState<AllTransactionSearchCl | undefined>();
|
const [searchCl, setSearchCl] = useState<AllTransactionSearchCl | undefined>();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export const BillingChargePage = () => {
|
|||||||
|
|
||||||
const [billKey, setBillKey] = useState<string>('BIKYvattest01m');
|
const [billKey, setBillKey] = useState<string>('BIKYvattest01m');
|
||||||
const [productName, setProductName] = useState<string>('테스트상품123');
|
const [productName, setProductName] = useState<string>('테스트상품123');
|
||||||
const [productAmount, setProductAmount] = useState<number | string>(1000000);
|
const [productAmount, setProductAmount] = useState<number>(1000000);
|
||||||
const [orderNumber, setOrderNumber] = useState<string>('P146733723');
|
const [orderNumber, setOrderNumber] = useState<string>('P146733723');
|
||||||
const [buyerName, setBuyerName] = useState<string>('김테스트');
|
const [buyerName, setBuyerName] = useState<string>('김테스트');
|
||||||
const [paymentRequestDate, setPaymentRequestDate] = useState<string>('2025-06-08');
|
const [paymentRequestDate, setPaymentRequestDate] = useState<string>('2025-06-08');
|
||||||
@@ -109,7 +109,7 @@ export const BillingChargePage = () => {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={ productAmount }
|
value={ productAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setProductAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setProductAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ export const BillingListPage = () => {
|
|||||||
const [requestStatus, setRequestStatus] = useState<BillingRequestStatus>(BillingRequestStatus.ALL);
|
const [requestStatus, setRequestStatus] = useState<BillingRequestStatus>(BillingRequestStatus.ALL);
|
||||||
const [processResult, setProcessResult] = useState<BillingProcessResult>(BillingProcessResult.ALL);
|
const [processResult, setProcessResult] = useState<BillingProcessResult>(BillingProcessResult.ALL);
|
||||||
const [paymentMethod, setPaymentMethod] = useState<BillingPaymentMethod>(BillingPaymentMethod.ALL);
|
const [paymentMethod, setPaymentMethod] = useState<BillingPaymentMethod>(BillingPaymentMethod.ALL);
|
||||||
const [minAmount, setMinAmount] = useState<number | string>();
|
const [minAmount, setMinAmount] = useState<number>();
|
||||||
const [maxAmount, setMaxAmount] = useState<number | string>();
|
const [maxAmount, setMaxAmount] = useState<number>();
|
||||||
|
|
||||||
useSetHeaderTitle('빌링');
|
useSetHeaderTitle('빌링');
|
||||||
useSetHeaderType(HeaderType.LeftArrow);
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ export const CashReceitHandWrittenIssuancePage = () => {
|
|||||||
const [issueNumber, setIssueNumber] = useState<string>('01012341234');
|
const [issueNumber, setIssueNumber] = useState<string>('01012341234');
|
||||||
const [email, setEmail] = useState<string>('test123@nicepay.com');
|
const [email, setEmail] = useState<string>('test123@nicepay.com');
|
||||||
const [phoneNumber, setPhoneNumber] = useState<string>('01012341234');
|
const [phoneNumber, setPhoneNumber] = useState<string>('01012341234');
|
||||||
const [supplyAmount, setSupplyAmount] = useState<number | string>(9091);
|
const [supplyAmount, setSupplyAmount] = useState<number>(9091);
|
||||||
const [vatAmount, setVatAmount] = useState<number | string>(909);
|
const [vatAmount, setVatAmount] = useState<number>(909);
|
||||||
const [taxFreeAmount, setTaxFreeAmount] = useState<number | string>(0);
|
const [taxFreeAmount, setTaxFreeAmount] = useState<number>(0);
|
||||||
const [serviceCharge, setServiceCharge] = useState<number | string>(0);
|
const [serviceCharge, setServiceCharge] = useState<number>(0);
|
||||||
|
|
||||||
useSetHeaderTitle('수기 발행');
|
useSetHeaderTitle('수기 발행');
|
||||||
useSetHeaderType(HeaderType.RightClose);
|
useSetHeaderType(HeaderType.RightClose);
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ export const EscrowListPage = () => {
|
|||||||
const [endDate, setEndDate] = useState(moment().format('YYYY-MM-DD'));
|
const [endDate, setEndDate] = useState(moment().format('YYYY-MM-DD'));
|
||||||
const [deliveryStatus, setDeliveryStatus] = useState<EscrowDeliveryStatus>(EscrowDeliveryStatus.ALL);
|
const [deliveryStatus, setDeliveryStatus] = useState<EscrowDeliveryStatus>(EscrowDeliveryStatus.ALL);
|
||||||
const [settlementStatus, setSettlementStatus] = useState<EscrowSettlementStatus>(EscrowSettlementStatus.ALL);
|
const [settlementStatus, setSettlementStatus] = useState<EscrowSettlementStatus>(EscrowSettlementStatus.ALL);
|
||||||
const [minAmount, setMinAmount] = useState<number | string>();
|
const [minAmount, setMinAmount] = useState<number>();
|
||||||
const [maxAmount, setMaxAmount] = useState<number | string>();
|
const [maxAmount, setMaxAmount] = useState<number>();
|
||||||
|
|
||||||
useSetHeaderTitle('에스크로');
|
useSetHeaderTitle('에스크로');
|
||||||
useSetHeaderType(HeaderType.LeftArrow);
|
useSetHeaderType(HeaderType.LeftArrow);
|
||||||
|
|||||||
@@ -142,19 +142,19 @@ export const PATHS: RouteNamesType = {
|
|||||||
additionalService: {
|
additionalService: {
|
||||||
base: generatePath(ROUTE_NAMES.additionalService.base),
|
base: generatePath(ROUTE_NAMES.additionalService.base),
|
||||||
intro: generatePath(ROUTE_NAMES.additionalService.base, ROUTE_NAMES.additionalService.intro),
|
intro: generatePath(ROUTE_NAMES.additionalService.base, ROUTE_NAMES.additionalService.intro),
|
||||||
arsCardPayment: {
|
ars: {
|
||||||
base: generatePath(`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.arsCardPayment.base}`),
|
base: generatePath(`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.ars.base}`),
|
||||||
list: generatePath(
|
list: generatePath(
|
||||||
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.arsCardPayment.base}`,
|
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.ars.base}`,
|
||||||
ROUTE_NAMES.additionalService.arsCardPayment.list,
|
ROUTE_NAMES.additionalService.ars.list,
|
||||||
),
|
),
|
||||||
request: generatePath(
|
request: generatePath(
|
||||||
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.arsCardPayment.base}`,
|
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.ars.base}`,
|
||||||
ROUTE_NAMES.additionalService.arsCardPayment.request,
|
ROUTE_NAMES.additionalService.ars.request,
|
||||||
),
|
),
|
||||||
requestSuccess: generatePath(
|
requestSuccess: generatePath(
|
||||||
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.arsCardPayment.base}`,
|
`${ROUTE_NAMES.additionalService.base}${ROUTE_NAMES.additionalService.ars.base}`,
|
||||||
ROUTE_NAMES.additionalService.arsCardPayment.requestSuccess,
|
ROUTE_NAMES.additionalService.ars.requestSuccess,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
keyInPayment: {
|
keyInPayment: {
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ export const ROUTE_NAMES = {
|
|||||||
additionalService: {
|
additionalService: {
|
||||||
base: '/additional-service/*',
|
base: '/additional-service/*',
|
||||||
intro: 'intro',
|
intro: 'intro',
|
||||||
arsCardPayment: {
|
ars: {
|
||||||
base: '/ars-card-payment/*',
|
base: '/ars/*',
|
||||||
list: 'list',
|
list: 'list',
|
||||||
request: 'request',
|
request: 'request',
|
||||||
requestSuccess: 'request-success',
|
requestSuccess: 'request-success',
|
||||||
|
|||||||
@@ -78,3 +78,6 @@ main {
|
|||||||
.notice-box {
|
.notice-box {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
.menu-category:last-of-type{
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
@@ -25,7 +25,7 @@ export const FilterRangeAmount = ({
|
|||||||
type="number"
|
type="number"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ minAmount }
|
value={ minAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setMinAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setMinAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span> ~ </span>
|
<span> ~ </span>
|
||||||
@@ -34,7 +34,7 @@ export const FilterRangeAmount = ({
|
|||||||
type="number"
|
type="number"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
value={ maxAmount }
|
value={ maxAmount }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setMaxAmount(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setMaxAmount(parseInt(e.target.value)) }
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export const Menu = ({
|
|||||||
categoryIcon: 'service-icon',
|
categoryIcon: 'service-icon',
|
||||||
items: [
|
items: [
|
||||||
{title: '부가서비스소개', path: PATHS.additionalService.intro},
|
{title: '부가서비스소개', path: PATHS.additionalService.intro},
|
||||||
{title: 'ARS 카드결제', path: PATHS.additionalService.arsCardPayment.list},
|
{title: 'ARS 카드결제', path: PATHS.additionalService.ars.list},
|
||||||
{title: 'KEY-IN 결제', path: PATHS.additionalService.keyInPayment.list},
|
{title: 'KEY-IN 결제', path: PATHS.additionalService.keyInPayment.list},
|
||||||
{title: 'SMS 결제 통보', path: PATHS.additionalService.smsPaymentNotification},
|
{title: 'SMS 결제 통보', path: PATHS.additionalService.smsPaymentNotification},
|
||||||
{title: '계좌성명조회', path: PATHS.additionalService.accountHolderSearch.list},
|
{title: '계좌성명조회', path: PATHS.additionalService.accountHolderSearch.list},
|
||||||
|
|||||||
Reference in New Issue
Block a user