From c471a4febc4046f57dd0f0b9e0325b6c51fd8ab6 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Mon, 15 Jan 2024 09:16:50 -0500 Subject: [PATCH] Se crea el formulario para la creacion de un agente de aduanas --- .../Customer/Card/CustomerConsignees.vue | 16 +++-- .../CustomerConsigneeCreate.vue | 34 ++++++---- .../CustomerConsigneeEdit.vue | 0 .../components/CustomerNewCustomsAgent.vue | 65 +++++++++++++++++++ src/router/modules/customer.js | 4 +- 5 files changed, 98 insertions(+), 21 deletions(-) rename src/pages/Customer/{Card => components}/CustomerConsigneeCreate.vue (91%) rename src/pages/Customer/{Card => components}/CustomerConsigneeEdit.vue (100%) create mode 100644 src/pages/Customer/components/CustomerNewCustomsAgent.vue diff --git a/src/pages/Customer/Card/CustomerConsignees.vue b/src/pages/Customer/Card/CustomerConsignees.vue index f412eda59..553ab641b 100644 --- a/src/pages/Customer/Card/CustomerConsignees.vue +++ b/src/pages/Customer/Card/CustomerConsignees.vue @@ -47,7 +47,10 @@ const toCustomerConsigneeEdit = () => {
@@ -63,15 +66,14 @@ const toCustomerConsigneeEdit = () => { {{ setProvince(item.provinceFk) }}
- -
diff --git a/src/pages/Customer/Card/CustomerConsigneeCreate.vue b/src/pages/Customer/components/CustomerConsigneeCreate.vue similarity index 91% rename from src/pages/Customer/Card/CustomerConsigneeCreate.vue rename to src/pages/Customer/components/CustomerConsigneeCreate.vue index 2f8ef1b97..3f3b2aedf 100644 --- a/src/pages/Customer/Card/CustomerConsigneeCreate.vue +++ b/src/pages/Customer/components/CustomerConsigneeCreate.vue @@ -8,8 +8,9 @@ import FormModel from 'components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; -import CustomerCreateNewPostcode from 'src/components/CreateNewPostcodeForm.vue'; import VnSelectCreate from 'src/components/common/VnSelectCreate.vue'; +import CustomerCreateNewPostcode from 'src/components/CreateNewPostcodeForm.vue'; +import CustomsNewCustomsAgent from 'src/pages/Customer/components/CustomerNewCustomsAgent.vue'; const { t } = useI18n(); const route = useRoute(); @@ -124,15 +125,12 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk }, formData) => { {{ scope.opt.code }} - {{ scope.opt.code }} - - {{ scope.opt.town.name }} ({{ - scope.opt.town.province.name - }}, - {{ - scope.opt.town.province.country.country - }}) + + {{ scope.opt.code }} - + {{ scope.opt.town.name }} + ({{ scope.opt.town.province.name }}, + {{ scope.opt.town.province.country.country }}) + @@ -218,20 +216,32 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk }, formData) => { />
- + > + +
+ + es: Default: Predeterminado diff --git a/src/pages/Customer/Card/CustomerConsigneeEdit.vue b/src/pages/Customer/components/CustomerConsigneeEdit.vue similarity index 100% rename from src/pages/Customer/Card/CustomerConsigneeEdit.vue rename to src/pages/Customer/components/CustomerConsigneeEdit.vue diff --git a/src/pages/Customer/components/CustomerNewCustomsAgent.vue b/src/pages/Customer/components/CustomerNewCustomsAgent.vue new file mode 100644 index 000000000..b8b83e763 --- /dev/null +++ b/src/pages/Customer/components/CustomerNewCustomsAgent.vue @@ -0,0 +1,65 @@ + + + + + +es: + New customs agent: Nuevo agente de aduanas + NIF: NIF + Fiscal name: Nombre fiscal + Street: Dirección fiscal + Phone: Teléfono + diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js index 752c486ee..a0dc2df23 100644 --- a/src/router/modules/customer.js +++ b/src/router/modules/customer.js @@ -173,7 +173,7 @@ export default { }, component: () => import( - 'src/pages/Customer/Card/CustomerConsigneeCreate.vue' + 'src/pages/Customer/components/CustomerConsigneeCreate.vue' ), }, { @@ -184,7 +184,7 @@ export default { }, component: () => import( - 'src/pages/Customer/Card/CustomerConsigneeEdit.vue' + 'src/pages/Customer/components/CustomerConsigneeEdit.vue' ), }, ],