@neutron.co.id/operasional-modules 1.6.0 → 1.6.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.
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
SubmissionCollectionAuditView,
|
|
10
10
|
SubmissionSingleAuditView,
|
|
11
11
|
SubmissionCollectionDecisionView,
|
|
12
|
-
SubmissionSingleDecisionView
|
|
12
|
+
SubmissionSingleDecisionView,
|
|
13
|
+
SubmissionCollectionWaitingDecisionView
|
|
13
14
|
} from "./submission.views.mjs";
|
|
14
15
|
import {
|
|
15
16
|
fragments,
|
|
@@ -71,6 +72,11 @@ export const SubmissionResource = Resource.define({
|
|
|
71
72
|
submissionDecisionSingle: {
|
|
72
73
|
path: "/pengajuan/decision-submission/:slug",
|
|
73
74
|
component: SubmissionSingleDecisionView
|
|
75
|
+
},
|
|
76
|
+
//Menunggu Keputusan
|
|
77
|
+
submissionWaitingDecision: {
|
|
78
|
+
path: "/pengajuan/waiting-decision-submission",
|
|
79
|
+
component: SubmissionCollectionWaitingDecisionView
|
|
74
80
|
}
|
|
75
81
|
},
|
|
76
82
|
fragments,
|
|
@@ -178,3 +178,6 @@ export declare const SubmissionSingleDecisionView: import("vue").DefineComponent
|
|
|
178
178
|
isNew: boolean;
|
|
179
179
|
isMain: boolean;
|
|
180
180
|
}, {}>;
|
|
181
|
+
export declare const SubmissionCollectionWaitingDecisionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSingle } from "@neon.id/context";
|
|
2
|
-
import {
|
|
2
|
+
import { NeonLabel } from "@neon.id/interfaces";
|
|
3
3
|
import { ResourceUtil } from "@neon.id/office";
|
|
4
4
|
import { Query } from "@neon.id/query";
|
|
5
5
|
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
@@ -13,7 +13,7 @@ export const SubmissionSingleView = ResourceUtil.createSingle({
|
|
|
13
13
|
definition: "neu:personalia:submission",
|
|
14
14
|
slots: {
|
|
15
15
|
actions: {
|
|
16
|
-
setup:
|
|
16
|
+
setup: getLabel
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -71,7 +71,7 @@ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
|
71
71
|
slots: {
|
|
72
72
|
default: "staff",
|
|
73
73
|
actions: {
|
|
74
|
-
setup:
|
|
74
|
+
setup: getLabel
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
});
|
|
@@ -137,7 +137,7 @@ export const SubmissionSingleFollowUpView = ResourceUtil.createSingle({
|
|
|
137
137
|
slots: {
|
|
138
138
|
default: "follow-up",
|
|
139
139
|
actions: {
|
|
140
|
-
setup:
|
|
140
|
+
setup: getLabel
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -197,7 +197,7 @@ export const SubmissionSingleAuditView = ResourceUtil.createSingle({
|
|
|
197
197
|
slots: {
|
|
198
198
|
default: "audit",
|
|
199
199
|
actions: {
|
|
200
|
-
setup:
|
|
200
|
+
setup: getLabel
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
});
|
|
@@ -249,12 +249,76 @@ export const SubmissionSingleDecisionView = ResourceUtil.createSingle({
|
|
|
249
249
|
slots: {
|
|
250
250
|
default: "decision",
|
|
251
251
|
actions: {
|
|
252
|
-
setup:
|
|
252
|
+
setup: getLabel
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
export const SubmissionCollectionWaitingDecisionView = ResourceUtil.createCollection({
|
|
257
|
+
name: "waiting-decision",
|
|
258
|
+
definition: "neu:personalia:submission",
|
|
259
|
+
title: "Menunggu Keputusan",
|
|
260
|
+
icon: "clipboard-list-check",
|
|
261
|
+
scope: "waiting-decision",
|
|
262
|
+
path: "/pengajuan/waiting-decision-submission",
|
|
263
|
+
single: {
|
|
264
|
+
view: "decision",
|
|
265
|
+
peeks: ["side"]
|
|
266
|
+
},
|
|
267
|
+
columns: [
|
|
268
|
+
"status",
|
|
269
|
+
"type",
|
|
270
|
+
"specifications",
|
|
271
|
+
"title",
|
|
272
|
+
"raisedAt",
|
|
273
|
+
"branches",
|
|
274
|
+
"submissionStaffs",
|
|
275
|
+
"raiseStaffs",
|
|
276
|
+
"decideStaffs",
|
|
277
|
+
"followUpStaffs",
|
|
278
|
+
"nominal"
|
|
279
|
+
],
|
|
280
|
+
filters: [
|
|
281
|
+
"status",
|
|
282
|
+
"type",
|
|
283
|
+
"specifications",
|
|
284
|
+
"branches",
|
|
285
|
+
"submissionStaffs",
|
|
286
|
+
"raiseStaffs",
|
|
287
|
+
"decideStaffs",
|
|
288
|
+
"followUpStaffs"
|
|
289
|
+
],
|
|
290
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
291
|
+
query: () => {
|
|
292
|
+
const { staff } = useOperasional();
|
|
293
|
+
return Query.define({
|
|
294
|
+
filter: [
|
|
295
|
+
{
|
|
296
|
+
handle: "status",
|
|
297
|
+
operator: "eq",
|
|
298
|
+
value: "processed"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
handle: "decideStaffIds",
|
|
302
|
+
operator: "in",
|
|
303
|
+
value: staff.value?.id
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
handle: "delayStaffIds",
|
|
307
|
+
operator: "nin",
|
|
308
|
+
value: staff.value?.id
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
handle: "agreedStaffIds",
|
|
312
|
+
operator: "nin",
|
|
313
|
+
value: staff.value?.id
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
function getLabel() {
|
|
321
|
+
const { isNew, values, isLoading } = useSingle();
|
|
258
322
|
const actions = {
|
|
259
323
|
prepared: {
|
|
260
324
|
iconLeft: "pen-line",
|
|
@@ -302,14 +366,12 @@ function getButton() {
|
|
|
302
366
|
if (isNew.value || !action.value)
|
|
303
367
|
return null;
|
|
304
368
|
return h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
305
|
-
h(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
size: "
|
|
369
|
+
h(NeonLabel, {
|
|
370
|
+
icon: action.value?.iconLeft,
|
|
371
|
+
text: action.value?.label,
|
|
372
|
+
size: "md",
|
|
309
373
|
color: action.value?.color,
|
|
310
|
-
|
|
311
|
-
isLoading: isLoading.value,
|
|
312
|
-
onClick: syncOne
|
|
374
|
+
isLoading: isLoading.value
|
|
313
375
|
})
|
|
314
376
|
]);
|
|
315
377
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionOperasionalView","StaffCollectionView","StaffSingleOperasionalView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView","SubmissionCollectionAuditView","SubmissionCollectionDecisionView","SubmissionCollectionFollowUpView","SubmissionCollectionStaffView","SubmissionCollectionView","SubmissionSingleAuditView","SubmissionSingleDecisionView","SubmissionSingleFollowUpView","SubmissionSingleStaffView","SubmissionSingleView","SubmissionTypeCollectionView","SubmissionTypeSingleView"]
|
|
1
|
+
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionOperasionalView","StaffCollectionView","StaffSingleOperasionalView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView","SubmissionCollectionAuditView","SubmissionCollectionDecisionView","SubmissionCollectionFollowUpView","SubmissionCollectionStaffView","SubmissionCollectionView","SubmissionCollectionWaitingDecisionView","SubmissionSingleAuditView","SubmissionSingleDecisionView","SubmissionSingleFollowUpView","SubmissionSingleStaffView","SubmissionSingleView","SubmissionTypeCollectionView","SubmissionTypeSingleView"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@neon.id/context": "0.48.0",
|
|
44
44
|
"@neon.id/office": "0.39.0",
|
|
45
|
-
"@neutron.co.id/operasional-interfaces": "1.
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.6.2",
|
|
46
46
|
"@neutron.co.id/personalia-models": "1.6.0",
|
|
47
47
|
"@nuxt/kit": "3.5.0"
|
|
48
48
|
},
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@neon.id/context": "^0.48.0",
|
|
66
66
|
"@neon.id/office": "^0.39.0",
|
|
67
|
-
"@neutron.co.id/operasional-interfaces": "^1.
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.6.2",
|
|
68
68
|
"@neutron.co.id/personalia-models": "^1.6.0",
|
|
69
69
|
"@nuxt/kit": "^3.5.0"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 52
|
|
75
75
|
}
|