Update customer service

This commit is contained in:
2023-12-19 08:56:18 +07:00
parent e76c480ce9
commit 40371bd53a
42 changed files with 1027 additions and 2328 deletions

View File

@@ -37,7 +37,7 @@ export default function ClaimListRow ({ ...props }: Props) {
<TableRow hover sx={{ '& > td': { borderBottom: '1' } }}>
<TableCell align="left" />
<TableCell align="left">
{props.row.admission_date == "0000-00-00 00:00:00" ?
{props.row.admission_date == null?
('-')
:
(
@@ -50,7 +50,7 @@ export default function ClaimListRow ({ ...props }: Props) {
)}
</TableCell>
<TableCell align="left">
{props.row.discharge_date == "0000-00-00 00:00:00" ?
{props.row.discharge_date == null ?
('-')
:
(
@@ -62,9 +62,29 @@ export default function ClaimListRow ({ ...props }: Props) {
</Label>
)}
</TableCell>
<TableCell align="left">{props.row.claim_code}</TableCell>
<TableCell align="left">{props.row.service_type}</TableCell>
<TableCell align="left">{props.row.claim_status}</TableCell>
<TableCell align="left">{props.row.code}</TableCell>
<TableCell align="left">{props.row.service_name}</TableCell>
<TableCell align="left">
{props.row.discharge_date == null ?
(
<Label
variant="ghost"
color="warning"
>
On Monitor
</Label>
) :
(
<Label
variant="ghost"
color="success"
>
Close Monitor
</Label>
)
}
</TableCell>
<TableCell align="right" onClick={(e) => e.stopPropagation()}>
<Stack direction="row" justifyContent="flex-end" spacing={1}>
<TableMoreMenu actions={

View File

@@ -52,6 +52,8 @@ export default function DailyMonitoringList() {
<TableCell style={TableHeadStyle} align="left" width={'*'}>Name</TableCell>
<TableCell style={TableHeadStyle} align="left" width={160}>Start Date</TableCell>
<TableCell style={TableHeadStyle} align="left" width={160}>End Date</TableCell>
<TableCell style={TableHeadStyle} align="left" width={160}>Admission Date</TableCell>
<TableCell style={TableHeadStyle} align="left" width={160}>Provider</TableCell>
<TableCell align="left" width={"10"} />
</TableRow>
</TableHead>

View File

@@ -53,6 +53,15 @@ export default function DailyMonitoringListRow ({ ...props }: Props) {
{fDate(props.row.enddate)}
</Label>
</TableCell>
<TableCell align="left">
<Label
variant="ghost"
color="default"
>
{fDate(props.row.addmision_date)}
</Label>
</TableCell>
<TableCell align="left">{props.row.provider}</TableCell>
<TableCell align="right" onClick={(e) => e.stopPropagation()}>
<Stack direction="row" justifyContent="flex-end" spacing={1}>
<TableMoreMenu actions={

View File

@@ -6,6 +6,8 @@ export type DailyMonitoringListType = {
name : string,
startdate : string,
enddate : string,
addmision_date : string,
provider : string
}
/**