improvement: attachment selection for lab dispatch added. attachment preview added to cases feature.

This commit is contained in:
2026-07-07 18:43:10 +03:30
parent b2d40b3e97
commit 86b1e3afff
25 changed files with 767 additions and 84 deletions

View File

@@ -66,6 +66,14 @@ export interface LabCaseComment {
showVisibilityStatus?: boolean;
}
export interface LabCaseAttachmentMeta {
id: string;
fileName: string;
mimeType: string;
sizeBytes: number;
createdAt: string;
}
export interface LabCaseDetail {
id: string;
sentAt: string | null;
@@ -84,6 +92,12 @@ export interface LabCaseDetail {
teeth: string[];
comment: string | null;
}>;
toothProsthesis: Array<{
treatmentDetailId: string;
tooth: string;
prosthesisTypeCode: string;
}>;
attachments: LabCaseAttachmentMeta[];
sends: Array<{
organizationId: string;
organizationName: string;

View File

@@ -103,6 +103,7 @@ export interface PastLabCase {
prosthesisTypeCode: string;
}>;
sends?: LabCaseSendInfo[];
attachments?: TreatmentAttachmentMeta[];
}
export interface PastTreatment {
@@ -144,6 +145,7 @@ export interface LabCaseDraft {
destinationOrganizationId: string | null;
detailClientIds: string[];
toothProsthesis: LabCaseToothProsthesisDraft[];
attachmentIds: string[];
sentAt?: string | null;
sends?: LabCaseSendInfo[];
}
@@ -170,6 +172,7 @@ export interface SaveLabCasePayload {
tooth: string;
prosthesisTypeCode: string;
}>;
attachmentIds?: string[];
}
export interface SaveTreatmentPayload {
@@ -192,4 +195,5 @@ export interface LabCaseResponse {
}>;
sends: LabCaseSendInfo[];
toothProsthesis?: LabCaseToothProsthesisDraft[];
attachments?: TreatmentAttachmentMeta[];
}