LMSN-212
Client/User dapat melihat Claim Report di client portal
This commit is contained in:
@@ -6,6 +6,8 @@ use App\Helpers\Helper;
|
|||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\ClaimRequest;
|
use App\Models\ClaimRequest;
|
||||||
use Modules\Client\Transformers\ClaimReport\ShowResources;
|
use Modules\Client\Transformers\ClaimReport\ShowResources;
|
||||||
|
use Illuminate\Support\Facades\Crypt;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class ClaimReportController extends Controller
|
class ClaimReportController extends Controller
|
||||||
{
|
{
|
||||||
@@ -57,6 +59,130 @@ class ClaimReportController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function claimDetail($corporate_id, $claimRequestId)
|
||||||
|
{
|
||||||
|
$claimRequestId = Crypt::decrypt($claimRequestId);
|
||||||
|
|
||||||
|
$status = DB::table('claim_requests')
|
||||||
|
->leftJoin('claims', 'claim_requests.id', '=', 'claims.claim_request_id')
|
||||||
|
->leftJoin('members', 'claim_requests.member_id', '=', 'members.id')
|
||||||
|
->leftJoin('corporate_employees', 'members.id', '=', 'corporate_employees.member_id')
|
||||||
|
->leftJoin('corporate_divisions', 'corporate_employees.division_id', '=', 'corporate_divisions.id')
|
||||||
|
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
||||||
|
->where('claim_requests.id', '=', $claimRequestId)
|
||||||
|
->select(
|
||||||
|
'claim_requests.submission_date',
|
||||||
|
DB::raw('
|
||||||
|
CASE
|
||||||
|
WHEN claim_requests.status = "requested" THEN "requested"
|
||||||
|
WHEN claim_requests.status = "approved" AND claims.status = "approved" THEN "approved"
|
||||||
|
WHEN claim_requests.status = "approved" AND claims.status = "declined" THEN "declined"
|
||||||
|
WHEN claim_requests.status = "approved" AND claims.status = "disbrusmented" THEN "disbrusmented"
|
||||||
|
/*WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "pending"*/
|
||||||
|
WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "reviewed"
|
||||||
|
ELSE ""
|
||||||
|
END AS status
|
||||||
|
')
|
||||||
|
)
|
||||||
|
->first();
|
||||||
|
$results['status'] = $status;
|
||||||
|
$timeline = DB::table('claim_logs')
|
||||||
|
->where('claim_logs.claim_request_id', '=', $claimRequestId)
|
||||||
|
->select(
|
||||||
|
DB::raw('
|
||||||
|
CASE
|
||||||
|
WHEN claim_logs.status = "requested" THEN "Request"
|
||||||
|
WHEN claim_logs.status = "reviewed" THEN "Review"
|
||||||
|
WHEN claim_logs.status = "approved" THEN "Approval"
|
||||||
|
ELSE "-"
|
||||||
|
END AS txt_status
|
||||||
|
'),
|
||||||
|
DB::raw('
|
||||||
|
CASE
|
||||||
|
WHEN claim_logs.status = "requested" THEN "#159C9C"
|
||||||
|
WHEN claim_logs.status = "reviewed" THEN "#0C53B7"
|
||||||
|
WHEN claim_logs.status = "approved" THEN "#229A16"
|
||||||
|
ELSE "-"
|
||||||
|
END AS txt_status_color
|
||||||
|
'),
|
||||||
|
DB::raw('
|
||||||
|
CASE
|
||||||
|
WHEN claim_logs.status = "requested" THEN "#00AB5529"
|
||||||
|
WHEN claim_logs.status = "reviewed" THEN "#1890FF29"
|
||||||
|
WHEN claim_logs.status = "approved" THEN "#54D62C29"
|
||||||
|
ELSE "-"
|
||||||
|
END AS txt_status_backgroundColor
|
||||||
|
'),
|
||||||
|
'claim_logs.date',
|
||||||
|
'claim_logs.description',
|
||||||
|
'claim_logs.status'
|
||||||
|
)
|
||||||
|
->orderBy('claim_logs.id', 'desc')
|
||||||
|
->get();
|
||||||
|
$results['timeline'] = $timeline;
|
||||||
|
$request_files = DB::table('claim_request_files')
|
||||||
|
->where('claim_request_files.claim_request_id', '=', $claimRequestId)
|
||||||
|
->get();
|
||||||
|
$results['request_files'] = $request_files;
|
||||||
|
|
||||||
|
return Helper::responseJson($results);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function claimDetailHistory($corporate_id, $claimRequestId)
|
||||||
|
{
|
||||||
|
$claimRequestId = Crypt::decrypt($claimRequestId);
|
||||||
|
|
||||||
|
$member = DB::table('claim_requests')
|
||||||
|
->leftJoin('claims', 'claim_requests.id', '=', 'claims.claim_request_id')
|
||||||
|
->leftJoin('members', 'claim_requests.member_id', '=', 'members.id')
|
||||||
|
->leftJoin('corporate_employees', 'members.id', '=', 'corporate_employees.member_id')
|
||||||
|
->leftJoin('corporate_divisions', 'corporate_employees.division_id', '=', 'corporate_divisions.id')
|
||||||
|
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
||||||
|
->where('claim_requests.id', '=', $claimRequestId)
|
||||||
|
->select(
|
||||||
|
'claim_requests.code','members.member_id', 'members.name'
|
||||||
|
)
|
||||||
|
->first();
|
||||||
|
$results['member'] = $member;
|
||||||
|
$claim_item = DB::table('claim_items')
|
||||||
|
->leftJoin('claims','claim_items.claim_id', '=', 'claims.id')
|
||||||
|
->leftJoin('benefits', 'claim_items.claim_itemable_id', '=', 'benefits.id')
|
||||||
|
->leftJoin('claim_requests', 'claims.claim_request_id', '=', 'claim_requests.id')
|
||||||
|
->leftJoin('members', 'claim_requests.member_id', '=', 'members.id')
|
||||||
|
->leftJoin('corporate_employees', 'members.id', '=', 'corporate_employees.member_id')
|
||||||
|
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
||||||
|
->where('claim_requests.id', '=', $claimRequestId)
|
||||||
|
->select(
|
||||||
|
DB::raw('ROW_NUMBER() OVER (ORDER BY claim_items.id DESC) as claim_item_number'),
|
||||||
|
'claim_items.nominal_ditagihkan',
|
||||||
|
'claim_items.nominal_dicover',
|
||||||
|
'benefits.description',
|
||||||
|
'claim_requests.submission_date'
|
||||||
|
)
|
||||||
|
->orderBy('claim_items.id', 'desc')
|
||||||
|
->get();
|
||||||
|
$results['claim_item'] = $claim_item;
|
||||||
|
$tot_claim_item = DB::table('claim_items')
|
||||||
|
->leftJoin('claims','claim_items.claim_id', '=', 'claims.id')
|
||||||
|
->leftJoin('benefits', 'claim_items.claim_itemable_id', '=', 'benefits.id')
|
||||||
|
->leftJoin('claim_requests', 'claims.claim_request_id', '=', 'claim_requests.id')
|
||||||
|
->leftJoin('members', 'claim_requests.member_id', '=', 'members.id')
|
||||||
|
->leftJoin('corporate_employees', 'members.id', '=', 'corporate_employees.member_id')
|
||||||
|
->where('corporate_employees.corporate_id', '=', $corporate_id)
|
||||||
|
->where('claim_requests.id', '=', $claimRequestId)
|
||||||
|
->select(
|
||||||
|
DB::raw('SUM(claim_items.nominal_ditagihkan) AS nominal_ditagihkan'),
|
||||||
|
DB::raw('SUM(claim_items.nominal_dicover) AS nominal_dicover'),
|
||||||
|
DB::raw('(SUM(claim_items.nominal_ditagihkan) - SUM(claim_items.nominal_dicover)) AS difference'),
|
||||||
|
)
|
||||||
|
->orderBy('claim_items.id', 'desc')
|
||||||
|
->first();
|
||||||
|
$results['tot_claim_item'] = $tot_claim_item;
|
||||||
|
|
||||||
|
|
||||||
|
return Helper::responseJson($results);
|
||||||
|
}
|
||||||
|
|
||||||
public function show($corporateId, $claimRequestId)
|
public function show($corporateId, $claimRequestId)
|
||||||
{
|
{
|
||||||
$data = ClaimRequest::query()
|
$data = ClaimRequest::query()
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ Route::prefix('client')->group(function () {
|
|||||||
// Route::get('topup', [TopUpController::class, 'get']);
|
// Route::get('topup', [TopUpController::class, 'get']);
|
||||||
Route::post('topup', [TopUpController::class, 'store']);
|
Route::post('topup', [TopUpController::class, 'store']);
|
||||||
Route::get('claim-report/claim-status', [ClaimReportController::class, 'claimStatus']);
|
Route::get('claim-report/claim-status', [ClaimReportController::class, 'claimStatus']);
|
||||||
|
Route::get('claim-report/detail/{id}', [ClaimReportController::class, 'claimDetail']);
|
||||||
|
Route::get('claim-report/detail-history/{id}', [ClaimReportController::class, 'claimDetailHistory']);
|
||||||
|
|
||||||
Route::get('corporate', [CorporateCurrentController::class, 'index']);
|
Route::get('corporate', [CorporateCurrentController::class, 'index']);
|
||||||
Route::put('corporate-update', [CorporateCurrentController::class, 'update']);
|
Route::put('corporate-update', [CorporateCurrentController::class, 'update']);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace Modules\Client\Transformers\ClaimReport;
|
namespace Modules\Client\Transformers\ClaimReport;
|
||||||
|
|
||||||
use Illuminate\Http\Resources\Json\JsonResource;
|
use Illuminate\Http\Resources\Json\JsonResource;
|
||||||
|
use Illuminate\Support\Facades\Crypt;
|
||||||
|
|
||||||
class MemberResources extends JsonResource
|
class MemberResources extends JsonResource
|
||||||
{
|
{
|
||||||
@@ -21,7 +22,7 @@ class MemberResources extends JsonResource
|
|||||||
'full_name' => $this->full_name,
|
'full_name' => $this->full_name,
|
||||||
'division_name' => $this->division_name ?? '',
|
'division_name' => $this->division_name ?? '',
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
'claimRequestId' => $this->claim_request_id,
|
'claimRequestId' => Crypt::encrypt($this->claim_request_id),
|
||||||
'submission_date' => $this->submission_date,
|
'submission_date' => $this->submission_date,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ class CorporateMemberService
|
|||||||
WHEN claim_requests.status = "approved" AND claims.status = "approved" THEN "approved"
|
WHEN claim_requests.status = "approved" AND claims.status = "approved" THEN "approved"
|
||||||
WHEN claim_requests.status = "approved" AND claims.status = "declined" THEN "declined"
|
WHEN claim_requests.status = "approved" AND claims.status = "declined" THEN "declined"
|
||||||
WHEN claim_requests.status = "approved" AND claims.status = "disbrusmented" THEN "disbrusmented"
|
WHEN claim_requests.status = "approved" AND claims.status = "disbrusmented" THEN "disbrusmented"
|
||||||
WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "pending"
|
/*WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "pending"*/
|
||||||
WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "review"
|
WHEN claim_requests.status = "approved" AND claims.status = "received" THEN "reviewed"
|
||||||
ELSE ""
|
ELSE ""
|
||||||
END AS status
|
END AS status
|
||||||
'),
|
'),
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('claim_logs', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->bigInteger('claim_request_id');
|
||||||
|
$table->string('status', 255);
|
||||||
|
$table->dateTime('date');
|
||||||
|
$table->text('description')->nullable();
|
||||||
|
$table->text('device')->nullable();
|
||||||
|
$table->bigInteger('created_by');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('claim_logs');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('claim_request_files', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->bigInteger('claim_request_id');
|
||||||
|
$table->dateTime('date');
|
||||||
|
$table->string('type', 255);
|
||||||
|
$table->text('description')->nullable();
|
||||||
|
$table->bigInteger('created_by');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('claim_request_files');
|
||||||
|
}
|
||||||
|
};
|
||||||
7
frontend/client-portal/public/icons/ic_gmail.svg
Normal file
7
frontend/client-portal/public/icons/ic_gmail.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<svg width="24" height="18" viewBox="0 0 24 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M5.45456 17.9116V8.68687L2.57878 6.06959L0 4.61719V16.2837C0 17.1845 0.733594 17.9116 1.63641 17.9116H5.45456Z" fill="#4285F4"/>
|
||||||
|
<path d="M18.5469 17.9115H22.365C23.2706 17.9115 24.0014 17.1817 24.0014 16.2836V4.61719L21.0806 6.28074L18.5469 8.68677V17.9115Z" fill="#34A853"/>
|
||||||
|
<path d="M5.45381 8.68695L5.0625 5.08256L5.45381 1.63281L11.9993 6.5165L18.5447 1.63281L18.9824 4.89631L18.5447 8.68695L11.9993 13.5706L5.45381 8.68695Z" fill="#EA4335"/>
|
||||||
|
<path d="M18.5469 1.63247V8.6866L24.0014 4.61693V2.44639C24.0014 0.433277 21.6914 -0.71434 20.0743 0.492966L18.5469 1.63247Z" fill="#FBBC04"/>
|
||||||
|
<path d="M0 4.61697L2.50866 6.48878L5.45456 8.68665V1.63251L3.92719 0.493009C2.30719 -0.71439 0 0.43332 0 2.44633V4.61687V4.61697Z" fill="#C5221F"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 852 B |
69
frontend/client-portal/src/pages/ClaimReport/Detail.tsx
Normal file
69
frontend/client-portal/src/pages/ClaimReport/Detail.tsx
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
// mui
|
||||||
|
import { Container, Grid, Stack, Typography } from '@mui/material';
|
||||||
|
// components
|
||||||
|
import Page from '../../components/Page';
|
||||||
|
// utils
|
||||||
|
import useSettings from '../../hooks/useSettings';
|
||||||
|
// section
|
||||||
|
import CardFamilyInformation from '../../sections/alarm-center/user-profile/CardFamilyInformation';
|
||||||
|
// react
|
||||||
|
import { useNavigate, useParams } from 'react-router-dom';
|
||||||
|
import ButtonBack from '../../components/ButtonBack';
|
||||||
|
import { useEffect, useState, useContext } from 'react';
|
||||||
|
import axios from '../../utils/axios';
|
||||||
|
import { UserCurrentCorporateContext } from '../../contexts/UserCurrentCorporate';
|
||||||
|
// pages
|
||||||
|
import DetailTimeline from '../../pages/ClaimReport/DetailTimeline';
|
||||||
|
import DetailStepper from '../../pages/ClaimReport/DetailStepper';
|
||||||
|
import { format } from 'date-fns';
|
||||||
|
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
export default function UserProfile() {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const { themeStretch } = useSettings();
|
||||||
|
const [data, setData] = useState();
|
||||||
|
|
||||||
|
const { corporateValue } = useContext(UserCurrentCorporateContext);
|
||||||
|
const { id } = useParams();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
axios
|
||||||
|
.get(corporateValue + '/claim-report/detail/' + id)
|
||||||
|
.then((response) => {
|
||||||
|
setData(response.data);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page title="Detail">
|
||||||
|
<Container maxWidth={themeStretch ? false : 'xl'}>
|
||||||
|
<Stack direction="row" alignItems="center" sx={{ marginBottom: 3 }}>
|
||||||
|
<ArrowBackIosIcon onClick={() => navigate(-1)} sx={{cursor:'pointer'}}/>
|
||||||
|
<Typography variant="h5" sx={{marginLeft:2}}>Detail</Typography>
|
||||||
|
{data ? (
|
||||||
|
<Stack direction="row" spacing={2} ml="auto">
|
||||||
|
<Typography variant="body2" sx={{color: '#757575'}}>Submission Date</Typography>
|
||||||
|
<Typography variant="body2" fontWeight="bold">{(data && data.data) ? format(new Date(data.data.status.submission_date), "d MMM yyyy") : ''}</Typography>
|
||||||
|
</Stack>
|
||||||
|
) : ''}
|
||||||
|
</Stack>
|
||||||
|
{data ? (
|
||||||
|
<Grid container spacing={2}>
|
||||||
|
<Grid item xs={12} md={12}>
|
||||||
|
<DetailStepper data={data}/>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12} md={12}>
|
||||||
|
<DetailTimeline data={data}/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
) : ''}
|
||||||
|
</Container>
|
||||||
|
</Page>
|
||||||
|
);
|
||||||
|
}
|
||||||
291
frontend/client-portal/src/pages/ClaimReport/DetailHistory.tsx
Normal file
291
frontend/client-portal/src/pages/ClaimReport/DetailHistory.tsx
Normal file
@@ -0,0 +1,291 @@
|
|||||||
|
// mui
|
||||||
|
import {
|
||||||
|
Container,
|
||||||
|
Grid,
|
||||||
|
Stack,
|
||||||
|
Typography,
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableContainer,
|
||||||
|
TableHead,
|
||||||
|
TableRow,
|
||||||
|
TextField,
|
||||||
|
Button,
|
||||||
|
Box,
|
||||||
|
TableSortLabel,
|
||||||
|
Avatar } from '@mui/material';
|
||||||
|
// components
|
||||||
|
import Page from '../../components/Page';
|
||||||
|
// utils
|
||||||
|
import useSettings from '../../hooks/useSettings';
|
||||||
|
// section
|
||||||
|
import CardFamilyInformation from '../../sections/alarm-center/user-profile/CardFamilyInformation';
|
||||||
|
// react
|
||||||
|
import { useNavigate, useParams } from 'react-router-dom';
|
||||||
|
import ButtonBack from '../../components/ButtonBack';
|
||||||
|
import { useEffect, useState, useContext } from 'react';
|
||||||
|
import axios from '../../utils/axios';
|
||||||
|
import { UserCurrentCorporateContext } from '../../contexts/UserCurrentCorporate';
|
||||||
|
import { format } from 'date-fns';
|
||||||
|
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';
|
||||||
|
import { fCurrency } from '../../utils/formatNumber';
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
export default function DetailHistory() {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const { themeStretch } = useSettings();
|
||||||
|
const [data, setData] = useState();
|
||||||
|
|
||||||
|
const { corporateValue } = useContext(UserCurrentCorporateContext);
|
||||||
|
const { id } = useParams();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
axios
|
||||||
|
.get(corporateValue + '/claim-report/detail-history/' + id)
|
||||||
|
.then((response) => {
|
||||||
|
setData(response.data);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
console.log(data?.data?.claim_item.length);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page title="Detail">
|
||||||
|
<Container maxWidth={themeStretch ? false : 'xl'}>
|
||||||
|
<Stack direction="row" alignItems="center" sx={{ marginBottom: 3 }}>
|
||||||
|
<ArrowBackIosIcon onClick={() => navigate(-1)} sx={{cursor:'pointer'}}/>
|
||||||
|
<Typography variant="h5" sx={{marginLeft:2}}>History</Typography>
|
||||||
|
</Stack>
|
||||||
|
{data ? (
|
||||||
|
<Grid container spacing={3}>
|
||||||
|
<Grid item xs={12} md={12}>
|
||||||
|
<Stack direction="row" sx={{marginBottom:2}}>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381', marginRight:1, flexBasis: '10%'}}>Name</Typography>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>{data.data.member.name}</Typography>
|
||||||
|
</Stack>
|
||||||
|
<Stack direction="row" sx={{marginBottom:2}}>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381', marginRight:1, flexBasis: '10%'}}>Member ID</Typography>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>{data.data.member.member_id}</Typography>
|
||||||
|
</Stack>
|
||||||
|
<Stack direction="row" sx={{marginBottom:2}}>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381', marginRight:1, flexBasis: '10%'}}>Claim Code</Typography>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>{data.data.member.code}</Typography>
|
||||||
|
</Stack>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12} md={12}>
|
||||||
|
<TableContainer>
|
||||||
|
<Table aria-label="collapsible table" size="small">
|
||||||
|
{/* Table Header */}
|
||||||
|
<TableHead>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
sx={{ padding: 2 }}
|
||||||
|
width= '5%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>No</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
sx={{ padding: 2 }}
|
||||||
|
width= '15%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Date</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
sx={{ padding: 2 }}
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Requirment</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
sx={{ padding: 2 }}
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Request Claim</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
sx={{ padding: 2 }}
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Approval Claim</Typography>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableHead>
|
||||||
|
{/* End Table Header */}
|
||||||
|
{/* Table Body */}
|
||||||
|
<TableBody>
|
||||||
|
{data?.data?.claim_item?.length === 0 ? (
|
||||||
|
<TableRow>
|
||||||
|
<TableCell colSpan={5} align="center">
|
||||||
|
<Typography variant="body2">No data available</Typography>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
) : (
|
||||||
|
data.data.claim_item?.map((dataItem, index) => (
|
||||||
|
<TableRow key={index}>
|
||||||
|
<TableCell align="left">
|
||||||
|
<Typography variant="body2">{dataItem.claim_item_number}</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell align="center">
|
||||||
|
<Typography
|
||||||
|
sx={{
|
||||||
|
backgroundColor: '#919EAB29',
|
||||||
|
color: '#637381',
|
||||||
|
borderRadius: '4px',
|
||||||
|
width: '70%',
|
||||||
|
}}
|
||||||
|
variant="body2"
|
||||||
|
>
|
||||||
|
{format(new Date(dataItem.submission_date), "d MMM yyyy")}
|
||||||
|
</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell align="left">
|
||||||
|
{dataItem.description}
|
||||||
|
</TableCell>
|
||||||
|
<TableCell align="left">
|
||||||
|
{fCurrency(dataItem.nominal_ditagihkan)}
|
||||||
|
</TableCell>
|
||||||
|
<TableCell align="left">
|
||||||
|
{fCurrency(dataItem.nominal_dicover)}
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
))
|
||||||
|
)}
|
||||||
|
|
||||||
|
</TableBody>
|
||||||
|
{/* End Table Body */}
|
||||||
|
</Table>
|
||||||
|
</TableContainer>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12} md={12}>
|
||||||
|
<TableContainer>
|
||||||
|
<Table aria-label="collapsible table" size="small">
|
||||||
|
{/* Table Body */}
|
||||||
|
<TableBody>
|
||||||
|
<TableRow sx={{ borderBottom: 0 }}>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '5%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '15%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Request Claim</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>{data.data.tot_claim_item.nominal_ditagihkan ? fCurrency(data.data.tot_claim_item.nominal_ditagihkan) : '-'}</Typography>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow sx={{ borderBottom: 0 }}>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '5%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '15%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{color:'#637381'}}>Approval Claim</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold', color: '#FF4842'}}>{data.data.tot_claim_item.nominal_dicover ? fCurrency(data.data.tot_claim_item.nominal_dicover) : '-'}</Typography>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow sx={{ borderBottom: 0 }}>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '5%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '15%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>Difference</Typography>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell
|
||||||
|
align= 'left'
|
||||||
|
width= '20%'
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{fontWeight: 'bold'}}>{data.data.tot_claim_item.difference ? fCurrency(data.data.tot_claim_item.difference) : '-'}</Typography>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableBody>
|
||||||
|
{/* End Table Body */}
|
||||||
|
</Table>
|
||||||
|
</TableContainer>
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
justifyContent="flex-end"
|
||||||
|
alignItems="flex-end"
|
||||||
|
sx={{ marginTop: 15, padding: 2 }}
|
||||||
|
spacing={1}
|
||||||
|
>
|
||||||
|
<Typography variant="body2" sx={{ fontStyle: 'italic', color: '#637381' }}>Note : Apabila terdapat perbedaan nominal silahkan hubungi kami </Typography>
|
||||||
|
<img alt="Gmail Icon" sx={{ height: 32, width: 30 }} src="/icons/ic_gmail.svg" />
|
||||||
|
</Stack>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
) : ''}
|
||||||
|
</Container>
|
||||||
|
</Page>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import Box from '@mui/material/Box';
|
||||||
|
import Stepper from '@mui/material/Stepper';
|
||||||
|
import Step from '@mui/material/Step';
|
||||||
|
import StepLabel from '@mui/material/StepLabel';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import ClearIcon from '@mui/icons-material/Clear';
|
||||||
|
|
||||||
|
const steps = [
|
||||||
|
'Request',
|
||||||
|
'Review',
|
||||||
|
'Approval',
|
||||||
|
'Decline',
|
||||||
|
];
|
||||||
|
|
||||||
|
export default function HorizontalLinearAlternativeLabelStepper({data}) {
|
||||||
|
const [active, setActive] = useState(0);
|
||||||
|
const [status, SetStatus] = useState(null);
|
||||||
|
let updatedSteps = [...steps];
|
||||||
|
useEffect(() => {
|
||||||
|
if (data && data.data) {
|
||||||
|
if (data.data.status.status === 'requested') {
|
||||||
|
setActive(1);
|
||||||
|
updatedSteps = updatedSteps.filter(step => step !== 'Decline');
|
||||||
|
}
|
||||||
|
else if (data.data.status.status === 'reviewed') {
|
||||||
|
setActive(2);
|
||||||
|
updatedSteps = updatedSteps.filter(step => step !== 'Decline');
|
||||||
|
}
|
||||||
|
else if (data.data.status.status === 'approved')
|
||||||
|
{
|
||||||
|
setActive(3);
|
||||||
|
updatedSteps = updatedSteps.filter(step => step !== 'Decline');
|
||||||
|
}
|
||||||
|
else if(data.data.status.status === 'declined')
|
||||||
|
{
|
||||||
|
setActive(4)
|
||||||
|
updatedSteps = updatedSteps.filter(step => step !== 'Approval');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
SetStatus(updatedSteps);
|
||||||
|
}, [data]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box sx={{ width: '100%', marginBottom: 2 }}>
|
||||||
|
<Stepper activeStep={active} alternativeLabel>
|
||||||
|
{status?.map((label) => (
|
||||||
|
<Step key={label}>
|
||||||
|
<StepLabel icon={label==='Decline' ? <ClearIcon sx={{ color: 'white', backgroundColor: 'red', borderRadius: '50%' }} /> : ''}>{label}</StepLabel>
|
||||||
|
</Step>
|
||||||
|
))}
|
||||||
|
</Stepper>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
}
|
||||||
108
frontend/client-portal/src/pages/ClaimReport/DetailTimeline.tsx
Normal file
108
frontend/client-portal/src/pages/ClaimReport/DetailTimeline.tsx
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import Timeline from '@mui/lab/Timeline';
|
||||||
|
import TimelineItem, { timelineItemClasses } from '@mui/lab/TimelineItem';
|
||||||
|
import TimelineSeparator from '@mui/lab/TimelineSeparator';
|
||||||
|
import TimelineConnector from '@mui/lab/TimelineConnector';
|
||||||
|
import TimelineContent from '@mui/lab/TimelineContent';
|
||||||
|
import TimelineDot from '@mui/lab/TimelineDot';
|
||||||
|
import {Typography, Card, Stack} from '@mui/material';
|
||||||
|
import { styled } from '@mui/material/styles';
|
||||||
|
import Paper from '@mui/material/Paper';
|
||||||
|
import Button from '@mui/material/Button';
|
||||||
|
import AddIcon from '@mui/icons-material/Add';
|
||||||
|
import Iconify from '../../components/Iconify';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
import { format } from 'date-fns';
|
||||||
|
|
||||||
|
const Item1 = styled(Paper)(({ theme }) => ({
|
||||||
|
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff',
|
||||||
|
...theme.typography.body2,
|
||||||
|
padding: theme.spacing(1),
|
||||||
|
textAlign: 'center',
|
||||||
|
color: theme.palette.text.secondary,
|
||||||
|
backgroundColor: '#919EAB29',
|
||||||
|
color: '#637381',
|
||||||
|
width: 'fit-content',
|
||||||
|
marginRight: 'auto',
|
||||||
|
}));
|
||||||
|
|
||||||
|
const Item2 = styled(Paper)(({ theme }) => ({
|
||||||
|
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff',
|
||||||
|
...theme.typography.body2,
|
||||||
|
padding: theme.spacing(1),
|
||||||
|
textAlign: 'center',
|
||||||
|
color: theme.palette.text.secondary,
|
||||||
|
width: 'fit-content',
|
||||||
|
marginLeft: 'auto',
|
||||||
|
}));
|
||||||
|
|
||||||
|
export default function NoOppositeContent({data}) {
|
||||||
|
const [timeline, setTimeline] = useState(null);
|
||||||
|
const [requestFile, setRequestFile] = useState(null);
|
||||||
|
useEffect(() => {
|
||||||
|
if (data && data.data) {
|
||||||
|
setTimeline(data.data.timeline);
|
||||||
|
setRequestFile(data.data.request_files);
|
||||||
|
}
|
||||||
|
|
||||||
|
}, [data]);
|
||||||
|
console.log(timeline);
|
||||||
|
console.log(requestFile);
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{timeline?.map((dataTimeline, index) => (
|
||||||
|
<Timeline
|
||||||
|
sx={{
|
||||||
|
[`& .${timelineItemClasses.root}:before`]: {
|
||||||
|
flex: 0,
|
||||||
|
padding: 0,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
key={index}
|
||||||
|
>
|
||||||
|
<Typography variant="body2" gutterBottom fontWeight="bold">{dataTimeline.date ? format(new Date(dataTimeline.date), "d MMM yyyy") : ''}</Typography>
|
||||||
|
<TimelineItem>
|
||||||
|
<TimelineSeparator>
|
||||||
|
<TimelineDot />
|
||||||
|
<TimelineConnector />
|
||||||
|
</TimelineSeparator>
|
||||||
|
<TimelineContent spacing={3}>
|
||||||
|
<Card sx={{ borderRadius: '6px', paddingY: 2 }}>
|
||||||
|
<Stack sx={{marginLeft: 2, marginRight: 2, marginTop: 2 }}>
|
||||||
|
<Stack direction="row" spacing={2} sx={{marginBottom: 2, paddingBottom: 2, borderBottom: '1px solid #919EAB52' }}>
|
||||||
|
<Item1>{dataTimeline.date ? format(new Date(dataTimeline.date), "HH : ii") : ''}</Item1>
|
||||||
|
<Item2 sx={{backgroundColor: dataTimeline.txt_status_backgroundColor, color: dataTimeline.txt_status_color}}>{dataTimeline.txt_status}</Item2>
|
||||||
|
</Stack>
|
||||||
|
<Stack direction="row" spacing={2} sx={{marginBottom: 2}}>
|
||||||
|
<Typography variant="body2" gutterBottom>Detail:</Typography>
|
||||||
|
<Typography variant="body2" gutterBottom>{dataTimeline.description}</Typography>
|
||||||
|
</Stack>
|
||||||
|
{dataTimeline.status === 'reviewed' && requestFile ? (
|
||||||
|
<>
|
||||||
|
{requestFile?.map((dataRequestFile, index) => (
|
||||||
|
<Stack spacing={2} sx={{marginBottom: 2}} key={index}>
|
||||||
|
<Typography variant="body2" gutterBottom fontWeight="bold">{dataRequestFile.description}</Typography>
|
||||||
|
<Button variant="outlined" color="primary" startIcon={< AddIcon/>}>
|
||||||
|
<Typography variant="button" display="block">
|
||||||
|
{dataRequestFile.type === 'claim-diagnosis' ?
|
||||||
|
'Dokumen Diagnosa'
|
||||||
|
: dataRequestFile.type === 'claim-kondisi' ?
|
||||||
|
'Dokumen Kondisi'
|
||||||
|
: dataRequestFile.type === 'claim-result' ?
|
||||||
|
'Dokumen Hasil Penunjang'
|
||||||
|
: ''}
|
||||||
|
</Typography>
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
) : ''}
|
||||||
|
</Stack>
|
||||||
|
</Card>
|
||||||
|
</TimelineContent>
|
||||||
|
</TimelineItem>
|
||||||
|
</Timeline>
|
||||||
|
))}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -53,7 +53,7 @@ export default function List() {
|
|||||||
|
|
||||||
/* ------------------------------ handle order ------------------------------ */
|
/* ------------------------------ handle order ------------------------------ */
|
||||||
const [order, setOrder] = useState<Order>('desc');
|
const [order, setOrder] = useState<Order>('desc');
|
||||||
const [orderBy, setOrderBy] = useState('code');
|
const [orderBy, setOrderBy] = useState('member_id');
|
||||||
|
|
||||||
const orders = {
|
const orders = {
|
||||||
order: order,
|
order: order,
|
||||||
@@ -174,8 +174,6 @@ export default function List() {
|
|||||||
params: { ...parameters, type: 'claim-report' },
|
params: { ...parameters, type: 'claim-report' },
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(response.data.data);
|
|
||||||
|
|
||||||
setData(
|
setData(
|
||||||
response.data.data.map((obj: any) => ({
|
response.data.data.map((obj: any) => ({
|
||||||
...obj,
|
...obj,
|
||||||
@@ -244,7 +242,7 @@ export default function List() {
|
|||||||
>
|
>
|
||||||
Pending
|
Pending
|
||||||
</Typography>
|
</Typography>
|
||||||
) : obj.status === 'review' ? (
|
) : obj.status === 'reviewed' ? (
|
||||||
<Typography
|
<Typography
|
||||||
variant="body2"
|
variant="body2"
|
||||||
sx={{
|
sx={{
|
||||||
@@ -292,11 +290,11 @@ export default function List() {
|
|||||||
action:
|
action:
|
||||||
<TableMoreMenu actions={
|
<TableMoreMenu actions={
|
||||||
<>
|
<>
|
||||||
<MenuItem onClick={() => navigate ('/employee-data/user-profile/'+obj.personId)}>
|
<MenuItem onClick={() => navigate ('/claim-report/detail/'+obj.claimRequestId)}>
|
||||||
<SearchIcon />
|
<SearchIcon />
|
||||||
Detail
|
Detail
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => navigate ('/employee-data/user-profile/'+obj.personId)}>
|
<MenuItem onClick={() => navigate ('/claim-report/detail-history/'+obj.claimRequestId)}>
|
||||||
<HistoryIcon />
|
<HistoryIcon />
|
||||||
History
|
History
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
@@ -17,12 +17,13 @@ import ButtonBack from '../../components/ButtonBack';
|
|||||||
import { useEffect, useState, useContext } from 'react';
|
import { useEffect, useState, useContext } from 'react';
|
||||||
import axios from '../../utils/axios';
|
import axios from '../../utils/axios';
|
||||||
import { UserCurrentCorporateContext } from '../../contexts/UserCurrentCorporate';
|
import { UserCurrentCorporateContext } from '../../contexts/UserCurrentCorporate';
|
||||||
|
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
export default function UserProfile() {
|
export default function UserProfile() {
|
||||||
const { themeStretch } = useSettings();
|
const { themeStretch } = useSettings();
|
||||||
// const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [data, setData] = useState();
|
const [data, setData] = useState();
|
||||||
|
|
||||||
const { corporateValue } = useContext(UserCurrentCorporateContext);
|
const { corporateValue } = useContext(UserCurrentCorporateContext);
|
||||||
@@ -44,13 +45,14 @@ export default function UserProfile() {
|
|||||||
return (
|
return (
|
||||||
<Page title="Profile">
|
<Page title="Profile">
|
||||||
<Container maxWidth={themeStretch ? false : 'xl'}>
|
<Container maxWidth={themeStretch ? false : 'xl'}>
|
||||||
<Stack direction="row" alignItems="center" sx={{ marginBottom: 2 }}>
|
<Stack direction="row" alignItems="center" sx={{ marginBottom: 3 }}>
|
||||||
{/* <IconButton sx={{ marginRight: '10px', color: '#424242' }} onClick={() => navigate()}>
|
{/* <IconButton sx={{ marginRight: '10px', color: '#424242' }} onClick={() => navigate()}>
|
||||||
<Iconify icon="heroicons-outline:arrow-narrow-left" />
|
<Iconify icon="heroicons-outline:arrow-narrow-left" />
|
||||||
</IconButton> */}
|
</IconButton> */}
|
||||||
<ButtonBack />
|
<ArrowBackIosIcon sx={{cursor:'pointer'}} onClick={() => navigate(-1)}/>
|
||||||
<Typography variant="h5">Profile</Typography>
|
<Typography variant="h5" sx={{marginLeft:2}}>Profile</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
{data ? (
|
||||||
<Grid container spacing={2}>
|
<Grid container spacing={2}>
|
||||||
{/* Row 1 */}
|
{/* Row 1 */}
|
||||||
<Grid item xs={12} md={12}>
|
<Grid item xs={12} md={12}>
|
||||||
@@ -60,6 +62,7 @@ export default function UserProfile() {
|
|||||||
<CardFamilyInformation data={data} />
|
<CardFamilyInformation data={data} />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
) : ''}
|
||||||
</Container>
|
</Container>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -168,9 +168,13 @@ export default function Router() {
|
|||||||
index: true,
|
index: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'dialog-detail/:id',
|
path: '/claim-report/detail/:id',
|
||||||
element: <DialogDetailClaim />,
|
element: <DetailClaimReport />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/claim-report/detail-history/:id',
|
||||||
|
element: <DetailHitoryClaimReport />,
|
||||||
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -252,6 +256,8 @@ const ClaimReport = Loadable(lazy(() => import('../pages/ClaimReport/Index')));
|
|||||||
const Claims = Loadable(lazy(() => import('../pages/Claims/Index')));
|
const Claims = Loadable(lazy(() => import('../pages/Claims/Index')));
|
||||||
const ClaimShow = Loadable(lazy(() => import('../pages/Claims/Show')));
|
const ClaimShow = Loadable(lazy(() => import('../pages/Claims/Show')));
|
||||||
const DialogDetailClaim = Loadable(lazy(()=> import('../pages/ClaimReport/DialogDetailClaim')));
|
const DialogDetailClaim = Loadable(lazy(()=> import('../pages/ClaimReport/DialogDetailClaim')));
|
||||||
|
const DetailClaimReport = Loadable(lazy(()=> import('../pages/ClaimReport/Detail')));
|
||||||
|
const DetailHitoryClaimReport = Loadable(lazy(()=> import('../pages/ClaimReport/DetailHistory')));
|
||||||
|
|
||||||
// Claim submit
|
// Claim submit
|
||||||
const ClaimSubmit = Loadable(lazy(() => import('../pages/ClaimSubmit/Index')));
|
const ClaimSubmit = Loadable(lazy(() => import('../pages/ClaimSubmit/Index')));
|
||||||
|
|||||||
Reference in New Issue
Block a user