From a06085a9bce5e58ec14d07a70a2e6a8bad0d9835 Mon Sep 17 00:00:00 2001 From: HyeonJongKim Date: Thu, 25 Sep 2025 10:53:49 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=80=EA=B0=80=EC=84=9C=EB=B9=84=EC=8A=A4?= =?UTF-8?q?=20-=20KeyIn=EA=B2=B0=EC=A0=9C=20=EC=83=81=ED=83=9C=EA=B0=92?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=A5=B8=20sort=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/additional-service/model/types.ts | 8 ++++---- .../ui/key-in-payment/filter/key-in-payment-filter.tsx | 6 +++--- .../key-in-payment/key-in-payment-page.tsx | 9 ++++++--- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/entities/additional-service/model/types.ts b/src/entities/additional-service/model/types.ts index 0cbfddd..29015ac 100644 --- a/src/entities/additional-service/model/types.ts +++ b/src/entities/additional-service/model/types.ts @@ -122,9 +122,9 @@ export interface FilterProps { export enum KeyInPaymentTransactionStatus { ALL = 'ALL', - APPROVE = 'APPROVE', - ALL_CANCEL = 'ALL_CANCEL', - AFTER_CANCEL = 'AFTER_CANCEL' + APPROVAL = 'APPROVAL', + PRE_CANCEL = 'PRE_CANCEL', + POST_CANCEL = 'POST_CANCEL' } export interface KeyInPaymentListItem { @@ -587,7 +587,7 @@ export interface ExtensionLinkPayWaitDeleteRespone { export interface ExtensionAccountHolderAuthListParams extends ExtensionRequestParams { fromDate: string; toDate: string; - authStatus: String; + authStatus: string; page?: DefaultRequestPagination; } diff --git a/src/entities/additional-service/ui/key-in-payment/filter/key-in-payment-filter.tsx b/src/entities/additional-service/ui/key-in-payment/filter/key-in-payment-filter.tsx index 814be91..3e72f0f 100644 --- a/src/entities/additional-service/ui/key-in-payment/filter/key-in-payment-filter.tsx +++ b/src/entities/additional-service/ui/key-in-payment/filter/key-in-payment-filter.tsx @@ -65,9 +65,9 @@ export const KeyInPaymentFilter = ({ let transactionStatusOption = [ { name: '전체', value: KeyInPaymentTransactionStatus.ALL }, - { name: '승인', value: KeyInPaymentTransactionStatus.APPROVE }, - { name: '전취소', value: KeyInPaymentTransactionStatus.ALL_CANCEL }, - { name: '후취소', value: KeyInPaymentTransactionStatus.AFTER_CANCEL }, + { name: '승인', value: KeyInPaymentTransactionStatus.APPROVAL }, + { name: '전취소', value: KeyInPaymentTransactionStatus.PRE_CANCEL }, + { name: '후취소', value: KeyInPaymentTransactionStatus.POST_CANCEL }, ] return ( diff --git a/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx b/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx index 5c5abca..37a713a 100644 --- a/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx +++ b/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx @@ -21,9 +21,9 @@ import { KeyInPaymentList } from '@/entities/additional-service/ui/key-in-paymen // contant로 옮기기 const requestStatusBtnGroup = [ { name: '전체', value: KeyInPaymentTransactionStatus.ALL }, - { name: '승인', value: KeyInPaymentTransactionStatus.APPROVE }, - { name: '전취소', value: KeyInPaymentTransactionStatus.ALL_CANCEL }, - { name: '후취소', value: KeyInPaymentTransactionStatus.AFTER_CANCEL } + { name: '승인', value: KeyInPaymentTransactionStatus.APPROVAL }, + { name: '전취소', value: KeyInPaymentTransactionStatus.PRE_CANCEL }, + { name: '후취소', value: KeyInPaymentTransactionStatus.POST_CANCEL } ]; export const KeyInPaymentPage = () => { @@ -76,6 +76,8 @@ export const KeyInPaymentPage = () => { page: pageParam }; + console.log("Request Info: ", listParams) + keyinList(listParams).then((rs) => { setListItems(assembleData(rs.content)); }); @@ -132,6 +134,7 @@ export const KeyInPaymentPage = () => { }; const onClickToTransactionStatus = (val: KeyInPaymentTransactionStatus) => { + console.log("TransactionStatus Test: ", val) setTransactionStatus(val); callList({ val: val }); };