From c4c344f07ab91f53f1b3f286d26d8b3b3929174b Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 29 Dec 2023 14:00:32 -0300 Subject: [PATCH] Add descriptor and submodules to supplier card left menu --- src/i18n/en/index.js | 11 +- src/i18n/es/index.js | 9 ++ src/pages/Supplier/Card/SupplierAccounts.vue | 1 + src/pages/Supplier/Card/SupplierAddresses.vue | 1 + .../Supplier/Card/SupplierAgencyTerm.vue | 1 + src/pages/Supplier/Card/SupplierBasicData.vue | 1 + .../Supplier/Card/SupplierBillingData.vue | 1 + src/pages/Supplier/Card/SupplierCard.vue | 6 +- .../Supplier/Card/SupplierConsumption.vue | 1 + src/pages/Supplier/Card/SupplierContacts.vue | 1 + .../Supplier/Card/SupplierFiscalData.vue | 1 + src/pages/Supplier/Card/SupplierLog.vue | 1 + src/router/modules/Supplier.js | 101 +++++++++++++++++- 13 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 src/pages/Supplier/Card/SupplierAccounts.vue create mode 100644 src/pages/Supplier/Card/SupplierAddresses.vue create mode 100644 src/pages/Supplier/Card/SupplierAgencyTerm.vue create mode 100644 src/pages/Supplier/Card/SupplierBasicData.vue create mode 100644 src/pages/Supplier/Card/SupplierBillingData.vue create mode 100644 src/pages/Supplier/Card/SupplierConsumption.vue create mode 100644 src/pages/Supplier/Card/SupplierContacts.vue create mode 100644 src/pages/Supplier/Card/SupplierFiscalData.vue create mode 100644 src/pages/Supplier/Card/SupplierLog.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 12505b30e..ea2431821 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -558,7 +558,7 @@ export default { summary: 'Summary', basicData: 'Basic Data', catalog: 'Catalog', - volume: 'Volume' + volume: 'Volume', }, field: { salesPersonFk: 'Sales Person', @@ -769,6 +769,15 @@ export default { list: 'List', create: 'Create', summary: 'Summary', + basicData: 'Basic Data', + fiscalData: 'Fiscal Data', + billingData: 'Billing Data', + log: 'Log', + accounts: 'Accounts', + contacts: 'Contacts', + addresses: 'Addresses', + consumption: 'Consumption', + agencyTerm: 'Agency Agreement', }, list: { payMethod: 'Pay method', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index fe16df8fc..60b813f3a 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -769,6 +769,15 @@ export default { list: 'Listado', create: 'Crear', summary: 'Resumen', + basicData: 'Datos básicos', + fiscalData: 'Datos fiscales', + billingData: 'Forma de pago', + log: 'Historial', + accounts: 'Cuentas', + contacts: 'Contactos', + addresses: 'Direcciones', + consumption: 'Consumo', + agencyTerm: 'Acuerdo agencia', }, list: { payMethod: 'Método de pago', diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue new file mode 100644 index 000000000..2b7059ea3 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAccounts.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierAddresses.vue b/src/pages/Supplier/Card/SupplierAddresses.vue new file mode 100644 index 000000000..dd82abe78 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAddresses.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierAgencyTerm.vue b/src/pages/Supplier/Card/SupplierAgencyTerm.vue new file mode 100644 index 000000000..2a0c341cf --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAgencyTerm.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierBasicData.vue b/src/pages/Supplier/Card/SupplierBasicData.vue new file mode 100644 index 000000000..582da48f3 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierBasicData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierBillingData.vue b/src/pages/Supplier/Card/SupplierBillingData.vue new file mode 100644 index 000000000..849737fa7 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierBillingData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierCard.vue b/src/pages/Supplier/Card/SupplierCard.vue index cf94c9e8d..04115cc3d 100644 --- a/src/pages/Supplier/Card/SupplierCard.vue +++ b/src/pages/Supplier/Card/SupplierCard.vue @@ -2,6 +2,8 @@ import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; +import LeftMenu from 'components/LeftMenu.vue'; +import SupplierDescriptor from './SupplierDescriptor.vue'; const stateStore = useStateStore(); const { t } = useI18n(); @@ -18,7 +20,9 @@ const { t } = useI18n(); - + + + diff --git a/src/pages/Supplier/Card/SupplierConsumption.vue b/src/pages/Supplier/Card/SupplierConsumption.vue new file mode 100644 index 000000000..df1dead17 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierConsumption.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierContacts.vue b/src/pages/Supplier/Card/SupplierContacts.vue new file mode 100644 index 000000000..ca58d4ab7 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierContacts.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierFiscalData.vue b/src/pages/Supplier/Card/SupplierFiscalData.vue new file mode 100644 index 000000000..dd018ac60 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierFiscalData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierLog.vue b/src/pages/Supplier/Card/SupplierLog.vue new file mode 100644 index 000000000..2733e958d --- /dev/null +++ b/src/pages/Supplier/Card/SupplierLog.vue @@ -0,0 +1 @@ + diff --git a/src/router/modules/Supplier.js b/src/router/modules/Supplier.js index 198a9581e..6ce1a7688 100644 --- a/src/router/modules/Supplier.js +++ b/src/router/modules/Supplier.js @@ -11,7 +11,17 @@ export default { redirect: { name: 'SupplierMain' }, menus: { main: ['SupplierList'], - card: [], + card: [ + 'SupplierBasicData', + 'SupplierFiscalData', + 'SupplierBillingData', + 'SupplierLog', + 'SupplierAccounts', + 'SupplierContacts', + 'SupplierAddresses', + 'SupplierConsumption', + 'SupplierAgencyTerm', + ], }, children: [ { @@ -55,6 +65,95 @@ export default { component: () => import('src/pages/Supplier/Card/SupplierSummary.vue'), }, + { + path: 'basic-data', + name: 'SupplierBasicData', + meta: { + title: 'basicData', + icon: 'vn:settings', + }, + component: () => + import('src/pages/Supplier/Card/SupplierBasicData.vue'), + }, + { + path: 'fiscal-data', + name: 'SupplierFiscalData', + meta: { + title: 'fiscalData', + icon: 'vn:dfiscales', + }, + component: () => + import('src/pages/Supplier/Card/SupplierFiscalData.vue'), + }, + { + path: 'billing-data', + name: 'SupplierBillingData', + meta: { + title: 'billingData', + icon: 'vn:payment', + }, + component: () => + import('src/pages/Supplier/Card/SupplierBillingData.vue'), + }, + { + path: 'log', + name: 'SupplierLog', + meta: { + title: 'log', + icon: 'vn:History', + }, + component: () => import('src/pages/Supplier/Card/SupplierLog.vue'), + }, + { + path: 'account', + name: 'SupplierAccounts', + meta: { + title: 'accounts', + icon: 'vn:account', + }, + component: () => + import('src/pages/Supplier/Card/SupplierAccounts.vue'), + }, + { + path: 'contact', + name: 'SupplierContacts', + meta: { + title: 'contacts', + icon: 'contact_phone', + }, + component: () => + import('src/pages/Supplier/Card/SupplierContacts.vue'), + }, + { + path: 'address', + name: 'SupplierAddresses', + meta: { + title: 'addresses', + icon: 'vn:delivery', + }, + component: () => + import('src/pages/Supplier/Card/SupplierAddresses.vue'), + }, + { + path: 'consumption', + name: 'SupplierConsumption', + meta: { + title: 'consumption', + icon: 'show_chart', + }, + component: () => + import('src/pages/Supplier/Card/SupplierConsumption.vue'), + }, + { + path: 'agency-term', + name: 'SupplierAgencyTerm', + meta: { + title: 'agencyTerm', + icon: 'vn:agency-term', + }, + component: () => + import('src/pages/Supplier/Card/SupplierAgencyTerm.vue'), + }, ], }, ],