@finema/finework-layer 0.2.107 → 0.2.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/app/components/PortalApp.vue +16 -3
- package/app/composables/useAuth.ts +2 -0
- package/app/constants/routes.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.109](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.108...0.2.109) (2026-01-21)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add purchase module with permissions to PortalApp ([8ea5718](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/8ea5718b11ee02ed86cc8903c0b8490186c78412))
|
|
8
|
+
|
|
9
|
+
## [0.2.108](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.107...0.2.108) (2026-01-19)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* asset route ([944ec5f](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/944ec5f2ab35943e9116e0902557159c4f96bcfe))
|
|
14
|
+
|
|
3
15
|
## [0.2.107](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.106...0.2.107) (2026-01-08)
|
|
4
16
|
|
|
5
17
|
### Bug Fixes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Card
|
|
2
|
+
<Card
|
|
3
|
+
v-if="managementApps.length > 0 || financeApps.length > 0 || peopleApps.length > 0 || legalApps.length > 0"
|
|
4
|
+
>
|
|
3
5
|
<div
|
|
4
|
-
v-if="managementApps.length > 0 || financeApps.length > 0 || peopleApps.length > 0 || legalApps.length > 0"
|
|
5
6
|
class="overflow-auto bg-white"
|
|
6
7
|
:class="[isNavbar ? 'max-h-[calc(100vh-130px)]' : 'h-full']"
|
|
7
8
|
>
|
|
@@ -320,6 +321,18 @@ const financeApps = computed(() => [
|
|
|
320
321
|
},
|
|
321
322
|
]
|
|
322
323
|
: []),
|
|
324
|
+
...(auth.hasPermission(UserModule.PURCHASE, Permission.SUPER)
|
|
325
|
+
? [
|
|
326
|
+
{
|
|
327
|
+
name: 'Purchase',
|
|
328
|
+
logo: '/admin/purchase.png',
|
|
329
|
+
label: 'purchase',
|
|
330
|
+
description: 'จัดการเอกสารการจ่ายงวด',
|
|
331
|
+
to: '/',
|
|
332
|
+
status: StatusPortal.DEVELOPING,
|
|
333
|
+
},
|
|
334
|
+
]
|
|
335
|
+
: []),
|
|
323
336
|
])
|
|
324
337
|
|
|
325
338
|
const peopleApps = computed(() => [
|
|
@@ -355,7 +368,7 @@ const peopleApps = computed(() => [
|
|
|
355
368
|
logo: '/admin/assets.png',
|
|
356
369
|
label: 'Assets',
|
|
357
370
|
description: 'ระบบจัดการสินทรัพย์',
|
|
358
|
-
to: routes.asset.
|
|
371
|
+
to: routes.asset.dashboard.to,
|
|
359
372
|
status: StatusPortal.ACTIVE,
|
|
360
373
|
},
|
|
361
374
|
]
|
|
@@ -99,6 +99,7 @@ export enum UserModule {
|
|
|
99
99
|
RECRUIT = 'recruit',
|
|
100
100
|
BIDBOND = 'bidbond',
|
|
101
101
|
EFACTORING = 'efactoring',
|
|
102
|
+
PURCHASE = 'purchase',
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
export interface IUserAccessLevel {
|
|
@@ -119,6 +120,7 @@ export interface IUserAccessLevel {
|
|
|
119
120
|
recruit: Permission
|
|
120
121
|
bidbond: Permission
|
|
121
122
|
efactoring: Permission
|
|
123
|
+
purchase: Permission
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
export const useAuth = () => {
|
package/app/constants/routes.ts
CHANGED
|
@@ -131,6 +131,12 @@ export const routes = {
|
|
|
131
131
|
},
|
|
132
132
|
},
|
|
133
133
|
asset: {
|
|
134
|
+
dashboard: {
|
|
135
|
+
label: 'ภาพรวมสินทรัพย์',
|
|
136
|
+
to: '/asset/dashboard',
|
|
137
|
+
icon: 'ph:chart-bar',
|
|
138
|
+
permissions: ['asset:USER', 'asset:ADMIN', 'asset:SUPER'],
|
|
139
|
+
},
|
|
134
140
|
item: {
|
|
135
141
|
items: {
|
|
136
142
|
label: 'ข้อมูลสินทรัพย์',
|