From 1c136f93c20e89212b37e404b22e06129050318e Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 19 Dec 2024 10:41:41 +0700 Subject: [PATCH] fix: custom emp count --- src/components/05_quotation/WorkerItem.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/05_quotation/WorkerItem.vue b/src/components/05_quotation/WorkerItem.vue index ddee5fa7..f0039344 100644 --- a/src/components/05_quotation/WorkerItem.vue +++ b/src/components/05_quotation/WorkerItem.vue @@ -2,6 +2,8 @@ import { QTableProps } from 'quasar'; import TableComponents from 'src/components/TableComponents.vue'; +const employeeAmount = defineModel('employeeAmount', { default: 1 }); + defineEmits<{ (e: 'delete', index: number): void; (e: 'check', index: number): void; @@ -173,7 +175,7 @@ const columns = [ input-class="text-center" :readonly hide-bottom-space - :model-value="rows.length" + v-model="employeeAmount" />