- SMS,KeyIn,ARS 페이지 스크롤 적용

- ARS 결제신청 :성공 결과 팝업 추가
This commit is contained in:
HyeonJongKim
2025-10-20 16:03:13 +09:00
parent 5d2af3fb06
commit 948657db3f
20 changed files with 570 additions and 296 deletions

View File

@@ -22,8 +22,9 @@ export interface AccountHolderSearchListItem {
}
export interface AccountHolderSearchListProps {
listItems: Record<string, Array<ListItemProps>>;
listItems: Array<AccountHolderSearchListItem>;
mid: string;
setTarget: (element: HTMLElement | null) => void;
}
export interface AccountHolderSearchFilterProps extends FilterProps {

View File

@@ -15,4 +15,16 @@ export const ArsOrderStatusBtnGroup = [
export const ArsPaymentMethodBtnGroup = [
{name: 'SMS', value: ArsPaymentMethod.SMS },
{name: 'ARS', value: ArsPaymentMethod.ARS },
];
];
export const getArsPaymentStatusName = (status?: string): string => {
if (!status) return '';
const found = ArsPaymentStatusBtnGroup.find(item => item.value === status);
return found ? found.name : status;
}
export const getArsOrderStatusName = (status?: string): string => {
if (!status) return '';
const found = ArsOrderStatusBtnGroup.find(item => item.value === status);
return found ? found.name : status;
}

View File

@@ -4,12 +4,12 @@ import {
} from '@/entities/common/model/types';
export enum PaymentStatus {
ALL = 'ALL',
ALL = '',
COMPLETE = 'COMPLETE',
UNPAID = 'UNPAID'
};
export enum OrderStatus {
ALL = 'ALL',
ALL = '',
PENDING = 'PENDING',
SUCCESS = 'SUCCESS',
EXPIRED = 'EXPIRED',
@@ -39,8 +39,8 @@ export interface ArsListContent {
tid?: string;
paymentDate?: string;
paymentStatus?: PaymentStatus | string;
orderStatus?: string;
arsPaymentMethod?: ArsPaymentMethod;
orderStatus?: OrderStatus;
arsPaymentMethod?: string;
amount?: number;
};
export interface ExtensionArsListResponse extends DefaulResponsePagination {
@@ -64,7 +64,7 @@ export interface ExtensionArsDetailParams {
export interface ExtensionArsDetailResponse {
corpName: string;
mid: string;
arsPaymentMethod: ArsPaymentMethod;
arsPaymentMethod: string;
paymentStatus: PaymentStatus;
orderStatus: string;
paymentDate: string;
@@ -85,6 +85,6 @@ export interface ExtensionArsApplyParams {
buyerName: string;
phoneNumber: string;
email: string;
arsPaymentMethod: ArsPaymentMethod;
arsPaymentMethod: string;
};
export interface ExtensionArsApplyResponse {};

View File

@@ -1,9 +1,15 @@
import { KeyInPaymentPaymentStatus } from "./types";
// contant로 옮기기
export const requestStatusBtnGroup = [
export const keyInPaymentPaymentStatusBtnGroup = [
{ name: '전체', value: KeyInPaymentPaymentStatus.ALL },
{ name: '승인', value: KeyInPaymentPaymentStatus.APPROVAL },
{ name: '전취소', value: KeyInPaymentPaymentStatus.PRE_CANCEL },
{ name: '후취소', value: KeyInPaymentPaymentStatus.POST_CANCEL }
];
];
export const getKeyInPaymentPaymentStatusName = (status?: string): string => {
if (!status) return '';
const found = keyInPaymentPaymentStatusBtnGroup.find(item => item.value === status);
return found ? found.name : status;
}

View File

@@ -0,0 +1,13 @@
import { SmsCl } from './types';
export const SmsClBtnGroup = [
{ name: '', value: SmsCl.ALL },
{ name: '가상계좌 요청', value: SmsCl.VACCOUNT_REQ },
{ name: '가상계좌 요청 + 입금', value: SmsCl.VACCOUNT_REQ_DEPOSIT }
];
export const getSmsClName = (smsCl?: string): string => {
if (!smsCl) return '';
const found = SmsClBtnGroup.find(item => item.value === smsCl);
return found ? found.name : smsCl;
};

View File

@@ -1,73 +1,75 @@
import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/common/model/types';
import { ExtensionRequestParams, FilterProps, ListItemProps } from '../types';
import { AdditionalServiceCategory, ExtensionRequestParams, FilterProps, ListItemProps } from '../types';
export enum SmsType {
ALL = "ALL",
VACCOUNT_REQ = "VACCOUNT_REQ",
VACCOUNT_REQ_DEPOSIT = "VACCOUNT_REQ_DEPOSIT"
export enum SmsCl {
ALL = "",
VACCOUNT_REQ = "VACCOUNT_REQ",
VACCOUNT_REQ_DEPOSIT = "VACCOUNT_REQ_DEPOSIT"
}
export enum SmsPaymentSearchType {
BUYER_NAME = "BUYER_NAME",
RECEIVE_PHONE_NUMBER = "RECEIVE_PHONE_NUMBER"
export enum SmsPaymentSearchCl {
BUYER_NAME = "BUYER_NAME",
RECEIVE_PHONE_NUMBER = "RECEIVE_PHONE_NUMBER"
}
export interface SmsPaymentListItem {
mid?: string;
tid?: string;
paymentDate?: string;
paymentStatus?: string;
smsCl?: string;
mid?: string;
tid?: string;
paymentDate?: string;
paymentStatus?: string;
smsCl?: string;
}
export interface SmsPaymentListProps {
listItems: Record<string, Array<ListItemProps>>;
mid: string;
onResendClick?: (mid: string, tid: string) => void;
listItems: Array<ListItemProps>;
additionalServiceCategory: AdditionalServiceCategory;
mid: string;
onResendClick?: (mid: string, tid: string) => void;
setTarget: (element: HTMLElement | null) => void;
}
export interface SmsPaymentFilterProps extends FilterProps {
mid: string;
searchCl: SmsPaymentSearchType;
searchValue: string;
fromDate: string;
toDate: string;
smsCl: SmsType;
setMid: (mid: string) => void;
setSearchCl: (searchCl: SmsPaymentSearchType) => void;
setSearchValue: (searchValue: string) => void;
setFromDate: (fromDate: string) => void;
setToDate: (toDate: string) => void;
setSmsCl: (smsCl: SmsType) => void;
mid: string;
searchCl: SmsPaymentSearchCl;
searchValue: string;
fromDate: string;
toDate: string;
smsCl: SmsCl;
setMid: (mid: string) => void;
setSearchCl: (searchCl: SmsPaymentSearchCl) => void;
setSearchValue: (searchValue: string) => void;
setFromDate: (fromDate: string) => void;
setToDate: (toDate: string) => void;
setSmsCl: (smsCl: SmsCl) => void;
}
export interface ExtensionSmsPaymentListParams extends ExtensionRequestParams {
searchCl: SmsPaymentSearchType;
searchValue: string;
fromDate: string;
toDate: string;
smsCl: string;
page?: DefaultRequestPagination;
searchCl: SmsPaymentSearchCl;
searchValue: string;
fromDate: string;
toDate: string;
smsCl: SmsCl;
page?: DefaultRequestPagination;
}
export interface ExtensionSmsPaymentListResponse extends DefaulResponsePagination {
content: Array<ListItemProps>
content: Array<ListItemProps>
}
export interface ExtensionSmsDownloadExcelResponse {
status: boolean;
status: boolean;
}
export interface ExtensionSmsDetailResponse {
senderNumber: string;
senderName: string;
receiverNumber: string;
receiverName: string;
sendMessage: string;
senderNumber: string;
senderName: string;
receiverNumber: string;
receiverName: string;
sendMessage: string;
}
export interface ExtensionSmsResendParams extends ExtensionRequestParams {
tid: string;
tid: string;
}
@@ -86,7 +88,7 @@ export interface ExtensionSmsResendParams extends ExtensionRequestParams {
}
export interface ExtensionSmsResendResponse {
status: boolean;
status: boolean;
}
export interface ExtensionSmsListParams extends ExtensionRequestParams {