From 0a41ce6aa94b47e2721084d6eda4deffc2542fd8 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 14 Dec 2023 06:49:40 -0500 Subject: [PATCH] Se crea formulario de creacion de cliente --- src/pages/Customer/CustomerCreate.vue | 260 ++++++++++++++++++ .../Customer/CustomerCreateNewPostcode.vue | 127 +++++++++ src/pages/Customer/CustomerList.vue | 31 ++- src/router/modules/customer.js | 8 + 4 files changed, 416 insertions(+), 10 deletions(-) create mode 100644 src/pages/Customer/CustomerCreate.vue create mode 100644 src/pages/Customer/CustomerCreateNewPostcode.vue diff --git a/src/pages/Customer/CustomerCreate.vue b/src/pages/Customer/CustomerCreate.vue new file mode 100644 index 000000000..eab238b6a --- /dev/null +++ b/src/pages/Customer/CustomerCreate.vue @@ -0,0 +1,260 @@ + + + + + + + +es: + Comercial name: Nombre comercial + Salesperson: Comercial + Business type: Tipo de negocio + Tax number: NIF / CIF + Business name: Razón social + Street: Dirección fiscal + Postcode: Código postal + City: Población + Province: Provincia + Country: País + Web user: Usuario web + Email: Email + Is equalizated: Recargo de equivalencia + diff --git a/src/pages/Customer/CustomerCreateNewPostcode.vue b/src/pages/Customer/CustomerCreateNewPostcode.vue new file mode 100644 index 000000000..d2f462ce5 --- /dev/null +++ b/src/pages/Customer/CustomerCreateNewPostcode.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index 7e37bb88a..540afcc4c 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -28,25 +28,29 @@ function viewSummary(id) { }, }); } + +const redirectToCreateView = () => { + router.push({ name: 'CustomerCreate' }); +};