feat: refs #8945 add fixed asset module with localization and routing
This commit is contained in:
parent
2dfdfc2987
commit
47bde21df5
|
@ -164,7 +164,8 @@ globals:
|
||||||
vehicle: Vehicle
|
vehicle: Vehicle
|
||||||
selectDocumentId: Select document id
|
selectDocumentId: Select document id
|
||||||
document: Document
|
document: Document
|
||||||
import: Import from existing
|
import: Import from existing
|
||||||
|
group: Group
|
||||||
pageTitles:
|
pageTitles:
|
||||||
logIn: Login
|
logIn: Login
|
||||||
addressEdit: Update address
|
addressEdit: Update address
|
||||||
|
@ -347,6 +348,7 @@ globals:
|
||||||
vehicleList: Vehicles
|
vehicleList: Vehicles
|
||||||
vehicle: Vehicle
|
vehicle: Vehicle
|
||||||
entryPreAccount: Pre-account
|
entryPreAccount: Pre-account
|
||||||
|
fixedAsset: Fixed assets
|
||||||
unsavedPopup:
|
unsavedPopup:
|
||||||
title: Unsaved changes will be lost
|
title: Unsaved changes will be lost
|
||||||
subtitle: Are you sure exit without saving?
|
subtitle: Are you sure exit without saving?
|
||||||
|
|
|
@ -169,6 +169,7 @@ globals:
|
||||||
selectDocumentId: Seleccione el id de gestión documental
|
selectDocumentId: Seleccione el id de gestión documental
|
||||||
document: Documento
|
document: Documento
|
||||||
import: Importar desde existente
|
import: Importar desde existente
|
||||||
|
group: Grupo
|
||||||
pageTitles:
|
pageTitles:
|
||||||
logIn: Inicio de sesión
|
logIn: Inicio de sesión
|
||||||
addressEdit: Modificar consignatario
|
addressEdit: Modificar consignatario
|
||||||
|
@ -350,6 +351,7 @@ globals:
|
||||||
vehicleList: Vehículos
|
vehicleList: Vehículos
|
||||||
vehicle: Vehículo
|
vehicle: Vehículo
|
||||||
entryPreAccount: Precontabilizar
|
entryPreAccount: Precontabilizar
|
||||||
|
fixedAsset: Inmovilizados
|
||||||
unsavedPopup:
|
unsavedPopup:
|
||||||
title: Los cambios que no haya guardado se perderán
|
title: Los cambios que no haya guardado se perderán
|
||||||
subtitle: ¿Seguro que quiere salir sin guardar?
|
subtitle: ¿Seguro que quiere salir sin guardar?
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
fixedAsset:
|
||||||
|
search: Search fixed assets
|
||||||
|
searchInfo: Search fixed assets by id
|
||||||
|
value: Value
|
||||||
|
firstAmortizated: Amort. start
|
||||||
|
firstAmortizatedTooltip: Amortization start date
|
||||||
|
lastAmortizated: Amort. end
|
||||||
|
lastAmortizatedTooltip: Amortization end date
|
||||||
|
amortization: Amortization
|
||||||
|
finished: Final date
|
||||||
|
finishedTooltip: Final date
|
||||||
|
discharged: Discharged
|
||||||
|
dischargedTooltip: Discharged
|
||||||
|
nature: Nature
|
||||||
|
plan: Amort. plan
|
||||||
|
planTooltip: Amortization plan
|
||||||
|
cause: Cause of discharge
|
||||||
|
location: Location
|
||||||
|
elementAccount: Element account
|
||||||
|
account: Subaccount
|
||||||
|
endowment: Endowment
|
||||||
|
isInvestmentAsset: Investment asset
|
||||||
|
isInvestmentAssetAbbr: IA
|
||||||
|
isDone: Completed
|
||||||
|
isDoneAbbr: Co
|
||||||
|
createFixedAsset: Create fixed asset
|
||||||
|
confirmDeletion: Confirm deletion
|
||||||
|
confirmDeletionMessage: Are you sure you want to delete this fixed asset?
|
||||||
|
delete: Delete fixed asset
|
||||||
|
params:
|
||||||
|
id: Id
|
||||||
|
description: Description
|
||||||
|
companyFk: Company
|
||||||
|
firstAmortizated: Amort. start
|
||||||
|
lastAmortizated: Amort. end
|
||||||
|
finished: Final date
|
||||||
|
discharged: Discharged
|
||||||
|
nature: Nature
|
||||||
|
planFk: Amort. plan
|
||||||
|
groupFk: Group
|
||||||
|
locationFk: Location
|
||||||
|
isInvestmentAsset: Investment asset
|
||||||
|
isDone: Completed
|
||||||
|
invoice:
|
||||||
|
assignedInvoices: Assigned invoices
|
||||||
|
assignInvoice: Assign invoice
|
||||||
|
unassignedInvoice: Unassigned invoice
|
||||||
|
unassignInvoice: Unassign invoice
|
||||||
|
unassignInvoiceConfirmation: This invoice will be unlinked from this fixed asset, continue anyway?
|
|
@ -0,0 +1,50 @@
|
||||||
|
fixedAsset:
|
||||||
|
search: Buscar inmovilizados
|
||||||
|
searchInfo: Buscar inmovilizados por id
|
||||||
|
value: Valor
|
||||||
|
firstAmortizated: F. ini. amort.
|
||||||
|
firstAmortizatedTooltip: Fecha inicial de amortización.
|
||||||
|
lastAmortizated: F. fin. amort.
|
||||||
|
lastAmortizatedTooltip: Fecha final de amortización
|
||||||
|
amortization: Amortización
|
||||||
|
finished: F. final
|
||||||
|
finishedTooltip: Fecha final
|
||||||
|
discharged: F. baja
|
||||||
|
dischargedTooltip: Fecha de baja
|
||||||
|
nature: Naturaleza
|
||||||
|
plan: Plan amort.
|
||||||
|
planTooltip: Plan de amortización
|
||||||
|
cause: Causa de la baja
|
||||||
|
location: Emplazamiento
|
||||||
|
elementAccount: Cuenta de elemento
|
||||||
|
account: Subcuenta
|
||||||
|
endowment: Dotación
|
||||||
|
isInvestmentAsset: Bien de inversión
|
||||||
|
isInvestmentAssetAbbr: BI
|
||||||
|
isDone: Completado
|
||||||
|
isDoneAbbr: Co
|
||||||
|
createFixedAsset: Crear inmovilizado
|
||||||
|
confirmDeletion: Confirmar eliminación
|
||||||
|
confirmDeletionMessage: Seguro que quieres eliminar este inmovilizado?
|
||||||
|
delete: Eliminar inmovilizado
|
||||||
|
params:
|
||||||
|
search: Búsqueda general
|
||||||
|
id: Id
|
||||||
|
description: Descripción
|
||||||
|
companyFk: Empresa
|
||||||
|
firstAmortizated: F. ini. amort.
|
||||||
|
lastAmortizated: F. fin. amort.
|
||||||
|
finished: F. final
|
||||||
|
discharged: F. baja
|
||||||
|
nature: Naturaleza
|
||||||
|
planFk: Plan amort.
|
||||||
|
groupFk: Grupo
|
||||||
|
locationFk: Emplazamiento
|
||||||
|
isInvestmentAsset: Bien de inversión
|
||||||
|
isDone: Completado
|
||||||
|
invoice:
|
||||||
|
assignedInvoices: Facturas vinculadas
|
||||||
|
assignInvoice: Vincular factura
|
||||||
|
unassignedInvoice: Factura desvinculada
|
||||||
|
unassignInvoice: Desvincular factura
|
||||||
|
unassignInvoiceConfirmation: Esta factura se desvinculará de este inmovilizado, ¿Continuar de todas formas?
|
|
@ -0,0 +1,99 @@
|
||||||
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
|
const fixedAssetCard = {
|
||||||
|
name: 'FixedAssetCard',
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('src/pages/FixedAsset/Card/FixedAssetCard.vue'),
|
||||||
|
redirect: { name: 'FixedAssetSummary' },
|
||||||
|
meta: {
|
||||||
|
menu: ['FixedAssetBasicData', 'FixedAssetInvoice', 'FixedAssetDms', 'FixedAssetLog'],
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'FixedAssetSummary',
|
||||||
|
path: 'summary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/FixedAsset/Card/FixedAssetSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'FixedAssetBasicData',
|
||||||
|
path: 'basic-data',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/FixedAsset/Card/FixedAssetBasicData.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'FixedAssetInvoice',
|
||||||
|
path: 'invoice',
|
||||||
|
meta: {
|
||||||
|
title: 'invoiceIns',
|
||||||
|
icon: 'vn:invoice-in',
|
||||||
|
},
|
||||||
|
component: () => import('pages/FixedAsset/Card/FixedAssetInvoice.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'FixedAssetDms',
|
||||||
|
path: 'dms',
|
||||||
|
meta: {
|
||||||
|
title: 'dms',
|
||||||
|
icon: 'cloud_upload',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/FixedAsset/Card/FixedAssetDms.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'FixedAssetLog',
|
||||||
|
path: 'history',
|
||||||
|
meta: {
|
||||||
|
title: 'history',
|
||||||
|
icon: 'history',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/FixedAsset/Card/FixedAssetLog.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'FixedAsset',
|
||||||
|
path: '/fixedAsset',
|
||||||
|
meta: {
|
||||||
|
title: 'fixedAsset',
|
||||||
|
icon: 'inventory_2',
|
||||||
|
moduleName: 'FixedAsset',
|
||||||
|
menu: ['FixedAssetList'],
|
||||||
|
},
|
||||||
|
component: RouterView,
|
||||||
|
redirect: { name: 'FixedAssetMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'FixedAssetMain',
|
||||||
|
path: '',
|
||||||
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
|
redirect: { name: 'FixedAssetIndexMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
name: 'FixedAssetIndexMain',
|
||||||
|
component: () => import('src/pages/FixedAsset/FixedAssetList.vue'),
|
||||||
|
redirect: { name: 'FixedAssetList' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'FixedAssetList',
|
||||||
|
path: 'list',
|
||||||
|
meta: {
|
||||||
|
title: 'list',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/FixedAsset/FixedAssetList.vue'),
|
||||||
|
},
|
||||||
|
fixedAssetCard,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
|
@ -15,6 +15,7 @@ import Entry from './entry';
|
||||||
import Zone from './zone';
|
import Zone from './zone';
|
||||||
import Account from './account';
|
import Account from './account';
|
||||||
import Monitor from './monitor';
|
import Monitor from './monitor';
|
||||||
|
import FixedAsset from './fixedAsset';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
Item,
|
Item,
|
||||||
|
@ -34,4 +35,5 @@ export default [
|
||||||
Zone,
|
Zone,
|
||||||
Account,
|
Account,
|
||||||
Monitor,
|
Monitor,
|
||||||
|
FixedAsset,
|
||||||
];
|
];
|
||||||
|
|
|
@ -15,6 +15,7 @@ import entry from 'src/router/modules/entry';
|
||||||
import zone from 'src/router/modules/zone';
|
import zone from 'src/router/modules/zone';
|
||||||
import account from './modules/account';
|
import account from './modules/account';
|
||||||
import monitor from 'src/router/modules/monitor';
|
import monitor from 'src/router/modules/monitor';
|
||||||
|
import fixedAsset from 'src/router/modules/fixedAsset';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
@ -83,6 +84,7 @@ const routes = [
|
||||||
entry,
|
entry,
|
||||||
zone,
|
zone,
|
||||||
account,
|
account,
|
||||||
|
fixedAsset,
|
||||||
{
|
{
|
||||||
path: '/:catchAll(.*)*',
|
path: '/:catchAll(.*)*',
|
||||||
name: 'NotFound',
|
name: 'NotFound',
|
||||||
|
|
|
@ -18,6 +18,7 @@ export const useNavigationStore = defineStore('navigationStore', () => {
|
||||||
'monitor',
|
'monitor',
|
||||||
'supplier',
|
'supplier',
|
||||||
'claim',
|
'claim',
|
||||||
|
'fixedAsset',
|
||||||
'route',
|
'route',
|
||||||
'ticket',
|
'ticket',
|
||||||
'worker',
|
'worker',
|
||||||
|
|
Loading…
Reference in New Issue