@finema/finework-layer 0.2.97 → 0.2.99
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 +86 -60
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.99](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.98...0.2.99) (2025-12-26)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* hide todo and costsheet ([fe1c31f](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/fe1c31f65df952ac819f1bf117082a4a18d26ed4))
|
|
8
|
+
|
|
9
|
+
## [0.2.98](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.97...0.2.98) (2025-12-25)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add conditional rendering for management and finance apps based on user permissions ([be786f5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/be786f50ea8f54d0277a2fc2f2e7903ddad55db6))
|
|
14
|
+
|
|
3
15
|
## [0.2.97](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.96...0.2.97) (2025-12-25)
|
|
4
16
|
|
|
5
17
|
### Bug Fixes
|
|
@@ -238,7 +238,8 @@ const managementApps = computed(() => [
|
|
|
238
238
|
},
|
|
239
239
|
]
|
|
240
240
|
: []),
|
|
241
|
-
|
|
241
|
+
|
|
242
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
242
243
|
? [
|
|
243
244
|
{
|
|
244
245
|
name: 'todo',
|
|
@@ -246,23 +247,40 @@ const managementApps = computed(() => [
|
|
|
246
247
|
label: 'TODO',
|
|
247
248
|
description: 'ระบบจัดการงานที่ต้องทำ',
|
|
248
249
|
to: routes.todo.dashboard.to,
|
|
249
|
-
status: StatusPortal.
|
|
250
|
+
status: StatusPortal.DEVELOPING,
|
|
251
|
+
},
|
|
252
|
+
]
|
|
253
|
+
: []),
|
|
254
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
255
|
+
? [
|
|
256
|
+
{
|
|
257
|
+
name: 'Requests',
|
|
258
|
+
logo: '/admin/request-admin.png',
|
|
259
|
+
label: 'Requests',
|
|
260
|
+
description: 'จัดการคำขอ',
|
|
261
|
+
to: '/',
|
|
262
|
+
status: StatusPortal.DEVELOPING,
|
|
250
263
|
},
|
|
251
264
|
]
|
|
252
265
|
: []),
|
|
253
|
-
|
|
254
|
-
name: 'Requests',
|
|
255
|
-
logo: '/admin/request-admin.png',
|
|
256
|
-
label: 'Requests',
|
|
257
|
-
description: 'จัดการคำขอ',
|
|
258
|
-
to: '/',
|
|
259
|
-
status: StatusPortal.DEVELOPING,
|
|
260
|
-
},
|
|
266
|
+
|
|
261
267
|
])
|
|
262
268
|
|
|
263
269
|
const financeApps = computed(() => [
|
|
264
270
|
|
|
265
|
-
...(auth.hasPermission(UserModule.
|
|
271
|
+
...(auth.hasPermission(UserModule.QUOTATION, Permission.USER, Permission.ADMIN)
|
|
272
|
+
? [
|
|
273
|
+
{
|
|
274
|
+
name: 'Quotation',
|
|
275
|
+
logo: '/admin/quotation.png',
|
|
276
|
+
label: 'Quotation',
|
|
277
|
+
description: 'รายรับรายจ่ายงบประมาณโครงการ',
|
|
278
|
+
to: routes.quotation.quotations.home.to,
|
|
279
|
+
status: StatusPortal.ACTIVE,
|
|
280
|
+
},
|
|
281
|
+
]
|
|
282
|
+
: []),
|
|
283
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
266
284
|
? [
|
|
267
285
|
{
|
|
268
286
|
name: 'Cost Sheet',
|
|
@@ -270,40 +288,35 @@ const financeApps = computed(() => [
|
|
|
270
288
|
label: 'Cost Sheet',
|
|
271
289
|
description: 'รายรับรายจ่ายงบประมาณโครงการ',
|
|
272
290
|
to: routes.costSheet.overview.to,
|
|
273
|
-
status: StatusPortal.
|
|
291
|
+
status: StatusPortal.DEVELOPING,
|
|
274
292
|
},
|
|
275
293
|
]
|
|
276
294
|
: []),
|
|
277
|
-
|
|
278
|
-
...(auth.hasPermission(UserModule.QUOTATION, Permission.USER, Permission.ADMIN)
|
|
295
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
279
296
|
? [
|
|
280
297
|
{
|
|
281
|
-
name: '
|
|
282
|
-
logo: '/admin/
|
|
283
|
-
label: '
|
|
284
|
-
description: '
|
|
285
|
-
to:
|
|
286
|
-
status: StatusPortal.
|
|
298
|
+
name: 'eFactoring',
|
|
299
|
+
logo: '/admin/efactoring.png',
|
|
300
|
+
label: 'eFactoring',
|
|
301
|
+
description: 'การเบิกเงินหมุนเวียนกับธนาคาร',
|
|
302
|
+
to: '/',
|
|
303
|
+
status: StatusPortal.DEVELOPING,
|
|
287
304
|
},
|
|
288
305
|
]
|
|
289
306
|
: []),
|
|
290
|
-
{
|
|
291
|
-
name: 'eFactoring',
|
|
292
|
-
logo: '/admin/efactoring.png',
|
|
293
|
-
label: 'eFactoring',
|
|
294
|
-
description: 'การเบิกเงินหมุนเวียนกับธนาคาร',
|
|
295
|
-
to: '/',
|
|
296
|
-
status: StatusPortal.DEVELOPING,
|
|
297
|
-
},
|
|
298
307
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
308
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
309
|
+
? [
|
|
310
|
+
{
|
|
311
|
+
name: 'Guarantee',
|
|
312
|
+
logo: '/admin/cost-sheet.png',
|
|
313
|
+
label: 'งบค้ำประกัน',
|
|
314
|
+
description: 'การเบิกเงินค้ำซองและค้ำสัญญากับธนาคาร',
|
|
315
|
+
to: '/',
|
|
316
|
+
status: StatusPortal.DEVELOPING,
|
|
317
|
+
},
|
|
318
|
+
]
|
|
319
|
+
: []),
|
|
307
320
|
])
|
|
308
321
|
|
|
309
322
|
const peopleApps = computed(() => [
|
|
@@ -331,30 +344,43 @@ const peopleApps = computed(() => [
|
|
|
331
344
|
},
|
|
332
345
|
]
|
|
333
346
|
: []),
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
347
|
+
|
|
348
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
349
|
+
? [
|
|
350
|
+
{
|
|
351
|
+
name: 'Evaluation',
|
|
352
|
+
logo: '/admin/evaluation.png',
|
|
353
|
+
label: 'Evaluation',
|
|
354
|
+
description: 'ระบบจัดการการประเมิน',
|
|
355
|
+
to: '/',
|
|
356
|
+
status: StatusPortal.DEVELOPING,
|
|
357
|
+
},
|
|
358
|
+
]
|
|
359
|
+
: []),
|
|
360
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
361
|
+
? [
|
|
362
|
+
{
|
|
363
|
+
name: 'Recruit',
|
|
364
|
+
logo: '/admin/recruit.png',
|
|
365
|
+
label: 'Recruit',
|
|
366
|
+
description: 'ระบบการสรรหาบุคลากร',
|
|
367
|
+
to: '/',
|
|
368
|
+
status: StatusPortal.DEVELOPING,
|
|
369
|
+
},
|
|
370
|
+
]
|
|
371
|
+
: []),
|
|
372
|
+
...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
|
|
373
|
+
? [
|
|
374
|
+
{
|
|
375
|
+
name: 'Assets',
|
|
376
|
+
logo: '/admin/assets.png',
|
|
377
|
+
label: 'Assets',
|
|
378
|
+
description: 'ระบบจัดการสินทรัพย์',
|
|
379
|
+
to: '/',
|
|
380
|
+
status: StatusPortal.DEVELOPING,
|
|
381
|
+
},
|
|
382
|
+
]
|
|
383
|
+
: []),
|
|
358
384
|
])
|
|
359
385
|
|
|
360
386
|
const legalApps = computed(() => [
|