지급대행
This commit is contained in:
@@ -11,7 +11,10 @@ export const ListItem = ({
|
||||
|
||||
requestDate, bankName, accountNo, resultStatus,
|
||||
amount, sendDate, sendStatus, sendMethod,
|
||||
scheduledSendDate, processStatus
|
||||
scheduledSendDate, processStatus,
|
||||
|
||||
submallId, settlementDate, companyName,
|
||||
disbursementStatus, disbursementAmount
|
||||
}: ListItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const getItemClass = () => {
|
||||
@@ -121,6 +124,15 @@ export const ListItem = ({
|
||||
}
|
||||
else if (additionalServiceCategory === AdditionalServiceCategory.SettlementAgency) {
|
||||
|
||||
}
|
||||
else if(additionalServiceCategory === AdditionalServiceCategory.Payout){
|
||||
navigate(PATHS.additionalService.payout.detail, {
|
||||
state: {
|
||||
additionalServiceCategory: additionalServiceCategory,
|
||||
mid: mid,
|
||||
tid: tid
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
alert('additionalServiceCategory가 존재하지 않습니다.');
|
||||
@@ -144,7 +156,7 @@ export const ListItem = ({
|
||||
};
|
||||
|
||||
const getTitle = () => {
|
||||
let str = '';
|
||||
let str: string | undefined = '';
|
||||
if (additionalServiceCategory === AdditionalServiceCategory.KeyInPayment) {
|
||||
str = `${tid}(${amount})`;
|
||||
}
|
||||
@@ -160,6 +172,9 @@ export const ListItem = ({
|
||||
str = `${"buyerName"}(${"이메일"})`
|
||||
}
|
||||
}
|
||||
else if (additionalServiceCategory === AdditionalServiceCategory.Payout){
|
||||
str = companyName;
|
||||
}
|
||||
|
||||
return str;
|
||||
};
|
||||
@@ -214,6 +229,15 @@ export const ListItem = ({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
else if(additionalServiceCategory === AdditionalServiceCategory.Payout){
|
||||
rs.push(
|
||||
<div className="transaction-details">
|
||||
<span>{ disbursementStatus }</span>
|
||||
<span className="separator">|</span>
|
||||
<span>{ submallId }</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return rs;
|
||||
};
|
||||
|
||||
@@ -252,6 +276,21 @@ export const ListItem = ({
|
||||
</div>
|
||||
)
|
||||
}
|
||||
else if(additionalServiceCategory === AdditionalServiceCategory.Payout){
|
||||
rs.push(
|
||||
<div
|
||||
key="payout-item-amount"
|
||||
className="transaction-amount"
|
||||
>
|
||||
<NumericFormat
|
||||
value={disbursementAmount}
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
suffix={'원'}
|
||||
></NumericFormat>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user