refs #6553 fix business slot
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-09-06 07:15:25 +02:00
parent 97ce44242c
commit 70847176ca
3 changed files with 25 additions and 18 deletions

View File

@ -260,6 +260,7 @@ globals:
ticketsMonitor: Tickets monitor
clientsActionsMonitor: Clients and actions
serial: Serial
business: Business
created: Created
worker: Worker
now: Now

View File

@ -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

View File

@ -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()"
>
<template #column-ended="{ row }">
<VnInputTime v-model="row.ended" />
<QForm v-if="!row.ended"></QForm>
</template>
</VnTable>
</template>
<style lang="scss" scoped></style>
<i18n>