- 빌링 결제신청(권한체크 'X' -> 'W')
- 에스크로 메일 재발송 버튼 활성화 조건 추가 , 권한체크 'X'-> 'W' - 다국어 누락 부분 추가
This commit is contained in:
@@ -243,7 +243,7 @@ export interface BillingListResponse extends DefaulResponsePagination {
|
||||
content: Array<ListItemProps>;
|
||||
};
|
||||
|
||||
export interface AllTransactionListSummaryParams extends AllTransactionListParams {}
|
||||
export interface AllTransactionListSummaryParams extends AllTransactionListParams { }
|
||||
|
||||
export interface AllTransactionListSummaryResponse {
|
||||
totalCount: number;
|
||||
@@ -280,7 +280,7 @@ export interface CashReceiptListParams {
|
||||
searchNumber?: string;
|
||||
page?: DefaultRequestPagination
|
||||
};
|
||||
export interface CashReceiptSummaryParams extends CashReceiptListParams {};
|
||||
export interface CashReceiptSummaryParams extends CashReceiptListParams { };
|
||||
|
||||
export interface CashReceiptSummaryResponse {
|
||||
approvalCount: number;
|
||||
@@ -315,7 +315,7 @@ export interface CashReceiptExcelDownloadParams {
|
||||
transactionType: CashReceiptTransactionType;
|
||||
processResult: CashReceiptProcessResult;
|
||||
};
|
||||
export interface CashReceiptExcelDownloadResponse {};
|
||||
export interface CashReceiptExcelDownloadResponse { };
|
||||
export interface EscrowListParams {
|
||||
mid?: string;
|
||||
searchType?: string;
|
||||
@@ -337,7 +337,7 @@ export interface EscrowDownloadExcelParams {
|
||||
deliveryStatus: EscrowDeliveryStatus;
|
||||
settlementStatus: EscrowSettlementStatus;
|
||||
};
|
||||
export interface EscrowDownloadExcelResponse {};
|
||||
export interface EscrowDownloadExcelResponse { };
|
||||
|
||||
export interface BillingListParams {
|
||||
mid?: string;
|
||||
@@ -363,7 +363,7 @@ export interface BillingExcelParams {
|
||||
processResult: BillingProcessResult,
|
||||
paymentMethod: BillingPaymentMethod
|
||||
};
|
||||
export interface BillingExcelResponse {};
|
||||
export interface BillingExcelResponse { };
|
||||
|
||||
export interface AllTransactionDetailParams {
|
||||
serviceCode?: string;
|
||||
@@ -650,10 +650,10 @@ export interface InfoSectionProps extends DetailResponse {
|
||||
export interface TransactionDownloadExcelParams extends AllTransactionListParams {
|
||||
email: string;
|
||||
};
|
||||
export interface TransactionDownloadExcelResponse {};
|
||||
export interface TransactionDownloadExcelResponse { };
|
||||
|
||||
|
||||
export interface AllTransactionCancelParams{
|
||||
export interface AllTransactionCancelParams {
|
||||
tid: string;
|
||||
cancelAmount: number;
|
||||
cancelPassword: string;
|
||||
|
||||
@@ -113,7 +113,7 @@ export const AllTransactionCancel = ({
|
||||
|
||||
const callTransactionCancel = () => {
|
||||
if(debtPreventionCancelDisplayInfo?.isCancel === false){
|
||||
snackBar('취소요청이 불가능 합니다.');
|
||||
snackBar(t('transaction.cancel.requestNotPossible'));
|
||||
}
|
||||
else{
|
||||
let transactionCancelParams: AllTransactionCancelParams = {
|
||||
@@ -135,7 +135,7 @@ export const AllTransactionCancel = ({
|
||||
transactionCancel(transactionCancelParams).then((rs: any) => {
|
||||
console.log(rs);
|
||||
if(rs.resultCode === "2024") {
|
||||
snackBar(rs.resultMessage);
|
||||
snackBar(t('transaction.cancel.passwordGroup.pleaseCheckPassword'));
|
||||
setRequestSuccess(false);
|
||||
} else {
|
||||
setRequestSuccess(true);
|
||||
|
||||
@@ -19,7 +19,8 @@ import {
|
||||
SettlementInfo,
|
||||
InfoSectionKeys,
|
||||
MerchantInfo,
|
||||
AmountInfo
|
||||
AmountInfo,
|
||||
EscrowDeliveryStatus
|
||||
} from '@/entities/transaction/model/types';
|
||||
import { useEscrowMailResendMutation } from '@/entities/transaction/api/use-escrow-mail-resend-mutation';
|
||||
import { MerchantInfoSection } from '@/entities/transaction/ui/section/merchant-info-section';
|
||||
@@ -101,7 +102,7 @@ export const EscrowDetail = ({
|
||||
|
||||
|
||||
const onClickToShowMailResend = () => {
|
||||
if(checkGrant(menuId, 'X')){
|
||||
if(checkGrant(menuId, 'W')){
|
||||
setDownloadBottomSheetOn(true);
|
||||
}
|
||||
else{
|
||||
@@ -231,7 +232,11 @@ export const EscrowDetail = ({
|
||||
<button
|
||||
className="btn-50 btn-blue flex-1"
|
||||
onClick={ () => onClickToShowMailResend() }
|
||||
>메일 재발송</button>
|
||||
disabled={
|
||||
escrowInfo?.deliveryStatus !== EscrowDeliveryStatus.DELIVERY_INSERT &&
|
||||
escrowInfo?.deliveryStatus !== EscrowDeliveryStatus.DELIVERY_COMPLETE
|
||||
}
|
||||
>{ t('escrow.mailResend') }</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
{ !!downloadBottomSheetOn &&
|
||||
|
||||
@@ -715,8 +715,10 @@
|
||||
},
|
||||
"passwordGroup": {
|
||||
"cancelPassword": "Cancel Password",
|
||||
"passwordMismatch": "Password Mismatch"
|
||||
"passwordMismatch": "Password Mismatch",
|
||||
"pleaseCheckPassword": "Please check your cancel password."
|
||||
},
|
||||
"requestNotPossible": "Cancellation request is not possible.",
|
||||
"afterDeposit": {
|
||||
"title": "Transaction Cancel (After Deposit Cancel)",
|
||||
"notice": "The requested transaction cancellation can be processed after deposit.",
|
||||
@@ -761,7 +763,8 @@
|
||||
},
|
||||
"escrow": {
|
||||
"title": "Escrow",
|
||||
"detailTitle": "Escrow Details"
|
||||
"detailTitle": "Escrow Details",
|
||||
"mailResend": "Resend Email"
|
||||
},
|
||||
"billing": {
|
||||
"title": "Billing",
|
||||
|
||||
@@ -715,8 +715,10 @@
|
||||
},
|
||||
"passwordGroup": {
|
||||
"cancelPassword": "취소 비밀번호",
|
||||
"passwordMismatch": "비밀번호 불일치"
|
||||
"passwordMismatch": "비밀번호 불일치",
|
||||
"pleaseCheckPassword": "취소비밀번호를 확인해주세요."
|
||||
},
|
||||
"requestNotPossible": "취소요청이 불가능합니다.",
|
||||
"afterDeposit": {
|
||||
"title": "거래취소(입금 후 취소)",
|
||||
"notice": "요청하신 거래취소는 입금 후 취소처리 가능합니다.",
|
||||
@@ -761,7 +763,8 @@
|
||||
},
|
||||
"escrow": {
|
||||
"title": "에스크로",
|
||||
"detailTitle": "에스크로 상세"
|
||||
"detailTitle": "에스크로 상세",
|
||||
"mailResend": "메일 재발송"
|
||||
},
|
||||
"billing": {
|
||||
"title": "빌링",
|
||||
|
||||
@@ -150,7 +150,7 @@ export const PayoutListPage = () => {
|
||||
&& rs.content.length === DEFAULT_PAGE_PARAM.size
|
||||
);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
if (e.response?.data?.error?.message) {
|
||||
snackBar(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
@@ -169,9 +169,9 @@ export const PayoutListPage = () => {
|
||||
selectedMode: DownloadSelectedMode,
|
||||
userEmail?: string
|
||||
) => {
|
||||
if(selectedMode === DownloadSelectedMode.EMAIL
|
||||
if (selectedMode === DownloadSelectedMode.EMAIL
|
||||
&& userEmail
|
||||
){
|
||||
) {
|
||||
const params: ExtensionPayoutExcelParams = {
|
||||
mid: mid,
|
||||
email: userEmail,
|
||||
@@ -181,7 +181,7 @@ export const PayoutListPage = () => {
|
||||
extensionPayoutExcel(params).then((rs: ExtensionPayoutExcelResponse) => {
|
||||
console.log('Excel Download Status:', rs);
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
if (e.response?.data?.error?.message) {
|
||||
snackBar(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
@@ -303,7 +303,7 @@ export const PayoutListPage = () => {
|
||||
<button
|
||||
className="download-btn"
|
||||
aria-label={t('common.download')}
|
||||
onClick={ onClickToOpenDownloadBottomSheet }
|
||||
onClick={onClickToOpenDownloadBottomSheet}
|
||||
>
|
||||
<img
|
||||
src={IMAGE_ROOT + '/ico_download.svg'}
|
||||
@@ -348,8 +348,8 @@ export const PayoutListPage = () => {
|
||||
searchDateType={searchDateType}
|
||||
mid={mid}
|
||||
setDetailData={setDetailData}
|
||||
onClickToOpenFilter={ onClickToOpenFilter }
|
||||
onClickToOpenDownloadBottomSheet={ onClickToOpenDownloadBottomSheet }
|
||||
onClickToOpenFilter={onClickToOpenFilter}
|
||||
onClickToOpenDownloadBottomSheet={onClickToOpenDownloadBottomSheet}
|
||||
></PayoutList>
|
||||
<div ref={setTarget}></div>
|
||||
<div className="apply-row">
|
||||
@@ -387,13 +387,13 @@ export const PayoutListPage = () => {
|
||||
depositAmount={detailDepositAmount}
|
||||
>
|
||||
</PayoutDetail>
|
||||
{ !!downloadBottomSheetOn &&
|
||||
{!!downloadBottomSheetOn &&
|
||||
<DownloadBottomSheet
|
||||
bottomSheetOn={ downloadBottomSheetOn }
|
||||
setBottomSheetOn={ setDownloadBottomSheetOn }
|
||||
imageMode={ false }
|
||||
emailMode={ true }
|
||||
sendRequest={ onRequestDownloadExcel }
|
||||
bottomSheetOn={downloadBottomSheetOn}
|
||||
setBottomSheetOn={setDownloadBottomSheetOn}
|
||||
imageMode={false}
|
||||
emailMode={true}
|
||||
sendRequest={onRequestDownloadExcel}
|
||||
></DownloadBottomSheet>
|
||||
}
|
||||
</>
|
||||
|
||||
@@ -171,7 +171,7 @@ export const BillingListPage = () => {
|
||||
setRequestStatus(val);
|
||||
};
|
||||
const onClickToNavigate = () => {
|
||||
if(checkGrant(menuId, 'X')){
|
||||
if(checkGrant(menuId, 'W')){
|
||||
navigate(PATHS.transaction.billing.charge);
|
||||
}
|
||||
else{
|
||||
|
||||
@@ -551,3 +551,7 @@ main.pop{
|
||||
.filter-section{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.resend-text {
|
||||
word-break: break-all !important;
|
||||
}
|
||||
Reference in New Issue
Block a user