feat: add status ocr model

This commit is contained in:
Methapon Metanipat 2024-08-28 16:38:29 +07:00
parent 0a13d1d29d
commit 2f9d84d892

View file

@ -2299,11 +2299,13 @@ const emptyCreateDialog = ref(false);
"
v-model:file="currentFromDataEmployee.file"
hide-action
v-model:status-ocr="employeeFormState.ocr"
:readonly="!employeeFormState.isEmployeeEdit"
:dropdown-list="uploadFileListEmployee"
@send-ocr="
async (_, file) => {
if (file) await ocrStore.sendOcr({ file });
employeeFormState.ocr = false;
}
"
/>
@ -3228,11 +3230,13 @@ const emptyCreateDialog = ref(false);
"
v-model:file="currentFromDataEmployee.file"
hide-action
v-model:status-ocr="employeeFormState.ocr"
:readonly="!employeeFormState.isEmployeeEdit"
:dropdown-list="uploadFileListEmployee"
@send-ocr="
async (_, file) => {
if (file) await ocrStore.sendOcr({ file });
employeeFormState.ocr = false;
}
"
/>