feature: Barcode/QR Cover Sheet System
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user