Merge branch 'dev' into 7601_futureAgency
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
0901c57b12
|
@ -0,0 +1,2 @@
|
||||||
|
export const langs = ['en', 'es'];
|
||||||
|
export const decimalPlaces = 2;
|
|
@ -27,7 +27,7 @@ function columnName(col) {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnFilterPanel v-bind="$attrs" :search-button="true" :disable-submit-event="true">
|
<VnFilterPanel v-bind="$attrs" :search-button="true" :disable-submit-event="true">
|
||||||
<template #body="{ params, orders }">
|
<template #body="{ params, orders, searchFn }">
|
||||||
<div
|
<div
|
||||||
class="row no-wrap flex-center"
|
class="row no-wrap flex-center"
|
||||||
v-for="col of columns.filter((c) => c.columnFilter ?? true)"
|
v-for="col of columns.filter((c) => c.columnFilter ?? true)"
|
||||||
|
@ -52,6 +52,7 @@ function columnName(col) {
|
||||||
<slot
|
<slot
|
||||||
name="moreFilterPanel"
|
name="moreFilterPanel"
|
||||||
:params="params"
|
:params="params"
|
||||||
|
:search-fn="searchFn"
|
||||||
:orders="orders"
|
:orders="orders"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -106,7 +106,14 @@ function checkIsMain() {
|
||||||
:data-key="dataKey"
|
:data-key="dataKey"
|
||||||
:array-data="arrayData"
|
:array-data="arrayData"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
>
|
||||||
|
<template #moreFilterPanel="{ params, orders, searchFn }">
|
||||||
|
<slot
|
||||||
|
name="moreFilterPanel"
|
||||||
|
v-bind="{ params, orders, searchFn }"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
</VnTableFilter>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</RightAdvancedMenu>
|
</RightAdvancedMenu>
|
||||||
|
|
|
@ -635,6 +635,8 @@ wagon:
|
||||||
name: Name
|
name: Name
|
||||||
|
|
||||||
supplier:
|
supplier:
|
||||||
|
search: Search supplier
|
||||||
|
searchInfo: Search supplier by id or name
|
||||||
list:
|
list:
|
||||||
payMethod: Pay method
|
payMethod: Pay method
|
||||||
account: Account
|
account: Account
|
||||||
|
|
|
@ -644,6 +644,8 @@ wagon:
|
||||||
volume: Volumen
|
volume: Volumen
|
||||||
name: Nombre
|
name: Nombre
|
||||||
supplier:
|
supplier:
|
||||||
|
search: Buscar proveedor
|
||||||
|
searchInfo: Buscar proveedor por id o nombre
|
||||||
list:
|
list:
|
||||||
payMethod: Método de pago
|
payMethod: Método de pago
|
||||||
account: Cuenta
|
account: Cuenta
|
||||||
|
@ -651,6 +653,7 @@ supplier:
|
||||||
tableVisibleColumns:
|
tableVisibleColumns:
|
||||||
nif: NIF/CIF
|
nif: NIF/CIF
|
||||||
account: Cuenta
|
account: Cuenta
|
||||||
|
|
||||||
summary:
|
summary:
|
||||||
responsible: Responsable
|
responsible: Responsable
|
||||||
verified: Verificado
|
verified: Verificado
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Dark, Quasar } from 'quasar';
|
import { Dark, Quasar } from 'quasar';
|
||||||
import { computed } from 'vue';
|
import { computed, onMounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { localeEquivalence } from 'src/i18n/index';
|
import { localeEquivalence } from 'src/i18n/index';
|
||||||
import quasarLang from 'src/utils/quasarLang';
|
import quasarLang from 'src/utils/quasarLang';
|
||||||
|
import { langs } from 'src/boot/defaults/constants.js';
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
|
|
||||||
const userLocale = computed({
|
const userLocale = computed({
|
||||||
get() {
|
get() {
|
||||||
return locale.value;
|
return locale.value;
|
||||||
|
@ -28,7 +28,6 @@ const darkMode = computed({
|
||||||
Dark.set(value);
|
Dark.set(value);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const langs = ['en', 'es'];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -119,7 +119,7 @@ const openSendEmailDialog = async () => {
|
||||||
openConfirmationModal(
|
openConfirmationModal(
|
||||||
t('The consumption report will be sent'),
|
t('The consumption report will be sent'),
|
||||||
t('Please, confirm'),
|
t('Please, confirm'),
|
||||||
() => sendCampaignMetricsEmail({ address: arrayData.store.data.email })
|
() => sendCampaignMetricsEmail({ address: arrayData.store.data.email }),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const sendCampaignMetricsEmail = ({ address }) => {
|
const sendCampaignMetricsEmail = ({ address }) => {
|
||||||
|
|
|
@ -1,19 +1,13 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
|
||||||
import SupplierDescriptor from './SupplierDescriptor.vue';
|
import SupplierDescriptor from './SupplierDescriptor.vue';
|
||||||
|
import VnCardBeta from 'src/components/common/VnCardBeta.vue';
|
||||||
import filter from './SupplierFilter.js';
|
import filter from './SupplierFilter.js';
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCardBeta
|
||||||
data-key="Supplier"
|
data-key="Supplier"
|
||||||
url="Suppliers"
|
url="Suppliers"
|
||||||
:filter="filter"
|
|
||||||
:descriptor="SupplierDescriptor"
|
:descriptor="SupplierDescriptor"
|
||||||
search-data-key="SupplierList"
|
:filter="filter"
|
||||||
:searchbar-props="{
|
|
||||||
url: 'Suppliers/filter',
|
|
||||||
searchUrl: 'table',
|
|
||||||
label: 'Search suppliers',
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -16,6 +16,7 @@ import axios from 'axios';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { useArrayData } from 'composables/useArrayData';
|
import { useArrayData } from 'composables/useArrayData';
|
||||||
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
|
|
||||||
const state = useState();
|
const state = useState();
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
|
@ -173,10 +174,11 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
<QPage class="column items-center q-pa-md">
|
<RightMenu>
|
||||||
<Teleport to="#right-panel" v-if="stateStore.isHeaderMounted()">
|
<template #right-panel>
|
||||||
<SupplierConsumptionFilter data-key="SupplierConsumption" />
|
<SupplierConsumptionFilter data-key="SupplierConsumption" />
|
||||||
</Teleport>
|
</template>
|
||||||
|
</RightMenu>
|
||||||
<QTable
|
<QTable
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
|
@ -225,7 +227,6 @@ onMounted(async () => {
|
||||||
</QTr>
|
</QTr>
|
||||||
</template>
|
</template>
|
||||||
</QTable>
|
</QTable>
|
||||||
</QPage>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
@ -2,14 +2,15 @@
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
|
||||||
import SupplierListFilter from './SupplierListFilter.vue';
|
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
|
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||||
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
const dataKey = 'SupplierList';
|
||||||
|
const provincesOptions = ref([]);
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -104,19 +105,26 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnSearchbar data-key="SuppliersList" :limit="20" :label="t('Search suppliers')" />
|
<FetchData
|
||||||
<RightMenu>
|
url="Provinces"
|
||||||
<template #right-panel>
|
:filter="{ fields: ['id', 'name'], order: 'name ASC' }"
|
||||||
<SupplierListFilter data-key="SuppliersList" />
|
@on-fetch="(data) => (provincesOptions = data)"
|
||||||
</template>
|
auto-load
|
||||||
</RightMenu>
|
/>
|
||||||
|
<VnSection
|
||||||
|
:data-key="dataKey"
|
||||||
|
:columns="columns"
|
||||||
|
prefix="supplier"
|
||||||
|
:array-data-props="{
|
||||||
|
url: 'Suppliers/filter',
|
||||||
|
order: 'id ASC',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<template #body>
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="SuppliersList"
|
:data-key="dataKey"
|
||||||
url="Suppliers/filter"
|
|
||||||
redirect="supplier"
|
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'Suppliers/newSupplier',
|
urlCreate: 'Suppliers/newSupplier',
|
||||||
title: t('Create Supplier'),
|
title: t('Create Supplier'),
|
||||||
|
@ -124,19 +132,36 @@ const columns = computed(() => [
|
||||||
formInitialData: {},
|
formInitialData: {},
|
||||||
mapper: (data) => {
|
mapper: (data) => {
|
||||||
data.name = data.socialName;
|
data.name = data.socialName;
|
||||||
|
delete data.socialName;
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
}"
|
}"
|
||||||
:right-search="false"
|
|
||||||
order="id ASC"
|
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
redirect="supplier"
|
||||||
|
:right-search="false"
|
||||||
>
|
>
|
||||||
<template #more-create-dialog="{ data }">
|
<template #more-create-dialog="{ data }">
|
||||||
<VnInput :label="t('globals.name')" v-model="data.socialName" :uppercase="true" />
|
<VnInput
|
||||||
|
:label="t('globals.name')"
|
||||||
|
v-model="data.socialName"
|
||||||
|
:uppercase="true"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
</template>
|
</template>
|
||||||
|
<template #moreFilterPanel="{ params, searchFn }">
|
||||||
|
<VnSelect
|
||||||
|
:label="t('globals.params.provinceFk')"
|
||||||
|
v-model="params.provinceFk"
|
||||||
|
@update:model-value="searchFn()"
|
||||||
|
:options="provincesOptions"
|
||||||
|
filled
|
||||||
|
dense
|
||||||
|
class="q-px-sm q-pr-lg"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</VnSection>
|
||||||
|
</template>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
|
|
|
@ -1,122 +0,0 @@
|
||||||
<script setup>
|
|
||||||
import { ref } from 'vue';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
|
|
||||||
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
|
||||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
|
||||||
import FetchData from 'components/FetchData.vue';
|
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
dataKey: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
|
||||||
|
|
||||||
const provincesOptions = ref([]);
|
|
||||||
const countriesOptions = ref([]);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<FetchData
|
|
||||||
url="Provinces"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC'}"
|
|
||||||
@on-fetch="(data) => (provincesOptions = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<FetchData
|
|
||||||
url="countries"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC'}"
|
|
||||||
@on-fetch="(data) => (countriesOptions = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<VnFilterPanel
|
|
||||||
:data-key="props.dataKey"
|
|
||||||
:search-button="true"
|
|
||||||
:unremovable-params="['supplierFk']"
|
|
||||||
>
|
|
||||||
<template #tags="{ tag, formatFn }">
|
|
||||||
<div class="q-gutter-x-xs">
|
|
||||||
<strong>{{ t(`params.${tag.label}`) }}: </strong>
|
|
||||||
<span>{{ formatFn(tag.value) }}</span>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template #body="{ params, searchFn }">
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnInput
|
|
||||||
v-model="params.search"
|
|
||||||
:label="t('params.search')"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnInput
|
|
||||||
v-model="params.nickname"
|
|
||||||
:label="t('params.nickname')"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnInput v-model="params.nif" :label="t('params.nif')" is-outlined />
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnSelect
|
|
||||||
:label="t('params.provinceFk')"
|
|
||||||
v-model="params.provinceFk"
|
|
||||||
@update:model-value="searchFn()"
|
|
||||||
:options="provincesOptions"
|
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
hide-selected
|
|
||||||
dense
|
|
||||||
outlined
|
|
||||||
rounded
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnSelect
|
|
||||||
:label="t('params.countryFk')"
|
|
||||||
v-model="params.countryFk"
|
|
||||||
@update:model-value="searchFn()"
|
|
||||||
:options="countriesOptions"
|
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
hide-selected
|
|
||||||
dense
|
|
||||||
outlined
|
|
||||||
rounded
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
</template>
|
|
||||||
</VnFilterPanel>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<i18n>
|
|
||||||
en:
|
|
||||||
params:
|
|
||||||
search: General search
|
|
||||||
nickname: Alias
|
|
||||||
nif: Tax number
|
|
||||||
provinceFk: Province
|
|
||||||
countryFk: Country
|
|
||||||
es:
|
|
||||||
params:
|
|
||||||
search: Búsqueda general
|
|
||||||
nickname: Alias
|
|
||||||
nif: NIF/CIF
|
|
||||||
provinceFk: Provincia
|
|
||||||
countryFk: País
|
|
||||||
</i18n>
|
|
|
@ -1,19 +1,12 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
export default {
|
const supplierCard = {
|
||||||
path: '/supplier',
|
name: 'SupplierCard',
|
||||||
name: 'Supplier',
|
path: ':id',
|
||||||
|
component: () => import('src/pages/Supplier/Card/SupplierCard.vue'),
|
||||||
|
redirect: { name: 'SupplierSummary' },
|
||||||
meta: {
|
meta: {
|
||||||
title: 'suppliers',
|
menu: [
|
||||||
icon: 'vn:supplier',
|
|
||||||
moduleName: 'Supplier',
|
|
||||||
keyBinding: 'p',
|
|
||||||
},
|
|
||||||
component: RouterView,
|
|
||||||
redirect: { name: 'SupplierMain' },
|
|
||||||
menus: {
|
|
||||||
main: ['SupplierList'],
|
|
||||||
card: [
|
|
||||||
'SupplierBasicData',
|
'SupplierBasicData',
|
||||||
'SupplierFiscalData',
|
'SupplierFiscalData',
|
||||||
'SupplierBillingData',
|
'SupplierBillingData',
|
||||||
|
@ -27,38 +20,6 @@ export default {
|
||||||
'SupplierDms',
|
'SupplierDms',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
name: 'SupplierMain',
|
|
||||||
component: () => import('src/components/common/VnModule.vue'),
|
|
||||||
redirect: { name: 'SupplierList' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'list',
|
|
||||||
name: 'SupplierList',
|
|
||||||
meta: {
|
|
||||||
title: 'list',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Supplier/SupplierList.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'create',
|
|
||||||
name: 'SupplierCreate',
|
|
||||||
meta: {
|
|
||||||
title: 'supplierCreate',
|
|
||||||
icon: 'add',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Supplier/SupplierCreate.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'SupplierCard',
|
|
||||||
path: ':id',
|
|
||||||
component: () => import('src/pages/Supplier/Card/SupplierCard.vue'),
|
|
||||||
redirect: { name: 'SupplierSummary' },
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'SupplierSummary',
|
name: 'SupplierSummary',
|
||||||
|
@ -67,8 +28,7 @@ export default {
|
||||||
title: 'summary',
|
title: 'summary',
|
||||||
icon: 'launch',
|
icon: 'launch',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierSummary.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierSummary.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'basic-data',
|
path: 'basic-data',
|
||||||
|
@ -77,8 +37,7 @@ export default {
|
||||||
title: 'basicData',
|
title: 'basicData',
|
||||||
icon: 'vn:settings',
|
icon: 'vn:settings',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierBasicData.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierBasicData.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'fiscal-data',
|
path: 'fiscal-data',
|
||||||
|
@ -87,8 +46,7 @@ export default {
|
||||||
title: 'fiscalData',
|
title: 'fiscalData',
|
||||||
icon: 'vn:dfiscales',
|
icon: 'vn:dfiscales',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierFiscalData.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierFiscalData.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'billing-data',
|
path: 'billing-data',
|
||||||
|
@ -97,8 +55,7 @@ export default {
|
||||||
title: 'billingData',
|
title: 'billingData',
|
||||||
icon: 'vn:payment',
|
icon: 'vn:payment',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierBillingData.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierBillingData.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'log',
|
path: 'log',
|
||||||
|
@ -116,8 +73,7 @@ export default {
|
||||||
title: 'accounts',
|
title: 'accounts',
|
||||||
icon: 'vn:credit',
|
icon: 'vn:credit',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierAccounts.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierAccounts.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'contact',
|
path: 'contact',
|
||||||
|
@ -126,8 +82,7 @@ export default {
|
||||||
title: 'contacts',
|
title: 'contacts',
|
||||||
icon: 'contact_phone',
|
icon: 'contact_phone',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierContacts.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierContacts.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'address',
|
path: 'address',
|
||||||
|
@ -136,8 +91,7 @@ export default {
|
||||||
title: 'addresses',
|
title: 'addresses',
|
||||||
icon: 'vn:delivery',
|
icon: 'vn:delivery',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierAddresses.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierAddresses.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'address/create',
|
path: 'address/create',
|
||||||
|
@ -152,8 +106,7 @@ export default {
|
||||||
title: 'balance',
|
title: 'balance',
|
||||||
icon: 'balance',
|
icon: 'balance',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierBalance.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierBalance.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'consumption',
|
path: 'consumption',
|
||||||
|
@ -162,8 +115,7 @@ export default {
|
||||||
title: 'consumption',
|
title: 'consumption',
|
||||||
icon: 'show_chart',
|
icon: 'show_chart',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierConsumption.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierConsumption.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'agency-term',
|
path: 'agency-term',
|
||||||
|
@ -172,8 +124,7 @@ export default {
|
||||||
title: 'agencyTerm',
|
title: 'agencyTerm',
|
||||||
icon: 'vn:agency-term',
|
icon: 'vn:agency-term',
|
||||||
},
|
},
|
||||||
component: () =>
|
component: () => import('src/pages/Supplier/Card/SupplierAgencyTerm.vue'),
|
||||||
import('src/pages/Supplier/Card/SupplierAgencyTerm.vue'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'dms',
|
path: 'dms',
|
||||||
|
@ -191,6 +142,54 @@ export default {
|
||||||
import('src/pages/Supplier/Card/SupplierAgencyTermCreate.vue'),
|
import('src/pages/Supplier/Card/SupplierAgencyTermCreate.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Supplier',
|
||||||
|
path: '/supplier',
|
||||||
|
meta: {
|
||||||
|
title: 'suppliers',
|
||||||
|
icon: 'vn:supplier',
|
||||||
|
moduleName: 'Supplier',
|
||||||
|
keyBinding: 'p',
|
||||||
|
menu: ['SupplierList'],
|
||||||
|
},
|
||||||
|
component: RouterView,
|
||||||
|
redirect: { name: 'SupplierMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
name: 'SupplierMain',
|
||||||
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
|
redirect: { name: 'SupplierIndexMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
name: 'SupplierIndexMain',
|
||||||
|
redirect: { name: 'SupplierList' },
|
||||||
|
component: () => import('src/pages/Supplier/SupplierList.vue'),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'list',
|
||||||
|
name: 'SupplierList',
|
||||||
|
meta: {
|
||||||
|
title: 'list',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
supplierCard,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'create',
|
||||||
|
name: 'SupplierCreate',
|
||||||
|
meta: {
|
||||||
|
title: 'supplierCreate',
|
||||||
|
icon: 'add',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Supplier/SupplierCreate.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue