@finema/finework-layer 0.2.108 → 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 +6 -0
- package/app/components/PortalApp.vue +12 -0
- package/app/composables/useAuth.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## [0.2.108](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.107...0.2.108) (2026-01-19)
|
|
4
10
|
|
|
5
11
|
### Bug Fixes
|
|
@@ -321,6 +321,18 @@ const financeApps = computed(() => [
|
|
|
321
321
|
},
|
|
322
322
|
]
|
|
323
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
|
+
: []),
|
|
324
336
|
])
|
|
325
337
|
|
|
326
338
|
const peopleApps = computed(() => [
|
|
@@ -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 = () => {
|