@neutron.co.id/operasional-modules 1.12.4 → 1.12.5
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/module.mjs +3 -1
- package/build/personalia/resources/index.d.ts +1 -0
- package/build/personalia/resources/index.mjs +1 -0
- 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 +40 -0
- package/build/personalia/resources/shift/shift.views.d.ts +198 -0
- package/build/personalia/resources/shift/shift.views.mjs +115 -0
- package/build/personalia/resources/submission/submission.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +67 -14
- package/build/personalia/resources/task/task.views.mjs +6 -2
- package/build/personalia/view-names.mjs +14 -8
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +14 -8
- package/package.json +4 -4
|
@@ -12,6 +12,7 @@ import { SituationTypeResource } from "./resources/situationType/situationType.r
|
|
|
12
12
|
import { StaffResource } from "./resources/staff/staff.resource.mjs";
|
|
13
13
|
import { SubmissionResource } from "./resources/submission/submission.resource.mjs";
|
|
14
14
|
import { SubmissionTypeResource } from "./resources/submissionType/submissionType.resource.mjs";
|
|
15
|
+
import { ShiftResource } from "./resources/shift/shift.resource.mjs";
|
|
15
16
|
import { TaskResource } from "./resources/task/task.resource.mjs";
|
|
16
17
|
import { TargetResource } from "./resources/target/target.resource.mjs";
|
|
17
18
|
export const PersonaliaModule = Module.define({
|
|
@@ -34,6 +35,7 @@ export const PersonaliaModule = Module.define({
|
|
|
34
35
|
PlanResource,
|
|
35
36
|
ProgressResource,
|
|
36
37
|
AttendanceResource,
|
|
37
|
-
ProgressAccessResource
|
|
38
|
+
ProgressAccessResource,
|
|
39
|
+
ShiftResource
|
|
38
40
|
]
|
|
39
41
|
});
|
|
@@ -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 ShiftResource: Resource<Schema.Shift, import("@neon.id/model").Model<"neu:personalia:shift", "branch" | "endedAt" | "building" | "attendanceShift" | "disciplineAt" | "disciplineEnd" | "effortTime" | "expPresent" | "expPresentEnd" | "expTime" | "offsetTime" | "picketStaff" | "shiftingStaff" | "titleShift", Schema.Shift>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ShiftModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
export const ShiftResource = Resource.define({
|
|
6
|
+
model: ShiftModel,
|
|
7
|
+
collection: {
|
|
8
|
+
title: "Kehadiran",
|
|
9
|
+
path: "shifts",
|
|
10
|
+
component: "ShiftCollectionView",
|
|
11
|
+
displays: ["table", "calendar"],
|
|
12
|
+
menu: true
|
|
13
|
+
},
|
|
14
|
+
single: {
|
|
15
|
+
path: "shifts/:slug",
|
|
16
|
+
component: "ShiftSingleView"
|
|
17
|
+
},
|
|
18
|
+
views: {
|
|
19
|
+
// Karyawan kehadiran
|
|
20
|
+
shiftStaff: {
|
|
21
|
+
path: "/kehadiran/staff-shift",
|
|
22
|
+
component: "ShiftCollectionStaffView"
|
|
23
|
+
},
|
|
24
|
+
shiftStaffSingle: {
|
|
25
|
+
path: "/kehadiran/staff-shift/:slug",
|
|
26
|
+
component: "ShiftSingleStaffView"
|
|
27
|
+
},
|
|
28
|
+
//Pengelola kehadiran
|
|
29
|
+
shiftAdministrator: {
|
|
30
|
+
path: "/kehadiran/administrator-shift",
|
|
31
|
+
component: "ShiftCollectionAdministratorView"
|
|
32
|
+
},
|
|
33
|
+
shiftAdministratorSingle: {
|
|
34
|
+
path: "/kehadiran/administrator-shift/:slug",
|
|
35
|
+
component: "ShiftSingleAdministratorView"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
fragments: ShiftModel.fragments,
|
|
39
|
+
renders: {}
|
|
40
|
+
});
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare const ShiftCollectionView: import("vue").DefineComponent<{
|
|
2
|
+
overrides: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
overrides: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
overrides: Record<string, any>;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const ShiftSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
isNew: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
isMain: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
overrides: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
state: {
|
|
41
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
id: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
isNew: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
isMain: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
overrides: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
62
|
+
id: string;
|
|
63
|
+
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
65
|
+
overrides: Record<string, any>;
|
|
66
|
+
}, {}>;
|
|
67
|
+
export declare const ShiftCollectionStaffView: import("vue").DefineComponent<{
|
|
68
|
+
overrides: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: () => {};
|
|
71
|
+
};
|
|
72
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
overrides: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {};
|
|
78
|
+
};
|
|
79
|
+
}>>, {
|
|
80
|
+
overrides: Record<string, any>;
|
|
81
|
+
}, {}>;
|
|
82
|
+
export declare const ShiftSingleStaffView: import("vue").DefineComponent<{
|
|
83
|
+
state: {
|
|
84
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
id: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
isNew: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
isMain: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
overrides: {
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
default: () => {};
|
|
102
|
+
};
|
|
103
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
state: {
|
|
107
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
id: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
isNew: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
isMain: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
overrides: {
|
|
123
|
+
type: ObjectConstructor;
|
|
124
|
+
default: () => {};
|
|
125
|
+
};
|
|
126
|
+
}>>, {
|
|
127
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
128
|
+
id: string;
|
|
129
|
+
isNew: boolean;
|
|
130
|
+
isMain: boolean;
|
|
131
|
+
overrides: Record<string, any>;
|
|
132
|
+
}, {}>;
|
|
133
|
+
export declare const ShiftCollectionAdministratorView: import("vue").DefineComponent<{
|
|
134
|
+
overrides: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
overrides: {
|
|
142
|
+
type: ObjectConstructor;
|
|
143
|
+
default: () => {};
|
|
144
|
+
};
|
|
145
|
+
}>>, {
|
|
146
|
+
overrides: Record<string, any>;
|
|
147
|
+
}, {}>;
|
|
148
|
+
export declare const ShiftSingleAdministratorView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
id: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
157
|
+
isNew: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
isMain: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
overrides: {
|
|
166
|
+
type: ObjectConstructor;
|
|
167
|
+
default: () => {};
|
|
168
|
+
};
|
|
169
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
+
state: {
|
|
173
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
id: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
isNew: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: undefined;
|
|
183
|
+
};
|
|
184
|
+
isMain: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
overrides: {
|
|
189
|
+
type: ObjectConstructor;
|
|
190
|
+
default: () => {};
|
|
191
|
+
};
|
|
192
|
+
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
194
|
+
id: string;
|
|
195
|
+
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
197
|
+
overrides: Record<string, any>;
|
|
198
|
+
}, {}>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { Query } from "@neon.id/query";
|
|
3
|
+
import {
|
|
4
|
+
useOperasionalStore,
|
|
5
|
+
OfficeSingleSync
|
|
6
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
7
|
+
import { h } from "vue";
|
|
8
|
+
export const ShiftCollectionView = ResourceUtil.createCollection({
|
|
9
|
+
name: "default",
|
|
10
|
+
definition: "neu:personalia:shift",
|
|
11
|
+
single: {
|
|
12
|
+
// peeks: ['page'],
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export const ShiftSingleView = ResourceUtil.createSingle({
|
|
16
|
+
name: "default",
|
|
17
|
+
definition: "neu:personalia:shift",
|
|
18
|
+
slots: {
|
|
19
|
+
actions: () => h(OfficeSingleSync)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export const ShiftCollectionStaffView = ResourceUtil.createCollection({
|
|
23
|
+
name: "staff",
|
|
24
|
+
definition: "neu:personalia:shift",
|
|
25
|
+
title: "Kehadiran",
|
|
26
|
+
icon: "clipboard-list-check",
|
|
27
|
+
scope: "staff",
|
|
28
|
+
path: "/kehadiran/staff-shift",
|
|
29
|
+
single: {
|
|
30
|
+
view: "staff",
|
|
31
|
+
peeks: ["page"]
|
|
32
|
+
},
|
|
33
|
+
columns: [
|
|
34
|
+
"titleShift",
|
|
35
|
+
"expTime",
|
|
36
|
+
"shiftingStaff",
|
|
37
|
+
// 'picketStaff',
|
|
38
|
+
"disciplineEnd",
|
|
39
|
+
"disciplineAt",
|
|
40
|
+
// 'effortTime',
|
|
41
|
+
"offsetTime"
|
|
42
|
+
],
|
|
43
|
+
filters: [],
|
|
44
|
+
sorts: [],
|
|
45
|
+
query: () => {
|
|
46
|
+
const state = useOperasionalStore();
|
|
47
|
+
const { staff } = state.getAllStoreValue();
|
|
48
|
+
return Query.define({
|
|
49
|
+
filter: [
|
|
50
|
+
{
|
|
51
|
+
handle: "shiftingStaffId",
|
|
52
|
+
operator: "in",
|
|
53
|
+
value: staff?.id
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
excludes: ["create"]
|
|
60
|
+
});
|
|
61
|
+
export const ShiftSingleStaffView = ResourceUtil.createSingle({
|
|
62
|
+
name: "staff",
|
|
63
|
+
definition: "neu:personalia:shift",
|
|
64
|
+
slots: {
|
|
65
|
+
actions: () => h(OfficeSingleSync)
|
|
66
|
+
},
|
|
67
|
+
path: "/kehadiran/staff-shift"
|
|
68
|
+
});
|
|
69
|
+
export const ShiftCollectionAdministratorView = ResourceUtil.createCollection(
|
|
70
|
+
{
|
|
71
|
+
name: "administrator",
|
|
72
|
+
definition: "neu:personalia:shift",
|
|
73
|
+
title: "Pengelola Kehadiran",
|
|
74
|
+
icon: "person-chalkboard",
|
|
75
|
+
scope: "administrator",
|
|
76
|
+
path: "/kehadiran/administrator-shift",
|
|
77
|
+
single: {
|
|
78
|
+
view: "administrator"
|
|
79
|
+
// peeks: ['modal'],
|
|
80
|
+
},
|
|
81
|
+
filters: [],
|
|
82
|
+
sorts: [],
|
|
83
|
+
columns: [
|
|
84
|
+
"titleShift",
|
|
85
|
+
"branch",
|
|
86
|
+
"shiftingStaff",
|
|
87
|
+
"expPresent",
|
|
88
|
+
"expPresentEnd",
|
|
89
|
+
"expTime",
|
|
90
|
+
"building"
|
|
91
|
+
]
|
|
92
|
+
// query: () => {
|
|
93
|
+
// const state = useOperasionalStore()
|
|
94
|
+
// const { staff } = state.getAllStoreValue()
|
|
95
|
+
// return Query.define({
|
|
96
|
+
// filter: [
|
|
97
|
+
// {
|
|
98
|
+
// handle: 'shiftingStaffId',
|
|
99
|
+
// operator: 'in',
|
|
100
|
+
// value: staff?.id,
|
|
101
|
+
// },
|
|
102
|
+
// ],
|
|
103
|
+
// sort: [{ handle: 'createdAt', direction: 'descending' }],
|
|
104
|
+
// })
|
|
105
|
+
// },
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
export const ShiftSingleAdministratorView = ResourceUtil.createSingle({
|
|
109
|
+
name: "administrator",
|
|
110
|
+
definition: "neu:personalia:shift",
|
|
111
|
+
slots: {
|
|
112
|
+
actions: () => h(OfficeSingleSync)
|
|
113
|
+
},
|
|
114
|
+
path: "/kehadiran/administrator-shift"
|
|
115
|
+
});
|
|
@@ -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" | "nameStaff" | "status" | "image" | "title" | "branches" | "agreedStaffs" | "approvedAt" | "areas" | "decideStaffs" | "decidedAt" | "delayAt" | "delayStaffs" | "detailDecide" | "detailDecideOther" | "detailProcess" | "detailRaise" | "document" | "followUpStaffs" | "hasProcessStaffs" | "hasRaiseStaffs" | "nominal" | "preparedAt" | "processedAt" | "raiseStaffs" | "raisedAt" | "specifications" | "submissionStaffs" | "virtualFollowUpStaffs" | "workingHours" | "yetProcessStaffs" | "yetRaiseStaffs", Schema.Submission>>;
|
|
3
|
+
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "nameStaff" | "status" | "image" | "title" | "branches" | "statusStaff" | "agreedStaffs" | "approvedAt" | "areas" | "decideStaffs" | "decidedAt" | "delayAt" | "delayStaffs" | "detailDecide" | "detailDecideOther" | "detailProcess" | "detailRaise" | "document" | "followUpStaffs" | "hasProcessStaffs" | "hasRaiseStaffs" | "nominal" | "preparedAt" | "processedAt" | "raiseStaffs" | "raisedAt" | "specifications" | "submissionStaffs" | "virtualFollowUpStaffs" | "workingHours" | "yetProcessStaffs" | "yetRaiseStaffs", Schema.Submission>>;
|
|
@@ -2,7 +2,9 @@ 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 {
|
|
5
|
+
import {
|
|
6
|
+
useOperasionalStore
|
|
7
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
6
8
|
import { computed, h } from "vue";
|
|
7
9
|
export const SubmissionCollectionView = ResourceUtil.createCollection({
|
|
8
10
|
name: "default",
|
|
@@ -32,7 +34,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
32
34
|
peeks: ["page"]
|
|
33
35
|
},
|
|
34
36
|
columns: [
|
|
35
|
-
"
|
|
37
|
+
"statusStaff",
|
|
36
38
|
"type",
|
|
37
39
|
// 'specifications',
|
|
38
40
|
"title",
|
|
@@ -46,7 +48,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
46
48
|
"areas"
|
|
47
49
|
],
|
|
48
50
|
filters: [
|
|
49
|
-
"
|
|
51
|
+
"statusStaff",
|
|
50
52
|
"type",
|
|
51
53
|
// 'specifications',
|
|
52
54
|
"branches",
|
|
@@ -86,7 +88,7 @@ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
|
86
88
|
slots: {
|
|
87
89
|
default: "staff",
|
|
88
90
|
actions: {
|
|
89
|
-
setup:
|
|
91
|
+
setup: getLabelStaff
|
|
90
92
|
}
|
|
91
93
|
},
|
|
92
94
|
path: "/pengajuan/staff-submission"
|
|
@@ -428,17 +430,9 @@ export const SubmissionCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
428
430
|
],
|
|
429
431
|
sorts: ["type", "updatedAt", "createdAt", "updater"],
|
|
430
432
|
query: () => {
|
|
431
|
-
const
|
|
432
|
-
const { staff } = state.getAllStoreValue();
|
|
433
|
+
const { supervisedStaffIds } = useOperasionalStore();
|
|
433
434
|
return Query.define({
|
|
434
|
-
filter: [
|
|
435
|
-
{
|
|
436
|
-
handle: "status",
|
|
437
|
-
operator: "in",
|
|
438
|
-
value: ["approved", "monitored", "discontinued", "resolved"]
|
|
439
|
-
},
|
|
440
|
-
{ followUpStaffIds: staff.id }
|
|
441
|
-
],
|
|
435
|
+
filter: [{ handle: "virtualFollowUpStaffIds", operator: "in", value: supervisedStaffIds }],
|
|
442
436
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
443
437
|
});
|
|
444
438
|
},
|
|
@@ -516,3 +510,62 @@ function getLabel() {
|
|
|
516
510
|
]);
|
|
517
511
|
};
|
|
518
512
|
}
|
|
513
|
+
function getLabelStaff() {
|
|
514
|
+
const { isNew, values, isLoading } = useSingle();
|
|
515
|
+
const actions = {
|
|
516
|
+
prepared: {
|
|
517
|
+
iconLeft: "pen-line",
|
|
518
|
+
label: "Disiapkan",
|
|
519
|
+
color: "base"
|
|
520
|
+
},
|
|
521
|
+
raised: {
|
|
522
|
+
iconLeft: "arrow-up-from-line",
|
|
523
|
+
label: "Dinaikkan",
|
|
524
|
+
color: "dark"
|
|
525
|
+
},
|
|
526
|
+
processed: {
|
|
527
|
+
iconLeft: "spinner",
|
|
528
|
+
label: "Diproses",
|
|
529
|
+
color: "warning"
|
|
530
|
+
},
|
|
531
|
+
delay: {
|
|
532
|
+
iconLeft: "circle-stop",
|
|
533
|
+
label: "Ditunda",
|
|
534
|
+
color: "danger"
|
|
535
|
+
},
|
|
536
|
+
approved: {
|
|
537
|
+
iconLeft: "list-check",
|
|
538
|
+
label: "Disetujui",
|
|
539
|
+
color: "success"
|
|
540
|
+
},
|
|
541
|
+
monitored: {
|
|
542
|
+
iconLeft: "binoculars",
|
|
543
|
+
label: "Dipantau",
|
|
544
|
+
color: "info"
|
|
545
|
+
},
|
|
546
|
+
discontinued: {
|
|
547
|
+
iconLeft: "ban",
|
|
548
|
+
label: "Dihentikan",
|
|
549
|
+
color: "danger"
|
|
550
|
+
},
|
|
551
|
+
resolved: {
|
|
552
|
+
icon: "file-check",
|
|
553
|
+
label: "Diselesaikan",
|
|
554
|
+
color: "success"
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
const action = computed(() => actions[values.value.statusStaff]);
|
|
558
|
+
return () => {
|
|
559
|
+
if (isNew.value || !action.value)
|
|
560
|
+
return null;
|
|
561
|
+
return h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
562
|
+
h(NeonLabel, {
|
|
563
|
+
icon: action.value?.iconLeft,
|
|
564
|
+
text: action.value?.label,
|
|
565
|
+
size: "md",
|
|
566
|
+
color: action.value?.color,
|
|
567
|
+
isLoading: isLoading.value
|
|
568
|
+
})
|
|
569
|
+
]);
|
|
570
|
+
};
|
|
571
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaskWorkButton,
|
|
3
|
-
useOperasionalStore
|
|
3
|
+
useOperasionalStore,
|
|
4
|
+
OfficeSingleSync
|
|
4
5
|
} from "@neutron.co.id/operasional-interfaces/office";
|
|
5
6
|
import { Query } from "@neon.id/query";
|
|
6
7
|
import { ResourceUtil } from "@neon.id/office";
|
|
@@ -45,7 +46,10 @@ export const TaskCollectionView = ResourceUtil.createCollection({
|
|
|
45
46
|
export const TaskSingleView = ResourceUtil.createSingle({
|
|
46
47
|
name: "default",
|
|
47
48
|
definition: "neu:personalia:task",
|
|
48
|
-
excludes: ["duplicate", "delete", "destroy"]
|
|
49
|
+
excludes: ["duplicate", "delete", "destroy"],
|
|
50
|
+
slots: {
|
|
51
|
+
actions: () => h(OfficeSingleSync)
|
|
52
|
+
}
|
|
49
53
|
});
|
|
50
54
|
export const TaskCollectionPlanView = ResourceUtil.createCollection({
|
|
51
55
|
name: "plan",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export default [
|
|
2
|
+
'AttendanceCollectionView',
|
|
3
|
+
'AttendanceSingleView',
|
|
4
|
+
'AttendanceCollectionStaffView',
|
|
5
|
+
'AttendanceSingleStaffView',
|
|
6
|
+
'AttendanceCollectionManagerView',
|
|
7
|
+
'AttendanceSingleManagerView',
|
|
8
|
+
'AttendanceCollectionSupervisorView',
|
|
9
|
+
'AttendanceSingleSupervisorView',
|
|
2
10
|
'CheckInCollectionView',
|
|
3
11
|
'CheckInSingleView',
|
|
4
12
|
'CheckInCollectionExternalView',
|
|
@@ -10,14 +18,6 @@ export default [
|
|
|
10
18
|
'PlanSingleView',
|
|
11
19
|
'PlanCollectionStaffView',
|
|
12
20
|
'PlanSingleStaffView',
|
|
13
|
-
'AttendanceCollectionView',
|
|
14
|
-
'AttendanceSingleView',
|
|
15
|
-
'AttendanceCollectionStaffView',
|
|
16
|
-
'AttendanceSingleStaffView',
|
|
17
|
-
'AttendanceCollectionManagerView',
|
|
18
|
-
'AttendanceSingleManagerView',
|
|
19
|
-
'AttendanceCollectionSupervisorView',
|
|
20
|
-
'AttendanceSingleSupervisorView',
|
|
21
21
|
'PlanTypeCollectionView',
|
|
22
22
|
'PlanTypeSingleView',
|
|
23
23
|
'ProgressCollectionView',
|
|
@@ -39,6 +39,12 @@ export default [
|
|
|
39
39
|
'ResponsibilitySingleSupervisorView',
|
|
40
40
|
'ResponsibilityTypeCollectionView',
|
|
41
41
|
'ResponsibilityTypeSingleView',
|
|
42
|
+
'ShiftCollectionView',
|
|
43
|
+
'ShiftSingleView',
|
|
44
|
+
'ShiftCollectionStaffView',
|
|
45
|
+
'ShiftSingleStaffView',
|
|
46
|
+
'ShiftCollectionAdministratorView',
|
|
47
|
+
'ShiftSingleAdministratorView',
|
|
42
48
|
'SituationCollectionView',
|
|
43
49
|
'SituationSingleView',
|
|
44
50
|
'SituationCollectionWorkView',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, 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, ShiftCollectionStaffView, ShiftSingleStaffView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, 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, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, 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, ShiftCollectionStaffView, ShiftSingleStaffView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, 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 }
|
package/build/views.mjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
'personalia': [
|
|
3
|
+
'AttendanceCollectionView',
|
|
4
|
+
'AttendanceSingleView',
|
|
5
|
+
'AttendanceCollectionStaffView',
|
|
6
|
+
'AttendanceSingleStaffView',
|
|
7
|
+
'AttendanceCollectionManagerView',
|
|
8
|
+
'AttendanceSingleManagerView',
|
|
9
|
+
'AttendanceCollectionSupervisorView',
|
|
10
|
+
'AttendanceSingleSupervisorView',
|
|
3
11
|
'CheckInCollectionView',
|
|
4
12
|
'CheckInSingleView',
|
|
5
13
|
'CheckInCollectionExternalView',
|
|
@@ -11,14 +19,6 @@ export default {
|
|
|
11
19
|
'PlanSingleView',
|
|
12
20
|
'PlanCollectionStaffView',
|
|
13
21
|
'PlanSingleStaffView',
|
|
14
|
-
'AttendanceCollectionView',
|
|
15
|
-
'AttendanceSingleView',
|
|
16
|
-
'AttendanceCollectionStaffView',
|
|
17
|
-
'AttendanceSingleStaffView',
|
|
18
|
-
'AttendanceCollectionManagerView',
|
|
19
|
-
'AttendanceSingleManagerView',
|
|
20
|
-
'AttendanceCollectionSupervisorView',
|
|
21
|
-
'AttendanceSingleSupervisorView',
|
|
22
22
|
'PlanTypeCollectionView',
|
|
23
23
|
'PlanTypeSingleView',
|
|
24
24
|
'ProgressCollectionView',
|
|
@@ -40,6 +40,12 @@ export default {
|
|
|
40
40
|
'ResponsibilitySingleSupervisorView',
|
|
41
41
|
'ResponsibilityTypeCollectionView',
|
|
42
42
|
'ResponsibilityTypeSingleView',
|
|
43
|
+
'ShiftCollectionView',
|
|
44
|
+
'ShiftSingleView',
|
|
45
|
+
'ShiftCollectionStaffView',
|
|
46
|
+
'ShiftSingleStaffView',
|
|
47
|
+
'ShiftCollectionAdministratorView',
|
|
48
|
+
'ShiftSingleAdministratorView',
|
|
43
49
|
'SituationCollectionView',
|
|
44
50
|
'SituationSingleView',
|
|
45
51
|
'SituationCollectionWorkView',
|
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.5",
|
|
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.39.0",
|
|
50
50
|
"@neon.id/query": "^1.12.0",
|
|
51
|
-
"@neutron.co.id/personalia-models": "1.13.3
|
|
51
|
+
"@neutron.co.id/personalia-models": "1.13.3",
|
|
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.39.0",
|
|
80
80
|
"@neon.id/query": "^1.12.0",
|
|
81
|
-
"@neutron.co.id/personalia-models": "1.13.3
|
|
81
|
+
"@neutron.co.id/personalia-models": "1.13.3",
|
|
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": 101
|
|
89
89
|
}
|