|
|
|
@@ -47,6 +47,12 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea |
|
|
|
navigate('/paymentPage/details/' + params.row.id); |
|
|
|
}; |
|
|
|
|
|
|
|
const formatPayMethod = (value) => { |
|
|
|
if (!value) return ""; |
|
|
|
const lastCommaIndex = value.lastIndexOf(','); |
|
|
|
return lastCommaIndex >= 0 ? value.substring(lastCommaIndex + 1) : value; |
|
|
|
}; |
|
|
|
|
|
|
|
const columns = [ |
|
|
|
{ |
|
|
|
field: 'actions', |
|
|
|
@@ -58,6 +64,12 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea |
|
|
|
return clickableLink('/paymentPage/details/' + params.row.id, params.row.transNo); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'egisRefNo', |
|
|
|
headerName: intl.formatMessage({id: 'paymentRefCode'}), |
|
|
|
width: isMdOrLg ? 'auto' : 160, |
|
|
|
flex: isMdOrLg ? 1 : undefined, |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'appNos', |
|
|
|
field: 'appNos', |
|
|
|
@@ -69,6 +81,13 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea |
|
|
|
return <div style={{ margin: 4 }}>{appNo}</div> |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'payMethod', |
|
|
|
headerName: intl.formatMessage({id: 'paymentMethod'}), |
|
|
|
width: isMdOrLg ? 'auto' : 160, |
|
|
|
flex: isMdOrLg ? 1 : undefined, |
|
|
|
valueGetter: (params) => formatPayMethod(params?.value ?? params.row?.payMethod), |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 'transDateTime', |
|
|
|
field: 'transDateTime', |
|
|
|
|