diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 3c1a12f24..77ab2692d 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -1,5 +1,6 @@ + + + (ticketUpdateActions = data)" + auto-load + /> + + + + + + {{ t('basicData.total') }} + + + + + {{ t('basicData.price') }}: + {{ toCurrency(totalPrice) }} + + + + + {{ t('basicData.newPrice') }}: {{ toCurrency(totalNewPrice) }} + + + + + {{ t('basicData.difference') }}: {{ toCurrency(totalDifference) }} + + + + + + + {{ t('basicData.chargeDifference') }} + + + + + + + + + + + + {{ t('basicData.withoutNegativesInfo') }} + + + + + + + + + + + {{ row.itemFk }} + + + + + + + + {{ row.item.name }} + {{ row.item.subName }} + + + + + + + + + + + diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue new file mode 100644 index 000000000..c8a8e85c9 --- /dev/null +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue @@ -0,0 +1,468 @@ + + + (clientsOptions = data)" + auto-load + /> + (warehousesOptions = data)" + auto-load + /> + (companiesOptions = data)" + auto-load + /> + (agenciesOptions = data)" + auto-load + /> + (zonesOptions = data)" + auto-load + /> + + + + + + + #{{ scope.opt?.id }} {{ scope.opt?.name }} + + + + + + + + + + + + + {{ + `${ + !scope.opt?.isActive + ? t('basicData.inactive') + : '' + } ` + }} + {{ scope.opt?.nickname }} + , {{ scope.opt?.street }}, {{ scope.opt?.city }}, + {{ scope.opt?.province?.name }} - + {{ scope.opt?.agencyMode?.name }} + + + + + + + {{ t('basicData.editAddress') }} + + + + + + + + + + + + + {{ scope.opt?.name }} - Max. + {{ toTimeFormat(scope.opt?.hour) }} + h. + + + + + + + + + + + + diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue new file mode 100644 index 000000000..af47761a2 --- /dev/null +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue @@ -0,0 +1,195 @@ + + + + + (formData = $event)" + :form-data="formData" + /> + + + (formData = $event)" + /> + + + + + + + + + diff --git a/src/pages/Ticket/Card/TicketBasicData.vue b/src/pages/Ticket/Card/TicketBasicData.vue deleted file mode 100644 index 0c9a8b042..000000000 --- a/src/pages/Ticket/Card/TicketBasicData.vue +++ /dev/null @@ -1,3 +0,0 @@ - - Basic Data - diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index a89671a0c..ba20a6395 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -80,3 +80,39 @@ futureTickets: moveTicketSuccess: Tickets moved successfully! searchInfo: Search future tickets by date futureTicket: Future tickets +basicData: + next: Next + back: Back + finalize: Finalize + client: Client + warehouse: Warehouse + address: Address + inactive: (Inactive) + noDeliveryZoneAvailable: No delivery zone available for this landing date + editAddress: Edit address + alias: Alias + company: Company + agency: Agency + zone: Zone + shipped: Shipped + landed: Landed + shippedHour: Shipped hour + priceDifference: Price difference + someFieldsAreInvalid: Some fields are invalid + item: Item + description: Description + movable: Movable + quantity: Quantity + pricePPU: Price (PPU) + newPricePPU: New (PPU) + difference: Difference + total: Total + price: Price + newPrice: New price + chargeDifference: Charge difference to + withoutNegatives: Create without negatives + withoutNegativesInfo: Clone this ticket with the changes and only sales availables + negativesConfirmTitle: Edit basic data + negativesConfirmMessage: Negatives are going to be generated, are you sure you want to advance all the lines? + chooseAnOption: Choose an option + unroutedTicket: The ticket has been unrouted diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index ce52e18ba..abe3926cc 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,3 +1,39 @@ +basicData: + next: Siguiente + back: Anterior + finalize: Finalizar + client: Cliente + warehouse: Almacén + address: Consignatario + inactive: (Inactivo) + noDeliveryZoneAvailable: No hay una zona de reparto disponible para la fecha de envío seleccionada + editAddress: Editar dirección + alias: Alias + company: Empresa + agency: Agencia + zone: Zona + shipped: F. Envío + landed: F. Entrega + shippedHour: Hora de envío + priceDifference: Diferencia de precio + someFieldsAreInvalid: Algunos campos no son válidos + item: Artículo + description: Descripción + movable: Movible + quantity: Cantidad + pricePPU: Precio (Ud.) + newPricePPU: Nuevo (Ud.) + difference: Diferencia + total: Total + price: Precio + newPrice: Nuevo precio + chargeDifference: Cargar diferencia a + withoutNegatives: Crear sin negativos + withoutNegativesInfo: Clonar este ticket con los cambios y solo ventas disponibles + negativesConfirmTitle: Editar datos básicos + negativesConfirmMessage: Se van a generar negativos, ¿seguro que quieres adelantar todas las líneas? + chooseAnOption: Elige una opción + unroutedTicket: El ticket ha sido desenrutado advanceTickets: origin: Origen destination: Destinatario diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 9c105be32..2d202b774 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList', 'TicketAdvance', 'TicketFuture'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketLog'], + card: ['TicketBasicData', 'TicketBoxing', 'TicketSms', 'TicketSale', 'TicketLog'], }, children: [ { @@ -82,7 +82,8 @@ export default { title: 'basicData', icon: 'vn:settings', }, - component: () => import('src/pages/Ticket/Card/TicketBasicData.vue'), + component: () => + import('src/pages/Ticket/Card/BasicData/TicketBasicDataView.vue'), }, { name: 'TicketSale',