@neutron.co.id/operasional-modules 1.12.23-beta.1 → 1.12.24
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/resources/attendance/attendance.resource.d.ts +1 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +25 -1
- package/build/personalia/resources/attendance/attendance.views.mjs +4 -4
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +1 -1
- package/build/personalia/resources/leaveQuota/leaveQuota.resources.mjs +10 -1
- package/build/personalia/resources/leaveQuota/leaveQuota.views.mjs +18 -0
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.resource.mjs +9 -0
- package/build/personalia/resources/submission/submission.views.d.ts +66 -0
- package/build/personalia/resources/submission/submission.views.mjs +141 -1
- package/build/personalia/view-names.mjs +2 -0
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +2 -0
- package/package.json +4 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "nameStaff" | "status" | "branch" | "endedAt" | "startedAt" | "isNotes" | "isGenerate" | "notes" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateNotes" | "delegateStaffs" | "earlyAt" | "homeAt" | "isDelegateStaff" | "lateAt" | "monitoringStaffs" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
3
|
+
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "image" | "nameStaff" | "status" | "branch" | "endedAt" | "startedAt" | "isNotes" | "isGenerate" | "notes" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateNotes" | "delegateStaffs" | "earlyAt" | "homeAt" | "isDelegateStaff" | "lateAt" | "monitoringStaffs" | "submitStaff" | "submittedAt" | "virtualStatus" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
@@ -2,6 +2,10 @@ import { Resource } from "@neon.id/context";
|
|
|
2
2
|
import {
|
|
3
3
|
AttendanceModel
|
|
4
4
|
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
function stripHtmlTags(html) {
|
|
7
|
+
return html.replace(/<[^>]*>/g, "");
|
|
8
|
+
}
|
|
5
9
|
export const AttendanceResource = Resource.define({
|
|
6
10
|
model: AttendanceModel,
|
|
7
11
|
collection: {
|
|
@@ -50,5 +54,25 @@ export const AttendanceResource = Resource.define({
|
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
fragments: AttendanceModel.fragments,
|
|
53
|
-
renders: {
|
|
57
|
+
renders: {
|
|
58
|
+
startedAt: (item) => h(
|
|
59
|
+
"span",
|
|
60
|
+
null,
|
|
61
|
+
item.startedAt ? new Date(item.startedAt).toLocaleDateString("id-ID", {
|
|
62
|
+
day: "2-digit",
|
|
63
|
+
month: "long",
|
|
64
|
+
year: "numeric"
|
|
65
|
+
}) : ""
|
|
66
|
+
),
|
|
67
|
+
notes: (item) => h(
|
|
68
|
+
"span",
|
|
69
|
+
null,
|
|
70
|
+
item.notes ? stripHtmlTags(item.notes) : ""
|
|
71
|
+
),
|
|
72
|
+
delegateNotes: (item) => h(
|
|
73
|
+
"span",
|
|
74
|
+
null,
|
|
75
|
+
item.delegateNotes ? stripHtmlTags(item.delegateNotes) : ""
|
|
76
|
+
)
|
|
77
|
+
}
|
|
54
78
|
});
|
|
@@ -47,11 +47,11 @@ export const AttendanceCollectionStaffView = ResourceUtil.createCollection({
|
|
|
47
47
|
const { staff } = state.getAllStoreValue();
|
|
48
48
|
return Query.define({
|
|
49
49
|
filter: {
|
|
50
|
-
handle: "
|
|
50
|
+
handle: "virtualSubmitStaffId",
|
|
51
51
|
operator: "eq",
|
|
52
52
|
value: staff?.id
|
|
53
53
|
},
|
|
54
|
-
sort: [{ handle: "
|
|
54
|
+
sort: [{ handle: "startedAt", direction: "descending" }]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -188,7 +188,7 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
188
188
|
return Query.define({
|
|
189
189
|
filter: [
|
|
190
190
|
{
|
|
191
|
-
handle: "
|
|
191
|
+
handle: "virtualStatus",
|
|
192
192
|
operator: "in",
|
|
193
193
|
value: ["approved", "notApproved"]
|
|
194
194
|
},
|
|
@@ -199,7 +199,7 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
199
199
|
]
|
|
200
200
|
}
|
|
201
201
|
],
|
|
202
|
-
sort: [{ handle: "
|
|
202
|
+
sort: [{ handle: "startedAt", direction: "descending" }]
|
|
203
203
|
});
|
|
204
204
|
},
|
|
205
205
|
excludes: ["create"]
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/sentral-models';
|
|
3
|
-
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "nameStaff" | "branch" | "user" | "note" | "
|
|
3
|
+
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "nameStaff" | "branch" | "user" | "note" | "building" | "latitude" | "longitude" | "checkInAt" | "informationCheckIn" | "staff" | "statusGPS" | "student" | "teacher" | "virtualStaff", Schema.CheckIn>>;
|
|
@@ -17,7 +17,16 @@ export const LeaveQuotaResource = Resource.define({
|
|
|
17
17
|
path: "leave-quota/:slug",
|
|
18
18
|
component: "LeaveQuotaSingleView"
|
|
19
19
|
},
|
|
20
|
-
views: {
|
|
20
|
+
views: {
|
|
21
|
+
leaveQuotaStaff: {
|
|
22
|
+
path: "/pengawas/staff-leaveQuotas",
|
|
23
|
+
component: "LeaveQuotaCollectionView"
|
|
24
|
+
},
|
|
25
|
+
leaveQuotaStaffSingle: {
|
|
26
|
+
path: "/pengawas/staff-leaveQuotas/:slug",
|
|
27
|
+
component: "LeaveQuotaSingleView"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
21
30
|
fragments: LeaveQuotaModel.fragments,
|
|
22
31
|
renders: {
|
|
23
32
|
hasConflict: (item) => h(NeonLabel, {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
+
import { usePermit } from "@neon.id/context";
|
|
1
2
|
import { ResourceUtil } from "@neon.id/office";
|
|
3
|
+
import { Query } from "@neon.id/query";
|
|
4
|
+
import { useOperasional } from "@neutron.co.id/operasional-interfaces/office";
|
|
2
5
|
export const LeaveQuotaCollectionView = ResourceUtil.createCollection({
|
|
3
6
|
name: "default",
|
|
4
7
|
definition: "neu:personalia:leaveQuota",
|
|
5
8
|
single: {
|
|
6
9
|
peeks: ["modal"]
|
|
10
|
+
},
|
|
11
|
+
query: () => {
|
|
12
|
+
const permit = usePermit();
|
|
13
|
+
const { staff } = useOperasional();
|
|
14
|
+
if (permit.isAny(["neu:pengawasSDM"])) {
|
|
15
|
+
return Query.define({
|
|
16
|
+
filter: {
|
|
17
|
+
handle: "branchIds",
|
|
18
|
+
operator: "in",
|
|
19
|
+
value: staff.value?.branchIds
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
} else {
|
|
23
|
+
return Query.define({});
|
|
24
|
+
}
|
|
7
25
|
}
|
|
8
26
|
});
|
|
9
27
|
export const LeaveQuotaSingleView = ResourceUtil.createSingle({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "
|
|
3
|
+
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "image" | "status" | "branch" | "user" | "point" | "name" | "note" | "branches" | "birthDate" | "birthPlace" | "kubikAt" | "kubikStatus" | "nik" | "virtualRoles" | "workCheckIn" | "workCheckInAt" | "workCome" | "workHome" | "workNote" | "workStatus", Schema.Staff>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
2
|
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
-
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "
|
|
3
|
+
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "image" | "nameStaff" | "status" | "title" | "branches" | "statusStaff" | "agreedStaffs" | "approvedAt" | "brand" | "decideStaffs" | "decidedAt" | "delayAt" | "delayStaffs" | "department" | "detailDecide" | "detailDecideOther" | "detailProcess" | "detailRaise" | "document" | "followUpStaffs" | "hasProcessStaffs" | "hasRaiseStaffs" | "nominal" | "preparedAt" | "processedAt" | "raiseStaffs" | "raisedAt" | "specifications" | "submissionStaffs" | "virtualFollowUpStaffs" | "workingHours" | "yetProcessStaffs" | "yetRaiseStaffs", Schema.Submission>>;
|
|
@@ -68,6 +68,15 @@ export const SubmissionResource = Resource.define({
|
|
|
68
68
|
path: "/pengajuan/waiting-decision-submission/:slug",
|
|
69
69
|
component: "SubmissionSingleWaitingDecisionView"
|
|
70
70
|
},
|
|
71
|
+
// Dashboard Direktur - Untuk Keputusan
|
|
72
|
+
submissionForDecision: {
|
|
73
|
+
path: "/pengajuan/for-decision-submission",
|
|
74
|
+
component: "SubmissionCollectionForDecisionView"
|
|
75
|
+
},
|
|
76
|
+
submissionForDecisionSingle: {
|
|
77
|
+
path: "/pengajuan/for-decision-submission/:slug",
|
|
78
|
+
component: "SubmissionSingleForDecisionView"
|
|
79
|
+
},
|
|
71
80
|
// Menunggu Keputusan
|
|
72
81
|
submissionSupervisor: {
|
|
73
82
|
path: "/pengawas/submissions",
|
|
@@ -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;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useSingle } from "@neon.id/context";
|
|
2
|
-
import { NeonLabel } from "@neon.id/interfaces";
|
|
2
|
+
import { NeonButton, NeonLabel } from "@neon.id/interfaces";
|
|
3
3
|
import { ResourceUtil } from "@neon.id/office";
|
|
4
4
|
import { Query } from "@neon.id/query";
|
|
5
5
|
import {
|
|
6
|
+
useOperasional,
|
|
6
7
|
useOperasionalStore
|
|
7
8
|
} from "@neutron.co.id/operasional-interfaces/office";
|
|
8
9
|
import { computed, h } from "vue";
|
|
@@ -35,6 +36,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
35
36
|
},
|
|
36
37
|
columns: [
|
|
37
38
|
"statusStaff",
|
|
39
|
+
"department",
|
|
38
40
|
"type",
|
|
39
41
|
// 'specifications',
|
|
40
42
|
"title",
|
|
@@ -49,6 +51,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
49
51
|
],
|
|
50
52
|
filters: [
|
|
51
53
|
"status",
|
|
54
|
+
"department",
|
|
52
55
|
"type",
|
|
53
56
|
// 'specifications',
|
|
54
57
|
"branches",
|
|
@@ -106,6 +109,7 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
106
109
|
},
|
|
107
110
|
columns: [
|
|
108
111
|
"status",
|
|
112
|
+
"department",
|
|
109
113
|
"type",
|
|
110
114
|
// 'specifications',
|
|
111
115
|
"title",
|
|
@@ -120,6 +124,7 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
120
124
|
],
|
|
121
125
|
filters: [
|
|
122
126
|
"status",
|
|
127
|
+
"department",
|
|
123
128
|
"type",
|
|
124
129
|
// 'specifications',
|
|
125
130
|
"branches",
|
|
@@ -176,6 +181,7 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
176
181
|
},
|
|
177
182
|
columns: [
|
|
178
183
|
"status",
|
|
184
|
+
"department",
|
|
179
185
|
"type",
|
|
180
186
|
// 'specifications',
|
|
181
187
|
"title",
|
|
@@ -190,6 +196,7 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
190
196
|
],
|
|
191
197
|
filters: [
|
|
192
198
|
"status",
|
|
199
|
+
"department",
|
|
193
200
|
"type",
|
|
194
201
|
// 'specifications',
|
|
195
202
|
"branches",
|
|
@@ -247,6 +254,7 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
247
254
|
},
|
|
248
255
|
columns: [
|
|
249
256
|
"status",
|
|
257
|
+
"department",
|
|
250
258
|
"type",
|
|
251
259
|
// 'specifications',
|
|
252
260
|
"title",
|
|
@@ -261,6 +269,7 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
261
269
|
],
|
|
262
270
|
filters: [
|
|
263
271
|
"status",
|
|
272
|
+
"department",
|
|
264
273
|
"type",
|
|
265
274
|
// 'specifications',
|
|
266
275
|
"branches",
|
|
@@ -391,6 +400,73 @@ export const SubmissionSingleWaitingDecisionView = ResourceUtil.createSingle({
|
|
|
391
400
|
},
|
|
392
401
|
path: "/pengajuan/waiting-decision-submission"
|
|
393
402
|
});
|
|
403
|
+
export const SubmissionCollectionForDecisionView = ResourceUtil.createCollection({
|
|
404
|
+
name: "for-decision",
|
|
405
|
+
definition: "neu:personalia:submission",
|
|
406
|
+
title: "Pengajuan",
|
|
407
|
+
icon: "clipboard-list-check",
|
|
408
|
+
scope: "for-decision",
|
|
409
|
+
path: "/pengajuan/for-decision-submission",
|
|
410
|
+
single: {
|
|
411
|
+
view: "for-decision",
|
|
412
|
+
peeks: ["page"]
|
|
413
|
+
},
|
|
414
|
+
columns: [
|
|
415
|
+
"status",
|
|
416
|
+
"type",
|
|
417
|
+
"title",
|
|
418
|
+
"raisedAt",
|
|
419
|
+
"branches",
|
|
420
|
+
"submissionStaffs",
|
|
421
|
+
"raiseStaffs",
|
|
422
|
+
"decideStaffs",
|
|
423
|
+
"followUpStaffs",
|
|
424
|
+
"nominal"
|
|
425
|
+
],
|
|
426
|
+
filters: [
|
|
427
|
+
"status",
|
|
428
|
+
"type",
|
|
429
|
+
"branches",
|
|
430
|
+
"submissionStaffs",
|
|
431
|
+
"raiseStaffs",
|
|
432
|
+
"decideStaffs",
|
|
433
|
+
"followUpStaffs"
|
|
434
|
+
],
|
|
435
|
+
sorts: [
|
|
436
|
+
"type",
|
|
437
|
+
"preparedAt",
|
|
438
|
+
"raisedAt",
|
|
439
|
+
"processedAt",
|
|
440
|
+
"createdAt",
|
|
441
|
+
"updatedAt"
|
|
442
|
+
],
|
|
443
|
+
query: () => {
|
|
444
|
+
const state = useOperasionalStore();
|
|
445
|
+
const { staff } = state.getAllStoreValue();
|
|
446
|
+
return Query.define({
|
|
447
|
+
filter: [
|
|
448
|
+
{
|
|
449
|
+
handle: "decideStaffIds",
|
|
450
|
+
operator: "in",
|
|
451
|
+
value: staff?.id
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
export const SubmissionSingleForDecisionView = ResourceUtil.createSingle({
|
|
459
|
+
name: "for-decision",
|
|
460
|
+
definition: "neu:personalia:submission",
|
|
461
|
+
title: "Pengajuan",
|
|
462
|
+
slots: {
|
|
463
|
+
default: "for-decision",
|
|
464
|
+
actions: {
|
|
465
|
+
setup: getForDecisionActions
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
path: "/pengajuan/for-decision-submission"
|
|
469
|
+
});
|
|
394
470
|
export const SubmissionCollectionSupervisorView = ResourceUtil.createCollection(
|
|
395
471
|
{
|
|
396
472
|
name: "supervisor",
|
|
@@ -517,6 +593,70 @@ function getLabel() {
|
|
|
517
593
|
]);
|
|
518
594
|
};
|
|
519
595
|
}
|
|
596
|
+
function getForDecisionActions() {
|
|
597
|
+
const { isNew, isChanged, values, isLoading, id, executeOne, syncOne } = useSingle();
|
|
598
|
+
const { staff } = useOperasional();
|
|
599
|
+
const isDelayDisabled = computed(() => {
|
|
600
|
+
return isNew.value || isChanged.value || values.value.status === "prepared" || values.value.status === "raised" || (values.value.delayStaffIds?.includes(staff.value?.id || "") ?? false);
|
|
601
|
+
});
|
|
602
|
+
const isApproveDisabled = computed(() => {
|
|
603
|
+
return isNew.value || isChanged.value || values.value.status === "prepared" || values.value.status === "raised" || (values.value.agreedStaffIds?.includes(staff.value?.id || "") ?? false);
|
|
604
|
+
});
|
|
605
|
+
const goBack = () => {
|
|
606
|
+
const referrer = document.referrer || "";
|
|
607
|
+
if (referrer.includes("/neu-pengajuan")) {
|
|
608
|
+
window.history.back();
|
|
609
|
+
} else {
|
|
610
|
+
window.location.href = "/pengajuan/waiting-decision-submission";
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
const syncDelay = async () => {
|
|
614
|
+
await executeOne("delaySubmission", {
|
|
615
|
+
submissionId: id.value,
|
|
616
|
+
staffId: staff.value?.id
|
|
617
|
+
});
|
|
618
|
+
await syncOne();
|
|
619
|
+
goBack();
|
|
620
|
+
};
|
|
621
|
+
const syncApproved = async () => {
|
|
622
|
+
await executeOne("approvedSubmission", {
|
|
623
|
+
submissionId: id.value,
|
|
624
|
+
staffId: staff.value?.id
|
|
625
|
+
});
|
|
626
|
+
await syncOne();
|
|
627
|
+
goBack();
|
|
628
|
+
};
|
|
629
|
+
return () => {
|
|
630
|
+
if (isNew.value)
|
|
631
|
+
return null;
|
|
632
|
+
return h("div", { class: "flex gap-2 px-1 pt-0.5 pb-1" }, [
|
|
633
|
+
h(
|
|
634
|
+
NeonButton,
|
|
635
|
+
{
|
|
636
|
+
size: "xs",
|
|
637
|
+
color: "success",
|
|
638
|
+
iconLeft: "list-check",
|
|
639
|
+
isDisabled: isApproveDisabled.value,
|
|
640
|
+
isLoading: isLoading.value,
|
|
641
|
+
onClick: syncApproved
|
|
642
|
+
},
|
|
643
|
+
() => "Disetujui"
|
|
644
|
+
),
|
|
645
|
+
h(
|
|
646
|
+
NeonButton,
|
|
647
|
+
{
|
|
648
|
+
size: "xs",
|
|
649
|
+
color: "danger",
|
|
650
|
+
iconLeft: "circle-stop",
|
|
651
|
+
isDisabled: isDelayDisabled.value,
|
|
652
|
+
isLoading: isLoading.value,
|
|
653
|
+
onClick: syncDelay
|
|
654
|
+
},
|
|
655
|
+
() => "Ditunda"
|
|
656
|
+
)
|
|
657
|
+
]);
|
|
658
|
+
};
|
|
659
|
+
}
|
|
520
660
|
function getLabelStaff() {
|
|
521
661
|
const { isNew, values, isLoading } = useSingle();
|
|
522
662
|
const actions = {
|
|
@@ -87,6 +87,8 @@ export default [
|
|
|
87
87
|
'SubmissionSingleDecisionView',
|
|
88
88
|
'SubmissionCollectionWaitingDecisionView',
|
|
89
89
|
'SubmissionSingleWaitingDecisionView',
|
|
90
|
+
'SubmissionCollectionForDecisionView',
|
|
91
|
+
'SubmissionSingleForDecisionView',
|
|
90
92
|
'SubmissionCollectionSupervisorView',
|
|
91
93
|
'SubmissionSingleSupervisorView',
|
|
92
94
|
'SubmissionTypeCollectionView',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, AttendanceTypeCollectionView, AttendanceTypeSingleView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, LeaveConflictCollectionView, LeaveConflictSingleView, LeaveQuotaCollectionView, LeaveQuotaSingleView, LeaveStaffCollectionView, LeaveStaffSingleView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView } from './resources'
|
|
2
|
-
export { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, AttendanceTypeCollectionView, AttendanceTypeSingleView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, LeaveConflictCollectionView, LeaveConflictSingleView, LeaveQuotaCollectionView, LeaveQuotaSingleView, LeaveStaffCollectionView, LeaveStaffSingleView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView }
|
|
1
|
+
import { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, AttendanceTypeCollectionView, AttendanceTypeSingleView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, LeaveConflictCollectionView, LeaveConflictSingleView, LeaveQuotaCollectionView, LeaveQuotaSingleView, LeaveStaffCollectionView, LeaveStaffSingleView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionForDecisionView, SubmissionSingleForDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView } from './resources'
|
|
2
|
+
export { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, AttendanceTypeCollectionView, AttendanceTypeSingleView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, LeaveConflictCollectionView, LeaveConflictSingleView, LeaveQuotaCollectionView, LeaveQuotaSingleView, LeaveStaffCollectionView, LeaveStaffSingleView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionForDecisionView, SubmissionSingleForDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView }
|
package/build/views.mjs
CHANGED
|
@@ -88,6 +88,8 @@ export default {
|
|
|
88
88
|
'SubmissionSingleDecisionView',
|
|
89
89
|
'SubmissionCollectionWaitingDecisionView',
|
|
90
90
|
'SubmissionSingleWaitingDecisionView',
|
|
91
|
+
'SubmissionCollectionForDecisionView',
|
|
92
|
+
'SubmissionSingleForDecisionView',
|
|
91
93
|
'SubmissionCollectionSupervisorView',
|
|
92
94
|
'SubmissionSingleSupervisorView',
|
|
93
95
|
'SubmissionTypeCollectionView',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.24",
|
|
4
4
|
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@neon.id/interfaces": "^1.57.0",
|
|
49
49
|
"@neon.id/office": "1.46.0",
|
|
50
50
|
"@neon.id/query": "^1.12.0",
|
|
51
|
-
"@neutron.co.id/personalia-models": "1.13.
|
|
51
|
+
"@neutron.co.id/personalia-models": "1.13.20",
|
|
52
52
|
"pretty-bytes": "^6.1.1",
|
|
53
53
|
"vue": "^3.4.31"
|
|
54
54
|
},
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@neon.id/interfaces": "^1.57.0",
|
|
79
79
|
"@neon.id/office": "1.46.0",
|
|
80
80
|
"@neon.id/query": "^1.12.0",
|
|
81
|
-
"@neutron.co.id/personalia-models": "1.13.
|
|
81
|
+
"@neutron.co.id/personalia-models": "1.13.20",
|
|
82
82
|
"@nuxt/kit": "^3.12.3",
|
|
83
83
|
"pretty-bytes": "^6.1.1"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"build":
|
|
88
|
+
"build": 122
|
|
89
89
|
}
|