diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index bb25f7de..40ff66ea 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -2216,9 +2216,7 @@ watch( v-model:open="pageState.employeeModal" @success=" (v) => { - console.log(v.newWorker); selectedWorker = v.worker; - newWorkerList = v.newWorker; } " /> diff --git a/src/pages/05_quotation/QuotationFormWorkerSelect.vue b/src/pages/05_quotation/QuotationFormWorkerSelect.vue index d5d444a4..f5629787 100644 --- a/src/pages/05_quotation/QuotationFormWorkerSelect.vue +++ b/src/pages/05_quotation/QuotationFormWorkerSelect.vue @@ -57,7 +57,6 @@ const ocrStore = useOcrStore(); const { state: employeeFormState, currentFromDataEmployee } = storeToRefs(employeeFormStore); -const { newWorkerList } = storeToRefs(quotationForm); const mrz = ref>>(); @@ -111,6 +110,17 @@ const optionStore = useOptionStore(); const employeeStore = useEmployeeStore(); const open = defineModel('open', { default: false }); +const newWorkerList = defineModel< + (EmployeeWorker & { + attachment?: { + name?: string; + group?: string; + url?: string; + file?: File; + _meta?: Record; + }[]; + })[] +>('newWorkerList', { default: [] }); const workerSelected = ref([]); const workerList = ref([]); const importWorkerCriteria = ref<{