From b69588ae65571fbeb0ee7999586dd01b81e80172 Mon Sep 17 00:00:00 2001 From: ivan-sim Date: Wed, 16 Oct 2024 09:00:56 +0700 Subject: [PATCH 1/3] Update --- .../src/layouts/dashboard/header/NotificationsPopover.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx b/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx index dcf36de8..6a2fca66 100755 --- a/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx +++ b/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx @@ -242,7 +242,7 @@ function renderContent(notification: NotificationItemProps) { avatar: ( {notification.title} ), title, @@ -253,7 +253,7 @@ function renderContent(notification: NotificationItemProps) { avatar: ( {notification.title} ), title, @@ -275,7 +275,7 @@ function renderContent(notification: NotificationItemProps) { avatar: ( {notification.title} ), title, From 5f7893c8de876fe2fdbf06b1e068ff9f6360d626 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Wed, 16 Oct 2024 10:26:18 +0700 Subject: [PATCH 2/3] tambah filter dan flag files --- .../Controllers/Api/RequestLogController.php | 17 +++ .../Components/DialogUploadFileFinalLog.tsx | 4 +- .../pages/CustomerService/FinalLog/List.tsx | 127 ++++++++++++++---- .../CustomerService/FinalLog/Model/Types.tsx | 6 +- 4 files changed, 125 insertions(+), 29 deletions(-) diff --git a/Modules/Internal/Http/Controllers/Api/RequestLogController.php b/Modules/Internal/Http/Controllers/Api/RequestLogController.php index ebb70b89..4f69837d 100755 --- a/Modules/Internal/Http/Controllers/Api/RequestLogController.php +++ b/Modules/Internal/Http/Controllers/Api/RequestLogController.php @@ -70,6 +70,23 @@ class RequestLogController extends Controller $q->orderBy($orderBy, $request->order); } }) + ->when($request->file, function ($q, $search) { + if ($search == 'kondisi') { + $q->whereHas('files', function ($subQuery) { + $subQuery->where('type', 'final-log-kondisi'); + }); + } elseif ($search == 'diagnosa') { + $q->whereHas('files', function ($subQuery) { + $subQuery->where('type', 'final-log-diagnosis'); + }); + } elseif ($search == 'result') { + $q->whereHas('files', function ($subQuery) { + $subQuery->where('type', 'final-log-result'); + }); + } elseif ($search == 'none') { + $q->doesntHave('files'); + } + }) ->when(empty($request->orderBy), function ($q) { $q->orderBy('submission_date', 'desc'); }) diff --git a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogUploadFileFinalLog.tsx b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogUploadFileFinalLog.tsx index af4d1728..d755d0fc 100755 --- a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogUploadFileFinalLog.tsx +++ b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogUploadFileFinalLog.tsx @@ -123,7 +123,7 @@ export default function DialogUploadFileFinalLog({ id, openDialog, setOpenDialog {/* -------------------------------Upload Dokumen Kondisi------------------------------- */} - File Kondisi + File Billing {/* Hasil Lab, */} - File Hasil Penunjang + File Hasil Penunjang Medis {/* Hasil Lab, */} (null); @@ -229,30 +239,64 @@ export default function List() { /> {!currentImportFileName && ( - - - + + + + + + File + + + + + + Import + + + {handleImportButton('claim')}}>Import + {handleGetTemplate('claim-request')}}>Download Template + {handleGetData('data-plan-benefit')}}>Download Claim Request + {handleImportButton('invoice')}}>Import Invoice + {handleGetTemplate('final-log-invoice')}}>Download Template Invoice + + {/*