update type script dan nambah kolom member code

This commit is contained in:
2024-02-01 10:31:38 +07:00
parent 254e9e0624
commit 8a7fac07ff
4 changed files with 34 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ import TableMoreMenu from '@/components/table/TableMoreMenu';
import { Import } from '@/@types/claims';
// import DialogDeleteRequestLOG from '../Request/Components/DialogDeleteRequestLOG';
import { HeadCell, Order } from '@/@types/table';
import { ReportLog } from './Model/Type';
// import LoadingButton from '@/theme/overrides/LoadingButton';
export default function List() {
@@ -300,7 +301,7 @@ export default function List() {
};
// Called on every row to map the data to the columns
function createData(data: any): any {
function createData(data: ReportLog){
return {
...data,
};
@@ -319,6 +320,7 @@ export default function List() {
<TableRow sx={{ '& > *': { borderBottom: 'unset' } }}>
<TableCell align="left">{row.code}</TableCell>
<TableCell align="left">{row.member_name}</TableCell>
<TableCell align="left">{row.member_code}</TableCell>
<TableCell align="left"><Label>{row.created_at ? fDateTimesecond(row.created_at) : '-'}</Label></TableCell>
<TableCell align="left"><Label>{fDateTimesecond(row.submission_date)}</Label></TableCell>
<TableCell align="left">{row.approved_by}</TableCell>
@@ -386,7 +388,13 @@ export default function List() {
{
id: 'name',
align: 'left',
label: 'Member',
label: 'Member Name',
isSort: false,
},
{
id: 'code',
align: 'left',
label: 'Member Code',
isSort: false,
},
{

View File

@@ -0,0 +1,20 @@
export type ReportLog = {
id : number,
code : string,
member_name : string,
member_code : string,
submission_date : string,
service_name : string,
payment_type_name : string,
status_final_log : string,
provider : string,
status : string,
created_at : string,
approved_by : string,
approved_final_log_at : string,
created_final_at : string,
approved_final_log_by : string,
document_qty : string,
duration_gl : string,
duration_final_gl : string,
}