diff --git a/src/pages/Customer/CustomerCreate.vue b/src/pages/Customer/CustomerCreate.vue new file mode 100644 index 000000000..47f26e297 --- /dev/null +++ b/src/pages/Customer/CustomerCreate.vue @@ -0,0 +1,244 @@ + + + + (workersOptions = data)" + auto-load + url="Workers/search?departmentCodes" + /> + (businessTypesOptions = data)" + auto-load + url="BusinessTypes" + /> + (citiesLocationOptions = data)" + auto-load + url="Towns/location" + /> + (provincesLocationOptions = data)" + auto-load + url="Provinces/location" + /> + (countriesOptions = data)" + auto-load + url="Countries" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.opt.name }} + + {{ + `${scope.opt.name}, ${scope.opt.province.name} (${scope.opt.province.country.country})` + }} + + + + + + + + + + + + + + {{ + `${scope.opt.name} (${scope.opt.country.country})` + }} + + + + + + + + + + + + + + + + + + + + + + + + + + +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..10f3b7d2f --- /dev/null +++ b/src/pages/Customer/CustomerCreateNewPostcode.vue @@ -0,0 +1,143 @@ + + + + (townsLocationOptions = data)" + auto-load + url="Towns/location" + /> + (provincesOptions = data)" + auto-load + url="Provinces" + /> + (countriesOptions = data)" + auto-load + url="Countries" + /> + + {{ t('New postcode') }} + {{ t('Please, ensure you put the correct data!') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + +es: + New postcode: Nuevo código postal + Please, ensure you put the correct data!: ¡Por favor, asegúrese de poner los datos correctos! + City: Ciudad + Province: Provincia + Country: País + 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' }); +}; {{ t('globals.collapseMenu') }} @@ -55,7 +59,7 @@ function viewSummary(id) { - + @@ -63,18 +67,18 @@ function viewSummary(id) { @@ -103,6 +107,12 @@ function viewSummary(id) { + + + + {{ t('New client') }} + + @@ -117,4 +127,5 @@ function viewSummary(id) { es: Search customer: Buscar cliente You can search by customer id or name: Puedes buscar por id o nombre del cliente + New client: Nuevo cliente diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 832a1e0fd..7c9940ebe 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -29,6 +29,14 @@ export default { }, component: () => import('src/pages/Customer/CustomerList.vue'), }, + { + path: 'create', + name: 'CustomerCreate', + meta: { + title: 'create', + }, + component: () => import('src/pages/Customer/CustomerCreate.vue'), + }, { path: 'payments', name: 'CustomerPayments',
{{ t('Please, ensure you put the correct data!') }}