- 엑셀 다운 누락 필드 추가
- 스낵바 누락 수정
This commit is contained in:
@@ -113,6 +113,7 @@ export interface ExtensionAlimtalkDownloadExcelParams {
|
||||
toDate?: string;
|
||||
sendType?: AlimtalkSendType;
|
||||
sendCl?: AlimTalkSendCl;
|
||||
email?: string;
|
||||
};
|
||||
|
||||
export interface ExtensionAlimtalkDownloadExcelResponse {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {
|
||||
import {
|
||||
DefaulResponsePagination,
|
||||
DefaultRequestPagination
|
||||
} from '@/entities/common/model/types';
|
||||
@@ -25,6 +25,16 @@ export interface ExtensionArsResendParams {
|
||||
};
|
||||
export interface ExtensionArsResendResponse {
|
||||
status: boolean;
|
||||
error?: {
|
||||
root?: string;
|
||||
errKey?: string;
|
||||
code?: string;
|
||||
message?: string;
|
||||
timestamp?: string;
|
||||
details?: {
|
||||
path?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
export interface ExtensionArsListParams {
|
||||
mid?: string;
|
||||
@@ -54,6 +64,7 @@ export interface ExtensionArsListResponse extends DefaulResponsePagination {
|
||||
export interface ExtensionArsDownloadExcelParams {
|
||||
mid?: string;
|
||||
moid?: string;
|
||||
email?: string;
|
||||
fromDate?: string;
|
||||
toDate?: string;
|
||||
paymentStatus?: PaymentStatus;
|
||||
@@ -61,7 +72,7 @@ export interface ExtensionArsDownloadExcelParams {
|
||||
minAmount?: number;
|
||||
maxAmount?: number;
|
||||
};
|
||||
export interface ExtensionArsDownloadExcelResponse {};
|
||||
export interface ExtensionArsDownloadExcelResponse { };
|
||||
export interface ExtensionArsDetailParams {
|
||||
mid: string;
|
||||
tid: string;
|
||||
|
||||
@@ -83,6 +83,7 @@ export interface ExtensionKeyinDownloadExcelParams extends ExtensionRequestParam
|
||||
fromDate?: string;
|
||||
toDate?: string;
|
||||
paymentStatus?: string;
|
||||
email?: string
|
||||
minAmount?: number;
|
||||
maxAmount?: number;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ export interface ExtensionSmsDownloadExcelParams extends ExtensionRequestParams
|
||||
fromDate: string;
|
||||
toDate: string;
|
||||
smsCl: string;
|
||||
|
||||
email: string;
|
||||
}
|
||||
|
||||
export interface ExtensionSmsDownloadExcelResponse {
|
||||
|
||||
@@ -150,7 +150,7 @@ export const AlimtalkListPage = () => {
|
||||
toDate: toDate,
|
||||
sendType: sendType,
|
||||
sendCl: sendCl,
|
||||
//email: selectedEmail
|
||||
email: selectedEmail
|
||||
};
|
||||
extensionAlimtalkDownloadExcel(params).then((rs: ExtensionAlimtalkDownloadExcelResponse) => {
|
||||
console.log('Excel Download Status:', rs.status);
|
||||
|
||||
@@ -24,6 +24,7 @@ import moment from 'moment';
|
||||
import { ArsResendSmsBottomSheet } from '@/entities/additional-service/ui/ars/resend-sms-bottom-sheet';
|
||||
import { useExtensionArsResendMutation } from '@/entities/additional-service/api/ars/use-extension-ars-resend-mutation';
|
||||
import { getArsOrderStatusName, getArsPaymentStatusName } from '@/entities/additional-service/model/ars/constant';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
|
||||
export const ArsDetailPage = () => {
|
||||
const { t, i18n } = useTranslation();
|
||||
@@ -74,7 +75,19 @@ export const ArsDetailPage = () => {
|
||||
tid: tid
|
||||
}
|
||||
extensionArsResend(params).then((rs: ExtensionArsResendResponse) => {
|
||||
console.log(rs);
|
||||
if (rs.status) {
|
||||
snackBar("SMS 재전송을 성공하였습니다.");
|
||||
setBottomSheetOn(false);
|
||||
callDetail(); // 상세 정보 갱신
|
||||
} else {
|
||||
const errorMessage = rs.error?.message || 'SMS 재전송이 실패하였습니다.';
|
||||
snackBar(`[실패] ${errorMessage}`);
|
||||
}
|
||||
}).catch((error) => {
|
||||
const errorMessage = error?.response?.data?.error?.message ||
|
||||
error?.message ||
|
||||
'SMS 재전송 중 오류가 발생했습니다.';
|
||||
snackBar(`[실패] ${errorMessage}`);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ export const ArsListPage = () => {
|
||||
orderStatus: orderStatus,
|
||||
minAmount: minAmount,
|
||||
maxAmount: maxAmount,
|
||||
//email: selectedEmail
|
||||
email: selectedEmail
|
||||
};
|
||||
extensionArsDownloadExcel(params).then((rs: ExtensionArsDownloadExcelResponse) => {
|
||||
console.log('Excel Download Status:', rs);
|
||||
|
||||
@@ -146,7 +146,7 @@ export const KeyInPaymentPage = () => {
|
||||
paymentStatus: transactionType,
|
||||
minAmount: minAmount,
|
||||
maxAmount: maxAmount,
|
||||
//email: selectedEmail
|
||||
email: selectedEmail
|
||||
}).then((rs) => {
|
||||
console.log('Excel Download Status:', rs.status);
|
||||
});
|
||||
|
||||
@@ -81,6 +81,10 @@ export const KeyInPaymentRequestPage = () => {
|
||||
};
|
||||
|
||||
keyInApply(keyInApplyParams).then((rs) => {
|
||||
console.log('KEY-IN 결제 응답:', rs);
|
||||
console.log('rs.data:', rs.data);
|
||||
console.log('rs.data?.resultMessage:', rs.data?.resultMessage);
|
||||
|
||||
if (rs.status && rs.data?.success) {
|
||||
// 성공: 화면 유지 & 입력 내용 초기화
|
||||
snackBar("KEY-IN 결제 신청을 성공하였습니다.")
|
||||
@@ -90,6 +94,7 @@ export const KeyInPaymentRequestPage = () => {
|
||||
const errorMessage = rs.data?.resultMessage ||
|
||||
rs.error?.message ||
|
||||
'결제 신청에 실패했습니다.';
|
||||
console.log('최종 errorMessage:', errorMessage);
|
||||
// HTML 태그 제거
|
||||
const cleanMessage = errorMessage.replace(/<br\s*\/?>/gi, ' ').trim();
|
||||
snackBar(`[실패] ${cleanMessage}`);
|
||||
|
||||
@@ -147,7 +147,7 @@ export const SmsPaymentPage = () => {
|
||||
fromDate: fromDate,
|
||||
toDate: toDate,
|
||||
smsCl: smsCl,
|
||||
//email: selectedEmail
|
||||
email: selectedEmail
|
||||
}).then((rs) => {
|
||||
console.log('Excel Download Status:', rs.status);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user