@neutron.co.id/operasional-interfaces 1.4.5 → 1.4.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs +21 -43
- package/build/index.mjs +21 -43
- package/package.json +4 -4
package/build/index.cjs
CHANGED
|
@@ -7359,7 +7359,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
7359
7359
|
roles: [
|
|
7360
7360
|
{ id: "a6c43f08a59b4292e3d1357b", name: "Admin Office" },
|
|
7361
7361
|
{ id: "641044c878ae4f8388b1d280", name: "Admin Operasional" },
|
|
7362
|
-
{ id:
|
|
7362
|
+
// { id: '64101f7078ae4f8388b1d1e8', name: 'Cabang Operasional' },
|
|
7363
7363
|
{ id: "641d357c78ae4f8388b1dbaf", name: "Manager Cabang" },
|
|
7364
7364
|
{ id: "641d35b178ae4f8388b1dbd4", name: "SDM Cabang" },
|
|
7365
7365
|
{ id: "6309c3c2e64a1324b8663dab", name: "Karyawan" }
|
|
@@ -7740,25 +7740,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7740
7740
|
discardChanges
|
|
7741
7741
|
} = context.useSingle();
|
|
7742
7742
|
const authStore = identitasInterfaces.useAuthStore();
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
vue.onMounted(() => {
|
|
7746
|
-
var _a, _b, _c, _d;
|
|
7747
|
-
if (id.value === "new") {
|
|
7748
|
-
values.value.situationReportedByIds = [((_a = staff.value) == null ? void 0 : _a.id) || ""];
|
|
7749
|
-
values.value.branchIds = [((_b = staff.value) == null ? void 0 : _b.branchId) || ""];
|
|
7750
|
-
values.value.userId = userId.value;
|
|
7751
|
-
values.value.situationReportedBy = [
|
|
7752
|
-
{
|
|
7753
|
-
id: (_c = staff.value) == null ? void 0 : _c.id,
|
|
7754
|
-
display: (_d = staff.value) == null ? void 0 : _d.display
|
|
7755
|
-
}
|
|
7756
|
-
];
|
|
7757
|
-
}
|
|
7758
|
-
if (isChanged) {
|
|
7759
|
-
values.value.userId = userId.value;
|
|
7760
|
-
}
|
|
7761
|
-
});
|
|
7743
|
+
pinia.storeToRefs(authStore);
|
|
7744
|
+
useOperasional();
|
|
7762
7745
|
return (_ctx, _cache) => {
|
|
7763
7746
|
return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-situation-single" }, {
|
|
7764
7747
|
default: vue.withCtx(() => [
|
|
@@ -7999,28 +7982,23 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7999
7982
|
values.value.estimatedRealizedAssignmentEnd
|
|
8000
7983
|
],
|
|
8001
7984
|
([
|
|
8002
|
-
|
|
7985
|
+
resultAssignment,
|
|
8003
7986
|
estimatedRealizedAssignmentStart,
|
|
8004
7987
|
estimatedRealizedAssignmentEnd
|
|
8005
7988
|
]) => {
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
break;
|
|
8020
|
-
default:
|
|
8021
|
-
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
8022
|
-
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
8023
|
-
break;
|
|
7989
|
+
if (estimatedRealizedAssignmentStart === null || estimatedRealizedAssignmentStart === void 0) {
|
|
7990
|
+
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
7991
|
+
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
7992
|
+
} else if (estimatedRealizedAssignmentEnd === void 0 || estimatedRealizedAssignmentEnd === null) {
|
|
7993
|
+
onHandleTaskWork.value.onStartTaskWorking = false;
|
|
7994
|
+
onHandleTaskWork.value.onFinishedTaskWorking = true;
|
|
7995
|
+
} else if (estimatedRealizedAssignmentEnd !== void 0 || estimatedRealizedAssignmentEnd !== null) {
|
|
7996
|
+
onHandleTaskWork.value.onStartTaskWorking = false;
|
|
7997
|
+
onHandleTaskWork.value.onFinishedTaskWorking = true;
|
|
7998
|
+
onHandleTaskWork.value.onFinishedDisabledTaskWorking = true;
|
|
7999
|
+
} else {
|
|
8000
|
+
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
8001
|
+
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
8024
8002
|
}
|
|
8025
8003
|
},
|
|
8026
8004
|
{
|
|
@@ -8082,11 +8060,11 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
8082
8060
|
"is-rounded": true,
|
|
8083
8061
|
size: "sm",
|
|
8084
8062
|
color: "success",
|
|
8085
|
-
"icon-left": "check",
|
|
8086
|
-
label: "Selesai",
|
|
8087
|
-
"is-disabled": onHandleTaskWork.value.onFinishedDisabledTaskWorking,
|
|
8063
|
+
"icon-left": onHandleTaskWork.value.onFinishedDisabledTaskWorking || vue.unref(initialValues).resultAssignment != void 0 ? "check" : "person-running",
|
|
8064
|
+
label: onHandleTaskWork.value.onFinishedDisabledTaskWorking || vue.unref(initialValues).resultAssignment != void 0 ? "Selesai" : "Sedang dikerjakan",
|
|
8065
|
+
"is-disabled": onHandleTaskWork.value.onFinishedDisabledTaskWorking || vue.unref(initialValues).resultAssignment == void 0,
|
|
8088
8066
|
onClick: onClickHandlerFinishTaskWork
|
|
8089
|
-
}, null, 8, ["is-disabled"])
|
|
8067
|
+
}, null, 8, ["icon-left", "label", "is-disabled"])
|
|
8090
8068
|
])) : vue.createCommentVNode("v-if", true)
|
|
8091
8069
|
],
|
|
8092
8070
|
64
|
package/build/index.mjs
CHANGED
|
@@ -7357,7 +7357,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7357
7357
|
roles: [
|
|
7358
7358
|
{ id: "a6c43f08a59b4292e3d1357b", name: "Admin Office" },
|
|
7359
7359
|
{ id: "641044c878ae4f8388b1d280", name: "Admin Operasional" },
|
|
7360
|
-
{ id:
|
|
7360
|
+
// { id: '64101f7078ae4f8388b1d1e8', name: 'Cabang Operasional' },
|
|
7361
7361
|
{ id: "641d357c78ae4f8388b1dbaf", name: "Manager Cabang" },
|
|
7362
7362
|
{ id: "641d35b178ae4f8388b1dbd4", name: "SDM Cabang" },
|
|
7363
7363
|
{ id: "6309c3c2e64a1324b8663dab", name: "Karyawan" }
|
|
@@ -7738,25 +7738,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
7738
7738
|
discardChanges
|
|
7739
7739
|
} = useSingle();
|
|
7740
7740
|
const authStore = useAuthStore();
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
onMounted(() => {
|
|
7744
|
-
var _a, _b, _c, _d;
|
|
7745
|
-
if (id.value === "new") {
|
|
7746
|
-
values.value.situationReportedByIds = [((_a = staff.value) == null ? void 0 : _a.id) || ""];
|
|
7747
|
-
values.value.branchIds = [((_b = staff.value) == null ? void 0 : _b.branchId) || ""];
|
|
7748
|
-
values.value.userId = userId.value;
|
|
7749
|
-
values.value.situationReportedBy = [
|
|
7750
|
-
{
|
|
7751
|
-
id: (_c = staff.value) == null ? void 0 : _c.id,
|
|
7752
|
-
display: (_d = staff.value) == null ? void 0 : _d.display
|
|
7753
|
-
}
|
|
7754
|
-
];
|
|
7755
|
-
}
|
|
7756
|
-
if (isChanged) {
|
|
7757
|
-
values.value.userId = userId.value;
|
|
7758
|
-
}
|
|
7759
|
-
});
|
|
7741
|
+
storeToRefs(authStore);
|
|
7742
|
+
useOperasional();
|
|
7760
7743
|
return (_ctx, _cache) => {
|
|
7761
7744
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-situation-single" }, {
|
|
7762
7745
|
default: withCtx(() => [
|
|
@@ -7997,28 +7980,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
7997
7980
|
values.value.estimatedRealizedAssignmentEnd
|
|
7998
7981
|
],
|
|
7999
7982
|
([
|
|
8000
|
-
|
|
7983
|
+
resultAssignment,
|
|
8001
7984
|
estimatedRealizedAssignmentStart,
|
|
8002
7985
|
estimatedRealizedAssignmentEnd
|
|
8003
7986
|
]) => {
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
break;
|
|
8018
|
-
default:
|
|
8019
|
-
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
8020
|
-
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
8021
|
-
break;
|
|
7987
|
+
if (estimatedRealizedAssignmentStart === null || estimatedRealizedAssignmentStart === void 0) {
|
|
7988
|
+
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
7989
|
+
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
7990
|
+
} else if (estimatedRealizedAssignmentEnd === void 0 || estimatedRealizedAssignmentEnd === null) {
|
|
7991
|
+
onHandleTaskWork.value.onStartTaskWorking = false;
|
|
7992
|
+
onHandleTaskWork.value.onFinishedTaskWorking = true;
|
|
7993
|
+
} else if (estimatedRealizedAssignmentEnd !== void 0 || estimatedRealizedAssignmentEnd !== null) {
|
|
7994
|
+
onHandleTaskWork.value.onStartTaskWorking = false;
|
|
7995
|
+
onHandleTaskWork.value.onFinishedTaskWorking = true;
|
|
7996
|
+
onHandleTaskWork.value.onFinishedDisabledTaskWorking = true;
|
|
7997
|
+
} else {
|
|
7998
|
+
onHandleTaskWork.value.onStartTaskWorking = true;
|
|
7999
|
+
onHandleTaskWork.value.onFinishedTaskWorking = false;
|
|
8022
8000
|
}
|
|
8023
8001
|
},
|
|
8024
8002
|
{
|
|
@@ -8080,11 +8058,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
8080
8058
|
"is-rounded": true,
|
|
8081
8059
|
size: "sm",
|
|
8082
8060
|
color: "success",
|
|
8083
|
-
"icon-left": "check",
|
|
8084
|
-
label: "Selesai",
|
|
8085
|
-
"is-disabled": onHandleTaskWork.value.onFinishedDisabledTaskWorking,
|
|
8061
|
+
"icon-left": onHandleTaskWork.value.onFinishedDisabledTaskWorking || unref(initialValues).resultAssignment != void 0 ? "check" : "person-running",
|
|
8062
|
+
label: onHandleTaskWork.value.onFinishedDisabledTaskWorking || unref(initialValues).resultAssignment != void 0 ? "Selesai" : "Sedang dikerjakan",
|
|
8063
|
+
"is-disabled": onHandleTaskWork.value.onFinishedDisabledTaskWorking || unref(initialValues).resultAssignment == void 0,
|
|
8086
8064
|
onClick: onClickHandlerFinishTaskWork
|
|
8087
|
-
}, null, 8, ["is-disabled"])
|
|
8065
|
+
}, null, 8, ["icon-left", "label", "is-disabled"])
|
|
8088
8066
|
])) : createCommentVNode("v-if", true)
|
|
8089
8067
|
],
|
|
8090
8068
|
64
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6-beta.1",
|
|
4
4
|
"description": "Interface library of Neutron.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@neon.id/interfaces": "0.154.0",
|
|
61
61
|
"@neon.id/office": "0.26.0",
|
|
62
62
|
"@neon.id/utils": "0.39.0",
|
|
63
|
-
"@neutron.co.id/personalia-models": "1.4.1",
|
|
63
|
+
"@neutron.co.id/personalia-models": "1.4.2-beta.1",
|
|
64
64
|
"@neutron.co.id/sentral-interfaces": "1.2.0",
|
|
65
65
|
"@nuxt/kit": "3.3.1",
|
|
66
66
|
"qr-scanner": "1.4.1",
|
|
@@ -129,12 +129,12 @@
|
|
|
129
129
|
"@neon.id/interfaces": "^0.154.0",
|
|
130
130
|
"@neon.id/office": "^0.26.0",
|
|
131
131
|
"@neon.id/utils": "^0.39.0",
|
|
132
|
-
"@neutron.co.id/personalia-models": "^1.4.1",
|
|
132
|
+
"@neutron.co.id/personalia-models": "^1.4.2-beta.1",
|
|
133
133
|
"@nuxt/kit": "^3.3.1",
|
|
134
134
|
"vue": "^3.2.47"
|
|
135
135
|
},
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"access": "public"
|
|
138
138
|
},
|
|
139
|
-
"build":
|
|
139
|
+
"build": 87
|
|
140
140
|
}
|