@neutron.co.id/operasional-modules 1.6.3 → 1.7.0
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 +3 -1
- package/build/personalia/index.mjs +2 -29
- package/build/personalia/module.mjs +14 -2
- package/build/personalia/plugin.mjs +12 -4
- package/build/personalia/resources/checkIn/checkIn.model.d.ts +1 -1
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +1 -1
- package/build/personalia/resources/index.d.ts +6 -0
- package/build/personalia/resources/index.mjs +6 -0
- package/build/personalia/resources/plan/index.d.ts +2 -0
- package/build/personalia/resources/plan/index.mjs +2 -0
- package/build/personalia/resources/plan/plan.model.d.ts +6 -0
- package/build/personalia/resources/plan/plan.model.mjs +56 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +2 -0
- package/build/personalia/resources/plan/plan.resource.mjs +34 -0
- package/build/personalia/resources/plan/plan.views.d.ts +72 -0
- package/build/personalia/resources/plan/plan.views.mjs +57 -0
- package/build/personalia/resources/planType/index.d.ts +2 -0
- package/build/personalia/resources/planType/index.mjs +2 -0
- package/build/personalia/resources/planType/planType.model.d.ts +6 -0
- package/build/personalia/resources/planType/planType.model.mjs +31 -0
- package/build/personalia/resources/planType/planType.resource.d.ts +2 -0
- package/build/personalia/resources/planType/planType.resource.mjs +20 -0
- package/build/personalia/resources/planType/planType.views.d.ts +36 -0
- package/build/personalia/resources/planType/planType.views.mjs +12 -0
- package/build/personalia/resources/progress/index.d.ts +2 -0
- package/build/personalia/resources/progress/index.mjs +2 -0
- package/build/personalia/resources/progress/progress.model.d.ts +6 -0
- package/build/personalia/resources/progress/progress.model.mjs +48 -0
- package/build/personalia/resources/progress/progress.resource.d.ts +2 -0
- package/build/personalia/resources/progress/progress.resource.mjs +34 -0
- package/build/personalia/resources/progress/progress.views.d.ts +102 -0
- package/build/personalia/resources/progress/progress.views.mjs +62 -0
- package/build/personalia/resources/responsibility/index.d.ts +2 -0
- package/build/personalia/resources/responsibility/index.mjs +2 -0
- package/build/personalia/resources/responsibility/responsibility.model.d.ts +6 -0
- package/build/personalia/resources/responsibility/responsibility.model.mjs +51 -0
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +2 -0
- package/build/personalia/resources/responsibility/responsibility.resource.mjs +37 -0
- package/build/personalia/resources/responsibility/responsibility.views.d.ts +72 -0
- package/build/personalia/resources/responsibility/responsibility.views.mjs +63 -0
- package/build/personalia/resources/responsibilityType/index.d.ts +2 -0
- package/build/personalia/resources/responsibilityType/index.mjs +2 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.model.d.ts +6 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.model.mjs +21 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.d.ts +2 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.mjs +26 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.views.d.ts +36 -0
- package/build/personalia/resources/responsibilityType/responsibilityType.views.mjs +12 -0
- package/build/personalia/resources/staff/staff.model.d.ts +1 -1
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +17 -26
- package/build/personalia/resources/submissionType/submissionType.views.mjs +4 -1
- package/build/personalia/resources/target/index.d.ts +2 -0
- package/build/personalia/resources/target/index.mjs +2 -0
- package/build/personalia/resources/target/target.model.d.ts +6 -0
- package/build/personalia/resources/target/target.model.mjs +43 -0
- package/build/personalia/resources/target/target.resource.d.ts +2 -0
- package/build/personalia/resources/target/target.resource.mjs +35 -0
- package/build/personalia/resources/target/target.views.d.ts +72 -0
- package/build/personalia/resources/target/target.views.mjs +101 -0
- package/build/personalia/views.mjs +2 -1
- package/package.json +13 -17
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const ProgressCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export declare const ProgressSingleView: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
isNew: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
isMain: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
isNew: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
isMain: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
id: string;
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export declare const ProgressSingleYesterdayView: import("vue").DefineComponent<{
|
|
38
|
+
id: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
isNew: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: null;
|
|
45
|
+
};
|
|
46
|
+
isMain: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
id: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
isNew: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: null;
|
|
60
|
+
};
|
|
61
|
+
isMain: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}>>, {
|
|
66
|
+
id: string;
|
|
67
|
+
isNew: boolean;
|
|
68
|
+
isMain: boolean;
|
|
69
|
+
}, {}>;
|
|
70
|
+
export declare const ProgressSingleTomorrowView: import("vue").DefineComponent<{
|
|
71
|
+
id: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
isNew: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: null;
|
|
78
|
+
};
|
|
79
|
+
isMain: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
id: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: null;
|
|
89
|
+
};
|
|
90
|
+
isNew: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: null;
|
|
93
|
+
};
|
|
94
|
+
isMain: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
}>>, {
|
|
99
|
+
id: string;
|
|
100
|
+
isNew: boolean;
|
|
101
|
+
isMain: boolean;
|
|
102
|
+
}, {}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { h } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
ProgressButton,
|
|
5
|
+
useOperasional
|
|
6
|
+
} from "@neutron.co.id/operasional-interfaces";
|
|
7
|
+
import { Query } from "@neon.id/query";
|
|
8
|
+
import dayjs from "dayjs";
|
|
9
|
+
export const ProgressCollectionView = ResourceUtil.createCollection({
|
|
10
|
+
name: "default",
|
|
11
|
+
definition: "neu:personalia:progress",
|
|
12
|
+
single: {
|
|
13
|
+
peeks: ["modal"]
|
|
14
|
+
},
|
|
15
|
+
slots: {
|
|
16
|
+
actions: () => h(ProgressButton)
|
|
17
|
+
},
|
|
18
|
+
excludes: ["create"],
|
|
19
|
+
query: () => {
|
|
20
|
+
const { staff } = useOperasional();
|
|
21
|
+
const today = dayjs(/* @__PURE__ */ new Date()).hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
22
|
+
const yesterday = dayjs(/* @__PURE__ */ new Date()).add(1, "day").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
23
|
+
return Query.define({
|
|
24
|
+
filter: [
|
|
25
|
+
{
|
|
26
|
+
handle: "staffId",
|
|
27
|
+
operator: "in",
|
|
28
|
+
value: staff.value?.id
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
startedEst: {
|
|
32
|
+
$gte: today
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
startedEst: {
|
|
37
|
+
$lt: yesterday
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
sort: [{ handle: "startedEst", direction: "ascending" }]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export const ProgressSingleView = ResourceUtil.createSingle({
|
|
46
|
+
name: "default",
|
|
47
|
+
definition: "neu:personalia:progress"
|
|
48
|
+
});
|
|
49
|
+
export const ProgressSingleYesterdayView = ResourceUtil.createSingle({
|
|
50
|
+
name: "yesterday",
|
|
51
|
+
definition: "neu:personalia:progress",
|
|
52
|
+
slots: {
|
|
53
|
+
default: "yesterday"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export const ProgressSingleTomorrowView = ResourceUtil.createSingle({
|
|
57
|
+
name: "tomorrow",
|
|
58
|
+
definition: "neu:personalia:progress",
|
|
59
|
+
slots: {
|
|
60
|
+
default: "tomorrow"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ResponsibilityModel: import("@neon.id/model").Model<"neu:personalia:responsibility", "branch" | "title" | "nameStaff" | "responsibilityType" | "condition" | "staffWorks" | "staffSupervises" | "score" | "lastProgress" | "detail" | "result">;
|
|
2
|
+
export type TResponsibilityModel = typeof ResponsibilityModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Responsibility;
|
|
5
|
+
detail: Schema.Responsibility;
|
|
6
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const ResponsibilityModel = models.ResponsibilityModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
condition: 1,
|
|
8
|
+
title: 1,
|
|
9
|
+
score: 1,
|
|
10
|
+
responsibilityType: {
|
|
11
|
+
id: 1,
|
|
12
|
+
name: 1,
|
|
13
|
+
flag: 1,
|
|
14
|
+
display: 1
|
|
15
|
+
},
|
|
16
|
+
branch: {
|
|
17
|
+
id: 1,
|
|
18
|
+
name: 1,
|
|
19
|
+
flag: 1,
|
|
20
|
+
display: 1
|
|
21
|
+
},
|
|
22
|
+
staffWorks: {
|
|
23
|
+
id: 1,
|
|
24
|
+
name: 1,
|
|
25
|
+
display: 1,
|
|
26
|
+
flag: 1
|
|
27
|
+
},
|
|
28
|
+
staffSupervises: {
|
|
29
|
+
id: 1,
|
|
30
|
+
name: 1,
|
|
31
|
+
display: 1,
|
|
32
|
+
flag: 1
|
|
33
|
+
},
|
|
34
|
+
detail: 1,
|
|
35
|
+
result: 1,
|
|
36
|
+
lastProgress: 1,
|
|
37
|
+
nameStaff: 1,
|
|
38
|
+
updatedAt: 1,
|
|
39
|
+
updatedBy: 1
|
|
40
|
+
};
|
|
41
|
+
const detail = {
|
|
42
|
+
...item,
|
|
43
|
+
responsibilityTypeId: 1,
|
|
44
|
+
branchId: 1,
|
|
45
|
+
staffWorkIds: 1,
|
|
46
|
+
staffSuperviseIds: 1
|
|
47
|
+
};
|
|
48
|
+
export const fragments = {
|
|
49
|
+
item,
|
|
50
|
+
detail
|
|
51
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
export declare const ResponsibilityResource: Resource<Schema.Responsibility, import("@neon.id/model").Model<"neu:personalia:responsibility", "branch" | "title" | "nameStaff" | "responsibilityType" | "condition" | "staffWorks" | "staffSupervises" | "score" | "lastProgress" | "detail" | "result">>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ResponsibilityCollectionView,
|
|
4
|
+
ResponsibilitySingleView,
|
|
5
|
+
ResponsibilityCollectionStaffView,
|
|
6
|
+
ResponsibilitySingleStaffView
|
|
7
|
+
} from "./responsibility.views.mjs";
|
|
8
|
+
import {
|
|
9
|
+
fragments,
|
|
10
|
+
ResponsibilityModel
|
|
11
|
+
} from "./responsibility.model.mjs";
|
|
12
|
+
export const ResponsibilityResource = Resource.define({
|
|
13
|
+
model: ResponsibilityModel,
|
|
14
|
+
collection: {
|
|
15
|
+
title: "Tanggungjawab",
|
|
16
|
+
path: "responsibilities",
|
|
17
|
+
component: ResponsibilityCollectionView,
|
|
18
|
+
menu: true,
|
|
19
|
+
displays: ["table"]
|
|
20
|
+
},
|
|
21
|
+
single: {
|
|
22
|
+
path: "responsibilities/:slug",
|
|
23
|
+
component: ResponsibilitySingleView
|
|
24
|
+
},
|
|
25
|
+
views: {
|
|
26
|
+
responsibilityStaff: {
|
|
27
|
+
path: "/penugasan/staff-responsibilities",
|
|
28
|
+
component: ResponsibilityCollectionStaffView
|
|
29
|
+
},
|
|
30
|
+
responsibilityStaffSingle: {
|
|
31
|
+
path: "/penugasan/staff-responsibilities/:slug",
|
|
32
|
+
component: ResponsibilitySingleStaffView
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
fragments,
|
|
36
|
+
renders: {}
|
|
37
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const ResponsibilityCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export declare const ResponsibilitySingleView: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
isNew: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
isMain: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
isNew: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
isMain: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
id: string;
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export declare const ResponsibilityCollectionStaffView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
|
+
export declare const ResponsibilitySingleStaffView: import("vue").DefineComponent<{
|
|
41
|
+
id: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
isNew: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
isMain: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
id: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
isNew: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
isMain: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>>, {
|
|
69
|
+
id: string;
|
|
70
|
+
isNew: boolean;
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { Query } from "@neon.id/query";
|
|
3
|
+
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
4
|
+
export const ResponsibilityCollectionView = ResourceUtil.createCollection({
|
|
5
|
+
name: "default",
|
|
6
|
+
definition: "neu:personalia:responsibility",
|
|
7
|
+
single: {
|
|
8
|
+
peeks: ["modal"]
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export const ResponsibilitySingleView = ResourceUtil.createSingle({
|
|
12
|
+
name: "default",
|
|
13
|
+
definition: "neu:personalia:responsibility"
|
|
14
|
+
});
|
|
15
|
+
export const ResponsibilityCollectionStaffView = ResourceUtil.createCollection({
|
|
16
|
+
name: "staff",
|
|
17
|
+
definition: "neu:personalia:responsibility",
|
|
18
|
+
title: "Tanggungjawab",
|
|
19
|
+
icon: "handshake",
|
|
20
|
+
scope: "staff",
|
|
21
|
+
path: "/penugasan/staff-responsibilities",
|
|
22
|
+
single: {
|
|
23
|
+
view: "staff",
|
|
24
|
+
peeks: ["modal"]
|
|
25
|
+
},
|
|
26
|
+
columns: [
|
|
27
|
+
"condition",
|
|
28
|
+
"branch",
|
|
29
|
+
"responsibilityType",
|
|
30
|
+
"staffWorks",
|
|
31
|
+
"staffSupervises",
|
|
32
|
+
"title",
|
|
33
|
+
"score",
|
|
34
|
+
"lastProgress"
|
|
35
|
+
],
|
|
36
|
+
filters: [
|
|
37
|
+
"condition",
|
|
38
|
+
"branch",
|
|
39
|
+
"responsibilityType",
|
|
40
|
+
"staffWorks",
|
|
41
|
+
"staffSupervises"
|
|
42
|
+
],
|
|
43
|
+
sorts: ["score", "lastProgress", "targetEst", "createdAt", "updatedAt"],
|
|
44
|
+
query: () => {
|
|
45
|
+
const { staff } = useOperasional();
|
|
46
|
+
return Query.define({
|
|
47
|
+
filter: {
|
|
48
|
+
handle: "branchId",
|
|
49
|
+
operator: "in",
|
|
50
|
+
value: staff.value?.branchIds
|
|
51
|
+
},
|
|
52
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
excludes: ["create"]
|
|
56
|
+
});
|
|
57
|
+
export const ResponsibilitySingleStaffView = ResourceUtil.createSingle({
|
|
58
|
+
name: "staff",
|
|
59
|
+
definition: "neu:personalia:responsibility",
|
|
60
|
+
slots: {
|
|
61
|
+
default: "staff"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ResponsibilityTypeModel: import("@neon.id/model").Model<"neu:personalia:responsibilityType", "name" | "branches">;
|
|
2
|
+
export type TResponsibilityTypeModel = typeof ResponsibilityTypeModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.ResponsibilityType;
|
|
5
|
+
detail: Schema.ResponsibilityType;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const ResponsibilityTypeModel = models.ResponsibilityTypeModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
name: 1,
|
|
8
|
+
branches: {
|
|
9
|
+
id: 1,
|
|
10
|
+
display: 1,
|
|
11
|
+
name: 1
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const detail = {
|
|
15
|
+
...item,
|
|
16
|
+
branchIds: 1
|
|
17
|
+
};
|
|
18
|
+
export const fragments = {
|
|
19
|
+
item,
|
|
20
|
+
detail
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ResponsibilityTypeCollectionView,
|
|
4
|
+
ResponsibilityTypeSingleView
|
|
5
|
+
} from "./responsibilityType.views.mjs";
|
|
6
|
+
import {
|
|
7
|
+
fragments,
|
|
8
|
+
ResponsibilityTypeModel
|
|
9
|
+
} from "./responsibilityType.model.mjs";
|
|
10
|
+
export const ResponsibilityTypeResource = Resource.define({
|
|
11
|
+
model: ResponsibilityTypeModel,
|
|
12
|
+
collection: {
|
|
13
|
+
title: "Tipe Tanggungjawab",
|
|
14
|
+
path: "responsibilityTypes",
|
|
15
|
+
component: ResponsibilityTypeCollectionView,
|
|
16
|
+
menu: true,
|
|
17
|
+
displays: ["table"]
|
|
18
|
+
},
|
|
19
|
+
single: {
|
|
20
|
+
path: "responsibilityTypes/:slug",
|
|
21
|
+
component: ResponsibilityTypeSingleView
|
|
22
|
+
},
|
|
23
|
+
views: {},
|
|
24
|
+
fragments,
|
|
25
|
+
renders: {}
|
|
26
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const ResponsibilityTypeCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export declare const ResponsibilityTypeSingleView: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
isNew: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
isMain: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
isNew: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
isMain: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
id: string;
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const ResponsibilityTypeCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:responsibilityType",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export const ResponsibilityTypeSingleView = ResourceUtil.createSingle({
|
|
10
|
+
name: "default",
|
|
11
|
+
definition: "neu:personalia:responsibilityType"
|
|
12
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "user" | "
|
|
1
|
+
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "user" | "branch" | "note" | "image" | "name" | "branches" | "nik" | "birthPlace" | "birthDate">;
|
|
2
2
|
export type TStaffModel = typeof StaffModel;
|
|
3
3
|
export declare const fragments: {
|
|
4
4
|
item: Schema.Staff;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "user" | "
|
|
2
|
+
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "user" | "branch" | "note" | "image" | "name" | "branches" | "nik" | "birthPlace" | "birthDate">>;
|
|
@@ -6,7 +6,10 @@ import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
|
6
6
|
import { computed, h } from "vue";
|
|
7
7
|
export const SubmissionCollectionView = ResourceUtil.createCollection({
|
|
8
8
|
name: "default",
|
|
9
|
-
definition: "neu:personalia:submission"
|
|
9
|
+
definition: "neu:personalia:submission",
|
|
10
|
+
single: {
|
|
11
|
+
peeks: ["modal"]
|
|
12
|
+
}
|
|
10
13
|
});
|
|
11
14
|
export const SubmissionSingleView = ResourceUtil.createSingle({
|
|
12
15
|
name: "default",
|
|
@@ -26,7 +29,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
26
29
|
path: "/pengajuan/staff-submission",
|
|
27
30
|
single: {
|
|
28
31
|
view: "staff",
|
|
29
|
-
peeks: ["
|
|
32
|
+
peeks: ["modal"]
|
|
30
33
|
},
|
|
31
34
|
columns: [
|
|
32
35
|
"status",
|
|
@@ -53,13 +56,7 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
53
56
|
],
|
|
54
57
|
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
55
58
|
query: () => {
|
|
56
|
-
const { staff } = useOperasional();
|
|
57
59
|
return Query.define({
|
|
58
|
-
filter: {
|
|
59
|
-
handle: "branchIds",
|
|
60
|
-
operator: "in",
|
|
61
|
-
value: staff.value?.branchIds
|
|
62
|
-
},
|
|
63
60
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
64
61
|
});
|
|
65
62
|
}
|
|
@@ -84,7 +81,7 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
84
81
|
path: "/pengajuan/follow-up-submission",
|
|
85
82
|
single: {
|
|
86
83
|
view: "follow-up",
|
|
87
|
-
peeks: ["
|
|
84
|
+
peeks: ["modal"]
|
|
88
85
|
},
|
|
89
86
|
columns: [
|
|
90
87
|
"status",
|
|
@@ -111,18 +108,12 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
111
108
|
],
|
|
112
109
|
sorts: ["updatedAt", "createdAt", "updater"],
|
|
113
110
|
query: () => {
|
|
114
|
-
const { staff } = useOperasional();
|
|
115
111
|
return Query.define({
|
|
116
112
|
filter: [
|
|
117
113
|
{
|
|
118
114
|
handle: "status",
|
|
119
115
|
operator: "in",
|
|
120
116
|
value: ["approved", "monitored", "discontinued", "resolved"]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
handle: "branchIds",
|
|
124
|
-
operator: "in",
|
|
125
|
-
value: staff.value?.branchIds
|
|
126
117
|
}
|
|
127
118
|
],
|
|
128
119
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
@@ -150,7 +141,7 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
150
141
|
path: "/pengajuan/audit-submission",
|
|
151
142
|
single: {
|
|
152
143
|
view: "audit",
|
|
153
|
-
peeks: ["
|
|
144
|
+
peeks: ["modal"]
|
|
154
145
|
},
|
|
155
146
|
columns: [
|
|
156
147
|
"status",
|
|
@@ -177,15 +168,7 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
177
168
|
],
|
|
178
169
|
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
179
170
|
query: () => {
|
|
180
|
-
const { staff } = useOperasional();
|
|
181
171
|
return Query.define({
|
|
182
|
-
filter: [
|
|
183
|
-
{
|
|
184
|
-
handle: "branchIds",
|
|
185
|
-
operator: "in",
|
|
186
|
-
value: staff.value?.branchIds
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
172
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
190
173
|
});
|
|
191
174
|
}
|
|
@@ -210,7 +193,7 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
210
193
|
path: "/pengajuan/decision-submission",
|
|
211
194
|
single: {
|
|
212
195
|
view: "decision",
|
|
213
|
-
peeks: ["
|
|
196
|
+
peeks: ["modal"]
|
|
214
197
|
},
|
|
215
198
|
columns: [
|
|
216
199
|
"status",
|
|
@@ -237,7 +220,15 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
237
220
|
],
|
|
238
221
|
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
239
222
|
query: () => {
|
|
223
|
+
const { staff } = useOperasional();
|
|
240
224
|
return Query.define({
|
|
225
|
+
filter: [
|
|
226
|
+
{
|
|
227
|
+
handle: "decideStaffIds",
|
|
228
|
+
operator: "in",
|
|
229
|
+
value: staff.value?.id
|
|
230
|
+
}
|
|
231
|
+
],
|
|
241
232
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
242
233
|
});
|
|
243
234
|
}
|
|
@@ -262,7 +253,7 @@ export const SubmissionCollectionWaitingDecisionView = ResourceUtil.createCollec
|
|
|
262
253
|
path: "/pengajuan/waiting-decision-submission",
|
|
263
254
|
single: {
|
|
264
255
|
view: "waiting-decision",
|
|
265
|
-
peeks: ["
|
|
256
|
+
peeks: ["modal"]
|
|
266
257
|
},
|
|
267
258
|
columns: [
|
|
268
259
|
"status",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
2
|
export const SubmissionTypeCollectionView = ResourceUtil.createCollection({
|
|
3
3
|
name: "default",
|
|
4
|
-
definition: "neu:personalia:submissionType"
|
|
4
|
+
definition: "neu:personalia:submissionType",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
}
|
|
5
8
|
});
|
|
6
9
|
export const SubmissionTypeSingleView = ResourceUtil.createSingle({
|
|
7
10
|
name: "default",
|