diff --git a/src/components/page/consultation/DetailConsultation/DetailConsultation.tsx b/src/components/page/consultation/DetailConsultation/DetailConsultation.tsx
index 964c1b5..dc1a5b1 100644
--- a/src/components/page/consultation/DetailConsultation/DetailConsultation.tsx
+++ b/src/components/page/consultation/DetailConsultation/DetailConsultation.tsx
@@ -22,6 +22,12 @@ import DataWrapper from "@/components/customs/DataWrapper";
import Table from "@/components/customs/custom-table";
import CustomButton from "@/components/customs/custom-button";
import Pagination from "@/components/customs/custom-pagination";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from "@radix-ui/react-tooltip";
const DetailConsultation = () => {
const params = useParams();
@@ -178,7 +184,7 @@ const DetailConsultation = () => {
ID PHIÊN KHÁM
{consultation.id}
FILE UPLOAD
+ {file.fileName}
+
+ {extension || "FILE"}
+
- Không có file nào được tải lên.
-
+
FILE UPLOAD
+ {file.fileName}
+
+ {extension || "FILE"}
+ Không có file nào được tải lên. {selectedSpecialty.glassType || "---"} ĐÃ PHÁT KÍNH CHƯA
+ Đã phát kính
+
+ Chưa phát kính
+
- {consultation.generalAttachmentUrls.map((item, index) => {
- const file = getFileInfo(item, index);
+
+ Danh sách file đính kèm
+
- const isImage = [
- "jpg",
- "jpeg",
- "png",
- "gif",
- "webp",
- "bmp",
- "svg",
- ].includes(extension);
+
- {selectedSpecialty.attachmentUrls.map((item, index) => {
- const file = getFileInfo(item, index);
+
+ Danh sách file đính kèm
+
- const isImage = [
- "jpg",
- "jpeg",
- "png",
- "gif",
- "webp",
- "bmp",
- "svg",
- ].includes(extension);
+
Số kính đã phát
+ +- Số suất quà được phát: - {report?.totalGiftPackagesIssued || 0} suất. -
*/} ++ Tổng số kính đã phát: + {report?.totalGlassesDelivered || 0} cái. +
diff --git a/src/services/consultationServices.ts b/src/services/consultationServices.ts index 7c941e1..120cd63 100644 --- a/src/services/consultationServices.ts +++ b/src/services/consultationServices.ts @@ -89,6 +89,7 @@ export interface ConsultationDetail { procedureNotes: string | null; glassRequired: boolean | null; glassType: string | null; + isGlassesDelivered: boolean; examinerName: string; specialtyStatus: string | number | undefined; attachmentUrls: string[]; @@ -133,6 +134,7 @@ export interface ReportResponse { totalCases: number; }[]; totalPrescriptionsIssued: number; + totalGlassesDelivered: number; } const consultationServices = { @@ -220,6 +222,7 @@ const consultationServices = { procedureNotes: string; glassRequired: boolean; glassType: string; + isGlassesDelivered: boolean; fileUrls: string[]; }, tokenAxios?: any,