- 부가서비스 헤더 로그 추가
This commit is contained in:
@@ -172,9 +172,13 @@ export const ArsRequestPage = () => {
|
||||
<div className="billing-field">
|
||||
<NumericFormat
|
||||
value={amount}
|
||||
thousandSeparator={true}
|
||||
allowNegative={false}
|
||||
displayType="input"
|
||||
onChange={(e: ChangeEvent<HTMLInputElement>) => setAmount(parseInt(e.target.value))}
|
||||
onValueChange={(values) => {
|
||||
const { floatValue } = values;
|
||||
setAmount(floatValue ?? 0);
|
||||
}}
|
||||
></NumericFormat>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,17 @@ export const LinkPaymentApplyConfirmPage = () => {
|
||||
moid: formData.moid,
|
||||
paymentLimitDate: formData.paymentLimitDate.replace(/\./g, ''),
|
||||
buyerName: formData.buyerName,
|
||||
email: formData.email,
|
||||
phoneNumber: formData.phoneNumber,
|
||||
...(formData.sendMethod === 'EMAIL' && {
|
||||
email: formData.email
|
||||
}),
|
||||
...((formData.sendMethod === 'SMS' || formData.sendMethod === 'KAKAO') && {
|
||||
phoneNumber: formData.phoneNumber,
|
||||
}),
|
||||
isIdentity: formData.isIdentity,
|
||||
identityType: formData.identityType,
|
||||
identityValue: formData.identityValue,
|
||||
...(formData.isIdentity && {
|
||||
identityType: formData.identityType,
|
||||
identityValue: formData.identityValue,
|
||||
}),
|
||||
language: formData.language,
|
||||
linkContentType: formData.linkContentType
|
||||
};
|
||||
@@ -62,8 +68,8 @@ export const LinkPaymentApplyConfirmPage = () => {
|
||||
.catch((error) => {
|
||||
// 네트워크 에러 등 예외 상황
|
||||
const errorMessage = error?.response?.data?.error?.message ||
|
||||
error?.message ||
|
||||
'요청 중 오류가 발생했습니다';
|
||||
error?.message ||
|
||||
'요청 중 오류가 발생했습니다';
|
||||
snackBar(`[실패] ${errorMessage}`);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -18,6 +18,7 @@ import { PaymentInfoWrap } from '@/entities/additional-service/ui/info-wrap/paym
|
||||
import { DetailInfoWrap } from '@/entities/additional-service/ui/info-wrap/detail-info-wrap';
|
||||
import { useExtensionLinkPayHistoryResendMutation } from '@/entities/additional-service/api/link-payment/use-extension-link-pay-history-resend-mutation';
|
||||
import { ExtensionLinkPayHistoryDetailParams, ExtensionLinkPayHistoryResendParams } from '@/entities/additional-service/model/link-pay/types';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
import moment from 'moment';
|
||||
|
||||
export const LinkPaymentDetailPage = () => {
|
||||
@@ -67,24 +68,22 @@ export const LinkPaymentDetailPage = () => {
|
||||
}
|
||||
linkPayHistoryResend(resendParam)
|
||||
.then((response) => {
|
||||
console.log("Resend 성공 응답: ", response);
|
||||
// 현재 화면 유지하고 데이터 새로고침
|
||||
callDetail();
|
||||
if (response.status) {
|
||||
snackBar("재발송을 성공하였습니다.");
|
||||
callDetail();
|
||||
} else {
|
||||
const errorMessage = response.error?.message || '재발송이 실패하였습니다.';
|
||||
snackBar(`[실패] ${errorMessage}`);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Resend 실패: ", error);
|
||||
|
||||
const errorMessage = error?.response?.data?.error?.message ||
|
||||
error?.message ||
|
||||
'재발송 중 오류가 발생했습니다.';
|
||||
snackBar(`[실패] ${errorMessage}`);
|
||||
});
|
||||
}
|
||||
|
||||
const onClickToNavigate = (path: string) => {
|
||||
navigate(path)
|
||||
};
|
||||
|
||||
const onClickToShowInfo = () => {
|
||||
setShowPayment(!showPayment);
|
||||
};
|
||||
|
||||
const onClickToResend = () => {
|
||||
let msg = '재발송 하시겠습니까?';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user