diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml
index b3a85eefa..3ebf23b3c 100644
--- a/src/i18n/locale/en.yml
+++ b/src/i18n/locale/en.yml
@@ -443,6 +443,7 @@ ticket:
sms: Sms
notes: Notes
sale: Sale
+ purchaseRequest: Purchase request
list:
nickname: Nickname
state: State
diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml
index d03ee9d5c..620b67a0a 100644
--- a/src/i18n/locale/es.yml
+++ b/src/i18n/locale/es.yml
@@ -441,6 +441,7 @@ ticket:
sms: Sms
notes: Notas
sale: Lineas del pedido
+ purchaseRequest: Petición de compra
list:
nickname: Alias
state: Estado
diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue
index 04363b506..ecea3aab2 100644
--- a/src/pages/Ticket/Card/TicketCard.vue
+++ b/src/pages/Ticket/Card/TicketCard.vue
@@ -1,17 +1,29 @@
diff --git a/src/pages/Ticket/Card/TicketCreateRequest.vue b/src/pages/Ticket/Card/TicketCreateRequest.vue
new file mode 100644
index 000000000..6b436621f
--- /dev/null
+++ b/src/pages/Ticket/Card/TicketCreateRequest.vue
@@ -0,0 +1,69 @@
+
+
+ (attendersOptions = data)"
+ />
+ emit('onRequestCreated')"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ es:
+ Create request: Crear petición de compra
+
diff --git a/src/pages/Ticket/Card/TicketPurchaseRequest.vue b/src/pages/Ticket/Card/TicketPurchaseRequest.vue
new file mode 100644
index 000000000..387a5baf1
--- /dev/null
+++ b/src/pages/Ticket/Card/TicketPurchaseRequest.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+ redirectToTicketSummary(row.ticketFk)"
+ >
+
+
+
+
+
+
+
+
+ {{ row.requester?.user?.nickname }}
+
+
+
+
+
+
+
+ {{ row.atender?.user?.nickname }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.requester?.user?.nickname }}
+
+
+
+
+
+
+
+
+ {{ t('globals.delete') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('purchaseRequest.newRequest') }}
+
+
+
+
diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml
new file mode 100644
index 000000000..5930e3487
--- /dev/null
+++ b/src/pages/Ticket/locale/en.yml
@@ -0,0 +1,14 @@
+card:
+ search: Search tickets
+ searchInfo: You can search by ticket id or alias
+purchaseRequest:
+ id: Id
+ description: Description
+ created: Created
+ requester: Requester
+ atender: Atender
+ quantity: Quantity
+ price: Price
+ saleFk: Item id
+ state: State
+ newRequest: New request
diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml
index 5348b29b9..80d32b4a5 100644
--- a/src/pages/Ticket/locale/es.yml
+++ b/src/pages/Ticket/locale/es.yml
@@ -1,2 +1,16 @@
+card:
+ search: Buscar tickets
+ searchInfo: Buscar tickets por identificador o alias
+purchaseRequest:
+ Id: Id
+ description: Descripción
+ created: Fecha creación
+ requester: Solicitante
+ atender: Comprador
+ quantity: Cantidad
+ price: Precio
+ saleFk: Id artículo
+ state: Estado
+ newRequest: Crear petición
Search ticket: Buscar ticket
You can search by ticket id or alias: Puedes buscar por id o alias del ticket
diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js
index 6cb7291dc..584fb9dc5 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'],
- card: ['TicketBoxing', 'TicketSms', 'TicketSale'],
+ card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketPurchaseRequest'],
},
children: [
{
@@ -93,6 +93,16 @@ export default {
},
component: () => import('src/pages/Ticket/Card/TicketSms.vue'),
},
+ {
+ path: 'request',
+ name: 'TicketPurchaseRequest',
+ meta: {
+ title: 'purchaseRequest',
+ icon: 'vn:buyrequest',
+ },
+ component: () =>
+ import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'),
+ },
],
},
],