From 44d98865feb33ff0ddbfdf07bc8b4fbacc1f5e8b Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 20 Sep 2024 09:04:31 +0200 Subject: [PATCH] fix: refs #7553 requested changes --- src/i18n/locale/es.yml | 6 +- src/pages/Order/OrderList.vue | 4 +- .../Card/BasicData/TicketBasicDataForm.vue | 13 +- src/pages/Ticket/Card/TicketDescriptor.vue | 7 +- .../Ticket/Card/TicketDescriptorMenu.vue | 12 +- src/pages/Ticket/Card/TicketSale.vue | 4 +- src/pages/Ticket/Card/TicketService.vue | 32 +++++ src/pages/Ticket/Card/TicketSummary.vue | 9 -- src/pages/Ticket/TicketAdvance.vue | 3 + src/pages/Ticket/TicketAdvanceFilter.vue | 10 ++ src/pages/Ticket/TicketList.vue | 130 ++++++++++-------- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + src/router/modules/ticket.js | 2 +- 14 files changed, 157 insertions(+), 77 deletions(-) diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 4cbc449b9..e7f1f3507 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -63,7 +63,7 @@ globals: shipped: F. envío totalEntries: Ent. totales amount: Importe - packages: Bultos + packages: Embalajes download: Descargar downloadPdf: Descargar PDF selectRows: 'Seleccionar las { numberRows } filas(s)' @@ -265,7 +265,7 @@ globals: tracking: Estados components: Componentes pictures: Fotos - packages: Bultos + packages: Embalajes ldap: LDAP samba: Samba twoFactor: Doble factor @@ -484,7 +484,7 @@ ticket: tracking: Estados components: Componentes pictures: Fotos - packages: Bultos + packages: Embalajes list: nickname: Alias state: Estado diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index d96a33ef5..f5c8a44de 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -20,7 +20,6 @@ const { viewSummary } = useSummaryDialog(); const tableRef = ref(); const agencyList = ref([]); const addressesList = ref([]); -const clientId = ref(); const columns = computed(() => [ { @@ -191,6 +190,7 @@ const getDateColor = (date) => { formInitialData: { active: true, addressId: null, + clientFk: null, }, }" :user-params="{ showEmpty: false }" @@ -221,7 +221,7 @@ const getDateColor = (date) => { diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue index 4b2e90a84..fdc75abda 100644 --- a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue @@ -12,6 +12,7 @@ import VnInputTime from 'components/common/VnInputTime.vue'; import axios from 'axios'; import useNotify from 'src/composables/useNotify.js'; +import { useValidator } from 'src/composables/useValidator'; import { toTimeFormat } from 'filters/date.js'; const $props = defineProps({ @@ -23,7 +24,7 @@ const $props = defineProps({ }); const emit = defineEmits(['updateForm']); - +const { validate } = useValidator(); const { notify } = useNotify(); const router = useRouter(); const { t } = useI18n(); @@ -306,6 +307,7 @@ onMounted(() => onFormModelInit()); hide-selected map-options :required="true" + :rules="validate('basicData.client')" >