From 70847176caba52f63025c57bdf4d29e19bae6322 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 6 Sep 2024 07:15:25 +0200 Subject: [PATCH] refs #6553 fix business slot --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Worker/Card/WorkerBusiness.vue | 41 +++++++++++++----------- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index bddaf9196..73707b9be 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -260,6 +260,7 @@ globals: ticketsMonitor: Tickets monitor clientsActionsMonitor: Clients and actions serial: Serial + business: Business created: Created worker: Worker now: Now diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f42738a8a..ba4de742e 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -264,6 +264,7 @@ globals: ticketsMonitor: Monitor de tickets clientsActionsMonitor: Clientes y acciones serial: Facturas por serie + business: Contratos created: Fecha creación worker: Trabajador now: Ahora diff --git a/src/pages/Worker/Card/WorkerBusiness.vue b/src/pages/Worker/Card/WorkerBusiness.vue index 3aa32b2f1..007eb415d 100644 --- a/src/pages/Worker/Card/WorkerBusiness.vue +++ b/src/pages/Worker/Card/WorkerBusiness.vue @@ -5,6 +5,7 @@ import { useRoute } from 'vue-router'; import VnTable from 'components/VnTable/VnTable.vue'; import { toDate } from 'src/filters'; import { useQuasar } from 'quasar'; +import VnInputTime from 'components/common/VnInputTime.vue'; const { t } = useI18n(); const quasar = useQuasar(); @@ -12,23 +13,22 @@ const route = useRoute(); const tableRef = ref(); const entityId = computed(() => route.params.id); -async function reactivateWorker(business) { - console.log('value: ', business); - if (business === null) return; - quasar - .dialog({ - message: t('Do you want to reactivate the user?'), - ok: { - push: true, - color: 'primary', - }, - cancel: true, - }) - .onOk(async () => { - business.isDisable = false; - }); +async function reactivateWorker(data) { + console.log('value: ', data); + // if (business === null) return; + // quasar + // .dialog({ + // message: t('Do you want to reactivate the user?'), + // ok: { + // push: true, + // color: 'primary', + // }, + // cancel: true, + // }) + // .onOk(async () => { + // business.isDisable = false; + // }); } - const columns = computed(() => [ { name: 'started', @@ -220,8 +220,13 @@ const columns = computed(() => [ card-class="grid-two q-gutter-x-md" :is-editable="true" :use-model="true" - @save-changes="reactivateWorker(entityId)" - /> + @on-data-saved="tableRef.reactivateWorker()" + > + +