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 @@ + + + + (postcodesOptions = data)" + auto-load + url="Postcodes/location" + /> + (citiesLocationOptions = data)" + auto-load + url="Towns/location" + /> + (provincesLocationOptions = data)" + auto-load + url="Provinces/location" + /> + (agencyModes = data)" + auto-load + url="AgencyModes/isActive" + /> + (incoterms = data)" auto-load url="Incoterms" /> + (customsAgents = data)" + auto-load + url="CustomsAgents" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.opt.code }} + {{ scope.opt.code }} - + {{ scope.opt.town.name }} ({{ + scope.opt.town.province.name + }}, + {{ + scope.opt.town.province.country.country + }}) + + + + + + + + + + + + {{ scope.opt.name }} + + {{ + `${scope.opt.name}, ${scope.opt.province.name} (${scope.opt.province.country.country})` + }} + + + + + + + + + + + + + + + {{ + `${scope.opt.name} (${scope.opt.country.country})` + }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +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 @@ + + Customer consignee edit + 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 @@ + + - Consignees + (provincesLocation = data)" + auto-load + url="Provinces/location" + /> + + + + + + + + + + + + + {{ item.nickname }} - #{{ item.id }} + + {{ item.street }} + + {{ item.postalCode }} - {{ item.city }}, + {{ setProvince(item.provinceFk) }} + + + + + + + + + + + + + + + + {{ t('New consignee') }} + + + + + + +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',