From f0df15f381af91758091bd794ba774e32bc26770 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 22 Jul 2022 10:37:16 +0200 Subject: [PATCH 1/7] feat(ticket): add boxing in router --- src/pages/Ticket/Card/TicketBoxing.vue | 27 ++++++++++++++++++++++++++ src/router/modules/ticket.js | 10 +++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/pages/Ticket/Card/TicketBoxing.vue diff --git a/src/pages/Ticket/Card/TicketBoxing.vue b/src/pages/Ticket/Card/TicketBoxing.vue new file mode 100644 index 000000000..140eafa9d --- /dev/null +++ b/src/pages/Ticket/Card/TicketBoxing.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 2cbe8bc3f..60d592868 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -51,8 +51,16 @@ export default { title: 'basicData' }, component: () => import('src/pages/Ticket/Card/TicketBasicData.vue'), + }, + { + path: 'boxing', + name: 'TicketBoxing', + meta: { + title: 'boxing' + }, + component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), } ] }, ] -}; \ No newline at end of file +}; From 0fb77eadc0527696143f0a3f4b5eb963aa719ea2 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 2 Aug 2022 15:11:40 +0200 Subject: [PATCH 2/7] feat(ticketBoxing): getVideo --- src/i18n/en/index.js | 4 ++ src/pages/Ticket/Card/TicketBoxing.vue | 69 ++++++++++++++++++++------ 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 7a27c8ca5..b12eb9530 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -54,6 +54,10 @@ export default { list: 'List', createTicket: 'Create ticket', basicData: 'Basic Data' + }, + boxing: { + expedition: 'Expedición', + item: 'Artículo' } }, components: { diff --git a/src/pages/Ticket/Card/TicketBoxing.vue b/src/pages/Ticket/Card/TicketBoxing.vue index 140eafa9d..2232df6d6 100644 --- a/src/pages/Ticket/Card/TicketBoxing.vue +++ b/src/pages/Ticket/Card/TicketBoxing.vue @@ -1,27 +1,64 @@ From 424ff568cd3aa8f3ae56e079a2d840a2f331339d Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 3 Aug 2022 14:58:58 +0200 Subject: [PATCH 3/7] feat(ticketBoxing): fix front --- src/i18n/en/index.js | 6 +- src/i18n/es/index.js | 6 ++ src/pages/Ticket/Card/TicketBoxing.vue | 97 +++++++++++++++++++------- 3 files changed, 81 insertions(+), 28 deletions(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index b12eb9530..16c7ab7e0 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -56,8 +56,10 @@ export default { basicData: 'Basic Data' }, boxing: { - expedition: 'Expedición', - item: 'Artículo' + expedition: 'Expedition', + item: 'Item', + created: 'Created', + worker: 'Worker' } }, components: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 82f136062..67e3801b8 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -54,6 +54,12 @@ export default { list: 'Listado', createTicket: 'Crear ticket', basicData: 'Datos básicos' + }, + boxing: { + expedition: 'Expedición', + item: 'Artículo', + created: 'Creado', + worker: 'Trabajador' } }, components: { diff --git a/src/pages/Ticket/Card/TicketBoxing.vue b/src/pages/Ticket/Card/TicketBoxing.vue index 2232df6d6..716310336 100644 --- a/src/pages/Ticket/Card/TicketBoxing.vue +++ b/src/pages/Ticket/Card/TicketBoxing.vue @@ -3,6 +3,7 @@ import { useI18n } from 'vue-i18n'; import { computed, ref, onMounted } from 'vue'; import { useRouter } from 'vue-router'; import axios from 'axios'; +import { date } from 'quasar'; const router = useRouter(); const { t } = useI18n(); @@ -17,48 +18,92 @@ const entityId = computed(function () { const expeditions = ref({}); const url = ref({}); +//const video = ref({}); async function fetch() { const filter = { where: { - ticketFk: entityId.value - } - } + ticketFk: entityId.value, + }, + }; const { data } = await axios.get(`/api/Expeditions/filter`, { - params: { filter } + params: { filter }, }); if (data) expeditions.value = data; - console.log(expeditions.value) + console.log(expeditions.value); } async function selectVideo(expeditionId) { - url.value = `http://localhost:8080/api/Boxings/getVideo?id=${expeditionId}` + url.value = `${window.location.origin}/api/Boxings/getVideo?id=${expeditionId}`; } +/*async function getVideo(expeditionId) { + const { data } = await axios.get(`/api/Boxings/getVideo?id=${expeditionId}`); + const myUrl = window.URL.createObjectURL(new Blob([data])); + console.log(myUrl); + if (data) url.value = data; +}*/ + From 7f42655b1dc7a75b5157cd07badf849bc6c8207f Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 6 Sep 2022 13:59:00 +0200 Subject: [PATCH 4/7] feat(ticket_boxing): add section --- src/i18n/en/index.js | 4 +- src/i18n/es/index.js | 4 +- src/pages/Customer/CustomerMain.vue | 2 +- src/pages/Ticket/Card/TicketBoxing.vue | 175 ++++++++++++++++--------- src/pages/Ticket/Card/TicketCard.vue | 18 +-- src/pages/Ticket/TicketMain.vue | 6 +- 6 files changed, 130 insertions(+), 79 deletions(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 8b452ee83..4211416ca 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -61,7 +61,9 @@ export default { expedition: 'Expedition', item: 'Item', created: 'Created', - worker: 'Worker' + worker: 'Worker', + selectTime: 'Select time:', + selectVideo: 'Select video:' } }, components: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index ccf991b5c..dd147ac42 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -61,7 +61,9 @@ export default { expedition: 'Expedición', item: 'Artículo', created: 'Creado', - worker: 'Trabajador' + worker: 'Trabajador', + selectTime: 'Seleccionar hora:', + selectVideo: 'Seleccionar video:' } }, components: { diff --git a/src/pages/Customer/CustomerMain.vue b/src/pages/Customer/CustomerMain.vue index 9787fc415..a3d80e05c 100644 --- a/src/pages/Customer/CustomerMain.vue +++ b/src/pages/Customer/CustomerMain.vue @@ -1,7 +1,7 @@ - diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 7ac41ebf4..73a26d406 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -1,23 +1,23 @@