feature: Barcode/QR Cover Sheet System

This commit is contained in:
voltsrage
2026-06-27 21:50:32 +08:00
parent 5db60f46eb
commit 756cff332c
43 changed files with 8203 additions and 21 deletions
+4 -1
View File
@@ -71,13 +71,16 @@ export const useBatchStore = defineStore('batches', () => {
track: string,
patientId?: string,
supersedesBatchId?: string,
coverSheetCode?: string,
): Promise<BatchDetailResponse | null> {
loading.value = true
error.value = null
try {
const fields: Record<string, string> = { batchType, track }
const fields: Record<string, string> = { track }
if (batchType) fields.batchType = batchType
if (patientId) fields.patientId = patientId
if (supersedesBatchId) fields.supersedesBatchId = supersedesBatchId
if (coverSheetCode) fields.coverSheetCode = coverSheetCode
const response = await uploadFile<BatchDetailResponse>(
'digitization-batches',