@neutron.co.id/operasional-modules 1.13.0-beta.1 → 1.13.1
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/build/personalia/index.d.ts +1 -1
- package/build/personalia/module.mjs +17 -1
- package/build/personalia/resources/attendance/attendance.resource.d.ts +1 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +33 -1
- package/build/personalia/resources/attendance/attendance.views.d.ts +66 -0
- package/build/personalia/resources/attendance/attendance.views.mjs +64 -8
- package/build/personalia/resources/attendanceType/attendanceType.resource.d.ts +3 -0
- package/build/personalia/resources/attendanceType/attendanceType.resource.mjs +30 -0
- package/build/personalia/resources/attendanceType/attendanceType.views.d.ts +66 -0
- package/build/personalia/resources/attendanceType/attendanceType.views.mjs +12 -0
- package/build/personalia/resources/attendanceType/index.d.ts +2 -0
- package/build/personalia/resources/attendanceType/index.mjs +2 -0
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +3 -0
- package/build/personalia/resources/checkIn/checkIn.resource.mjs +1 -1
- package/build/personalia/resources/checkIn/checkIn.views.mjs +1 -0
- package/build/personalia/resources/index.d.ts +8 -0
- package/build/personalia/resources/index.mjs +8 -0
- package/build/personalia/resources/leaveConflict/index.d.ts +2 -0
- package/build/personalia/resources/leaveConflict/index.mjs +2 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.resource.d.ts +3 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.resource.mjs +20 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.views.d.ts +66 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.views.mjs +13 -0
- package/build/personalia/resources/leaveQuota/index.d.ts +2 -0
- package/build/personalia/resources/leaveQuota/index.mjs +2 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.resources.d.ts +3 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.resources.mjs +57 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.views.d.ts +66 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.views.mjs +30 -0
- package/build/personalia/resources/leaveStaff/index.d.ts +2 -0
- package/build/personalia/resources/leaveStaff/index.mjs +2 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.resources.d.ts +3 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.resources.mjs +40 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.views.d.ts +66 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.views.mjs +13 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +1 -1
- package/build/personalia/resources/plan/plan.views.mjs +2 -5
- package/build/personalia/resources/progress/progress.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.views.mjs +1 -26
- package/build/personalia/resources/shift/index.d.ts +2 -0
- package/build/personalia/resources/shift/index.mjs +2 -0
- package/build/personalia/resources/shift/shift.resource.d.ts +3 -0
- package/build/personalia/resources/shift/shift.resource.mjs +44 -0
- package/build/personalia/resources/shift/shift.views.d.ts +198 -0
- package/build/personalia/resources/shift/shift.views.mjs +128 -0
- package/build/personalia/resources/shiftStaff/index.d.ts +2 -0
- package/build/personalia/resources/shiftStaff/index.mjs +2 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.d.ts +3 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.mjs +29 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.d.ts +117 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.mjs +32 -0
- package/build/personalia/resources/shiftType/index.d.ts +2 -0
- package/build/personalia/resources/shiftType/index.mjs +2 -0
- package/build/personalia/resources/shiftType/shiftType.resource.d.ts +3 -0
- package/build/personalia/resources/shiftType/shiftType.resource.mjs +25 -0
- package/build/personalia/resources/shiftType/shiftType.views.d.ts +66 -0
- package/build/personalia/resources/shiftType/shiftType.views.mjs +9 -0
- package/build/personalia/resources/situation/situation.resource.d.ts +1 -1
- package/build/personalia/resources/situation/situation.views.mjs +2 -2
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/staff/staff.views.mjs +6 -2
- package/build/personalia/resources/submission/submission.resource.d.ts +4 -1
- package/build/personalia/resources/submission/submission.resource.mjs +89 -1
- package/build/personalia/resources/submission/submission.views.d.ts +132 -0
- package/build/personalia/resources/submission/submission.views.mjs +275 -40
- package/build/personalia/resources/submissionLog/index.d.ts +2 -0
- package/build/personalia/resources/submissionLog/index.mjs +2 -0
- package/build/personalia/resources/submissionLog/submissionLog.resource.d.ts +3 -0
- package/build/personalia/resources/submissionLog/submissionLog.resource.mjs +21 -0
- package/build/personalia/resources/submissionLog/submissionLog.views.d.ts +66 -0
- package/build/personalia/resources/submissionLog/submissionLog.views.mjs +14 -0
- package/build/personalia/resources/submissionType/submissionType.resource.d.ts +2 -1
- package/build/personalia/resources/target/target.resource.d.ts +1 -1
- package/build/personalia/resources/target/target.views.mjs +1 -1
- package/build/personalia/resources/task/task.views.mjs +5 -2
- package/build/personalia/view-names.mjs +27 -0
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +27 -0
- package/package.json +7 -7
|
@@ -394,6 +394,72 @@ export declare const SubmissionSingleWaitingDecisionView: import("vue").DefineCo
|
|
|
394
394
|
isMain: boolean;
|
|
395
395
|
overrides: Record<string, any>;
|
|
396
396
|
}, {}>;
|
|
397
|
+
export declare const SubmissionCollectionForDecisionView: import("vue").DefineComponent<{
|
|
398
|
+
overrides: {
|
|
399
|
+
type: ObjectConstructor;
|
|
400
|
+
default: () => {};
|
|
401
|
+
};
|
|
402
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
405
|
+
overrides: {
|
|
406
|
+
type: ObjectConstructor;
|
|
407
|
+
default: () => {};
|
|
408
|
+
};
|
|
409
|
+
}>>, {
|
|
410
|
+
overrides: Record<string, any>;
|
|
411
|
+
}, {}>;
|
|
412
|
+
export declare const SubmissionSingleForDecisionView: import("vue").DefineComponent<{
|
|
413
|
+
state: {
|
|
414
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
415
|
+
default: undefined;
|
|
416
|
+
};
|
|
417
|
+
id: {
|
|
418
|
+
type: StringConstructor;
|
|
419
|
+
default: undefined;
|
|
420
|
+
};
|
|
421
|
+
isNew: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
default: undefined;
|
|
424
|
+
};
|
|
425
|
+
isMain: {
|
|
426
|
+
type: BooleanConstructor;
|
|
427
|
+
default: boolean;
|
|
428
|
+
};
|
|
429
|
+
overrides: {
|
|
430
|
+
type: ObjectConstructor;
|
|
431
|
+
default: () => {};
|
|
432
|
+
};
|
|
433
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
434
|
+
[key: string]: any;
|
|
435
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
436
|
+
state: {
|
|
437
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
438
|
+
default: undefined;
|
|
439
|
+
};
|
|
440
|
+
id: {
|
|
441
|
+
type: StringConstructor;
|
|
442
|
+
default: undefined;
|
|
443
|
+
};
|
|
444
|
+
isNew: {
|
|
445
|
+
type: BooleanConstructor;
|
|
446
|
+
default: undefined;
|
|
447
|
+
};
|
|
448
|
+
isMain: {
|
|
449
|
+
type: BooleanConstructor;
|
|
450
|
+
default: boolean;
|
|
451
|
+
};
|
|
452
|
+
overrides: {
|
|
453
|
+
type: ObjectConstructor;
|
|
454
|
+
default: () => {};
|
|
455
|
+
};
|
|
456
|
+
}>>, {
|
|
457
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
458
|
+
id: string;
|
|
459
|
+
isNew: boolean;
|
|
460
|
+
isMain: boolean;
|
|
461
|
+
overrides: Record<string, any>;
|
|
462
|
+
}, {}>;
|
|
397
463
|
export declare const SubmissionCollectionSupervisorView: import("vue").DefineComponent<{
|
|
398
464
|
overrides: {
|
|
399
465
|
type: ObjectConstructor;
|
|
@@ -460,3 +526,69 @@ export declare const SubmissionSingleSupervisorView: import("vue").DefineCompone
|
|
|
460
526
|
isMain: boolean;
|
|
461
527
|
overrides: Record<string, any>;
|
|
462
528
|
}, {}>;
|
|
529
|
+
export declare const SubmissionCollectionViewerView: import("vue").DefineComponent<{
|
|
530
|
+
overrides: {
|
|
531
|
+
type: ObjectConstructor;
|
|
532
|
+
default: () => {};
|
|
533
|
+
};
|
|
534
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
535
|
+
[key: string]: any;
|
|
536
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
537
|
+
overrides: {
|
|
538
|
+
type: ObjectConstructor;
|
|
539
|
+
default: () => {};
|
|
540
|
+
};
|
|
541
|
+
}>>, {
|
|
542
|
+
overrides: Record<string, any>;
|
|
543
|
+
}, {}>;
|
|
544
|
+
export declare const SubmissionSingleViewerView: import("vue").DefineComponent<{
|
|
545
|
+
state: {
|
|
546
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
547
|
+
default: undefined;
|
|
548
|
+
};
|
|
549
|
+
id: {
|
|
550
|
+
type: StringConstructor;
|
|
551
|
+
default: undefined;
|
|
552
|
+
};
|
|
553
|
+
isNew: {
|
|
554
|
+
type: BooleanConstructor;
|
|
555
|
+
default: undefined;
|
|
556
|
+
};
|
|
557
|
+
isMain: {
|
|
558
|
+
type: BooleanConstructor;
|
|
559
|
+
default: boolean;
|
|
560
|
+
};
|
|
561
|
+
overrides: {
|
|
562
|
+
type: ObjectConstructor;
|
|
563
|
+
default: () => {};
|
|
564
|
+
};
|
|
565
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
566
|
+
[key: string]: any;
|
|
567
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
568
|
+
state: {
|
|
569
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
570
|
+
default: undefined;
|
|
571
|
+
};
|
|
572
|
+
id: {
|
|
573
|
+
type: StringConstructor;
|
|
574
|
+
default: undefined;
|
|
575
|
+
};
|
|
576
|
+
isNew: {
|
|
577
|
+
type: BooleanConstructor;
|
|
578
|
+
default: undefined;
|
|
579
|
+
};
|
|
580
|
+
isMain: {
|
|
581
|
+
type: BooleanConstructor;
|
|
582
|
+
default: boolean;
|
|
583
|
+
};
|
|
584
|
+
overrides: {
|
|
585
|
+
type: ObjectConstructor;
|
|
586
|
+
default: () => {};
|
|
587
|
+
};
|
|
588
|
+
}>>, {
|
|
589
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
590
|
+
id: string;
|
|
591
|
+
isNew: boolean;
|
|
592
|
+
isMain: boolean;
|
|
593
|
+
overrides: Record<string, any>;
|
|
594
|
+
}, {}>;
|
|
@@ -2,14 +2,21 @@ import { useSingle } from "@neon.id/context";
|
|
|
2
2
|
import { NeonLabel } from "@neon.id/interfaces";
|
|
3
3
|
import { ResourceUtil } from "@neon.id/office";
|
|
4
4
|
import { Query } from "@neon.id/query";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
useOperasionalStore
|
|
7
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
8
|
+
import { computed, h, resolveComponent } from "vue";
|
|
9
|
+
import { renderSubmissionStatus } from "./submission.resource.mjs";
|
|
7
10
|
export const SubmissionCollectionView = ResourceUtil.createCollection({
|
|
8
11
|
name: "default",
|
|
9
12
|
definition: "neu:personalia:submission",
|
|
10
13
|
single: {
|
|
11
14
|
peeks: ["page"]
|
|
12
|
-
}
|
|
15
|
+
},
|
|
16
|
+
columns: [
|
|
17
|
+
"title"
|
|
18
|
+
],
|
|
19
|
+
excludes: ["create", "click", "delete", "search", "sort", "filter", "openAsPage", "display"]
|
|
13
20
|
});
|
|
14
21
|
export const SubmissionSingleView = ResourceUtil.createSingle({
|
|
15
22
|
name: "default",
|
|
@@ -32,9 +39,12 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
32
39
|
peeks: ["page"]
|
|
33
40
|
},
|
|
34
41
|
columns: [
|
|
35
|
-
"
|
|
42
|
+
"statusStaff",
|
|
43
|
+
"code",
|
|
44
|
+
"department",
|
|
36
45
|
"type",
|
|
37
46
|
// 'specifications',
|
|
47
|
+
"deadline",
|
|
38
48
|
"title",
|
|
39
49
|
"raisedAt",
|
|
40
50
|
"branches",
|
|
@@ -42,22 +52,26 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
42
52
|
"raiseStaffs",
|
|
43
53
|
"decideStaffs",
|
|
44
54
|
"followUpStaffs",
|
|
45
|
-
"nominal"
|
|
46
|
-
|
|
55
|
+
"nominal"
|
|
56
|
+
// 'areas',
|
|
47
57
|
],
|
|
48
58
|
filters: [
|
|
49
59
|
"status",
|
|
60
|
+
"department",
|
|
50
61
|
"type",
|
|
51
62
|
// 'specifications',
|
|
52
63
|
"branches",
|
|
53
|
-
|
|
64
|
+
// 'areas',
|
|
54
65
|
"submissionStaffs",
|
|
55
66
|
"raiseStaffs",
|
|
56
67
|
"decideStaffs",
|
|
57
|
-
"followUpStaffs"
|
|
68
|
+
"followUpStaffs",
|
|
69
|
+
"deadline"
|
|
58
70
|
],
|
|
59
71
|
sorts: [
|
|
72
|
+
"code",
|
|
60
73
|
"type",
|
|
74
|
+
"deadline",
|
|
61
75
|
"preparedAt",
|
|
62
76
|
"raisedAt",
|
|
63
77
|
"processedAt",
|
|
@@ -75,7 +89,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
75
89
|
value: staff?.id
|
|
76
90
|
}
|
|
77
91
|
],
|
|
78
|
-
sort: [{ handle: "
|
|
92
|
+
sort: [{ handle: "preparedAt", direction: "descending" }]
|
|
79
93
|
});
|
|
80
94
|
}
|
|
81
95
|
});
|
|
@@ -86,7 +100,7 @@ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
|
86
100
|
slots: {
|
|
87
101
|
default: "staff",
|
|
88
102
|
actions: {
|
|
89
|
-
setup:
|
|
103
|
+
setup: getLabelStaff
|
|
90
104
|
}
|
|
91
105
|
},
|
|
92
106
|
path: "/pengajuan/staff-submission"
|
|
@@ -104,8 +118,11 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
104
118
|
},
|
|
105
119
|
columns: [
|
|
106
120
|
"status",
|
|
121
|
+
"code",
|
|
122
|
+
"department",
|
|
107
123
|
"type",
|
|
108
124
|
// 'specifications',
|
|
125
|
+
"deadline",
|
|
109
126
|
"title",
|
|
110
127
|
"updatedAt",
|
|
111
128
|
"branches",
|
|
@@ -113,21 +130,29 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
113
130
|
"raiseStaffs",
|
|
114
131
|
"decideStaffs",
|
|
115
132
|
"followUpStaffs",
|
|
116
|
-
"nominal"
|
|
117
|
-
|
|
133
|
+
"nominal"
|
|
134
|
+
// 'areas',
|
|
118
135
|
],
|
|
119
136
|
filters: [
|
|
120
137
|
"status",
|
|
138
|
+
"department",
|
|
121
139
|
"type",
|
|
122
140
|
// 'specifications',
|
|
123
141
|
"branches",
|
|
124
|
-
|
|
142
|
+
// 'areas',
|
|
125
143
|
"submissionStaffs",
|
|
126
144
|
"raiseStaffs",
|
|
127
145
|
"decideStaffs",
|
|
128
|
-
"followUpStaffs"
|
|
146
|
+
"followUpStaffs",
|
|
147
|
+
"deadline"
|
|
148
|
+
],
|
|
149
|
+
sorts: [
|
|
150
|
+
"type",
|
|
151
|
+
"deadline",
|
|
152
|
+
"updatedAt",
|
|
153
|
+
"createdAt",
|
|
154
|
+
"updater"
|
|
129
155
|
],
|
|
130
|
-
sorts: ["type", "updatedAt", "createdAt", "updater"],
|
|
131
156
|
query: () => {
|
|
132
157
|
const state = useOperasionalStore();
|
|
133
158
|
const { staff } = state.getAllStoreValue();
|
|
@@ -174,8 +199,11 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
174
199
|
},
|
|
175
200
|
columns: [
|
|
176
201
|
"status",
|
|
202
|
+
"code",
|
|
203
|
+
"department",
|
|
177
204
|
"type",
|
|
178
205
|
// 'specifications',
|
|
206
|
+
"deadline",
|
|
179
207
|
"title",
|
|
180
208
|
"raisedAt",
|
|
181
209
|
"branches",
|
|
@@ -183,23 +211,33 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
183
211
|
"raiseStaffs",
|
|
184
212
|
"decideStaffs",
|
|
185
213
|
"followUpStaffs",
|
|
186
|
-
"nominal"
|
|
187
|
-
|
|
214
|
+
"nominal"
|
|
215
|
+
// 'areas',
|
|
188
216
|
],
|
|
217
|
+
renders: {
|
|
218
|
+
status: (item) => {
|
|
219
|
+
const { staff } = useOperasionalStore().getAllStoreValue();
|
|
220
|
+
return renderSubmissionStatus(item, staff?.id);
|
|
221
|
+
}
|
|
222
|
+
},
|
|
189
223
|
filters: [
|
|
190
224
|
"status",
|
|
225
|
+
"department",
|
|
191
226
|
"type",
|
|
192
227
|
// 'specifications',
|
|
193
228
|
"branches",
|
|
194
|
-
|
|
229
|
+
// 'areas',
|
|
195
230
|
"submissionStaffs",
|
|
196
231
|
"raiseStaffs",
|
|
197
232
|
"decideStaffs",
|
|
198
|
-
"followUpStaffs"
|
|
233
|
+
"followUpStaffs",
|
|
234
|
+
"deadline"
|
|
199
235
|
],
|
|
200
236
|
sorts: [
|
|
237
|
+
"code",
|
|
201
238
|
"type",
|
|
202
239
|
"preparedAt",
|
|
240
|
+
"deadline",
|
|
203
241
|
"raisedAt",
|
|
204
242
|
"processedAt",
|
|
205
243
|
"createdAt",
|
|
@@ -216,7 +254,7 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
216
254
|
value: staff?.id
|
|
217
255
|
}
|
|
218
256
|
],
|
|
219
|
-
sort: [{ handle: "
|
|
257
|
+
sort: [{ handle: "raisedAt", direction: "descending" }]
|
|
220
258
|
});
|
|
221
259
|
}
|
|
222
260
|
});
|
|
@@ -226,9 +264,7 @@ export const SubmissionSingleAuditView = ResourceUtil.createSingle({
|
|
|
226
264
|
title: "Pengajuan",
|
|
227
265
|
slots: {
|
|
228
266
|
default: "audit",
|
|
229
|
-
actions:
|
|
230
|
-
setup: getLabel
|
|
231
|
-
}
|
|
267
|
+
actions: () => h(resolveComponent("SubmissionAction"))
|
|
232
268
|
},
|
|
233
269
|
path: "/pengajuan/audit-submission"
|
|
234
270
|
});
|
|
@@ -245,6 +281,7 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
245
281
|
},
|
|
246
282
|
columns: [
|
|
247
283
|
"status",
|
|
284
|
+
"department",
|
|
248
285
|
"type",
|
|
249
286
|
// 'specifications',
|
|
250
287
|
"title",
|
|
@@ -254,15 +291,16 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
254
291
|
"raiseStaffs",
|
|
255
292
|
"decideStaffs",
|
|
256
293
|
"followUpStaffs",
|
|
257
|
-
"nominal"
|
|
258
|
-
|
|
294
|
+
"nominal"
|
|
295
|
+
// 'areas',
|
|
259
296
|
],
|
|
260
297
|
filters: [
|
|
261
298
|
"status",
|
|
299
|
+
"department",
|
|
262
300
|
"type",
|
|
263
301
|
// 'specifications',
|
|
264
302
|
"branches",
|
|
265
|
-
|
|
303
|
+
// 'areas',
|
|
266
304
|
"submissionStaffs",
|
|
267
305
|
"raiseStaffs",
|
|
268
306
|
"decideStaffs",
|
|
@@ -325,15 +363,15 @@ export const SubmissionCollectionWaitingDecisionView = ResourceUtil.createCollec
|
|
|
325
363
|
"raiseStaffs",
|
|
326
364
|
"decideStaffs",
|
|
327
365
|
"followUpStaffs",
|
|
328
|
-
"nominal"
|
|
329
|
-
|
|
366
|
+
"nominal"
|
|
367
|
+
// 'areas',
|
|
330
368
|
],
|
|
331
369
|
filters: [
|
|
332
370
|
"status",
|
|
333
371
|
"type",
|
|
334
372
|
// 'specifications',
|
|
335
373
|
"branches",
|
|
336
|
-
|
|
374
|
+
// 'areas',
|
|
337
375
|
"submissionStaffs",
|
|
338
376
|
"raiseStaffs",
|
|
339
377
|
"decideStaffs",
|
|
@@ -383,12 +421,75 @@ export const SubmissionSingleWaitingDecisionView = ResourceUtil.createSingle({
|
|
|
383
421
|
title: "Menunggu Keputusan",
|
|
384
422
|
slots: {
|
|
385
423
|
default: "waiting-decision",
|
|
386
|
-
actions:
|
|
387
|
-
setup: getLabel
|
|
388
|
-
}
|
|
424
|
+
actions: () => h(resolveComponent("SubmissionAction"))
|
|
389
425
|
},
|
|
390
426
|
path: "/pengajuan/waiting-decision-submission"
|
|
391
427
|
});
|
|
428
|
+
export const SubmissionCollectionForDecisionView = ResourceUtil.createCollection({
|
|
429
|
+
name: "for-decision",
|
|
430
|
+
definition: "neu:personalia:submission",
|
|
431
|
+
title: "Pengajuan",
|
|
432
|
+
icon: "clipboard-list-check",
|
|
433
|
+
scope: "for-decision",
|
|
434
|
+
path: "/pengajuan/for-decision-submission",
|
|
435
|
+
single: {
|
|
436
|
+
view: "for-decision",
|
|
437
|
+
peeks: ["page"]
|
|
438
|
+
},
|
|
439
|
+
columns: [
|
|
440
|
+
"status",
|
|
441
|
+
"type",
|
|
442
|
+
"title",
|
|
443
|
+
"raisedAt",
|
|
444
|
+
"branches",
|
|
445
|
+
"submissionStaffs",
|
|
446
|
+
"raiseStaffs",
|
|
447
|
+
"decideStaffs",
|
|
448
|
+
"followUpStaffs",
|
|
449
|
+
"nominal"
|
|
450
|
+
],
|
|
451
|
+
filters: [
|
|
452
|
+
"status",
|
|
453
|
+
"type",
|
|
454
|
+
"branches",
|
|
455
|
+
"submissionStaffs",
|
|
456
|
+
"raiseStaffs",
|
|
457
|
+
"decideStaffs",
|
|
458
|
+
"followUpStaffs"
|
|
459
|
+
],
|
|
460
|
+
sorts: [
|
|
461
|
+
"type",
|
|
462
|
+
"preparedAt",
|
|
463
|
+
"raisedAt",
|
|
464
|
+
"processedAt",
|
|
465
|
+
"createdAt",
|
|
466
|
+
"updatedAt"
|
|
467
|
+
],
|
|
468
|
+
query: () => {
|
|
469
|
+
const state = useOperasionalStore();
|
|
470
|
+
const { staff } = state.getAllStoreValue();
|
|
471
|
+
return Query.define({
|
|
472
|
+
filter: [
|
|
473
|
+
{
|
|
474
|
+
handle: "decideStaffIds",
|
|
475
|
+
operator: "in",
|
|
476
|
+
value: staff?.id
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
export const SubmissionSingleForDecisionView = ResourceUtil.createSingle({
|
|
484
|
+
name: "for-decision",
|
|
485
|
+
definition: "neu:personalia:submission",
|
|
486
|
+
title: "Pengajuan",
|
|
487
|
+
slots: {
|
|
488
|
+
default: "for-decision",
|
|
489
|
+
actions: () => h(resolveComponent("SubmissionActionDecision"))
|
|
490
|
+
},
|
|
491
|
+
path: "/pengajuan/for-decision-submission"
|
|
492
|
+
});
|
|
392
493
|
export const SubmissionCollectionSupervisorView = ResourceUtil.createCollection(
|
|
393
494
|
{
|
|
394
495
|
name: "supervisor",
|
|
@@ -412,15 +513,15 @@ export const SubmissionCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
412
513
|
"raiseStaffs",
|
|
413
514
|
"decideStaffs",
|
|
414
515
|
"followUpStaffs",
|
|
415
|
-
"nominal"
|
|
416
|
-
|
|
516
|
+
"nominal"
|
|
517
|
+
// 'areas',
|
|
417
518
|
],
|
|
418
519
|
filters: [
|
|
419
520
|
"status",
|
|
420
521
|
"type",
|
|
421
522
|
// 'specifications',
|
|
422
523
|
"branches",
|
|
423
|
-
|
|
524
|
+
// 'areas',
|
|
424
525
|
"submissionStaffs",
|
|
425
526
|
"raiseStaffs",
|
|
426
527
|
"decideStaffs",
|
|
@@ -428,16 +529,25 @@ export const SubmissionCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
428
529
|
],
|
|
429
530
|
sorts: ["type", "updatedAt", "createdAt", "updater"],
|
|
430
531
|
query: () => {
|
|
431
|
-
const
|
|
432
|
-
const { staff } = state.getAllStoreValue();
|
|
532
|
+
const { supervisedStaffIds } = useOperasionalStore();
|
|
433
533
|
return Query.define({
|
|
434
534
|
filter: [
|
|
435
535
|
{
|
|
436
|
-
handle: "
|
|
536
|
+
handle: "followUpStaffIds",
|
|
437
537
|
operator: "in",
|
|
438
|
-
value:
|
|
538
|
+
value: supervisedStaffIds
|
|
439
539
|
},
|
|
440
|
-
{
|
|
540
|
+
{
|
|
541
|
+
handle: "status",
|
|
542
|
+
operator: "in",
|
|
543
|
+
value: [
|
|
544
|
+
"approved",
|
|
545
|
+
"delay",
|
|
546
|
+
"monitored",
|
|
547
|
+
"discontinued",
|
|
548
|
+
"resolved"
|
|
549
|
+
]
|
|
550
|
+
}
|
|
441
551
|
],
|
|
442
552
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
443
553
|
});
|
|
@@ -457,6 +567,72 @@ export const SubmissionSingleSupervisorView = ResourceUtil.createSingle({
|
|
|
457
567
|
},
|
|
458
568
|
path: "/pengawas/submissions"
|
|
459
569
|
});
|
|
570
|
+
export const SubmissionCollectionViewerView = ResourceUtil.createCollection({
|
|
571
|
+
name: "viewer",
|
|
572
|
+
definition: "neu:personalia:submission",
|
|
573
|
+
title: "Pengajuan",
|
|
574
|
+
icon: "clipboard-list-check",
|
|
575
|
+
scope: "viewer",
|
|
576
|
+
path: "/pengajuan/viewer-submission",
|
|
577
|
+
single: {
|
|
578
|
+
view: "viewer",
|
|
579
|
+
peeks: ["page"]
|
|
580
|
+
},
|
|
581
|
+
columns: [
|
|
582
|
+
"status",
|
|
583
|
+
"code",
|
|
584
|
+
"department",
|
|
585
|
+
"type",
|
|
586
|
+
"deadline",
|
|
587
|
+
"title",
|
|
588
|
+
"raisedAt",
|
|
589
|
+
"branches",
|
|
590
|
+
"raiseStaffs",
|
|
591
|
+
"submissionStaffs",
|
|
592
|
+
"decideStaffs",
|
|
593
|
+
"followUpStaffs"
|
|
594
|
+
],
|
|
595
|
+
filters: [
|
|
596
|
+
"status",
|
|
597
|
+
"code",
|
|
598
|
+
"department",
|
|
599
|
+
"type",
|
|
600
|
+
"deadline",
|
|
601
|
+
"title",
|
|
602
|
+
"raisedAt",
|
|
603
|
+
"branches",
|
|
604
|
+
"raiseStaffs",
|
|
605
|
+
"submissionStaffs",
|
|
606
|
+
"decideStaffs",
|
|
607
|
+
"followUpStaffs"
|
|
608
|
+
],
|
|
609
|
+
sorts: [
|
|
610
|
+
"code",
|
|
611
|
+
"deadline",
|
|
612
|
+
"type",
|
|
613
|
+
"preparedAt",
|
|
614
|
+
"raisedAt",
|
|
615
|
+
"processedAt",
|
|
616
|
+
"createdAt",
|
|
617
|
+
"updatedAt"
|
|
618
|
+
],
|
|
619
|
+
excludes: ["create", "delete", "openAsPage", "display"],
|
|
620
|
+
query: () => {
|
|
621
|
+
return Query.define({
|
|
622
|
+
// sort: [{ handle: 'createdAt', direction: 'descending' }],
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
export const SubmissionSingleViewerView = ResourceUtil.createSingle({
|
|
627
|
+
name: "viewer",
|
|
628
|
+
definition: "neu:personalia:submission",
|
|
629
|
+
title: "Pengajuan",
|
|
630
|
+
slots: {
|
|
631
|
+
default: "viewer"
|
|
632
|
+
// actions: () => h(resolveComponent('SubmissionActionDecision')),
|
|
633
|
+
},
|
|
634
|
+
path: "/pengajuan/viewer-submission"
|
|
635
|
+
});
|
|
460
636
|
function getLabel() {
|
|
461
637
|
const { isNew, values, isLoading } = useSingle();
|
|
462
638
|
const actions = {
|
|
@@ -516,3 +692,62 @@ function getLabel() {
|
|
|
516
692
|
]);
|
|
517
693
|
};
|
|
518
694
|
}
|
|
695
|
+
function getLabelStaff() {
|
|
696
|
+
const { isNew, values, isLoading } = useSingle();
|
|
697
|
+
const actions = {
|
|
698
|
+
prepared: {
|
|
699
|
+
iconLeft: "pen-line",
|
|
700
|
+
label: "Disiapkan",
|
|
701
|
+
color: "base"
|
|
702
|
+
},
|
|
703
|
+
raised: {
|
|
704
|
+
iconLeft: "arrow-up-from-line",
|
|
705
|
+
label: "Dinaikkan",
|
|
706
|
+
color: "dark"
|
|
707
|
+
},
|
|
708
|
+
processed: {
|
|
709
|
+
iconLeft: "spinner",
|
|
710
|
+
label: "Diproses",
|
|
711
|
+
color: "warning"
|
|
712
|
+
},
|
|
713
|
+
delay: {
|
|
714
|
+
iconLeft: "circle-stop",
|
|
715
|
+
label: "Ditunda",
|
|
716
|
+
color: "danger"
|
|
717
|
+
},
|
|
718
|
+
approved: {
|
|
719
|
+
iconLeft: "list-check",
|
|
720
|
+
label: "Disetujui",
|
|
721
|
+
color: "success"
|
|
722
|
+
},
|
|
723
|
+
monitored: {
|
|
724
|
+
iconLeft: "binoculars",
|
|
725
|
+
label: "Dipantau",
|
|
726
|
+
color: "info"
|
|
727
|
+
},
|
|
728
|
+
discontinued: {
|
|
729
|
+
iconLeft: "ban",
|
|
730
|
+
label: "Dihentikan",
|
|
731
|
+
color: "danger"
|
|
732
|
+
},
|
|
733
|
+
resolved: {
|
|
734
|
+
icon: "file-check",
|
|
735
|
+
label: "Diselesaikan",
|
|
736
|
+
color: "success"
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
const action = computed(() => actions[values.value.statusStaff]);
|
|
740
|
+
return () => {
|
|
741
|
+
if (isNew.value || !action.value)
|
|
742
|
+
return null;
|
|
743
|
+
return h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
744
|
+
h(NeonLabel, {
|
|
745
|
+
icon: action.value?.iconLeft,
|
|
746
|
+
text: action.value?.label,
|
|
747
|
+
size: "md",
|
|
748
|
+
color: action.value?.color,
|
|
749
|
+
isLoading: isLoading.value
|
|
750
|
+
})
|
|
751
|
+
]);
|
|
752
|
+
};
|
|
753
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
+
export declare const SubmissionLogResource: Resource<Schema.SubmissionLog, import("@neon.id/model").Model<"neu:personalia:submissionLog", "submission" | "auditLog" | "auditLogSummary" | "auditor", Schema.SubmissionLog>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
SubmissionLogModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
export const SubmissionLogResource = Resource.define({
|
|
6
|
+
model: SubmissionLogModel,
|
|
7
|
+
collection: {
|
|
8
|
+
title: "Riwayat Pengajuan",
|
|
9
|
+
path: "submissionLogs",
|
|
10
|
+
component: "SubmissionLogCollectionView",
|
|
11
|
+
menu: false,
|
|
12
|
+
displays: ["table"]
|
|
13
|
+
},
|
|
14
|
+
single: {
|
|
15
|
+
path: "submissionLogs/:slug",
|
|
16
|
+
component: "SubmissionLogSingleView"
|
|
17
|
+
},
|
|
18
|
+
views: {},
|
|
19
|
+
fragments: SubmissionLogModel.fragments,
|
|
20
|
+
renders: {}
|
|
21
|
+
});
|