diff --git a/frontend/dashboard/src/pages/Claims/Detail.tsx b/frontend/dashboard/src/pages/Claims/Detail.tsx index 3ba87703..1c0b8073 100644 --- a/frontend/dashboard/src/pages/Claims/Detail.tsx +++ b/frontend/dashboard/src/pages/Claims/Detail.tsx @@ -239,6 +239,7 @@ export default function Detail() { .get('/doctors?search=&organization_id='+values.organization_id) .then((response) => { setDoctor(response.data.data); + setOpenHospitalCare(true); }) .catch((error) => { console.error(error); @@ -469,7 +470,6 @@ export default function Detail() { function handleEditHospitalCare(id: number) { setClaimHistoryId(id); setEdit(true); - setOpenHospitalCare(true); } //Service @@ -674,12 +674,14 @@ export default function Detail() { {documentData ? ( - - Additional Documents - - + {customerData?.status === 'received' ? ( + + Additional Documents + + + ) : ''} {documentData?.map((documentType, index) => ( @@ -786,12 +788,14 @@ export default function Detail() { ): ''} - - History of Hospital Care - - + {customerData?.status === 'received' ? ( + + History of Hospital Care + + + ) : ''} {currentClaimHistoryCare?.map((claimHistoryCare, index) => claimHistoryCare.status === 0 ? ( @@ -1180,12 +1184,13 @@ export default function Detail() { Service - {!serviceData ? ( + {!serviceData && customerData?.status === 'received' ? ( ) : ( + {customerData?.status === 'received' ? ( handleEditService()}> @@ -1195,6 +1200,7 @@ export default function Detail() { } /> + ) : ''} )} @@ -1429,9 +1435,10 @@ export default function Detail() { ) : ( <> - + ) }