From d2ee8a98eb754f93cc4348f9cd2feb7566fdc6cb Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 11 Jan 2024 08:25:59 -0500 Subject: [PATCH 1/4] Se crea la tarjeta que muestra el listado de consignatarios existentes y la tarjeta de creacion --- .../Customer/Card/CustomerConsigneeCreate.vue | 241 ++++++++++++++++++ .../Customer/Card/CustomerConsigneeEdit.vue | 3 + .../Customer/Card/CustomerConsignees.vue | 112 +++++++- src/router/modules/customer.js | 43 +++- 4 files changed, 391 insertions(+), 8 deletions(-) create mode 100644 src/pages/Customer/Card/CustomerConsigneeCreate.vue create mode 100644 src/pages/Customer/Card/CustomerConsigneeEdit.vue diff --git a/src/pages/Customer/Card/CustomerConsigneeCreate.vue b/src/pages/Customer/Card/CustomerConsigneeCreate.vue new file mode 100644 index 000000000..69d478b6f --- /dev/null +++ b/src/pages/Customer/Card/CustomerConsigneeCreate.vue @@ -0,0 +1,241 @@ + + + + + +es: + Default: Predeterminado + Consignee: Consignatario + Street address: Dirección postal + Postcode: Código postal + City: Población + Province: Provincia + Agency: Agencia + Phone: Teléfono + Mobile: Movíl + Incoterms: Incoterms + Customs agent: Agente de aduanas + diff --git a/src/pages/Customer/Card/CustomerConsigneeEdit.vue b/src/pages/Customer/Card/CustomerConsigneeEdit.vue new file mode 100644 index 000000000..6546c527d --- /dev/null +++ b/src/pages/Customer/Card/CustomerConsigneeEdit.vue @@ -0,0 +1,3 @@ + diff --git a/src/pages/Customer/Card/CustomerConsignees.vue b/src/pages/Customer/Card/CustomerConsignees.vue index bab2bd1ff..5abe89589 100644 --- a/src/pages/Customer/Card/CustomerConsignees.vue +++ b/src/pages/Customer/Card/CustomerConsignees.vue @@ -1,3 +1,113 @@ + + + + + + +es: + Is equalizated: Recargo de equivalencia + Is logiflora allowed: Compra directa en Holanda + New consignee: Nuevo consignatario + diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 3c8445f42..752c486ee 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -152,13 +152,42 @@ export default { }, { path: 'consignees', - name: 'CustomerConsignees', - meta: { - title: 'consignees', - icon: 'vn:delivery', - }, - component: () => - import('src/pages/Customer/Card/CustomerConsignees.vue'), + name: 'ConsigneesCard', + redirect: { name: 'CustomerConsignees' }, + children: [ + { + path: '', + name: 'CustomerConsignees', + meta: { + icon: 'vn:delivery', + title: 'consignees', + }, + component: () => + import('src/pages/Customer/Card/CustomerConsignees.vue'), + }, + { + path: 'create', + name: 'CustomerConsigneeCreate', + meta: { + title: 'consignee-create', + }, + component: () => + import( + 'src/pages/Customer/Card/CustomerConsigneeCreate.vue' + ), + }, + { + path: 'edit', + name: 'CustomerConsigneeEdit', + meta: { + title: 'consignee-edit', + }, + component: () => + import( + 'src/pages/Customer/Card/CustomerConsigneeEdit.vue' + ), + }, + ], }, { path: 'notes', From f9cbf03991c184d06b096e96882ae51817c049ba Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 11 Jan 2024 13:12:44 -0500 Subject: [PATCH 2/4] Se corrige el componente por comentario en pr --- .../Customer/Card/CustomerConsignees.vue | 51 ++++++++++++------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/src/pages/Customer/Card/CustomerConsignees.vue b/src/pages/Customer/Card/CustomerConsignees.vue index 5abe89589..0d06c31fc 100644 --- a/src/pages/Customer/Card/CustomerConsignees.vue +++ b/src/pages/Customer/Card/CustomerConsignees.vue @@ -1,22 +1,36 @@