@neutron.co.id/operasional-interfaces 1.6.2 → 1.6.4-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.mjs
CHANGED
|
@@ -21,8 +21,8 @@ import { ComponentUtil } from "@neon.id/utils/component";
|
|
|
21
21
|
import Scanner from "qr-scanner";
|
|
22
22
|
import { models as models$2 } from "@neutron.co.id/personalia-models";
|
|
23
23
|
import { CatatSketchPad } from "@neon.id/catat-interfaces";
|
|
24
|
-
const _hoisted_1$
|
|
25
|
-
const _sfc_main$
|
|
24
|
+
const _hoisted_1$e = { class: "xxx-button" };
|
|
25
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
26
26
|
...{ name: "XxxButton" },
|
|
27
27
|
__name: "XxxButton",
|
|
28
28
|
props: {
|
|
@@ -33,18 +33,18 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
},
|
|
34
34
|
setup(__props) {
|
|
35
35
|
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
36
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
37
37
|
createVNode(unref(NeonButton), { label: "XXX" })
|
|
38
38
|
]);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
const _hoisted_1$
|
|
43
|
-
const _hoisted_2$
|
|
42
|
+
const _hoisted_1$d = { class: "operasional-identitas" };
|
|
43
|
+
const _hoisted_2$9 = {
|
|
44
44
|
key: 2,
|
|
45
45
|
class: "section"
|
|
46
46
|
};
|
|
47
|
-
const _sfc_main$
|
|
47
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
48
48
|
...{ name: "OperasionalIdentitas" },
|
|
49
49
|
__name: "OperasionalIdentitas",
|
|
50
50
|
props: {
|
|
@@ -299,7 +299,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
299
299
|
candidateId.value = null;
|
|
300
300
|
}
|
|
301
301
|
return (_ctx, _cache) => {
|
|
302
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
302
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
303
303
|
state.value === "connect" ? (openBlock(), createBlock(unref(IdentitasConnect), {
|
|
304
304
|
key: 0,
|
|
305
305
|
user: user.value,
|
|
@@ -351,7 +351,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
351
351
|
_: 1
|
|
352
352
|
/* STABLE */
|
|
353
353
|
}, 8, ["initial-values", "is-loading", "errors"])) : createCommentVNode("v-if", true),
|
|
354
|
-
user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
354
|
+
user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
355
355
|
createVNode(unref(NeonDivider), {
|
|
356
356
|
"is-dashed": "",
|
|
357
357
|
label: "Delegasi",
|
|
@@ -400,7 +400,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
400
400
|
}
|
|
401
401
|
return target;
|
|
402
402
|
};
|
|
403
|
-
const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
403
|
+
const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-355c8370"]]);
|
|
404
404
|
const CheckInModel = models$1.CheckInModel;
|
|
405
405
|
const useOperasionalStore = defineStore("neu:operasional", () => {
|
|
406
406
|
const isLoading = ref(false);
|
|
@@ -542,11 +542,11 @@ function mitt(n) {
|
|
|
542
542
|
}
|
|
543
543
|
const bus = mitt();
|
|
544
544
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-533df021"), n = n(), popScopeId(), n);
|
|
545
|
-
const _hoisted_1$
|
|
546
|
-
const _hoisted_2$
|
|
547
|
-
const _hoisted_3$
|
|
548
|
-
const _hoisted_4$
|
|
549
|
-
const _hoisted_5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
|
|
545
|
+
const _hoisted_1$c = { id: "view-checkIns" };
|
|
546
|
+
const _hoisted_2$8 = { class: "summary" };
|
|
547
|
+
const _hoisted_3$4 = { class: "wrapper" };
|
|
548
|
+
const _hoisted_4$2 = { class: "header" };
|
|
549
|
+
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
|
|
550
550
|
"div",
|
|
551
551
|
{ class: "start" },
|
|
552
552
|
[
|
|
@@ -557,7 +557,7 @@ const _hoisted_5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createEl
|
|
|
557
557
|
/* HOISTED */
|
|
558
558
|
));
|
|
559
559
|
const _hoisted_6 = { class: "end" };
|
|
560
|
-
const _sfc_main$
|
|
560
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
561
561
|
...{
|
|
562
562
|
name: "CheckInPresenceCollection"
|
|
563
563
|
},
|
|
@@ -698,14 +698,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
698
698
|
return (_ctx, _cache) => {
|
|
699
699
|
const _component_CheckInSingleExternalView = resolveComponent("CheckInSingleExternalView");
|
|
700
700
|
const _component_CheckInCollection = resolveComponent("CheckInCollection");
|
|
701
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
701
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
702
702
|
createVNode(unref(OfficeContent), {
|
|
703
703
|
icon: "barcode-read",
|
|
704
704
|
title: "Presensi",
|
|
705
705
|
"is-expanded": ""
|
|
706
706
|
}, {
|
|
707
707
|
"header-detail": withCtx(() => [
|
|
708
|
-
createElementVNode("div", _hoisted_2$
|
|
708
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
709
709
|
createVNode(unref(NeonSlider), {
|
|
710
710
|
"per-view": 2,
|
|
711
711
|
gap: 16,
|
|
@@ -819,7 +819,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
819
819
|
])
|
|
820
820
|
]),
|
|
821
821
|
default: withCtx(() => [
|
|
822
|
-
createElementVNode("div", _hoisted_3$
|
|
822
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
823
823
|
createVNode(unref(NeonCollectionContext), {
|
|
824
824
|
definition: "neu:tempat:checkIn",
|
|
825
825
|
scope: "_checkIns",
|
|
@@ -834,8 +834,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
834
834
|
"is-main": ""
|
|
835
835
|
}, {
|
|
836
836
|
default: withCtx(() => [
|
|
837
|
-
createElementVNode("div", _hoisted_4$
|
|
838
|
-
_hoisted_5,
|
|
837
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
838
|
+
_hoisted_5$1,
|
|
839
839
|
createElementVNode("div", _hoisted_6, [
|
|
840
840
|
createVNode(unref(OfficeCollectionQuery), { displays: ["table"] }, {
|
|
841
841
|
default: withCtx(() => [
|
|
@@ -862,9 +862,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
862
862
|
}
|
|
863
863
|
});
|
|
864
864
|
const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_533df021_lang = "";
|
|
865
|
-
const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
866
|
-
const _hoisted_1$
|
|
867
|
-
const _sfc_main$
|
|
865
|
+
const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-533df021"]]);
|
|
866
|
+
const _hoisted_1$b = { class: "grid gap-4 sm:grid-cols-2" };
|
|
867
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
868
868
|
__name: "CheckInSingle",
|
|
869
869
|
setup(__props) {
|
|
870
870
|
const {
|
|
@@ -922,7 +922,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
922
922
|
field: unref(fields).building,
|
|
923
923
|
"is-disabled": ""
|
|
924
924
|
}, null, 8, ["modelValue", "field"]),
|
|
925
|
-
createElementVNode("div", _hoisted_1$
|
|
925
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
926
926
|
createVNode(unref(NeonField), mergeProps({
|
|
927
927
|
modelValue: unref(values).type,
|
|
928
928
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
@@ -962,9 +962,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
const CheckInSingle_vue_vue_type_style_index_0_scoped_2e2803fb_lang = "";
|
|
965
|
-
const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
966
|
-
const _hoisted_1$
|
|
967
|
-
const _sfc_main$
|
|
965
|
+
const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-2e2803fb"]]);
|
|
966
|
+
const _hoisted_1$a = { class: "grid gap-4 sm:grid-cols-2" };
|
|
967
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
968
968
|
__name: "CheckInExternal",
|
|
969
969
|
setup(__props) {
|
|
970
970
|
const {
|
|
@@ -1030,7 +1030,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1030
1030
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
|
|
1031
1031
|
field: unref(fields).building
|
|
1032
1032
|
}, null, 8, ["modelValue", "field"])) : createCommentVNode("v-if", true),
|
|
1033
|
-
createElementVNode("div", _hoisted_1$
|
|
1033
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
1034
1034
|
createVNode(unref(NeonField), mergeProps({
|
|
1035
1035
|
modelValue: unref(values).type,
|
|
1036
1036
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
|
|
@@ -1072,16 +1072,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
1074
|
const CheckInExternal_vue_vue_type_style_index_0_scoped_9c4a435e_lang = "";
|
|
1075
|
-
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1075
|
+
const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-9c4a435e"]]);
|
|
1076
1076
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
|
|
1077
|
-
const _hoisted_1$
|
|
1077
|
+
const _hoisted_1$9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
1078
1078
|
"h4",
|
|
1079
1079
|
{ align: "center" },
|
|
1080
1080
|
"Aktifkan kamera untuk scan QR Code",
|
|
1081
1081
|
-1
|
|
1082
1082
|
/* HOISTED */
|
|
1083
1083
|
));
|
|
1084
|
-
const _hoisted_2$
|
|
1084
|
+
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
1085
1085
|
"p",
|
|
1086
1086
|
{ align: "center" },
|
|
1087
1087
|
[
|
|
@@ -1092,7 +1092,7 @@ const _hoisted_2$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
1092
1092
|
-1
|
|
1093
1093
|
/* HOISTED */
|
|
1094
1094
|
));
|
|
1095
|
-
const _sfc_main$
|
|
1095
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1096
1096
|
__name: "CheckInAccess",
|
|
1097
1097
|
emits: ["close"],
|
|
1098
1098
|
setup(__props) {
|
|
@@ -1117,8 +1117,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1117
1117
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
1118
1118
|
}, {
|
|
1119
1119
|
default: withCtx(() => [
|
|
1120
|
-
_hoisted_1$
|
|
1121
|
-
_hoisted_2$
|
|
1120
|
+
_hoisted_1$9,
|
|
1121
|
+
_hoisted_2$7,
|
|
1122
1122
|
createVNode(unref(NeonButton), {
|
|
1123
1123
|
"is-full": "",
|
|
1124
1124
|
size: "md",
|
|
@@ -1145,9 +1145,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1145
1145
|
}
|
|
1146
1146
|
});
|
|
1147
1147
|
const CheckInAccess_vue_vue_type_style_index_0_scoped_d23b6de5_lang = "";
|
|
1148
|
-
const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1149
|
-
const _hoisted_1$
|
|
1150
|
-
const _sfc_main$
|
|
1148
|
+
const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-d23b6de5"]]);
|
|
1149
|
+
const _hoisted_1$8 = { class: "buttons" };
|
|
1150
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1151
1151
|
__name: "CheckInScanError",
|
|
1152
1152
|
setup(__props) {
|
|
1153
1153
|
const attendanceStore = useAttendanceStore();
|
|
@@ -1160,7 +1160,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1160
1160
|
default: withCtx(() => [
|
|
1161
1161
|
createVNode(unref(NeonSheet), null, {
|
|
1162
1162
|
footer: withCtx(() => [
|
|
1163
|
-
createElementVNode("div", _hoisted_1$
|
|
1163
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
1164
1164
|
createVNode(unref(NeonButton), {
|
|
1165
1165
|
"is-full": "",
|
|
1166
1166
|
"is-rounded": "",
|
|
@@ -1195,23 +1195,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1195
1195
|
}
|
|
1196
1196
|
});
|
|
1197
1197
|
const _withScopeId = (n) => (pushScopeId("data-v-ef426ef3"), n = n(), popScopeId(), n);
|
|
1198
|
-
const _hoisted_1$
|
|
1198
|
+
const _hoisted_1$7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
1199
1199
|
"div",
|
|
1200
1200
|
{ class: "invalid-message" },
|
|
1201
1201
|
"Invalid Code!",
|
|
1202
1202
|
-1
|
|
1203
1203
|
/* HOISTED */
|
|
1204
1204
|
));
|
|
1205
|
-
const _hoisted_2$
|
|
1205
|
+
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
null,
|
|
1208
1208
|
null,
|
|
1209
1209
|
-1
|
|
1210
1210
|
/* HOISTED */
|
|
1211
1211
|
));
|
|
1212
|
-
const _hoisted_3 = ["onClick"];
|
|
1213
|
-
const _hoisted_4 = { class: "mr-2 text-sm" };
|
|
1214
|
-
const _sfc_main$
|
|
1212
|
+
const _hoisted_3$3 = ["onClick"];
|
|
1213
|
+
const _hoisted_4$1 = { class: "mr-2 text-sm" };
|
|
1214
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1215
1215
|
__name: "CheckInScanner",
|
|
1216
1216
|
emits: ["start", "stop", "scanned", "close"],
|
|
1217
1217
|
setup(__props, { emit }) {
|
|
@@ -1356,15 +1356,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1356
1356
|
class: "inner",
|
|
1357
1357
|
onClick: switchCamera
|
|
1358
1358
|
}, [
|
|
1359
|
-
_hoisted_1$
|
|
1360
|
-
_hoisted_2$
|
|
1359
|
+
_hoisted_1$7,
|
|
1360
|
+
_hoisted_2$6,
|
|
1361
1361
|
createElementVNode("div", {
|
|
1362
1362
|
class: "button-switch",
|
|
1363
1363
|
onClick: withModifiers(switchCamera, ["stop"])
|
|
1364
1364
|
}, [
|
|
1365
1365
|
createElementVNode(
|
|
1366
1366
|
"div",
|
|
1367
|
-
_hoisted_4,
|
|
1367
|
+
_hoisted_4$1,
|
|
1368
1368
|
toDisplayString(currentCamera.value),
|
|
1369
1369
|
1
|
|
1370
1370
|
/* TEXT */
|
|
@@ -1375,7 +1375,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1375
1375
|
size: "sm",
|
|
1376
1376
|
"is-disabled": !canSwitch.value
|
|
1377
1377
|
}, null, 8, ["is-disabled"])
|
|
1378
|
-
], 8, _hoisted_3)
|
|
1378
|
+
], 8, _hoisted_3$3)
|
|
1379
1379
|
])
|
|
1380
1380
|
],
|
|
1381
1381
|
2
|
|
@@ -1393,15 +1393,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
1395
1395
|
const CheckInScanner_vue_vue_type_style_index_0_scoped_ef426ef3_lang = "";
|
|
1396
|
-
const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1397
|
-
const _hoisted_1$
|
|
1396
|
+
const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-ef426ef3"]]);
|
|
1397
|
+
const _hoisted_1$6 = /* @__PURE__ */ createElementVNode(
|
|
1398
1398
|
"h3",
|
|
1399
1399
|
{ align: "center" },
|
|
1400
1400
|
"Presensi Berhasil!",
|
|
1401
1401
|
-1
|
|
1402
1402
|
/* HOISTED */
|
|
1403
1403
|
);
|
|
1404
|
-
const _sfc_main$
|
|
1404
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1405
1405
|
__name: "CheckInScanSuccess",
|
|
1406
1406
|
emits: ["close"],
|
|
1407
1407
|
setup(__props) {
|
|
@@ -1421,7 +1421,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1421
1421
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
|
|
1422
1422
|
}, {
|
|
1423
1423
|
default: withCtx(() => [
|
|
1424
|
-
_hoisted_1$
|
|
1424
|
+
_hoisted_1$6
|
|
1425
1425
|
]),
|
|
1426
1426
|
_: 1
|
|
1427
1427
|
/* STABLE */
|
|
@@ -1433,7 +1433,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
});
|
|
1436
|
-
const _sfc_main$
|
|
1436
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1437
1437
|
...{
|
|
1438
1438
|
name: "CheckInCollection"
|
|
1439
1439
|
},
|
|
@@ -1452,7 +1452,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1452
1452
|
}
|
|
1453
1453
|
});
|
|
1454
1454
|
const StaffModel = models$2.StaffModel;
|
|
1455
|
-
const _sfc_main$
|
|
1455
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1456
1456
|
...{
|
|
1457
1457
|
name: "StaffCollection"
|
|
1458
1458
|
},
|
|
@@ -1470,9 +1470,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1470
1470
|
};
|
|
1471
1471
|
}
|
|
1472
1472
|
});
|
|
1473
|
-
const _hoisted_1$
|
|
1474
|
-
const _hoisted_2$
|
|
1475
|
-
const _sfc_main$
|
|
1473
|
+
const _hoisted_1$5 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
|
|
1474
|
+
const _hoisted_2$5 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
1475
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1476
1476
|
__name: "StaffSingle",
|
|
1477
1477
|
setup(__props) {
|
|
1478
1478
|
const {
|
|
@@ -1509,7 +1509,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1509
1509
|
onSubmit: unref(saveOne)
|
|
1510
1510
|
}, {
|
|
1511
1511
|
default: withCtx(() => [
|
|
1512
|
-
createElementVNode("div", _hoisted_1$
|
|
1512
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
1513
1513
|
createVNode(unref(NeonField), mergeProps({
|
|
1514
1514
|
modelValue: unref(values).name,
|
|
1515
1515
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
|
|
@@ -1519,7 +1519,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1519
1519
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
|
|
1520
1520
|
}, unref(fields).nik), null, 16, ["modelValue"])
|
|
1521
1521
|
]),
|
|
1522
|
-
createElementVNode("div", _hoisted_2$
|
|
1522
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
1523
1523
|
createVNode(unref(NeonField), mergeProps({
|
|
1524
1524
|
modelValue: unref(values).birthPlace,
|
|
1525
1525
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
|
|
@@ -1552,7 +1552,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1552
1552
|
title: "Identitas"
|
|
1553
1553
|
}, {
|
|
1554
1554
|
default: withCtx(() => [
|
|
1555
|
-
createVNode(unref(_sfc_main$
|
|
1555
|
+
createVNode(unref(_sfc_main$j))
|
|
1556
1556
|
]),
|
|
1557
1557
|
_: 1
|
|
1558
1558
|
/* STABLE */
|
|
@@ -1623,10 +1623,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
const StaffSingle_vue_vue_type_style_index_0_scoped_0cf4cd99_lang = "";
|
|
1626
|
-
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1627
|
-
const _hoisted_1$
|
|
1628
|
-
const _hoisted_2$
|
|
1629
|
-
const _sfc_main$
|
|
1626
|
+
const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0cf4cd99"]]);
|
|
1627
|
+
const _hoisted_1$4 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
|
|
1628
|
+
const _hoisted_2$4 = { class: "grid gap-4 sm:grid-cols-2" };
|
|
1629
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1630
1630
|
__name: "StaffOperasional",
|
|
1631
1631
|
setup(__props) {
|
|
1632
1632
|
const {
|
|
@@ -1663,7 +1663,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1663
1663
|
onSubmit: unref(saveOne)
|
|
1664
1664
|
}, {
|
|
1665
1665
|
default: withCtx(() => [
|
|
1666
|
-
createElementVNode("div", _hoisted_1$
|
|
1666
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
1667
1667
|
createVNode(unref(NeonField), mergeProps({
|
|
1668
1668
|
modelValue: unref(values).name,
|
|
1669
1669
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
|
|
@@ -1673,7 +1673,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1673
1673
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
|
|
1674
1674
|
}, unref(fields).nik), null, 16, ["modelValue"])
|
|
1675
1675
|
]),
|
|
1676
|
-
createElementVNode("div", _hoisted_2$
|
|
1676
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
1677
1677
|
createVNode(unref(NeonField), mergeProps({
|
|
1678
1678
|
modelValue: unref(values).birthPlace,
|
|
1679
1679
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
|
|
@@ -1706,7 +1706,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1706
1706
|
title: "Identitas"
|
|
1707
1707
|
}, {
|
|
1708
1708
|
default: withCtx(() => [
|
|
1709
|
-
createVNode(unref(_sfc_main$
|
|
1709
|
+
createVNode(unref(_sfc_main$j))
|
|
1710
1710
|
]),
|
|
1711
1711
|
_: 1
|
|
1712
1712
|
/* STABLE */
|
|
@@ -1784,8 +1784,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1784
1784
|
}
|
|
1785
1785
|
});
|
|
1786
1786
|
const StaffOperasional_vue_vue_type_style_index_0_scoped_c62cf70a_lang = "";
|
|
1787
|
-
const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1788
|
-
const _sfc_main$
|
|
1787
|
+
const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c62cf70a"]]);
|
|
1788
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1789
1789
|
__name: "StaffIdentity",
|
|
1790
1790
|
setup(__props) {
|
|
1791
1791
|
const { values, saveOne, executeOne, syncOne } = useSingle();
|
|
@@ -1894,7 +1894,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1894
1894
|
}
|
|
1895
1895
|
});
|
|
1896
1896
|
const SituationModel = models$2.SituationModel;
|
|
1897
|
-
const _sfc_main$
|
|
1897
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1898
1898
|
...{ name: "SituationCollection" },
|
|
1899
1899
|
__name: "SituationCollection",
|
|
1900
1900
|
setup(__props) {
|
|
@@ -1910,7 +1910,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
1912
|
});
|
|
1913
|
-
const _sfc_main$
|
|
1913
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1914
1914
|
__name: "SituationSingle",
|
|
1915
1915
|
setup(__props) {
|
|
1916
1916
|
const {
|
|
@@ -2048,7 +2048,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
2050
2050
|
});
|
|
2051
|
-
const _sfc_main$
|
|
2051
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2052
2052
|
__name: "SituationWork",
|
|
2053
2053
|
setup(__props) {
|
|
2054
2054
|
const {
|
|
@@ -2229,7 +2229,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
2231
2231
|
});
|
|
2232
|
-
const _sfc_main$
|
|
2232
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2233
2233
|
...{ name: "SituationSupportive" },
|
|
2234
2234
|
__name: "SituationSupportive",
|
|
2235
2235
|
setup(__props) {
|
|
@@ -2368,7 +2368,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2368
2368
|
}
|
|
2369
2369
|
});
|
|
2370
2370
|
const SituationTypeModel = models$2.SituationTypeModel;
|
|
2371
|
-
const _sfc_main$
|
|
2371
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2372
2372
|
...{ name: "SituationTypeCollection" },
|
|
2373
2373
|
__name: "SituationTypeCollection",
|
|
2374
2374
|
setup(__props) {
|
|
@@ -2384,7 +2384,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
2386
|
});
|
|
2387
|
-
const _sfc_main$
|
|
2387
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2388
2388
|
__name: "SituationTypeSingle",
|
|
2389
2389
|
setup(__props) {
|
|
2390
2390
|
const {
|
|
@@ -2457,9 +2457,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2457
2457
|
}
|
|
2458
2458
|
});
|
|
2459
2459
|
const TaskModel = models$2.TaskModel;
|
|
2460
|
-
const _hoisted_1 = { key: 0 };
|
|
2461
|
-
const _hoisted_2 = { key: 1 };
|
|
2462
|
-
const _sfc_main$
|
|
2460
|
+
const _hoisted_1$3 = { key: 0 };
|
|
2461
|
+
const _hoisted_2$3 = { key: 1 };
|
|
2462
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2463
2463
|
...{ name: "TaskWorkButton" },
|
|
2464
2464
|
__name: "TaskWorkButton",
|
|
2465
2465
|
setup(__props) {
|
|
@@ -2552,7 +2552,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2552
2552
|
Fragment,
|
|
2553
2553
|
null,
|
|
2554
2554
|
[
|
|
2555
|
-
onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2555
|
+
onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2556
2556
|
createVNode(unref(NeonButton), {
|
|
2557
2557
|
"is-rounded": true,
|
|
2558
2558
|
size: "sm",
|
|
@@ -2562,7 +2562,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2562
2562
|
onClick: onClickHandlerStartTaskWork
|
|
2563
2563
|
})
|
|
2564
2564
|
])) : createCommentVNode("v-if", true),
|
|
2565
|
-
onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
2565
|
+
onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
2566
2566
|
createVNode(unref(NeonButton), {
|
|
2567
2567
|
"is-rounded": true,
|
|
2568
2568
|
size: "sm",
|
|
@@ -2580,7 +2580,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2580
2580
|
};
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
|
-
const _sfc_main$
|
|
2583
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2584
2584
|
...{ name: "TaskCollection" },
|
|
2585
2585
|
__name: "TaskCollection",
|
|
2586
2586
|
setup(__props) {
|
|
@@ -2596,7 +2596,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
2598
2598
|
});
|
|
2599
|
-
const _sfc_main$
|
|
2599
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2600
2600
|
__name: "TaskSingle",
|
|
2601
2601
|
setup(__props) {
|
|
2602
2602
|
const {
|
|
@@ -2825,7 +2825,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2825
2825
|
};
|
|
2826
2826
|
}
|
|
2827
2827
|
});
|
|
2828
|
-
const _sfc_main$
|
|
2828
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2829
2829
|
__name: "TaskWork",
|
|
2830
2830
|
setup(__props) {
|
|
2831
2831
|
const {
|
|
@@ -3058,7 +3058,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3058
3058
|
}
|
|
3059
3059
|
});
|
|
3060
3060
|
const SubmissionModel = models$2.SubmissionModel;
|
|
3061
|
-
const _sfc_main$
|
|
3061
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3062
3062
|
...{
|
|
3063
3063
|
name: "SubmissionCollection"
|
|
3064
3064
|
},
|
|
@@ -3076,7 +3076,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
});
|
|
3079
|
-
const _sfc_main$
|
|
3079
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3080
3080
|
__name: "SubmissionSingle",
|
|
3081
3081
|
setup(__props) {
|
|
3082
3082
|
const {
|
|
@@ -3273,8 +3273,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3273
3273
|
}
|
|
3274
3274
|
});
|
|
3275
3275
|
const SubmissionSingle_vue_vue_type_style_index_0_scoped_39553dbd_lang = "";
|
|
3276
|
-
const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3277
|
-
const _sfc_main$
|
|
3276
|
+
const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-39553dbd"]]);
|
|
3277
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3278
3278
|
__name: "SubmissionStaff",
|
|
3279
3279
|
setup(__props) {
|
|
3280
3280
|
var _a;
|
|
@@ -3337,9 +3337,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3337
3337
|
immediate: true
|
|
3338
3338
|
}
|
|
3339
3339
|
);
|
|
3340
|
-
const syncRaise = () => {
|
|
3341
|
-
executeOne("raiseSubmission", { submissionId: id.value });
|
|
3342
|
-
syncOne();
|
|
3340
|
+
const syncRaise = async () => {
|
|
3341
|
+
await executeOne("raiseSubmission", { submissionId: id.value });
|
|
3342
|
+
await syncOne();
|
|
3343
3343
|
};
|
|
3344
3344
|
const appStore = useAppStore();
|
|
3345
3345
|
const objectDef = computed(
|
|
@@ -3460,21 +3460,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3460
3460
|
createVNode(unref(NeonField), mergeProps({
|
|
3461
3461
|
modelValue: unref(values).preparedAt,
|
|
3462
3462
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
|
|
3463
|
-
}, unref(fields).preparedAt, {
|
|
3464
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
3465
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
3463
|
+
}, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
3466
3464
|
createVNode(unref(NeonField), mergeProps({
|
|
3467
3465
|
modelValue: unref(values).raisedAt,
|
|
3468
3466
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
|
|
3469
|
-
}, unref(fields).raisedAt, {
|
|
3470
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
3471
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
3467
|
+
}, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
3472
3468
|
createVNode(unref(NeonField), mergeProps({
|
|
3473
3469
|
modelValue: unref(values).processedAt,
|
|
3474
3470
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
|
|
3475
|
-
}, unref(fields).processedAt, {
|
|
3476
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
3477
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
3471
|
+
}, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
3478
3472
|
createVNode(unref(NeonDivider), {
|
|
3479
3473
|
"is-dashed": "",
|
|
3480
3474
|
label: "Nominal"
|
|
@@ -3551,9 +3545,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3551
3545
|
};
|
|
3552
3546
|
}
|
|
3553
3547
|
});
|
|
3554
|
-
const
|
|
3555
|
-
const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3556
|
-
const _sfc_main$
|
|
3548
|
+
const SubmissionStaff_vue_vue_type_style_index_0_scoped_3ed905bd_lang = "";
|
|
3549
|
+
const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-3ed905bd"]]);
|
|
3550
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3557
3551
|
__name: "SubmissionFollowUp",
|
|
3558
3552
|
setup(__props) {
|
|
3559
3553
|
const {
|
|
@@ -3744,8 +3738,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3744
3738
|
}
|
|
3745
3739
|
});
|
|
3746
3740
|
const SubmissionFollowUp_vue_vue_type_style_index_0_scoped_6fd14e52_lang = "";
|
|
3747
|
-
const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3748
|
-
const
|
|
3741
|
+
const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6fd14e52"]]);
|
|
3742
|
+
const _hoisted_1$2 = { class: "flex flex-wrap" };
|
|
3743
|
+
const _hoisted_2$2 = { class: "mt-2" };
|
|
3744
|
+
const _hoisted_3$2 = { class: "mt-2" };
|
|
3745
|
+
const _hoisted_4 = { class: "mt-2" };
|
|
3746
|
+
const _hoisted_5 = { class: "mt-2" };
|
|
3747
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3749
3748
|
__name: "SubmissionAudit",
|
|
3750
3749
|
setup(__props) {
|
|
3751
3750
|
var _a;
|
|
@@ -3808,21 +3807,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3808
3807
|
immediate: true
|
|
3809
3808
|
}
|
|
3810
3809
|
);
|
|
3811
|
-
const syncResolved = () => {
|
|
3812
|
-
executeOne("resolvedSubmission", { submissionId: id.value });
|
|
3813
|
-
syncOne();
|
|
3810
|
+
const syncResolved = async () => {
|
|
3811
|
+
await executeOne("resolvedSubmission", { submissionId: id.value });
|
|
3812
|
+
await syncOne();
|
|
3814
3813
|
};
|
|
3815
|
-
const syncDiscontinued = () => {
|
|
3816
|
-
executeOne("discontinuedSubmission", { submissionId: id.value });
|
|
3817
|
-
syncOne();
|
|
3814
|
+
const syncDiscontinued = async () => {
|
|
3815
|
+
await executeOne("discontinuedSubmission", { submissionId: id.value });
|
|
3816
|
+
await syncOne();
|
|
3818
3817
|
};
|
|
3819
|
-
const syncMonitored = () => {
|
|
3820
|
-
executeOne("monitoredSubmission", { submissionId: id.value });
|
|
3821
|
-
syncOne();
|
|
3818
|
+
const syncMonitored = async () => {
|
|
3819
|
+
await executeOne("monitoredSubmission", { submissionId: id.value });
|
|
3820
|
+
await syncOne();
|
|
3822
3821
|
};
|
|
3823
|
-
const syncProcessed = () => {
|
|
3824
|
-
executeOne("processedSubmission", { submissionId: id.value });
|
|
3825
|
-
syncOne();
|
|
3822
|
+
const syncProcessed = async () => {
|
|
3823
|
+
await executeOne("processedSubmission", { submissionId: id.value });
|
|
3824
|
+
await syncOne();
|
|
3826
3825
|
};
|
|
3827
3826
|
const appStore = useAppStore();
|
|
3828
3827
|
const objectDef = computed(
|
|
@@ -3849,8 +3848,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3849
3848
|
onSubmit: unref(saveOne)
|
|
3850
3849
|
}, {
|
|
3851
3850
|
default: withCtx(() => [
|
|
3852
|
-
|
|
3853
|
-
|
|
3851
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
3852
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
3854
3853
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
3855
3854
|
input: withCtx(() => [
|
|
3856
3855
|
createVNode(unref(NeonButton), {
|
|
@@ -3869,8 +3868,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3869
3868
|
]),
|
|
3870
3869
|
_: 1
|
|
3871
3870
|
/* STABLE */
|
|
3872
|
-
})) : createCommentVNode("v-if", true)
|
|
3873
|
-
|
|
3871
|
+
})) : createCommentVNode("v-if", true)
|
|
3872
|
+
]),
|
|
3873
|
+
createTextVNode(" "),
|
|
3874
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
3875
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
3874
3876
|
input: withCtx(() => [
|
|
3875
3877
|
createVNode(unref(NeonButton), {
|
|
3876
3878
|
size: "md",
|
|
@@ -3888,8 +3890,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3888
3890
|
]),
|
|
3889
3891
|
_: 1
|
|
3890
3892
|
/* STABLE */
|
|
3891
|
-
})) : createCommentVNode("v-if", true)
|
|
3892
|
-
|
|
3893
|
+
})) : createCommentVNode("v-if", true)
|
|
3894
|
+
]),
|
|
3895
|
+
createTextVNode(" "),
|
|
3896
|
+
createElementVNode("div", _hoisted_4, [
|
|
3897
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
3893
3898
|
input: withCtx(() => [
|
|
3894
3899
|
createVNode(unref(NeonButton), {
|
|
3895
3900
|
size: "md",
|
|
@@ -3907,8 +3912,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3907
3912
|
]),
|
|
3908
3913
|
_: 1
|
|
3909
3914
|
/* STABLE */
|
|
3910
|
-
})) : createCommentVNode("v-if", true)
|
|
3911
|
-
|
|
3915
|
+
})) : createCommentVNode("v-if", true)
|
|
3916
|
+
]),
|
|
3917
|
+
createTextVNode(" "),
|
|
3918
|
+
createElementVNode("div", _hoisted_5, [
|
|
3919
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
3912
3920
|
input: withCtx(() => [
|
|
3913
3921
|
createVNode(unref(NeonButton), {
|
|
3914
3922
|
size: "md",
|
|
@@ -3927,10 +3935,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3927
3935
|
_: 1
|
|
3928
3936
|
/* STABLE */
|
|
3929
3937
|
})) : createCommentVNode("v-if", true)
|
|
3930
|
-
])
|
|
3931
|
-
|
|
3932
|
-
/* STABLE */
|
|
3933
|
-
}),
|
|
3938
|
+
])
|
|
3939
|
+
]),
|
|
3934
3940
|
createVNode(unref(NeonField), mergeProps({
|
|
3935
3941
|
modelValue: unref(values).title,
|
|
3936
3942
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
|
|
@@ -4001,21 +4007,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4001
4007
|
createVNode(unref(NeonField), mergeProps({
|
|
4002
4008
|
modelValue: unref(values).preparedAt,
|
|
4003
4009
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
|
|
4004
|
-
}, unref(fields).preparedAt, {
|
|
4005
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4006
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4010
|
+
}, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4007
4011
|
createVNode(unref(NeonField), mergeProps({
|
|
4008
4012
|
modelValue: unref(values).raisedAt,
|
|
4009
4013
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
|
|
4010
|
-
}, unref(fields).raisedAt, {
|
|
4011
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4012
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4014
|
+
}, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4013
4015
|
createVNode(unref(NeonField), mergeProps({
|
|
4014
4016
|
modelValue: unref(values).processedAt,
|
|
4015
4017
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
|
|
4016
|
-
}, unref(fields).processedAt, {
|
|
4017
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4018
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4018
|
+
}, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4019
4019
|
createVNode(unref(NeonDivider), {
|
|
4020
4020
|
"is-dashed": "",
|
|
4021
4021
|
label: "Nominal"
|
|
@@ -4092,9 +4092,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4092
4092
|
};
|
|
4093
4093
|
}
|
|
4094
4094
|
});
|
|
4095
|
-
const
|
|
4096
|
-
const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4097
|
-
const
|
|
4095
|
+
const SubmissionAudit_vue_vue_type_style_index_0_scoped_da41fc59_lang = "";
|
|
4096
|
+
const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-da41fc59"]]);
|
|
4097
|
+
const _hoisted_1$1 = { class: "flex flex-wrap" };
|
|
4098
|
+
const _hoisted_2$1 = { class: "mt-2" };
|
|
4099
|
+
const _hoisted_3$1 = { class: "mt-2" };
|
|
4100
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4098
4101
|
__name: "SubmissionDecision",
|
|
4099
4102
|
setup(__props) {
|
|
4100
4103
|
var _a;
|
|
@@ -4157,21 +4160,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4157
4160
|
immediate: true
|
|
4158
4161
|
}
|
|
4159
4162
|
);
|
|
4160
|
-
const syncDelay = () => {
|
|
4163
|
+
const syncDelay = async () => {
|
|
4161
4164
|
var _a2;
|
|
4162
|
-
executeOne("delaySubmission", {
|
|
4165
|
+
await executeOne("delaySubmission", {
|
|
4163
4166
|
submissionId: id.value,
|
|
4164
4167
|
staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
|
|
4165
4168
|
});
|
|
4166
|
-
syncOne();
|
|
4169
|
+
await syncOne();
|
|
4167
4170
|
};
|
|
4168
|
-
const syncApproved = () => {
|
|
4171
|
+
const syncApproved = async () => {
|
|
4169
4172
|
var _a2;
|
|
4170
|
-
executeOne("approvedSubmission", {
|
|
4173
|
+
await executeOne("approvedSubmission", {
|
|
4171
4174
|
submissionId: id.value,
|
|
4172
4175
|
staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
|
|
4173
4176
|
});
|
|
4174
|
-
syncOne();
|
|
4177
|
+
await syncOne();
|
|
4175
4178
|
};
|
|
4176
4179
|
const appStore = useAppStore();
|
|
4177
4180
|
const objectDef = computed(
|
|
@@ -4198,50 +4201,374 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4198
4201
|
onSubmit: unref(saveOne)
|
|
4199
4202
|
}, {
|
|
4200
4203
|
default: withCtx(() => [
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4204
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
4205
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
4206
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4207
|
+
input: withCtx(() => {
|
|
4208
|
+
var _a2, _b;
|
|
4209
|
+
return [
|
|
4210
|
+
createVNode(unref(NeonButton), {
|
|
4211
|
+
size: "md",
|
|
4212
|
+
color: "danger",
|
|
4213
|
+
"icon-left": "circle-stop",
|
|
4214
|
+
"is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).delayStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
4215
|
+
onClick: syncDelay
|
|
4216
|
+
}, {
|
|
4217
|
+
default: withCtx(() => [
|
|
4218
|
+
createTextVNode("Ditunda")
|
|
4219
|
+
]),
|
|
4220
|
+
_: 1
|
|
4221
|
+
/* STABLE */
|
|
4222
|
+
}, 8, ["is-disabled"])
|
|
4223
|
+
];
|
|
4224
|
+
}),
|
|
4225
|
+
_: 1
|
|
4226
|
+
/* STABLE */
|
|
4227
|
+
})) : createCommentVNode("v-if", true)
|
|
4228
|
+
]),
|
|
4229
|
+
createTextVNode(" "),
|
|
4230
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
4231
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4232
|
+
input: withCtx(() => {
|
|
4233
|
+
var _a2, _b;
|
|
4234
|
+
return [
|
|
4235
|
+
createVNode(unref(NeonButton), {
|
|
4236
|
+
size: "md",
|
|
4237
|
+
color: "success",
|
|
4238
|
+
"icon-left": "list-check",
|
|
4239
|
+
"is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).agreedStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
4240
|
+
onClick: syncApproved
|
|
4241
|
+
}, {
|
|
4242
|
+
default: withCtx(() => [
|
|
4243
|
+
createTextVNode("Disetujui")
|
|
4244
|
+
]),
|
|
4245
|
+
_: 1
|
|
4246
|
+
/* STABLE */
|
|
4247
|
+
}, 8, ["is-disabled"])
|
|
4248
|
+
];
|
|
4249
|
+
}),
|
|
4250
|
+
_: 1
|
|
4251
|
+
/* STABLE */
|
|
4252
|
+
})) : createCommentVNode("v-if", true)
|
|
4253
|
+
])
|
|
4254
|
+
]),
|
|
4255
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4256
|
+
modelValue: unref(values).title,
|
|
4257
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
|
|
4258
|
+
}, unref(fields).title, {
|
|
4259
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4260
|
+
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4261
|
+
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
4262
|
+
default: withCtx(() => [
|
|
4263
|
+
createVNode(unref(OfficeRelation), {
|
|
4264
|
+
modelValue: unref(values),
|
|
4265
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4266
|
+
field: unref(fields).branches,
|
|
4267
|
+
query: unref(Query).define(branchOptions.value),
|
|
4268
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4269
|
+
}, null, 8, ["modelValue", "field", "query", "is-disabled"]),
|
|
4270
|
+
createVNode(unref(OfficeRelation), {
|
|
4271
|
+
modelValue: unref(values),
|
|
4272
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4273
|
+
field: unref(fields).type,
|
|
4274
|
+
query: unref(Query).define(typeOptions.value),
|
|
4275
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4276
|
+
}, null, 8, ["modelValue", "field", "query", "is-disabled"])
|
|
4277
|
+
]),
|
|
4220
4278
|
_: 1
|
|
4221
4279
|
/* STABLE */
|
|
4222
|
-
})
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
/* STABLE */
|
|
4239
|
-
}, 8, ["is-disabled"])
|
|
4240
|
-
];
|
|
4241
|
-
}),
|
|
4280
|
+
}),
|
|
4281
|
+
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
4282
|
+
default: withCtx(() => [
|
|
4283
|
+
createVNode(unref(OfficeRelation), {
|
|
4284
|
+
modelValue: unref(values),
|
|
4285
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4286
|
+
field: unref(fields).submissionStaffs,
|
|
4287
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4288
|
+
}, null, 8, ["modelValue", "field", "is-disabled"]),
|
|
4289
|
+
createVNode(unref(OfficeRelation), {
|
|
4290
|
+
modelValue: unref(values),
|
|
4291
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4292
|
+
field: unref(fields).raiseStaffs,
|
|
4293
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4294
|
+
}, null, 8, ["modelValue", "field", "is-disabled"])
|
|
4295
|
+
]),
|
|
4242
4296
|
_: 1
|
|
4243
4297
|
/* STABLE */
|
|
4244
|
-
})
|
|
4298
|
+
}),
|
|
4299
|
+
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
4300
|
+
default: withCtx(() => [
|
|
4301
|
+
createVNode(unref(OfficeRelation), {
|
|
4302
|
+
modelValue: unref(values),
|
|
4303
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4304
|
+
field: unref(fields).decideStaffs,
|
|
4305
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4306
|
+
}, null, 8, ["modelValue", "field", "is-disabled"]),
|
|
4307
|
+
createVNode(unref(OfficeRelation), {
|
|
4308
|
+
modelValue: unref(values),
|
|
4309
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4310
|
+
field: unref(fields).followUpStaffs
|
|
4311
|
+
}, null, 8, ["modelValue", "field"])
|
|
4312
|
+
]),
|
|
4313
|
+
_: 1
|
|
4314
|
+
/* STABLE */
|
|
4315
|
+
}),
|
|
4316
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4317
|
+
modelValue: unref(values).specifications,
|
|
4318
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).specifications = $event)
|
|
4319
|
+
}, unref(fields).specifications, {
|
|
4320
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4321
|
+
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4322
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4323
|
+
modelValue: unref(values).preparedAt,
|
|
4324
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
|
|
4325
|
+
}, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4326
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4327
|
+
modelValue: unref(values).raisedAt,
|
|
4328
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
|
|
4329
|
+
}, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4330
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4331
|
+
modelValue: unref(values).processedAt,
|
|
4332
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
|
|
4333
|
+
}, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4334
|
+
createVNode(unref(NeonDivider), {
|
|
4335
|
+
"is-dashed": "",
|
|
4336
|
+
label: "Nominal"
|
|
4337
|
+
}),
|
|
4338
|
+
createVNode(unref(NeonField), mergeProps({
|
|
4339
|
+
modelValue: unref(values).nominal,
|
|
4340
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).nominal = $event)
|
|
4341
|
+
}, unref(fields).nominal, {
|
|
4342
|
+
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4343
|
+
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4344
|
+
createVNode(unref(NeonDivider), {
|
|
4345
|
+
"is-dashed": "",
|
|
4346
|
+
label: "Keputusan"
|
|
4347
|
+
}),
|
|
4348
|
+
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
4349
|
+
default: withCtx(() => [
|
|
4350
|
+
createVNode(unref(OfficeRelation), {
|
|
4351
|
+
modelValue: unref(values),
|
|
4352
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4353
|
+
field: unref(fields).delayStaffs,
|
|
4354
|
+
"is-disabled": ""
|
|
4355
|
+
}, null, 8, ["modelValue", "field"]),
|
|
4356
|
+
createVNode(unref(OfficeRelation), {
|
|
4357
|
+
modelValue: unref(values),
|
|
4358
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(values) ? values.value = $event : null),
|
|
4359
|
+
field: unref(fields).agreedStaffs,
|
|
4360
|
+
"is-disabled": ""
|
|
4361
|
+
}, null, 8, ["modelValue", "field"])
|
|
4362
|
+
]),
|
|
4363
|
+
_: 1
|
|
4364
|
+
/* STABLE */
|
|
4365
|
+
})
|
|
4366
|
+
]),
|
|
4367
|
+
_: 1
|
|
4368
|
+
/* STABLE */
|
|
4369
|
+
}, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
|
|
4370
|
+
]),
|
|
4371
|
+
_: 1
|
|
4372
|
+
/* STABLE */
|
|
4373
|
+
}),
|
|
4374
|
+
createCommentVNode(" DOKUMEN "),
|
|
4375
|
+
!unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
|
|
4376
|
+
key: 0,
|
|
4377
|
+
handle: "dokumen",
|
|
4378
|
+
icon: "circle-info",
|
|
4379
|
+
title: "Dokumen"
|
|
4380
|
+
}, {
|
|
4381
|
+
default: withCtx(({ isTouched }) => [
|
|
4382
|
+
createVNode(
|
|
4383
|
+
unref(CatatSketchPad),
|
|
4384
|
+
normalizeProps(guardReactiveProps({
|
|
4385
|
+
applicationId: unref(appStore).appId,
|
|
4386
|
+
object: `${objectDef.value}:office`,
|
|
4387
|
+
isReady: unref(isReady) && isTouched,
|
|
4388
|
+
isLoading: unref(isLoading),
|
|
4389
|
+
isReadonly: unref(values).status === "raised" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4390
|
+
})),
|
|
4391
|
+
null,
|
|
4392
|
+
16
|
|
4393
|
+
/* FULL_PROPS */
|
|
4394
|
+
)
|
|
4395
|
+
]),
|
|
4396
|
+
_: 1
|
|
4397
|
+
/* STABLE */
|
|
4398
|
+
})) : createCommentVNode("v-if", true)
|
|
4399
|
+
]),
|
|
4400
|
+
_: 1
|
|
4401
|
+
/* STABLE */
|
|
4402
|
+
}, 8, ["use-url"])
|
|
4403
|
+
]),
|
|
4404
|
+
_: 1
|
|
4405
|
+
/* STABLE */
|
|
4406
|
+
});
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
const SubmissionDecision_vue_vue_type_style_index_0_scoped_ec347ac5_lang = "";
|
|
4411
|
+
const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-ec347ac5"]]);
|
|
4412
|
+
const _hoisted_1 = { class: "flex flex-wrap" };
|
|
4413
|
+
const _hoisted_2 = { class: "mt-2" };
|
|
4414
|
+
const _hoisted_3 = { class: "mt-2" };
|
|
4415
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4416
|
+
__name: "SubmissionWaitingDecision",
|
|
4417
|
+
setup(__props) {
|
|
4418
|
+
var _a;
|
|
4419
|
+
const {
|
|
4420
|
+
fields,
|
|
4421
|
+
id,
|
|
4422
|
+
initialValues,
|
|
4423
|
+
values,
|
|
4424
|
+
isLoading,
|
|
4425
|
+
isChanged,
|
|
4426
|
+
isReady,
|
|
4427
|
+
isMain,
|
|
4428
|
+
isNew,
|
|
4429
|
+
syncOne,
|
|
4430
|
+
saveOne,
|
|
4431
|
+
discardChanges,
|
|
4432
|
+
executeOne
|
|
4433
|
+
} = useSingle();
|
|
4434
|
+
const { staff } = useOperasional();
|
|
4435
|
+
const branchOptions = computed(() => {
|
|
4436
|
+
var _a2;
|
|
4437
|
+
return {
|
|
4438
|
+
filter: [
|
|
4439
|
+
{
|
|
4440
|
+
handle: "_id",
|
|
4441
|
+
operator: "in",
|
|
4442
|
+
value: (_a2 = staff.value) == null ? void 0 : _a2.branchIds
|
|
4443
|
+
}
|
|
4444
|
+
]
|
|
4445
|
+
};
|
|
4446
|
+
});
|
|
4447
|
+
const typeOptions = computed(() => {
|
|
4448
|
+
return {
|
|
4449
|
+
filter: [
|
|
4450
|
+
{
|
|
4451
|
+
handle: "branchIds",
|
|
4452
|
+
operator: "in",
|
|
4453
|
+
value: values.value.branchIds
|
|
4454
|
+
}
|
|
4455
|
+
]
|
|
4456
|
+
};
|
|
4457
|
+
});
|
|
4458
|
+
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
4459
|
+
watch(
|
|
4460
|
+
isNew,
|
|
4461
|
+
(isNew2) => {
|
|
4462
|
+
var _a2;
|
|
4463
|
+
if (!isNew2)
|
|
4464
|
+
return;
|
|
4465
|
+
values.value.preparedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
4466
|
+
values.value.submissionStaffIds = [staffId];
|
|
4467
|
+
values.value.submissionStaffs = [
|
|
4468
|
+
{
|
|
4469
|
+
id: staffId,
|
|
4470
|
+
flag: (_a2 = staff.value) == null ? void 0 : _a2.flag
|
|
4471
|
+
}
|
|
4472
|
+
];
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
immediate: true
|
|
4476
|
+
}
|
|
4477
|
+
);
|
|
4478
|
+
const syncDelay = async () => {
|
|
4479
|
+
var _a2;
|
|
4480
|
+
await executeOne("delaySubmission", {
|
|
4481
|
+
submissionId: id.value,
|
|
4482
|
+
staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
|
|
4483
|
+
});
|
|
4484
|
+
await syncOne();
|
|
4485
|
+
window.location.href = "/pengajuan/waiting-decision-submission";
|
|
4486
|
+
};
|
|
4487
|
+
const syncApproved = async () => {
|
|
4488
|
+
var _a2;
|
|
4489
|
+
await executeOne("approvedSubmission", {
|
|
4490
|
+
submissionId: id.value,
|
|
4491
|
+
staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
|
|
4492
|
+
});
|
|
4493
|
+
await syncOne();
|
|
4494
|
+
window.location.href = "/pengajuan/waiting-decision-submission";
|
|
4495
|
+
};
|
|
4496
|
+
const appStore = useAppStore();
|
|
4497
|
+
const objectDef = computed(
|
|
4498
|
+
() => `neu:operasional:submission:${id.value}`
|
|
4499
|
+
);
|
|
4500
|
+
return (_ctx, _cache) => {
|
|
4501
|
+
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-single" }, {
|
|
4502
|
+
default: withCtx(() => [
|
|
4503
|
+
createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
|
|
4504
|
+
default: withCtx(() => [
|
|
4505
|
+
createVNode(unref(OfficeTab), {
|
|
4506
|
+
handle: "info",
|
|
4507
|
+
icon: "circle-info",
|
|
4508
|
+
title: "Info"
|
|
4509
|
+
}, {
|
|
4510
|
+
default: withCtx(() => [
|
|
4511
|
+
createVNode(unref(NeonForm), {
|
|
4512
|
+
handle: "info",
|
|
4513
|
+
"initial-values": unref(initialValues),
|
|
4514
|
+
"is-loading": unref(isLoading),
|
|
4515
|
+
"is-changed": unref(isChanged),
|
|
4516
|
+
"use-unsaved": "",
|
|
4517
|
+
onCancel: unref(discardChanges),
|
|
4518
|
+
onSubmit: unref(saveOne)
|
|
4519
|
+
}, {
|
|
4520
|
+
default: withCtx(() => [
|
|
4521
|
+
createElementVNode("div", _hoisted_1, [
|
|
4522
|
+
createElementVNode("div", _hoisted_2, [
|
|
4523
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4524
|
+
input: withCtx(() => {
|
|
4525
|
+
var _a2, _b;
|
|
4526
|
+
return [
|
|
4527
|
+
createVNode(unref(NeonButton), {
|
|
4528
|
+
size: "md",
|
|
4529
|
+
color: "danger",
|
|
4530
|
+
"icon-left": "circle-stop",
|
|
4531
|
+
"is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).delayStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
4532
|
+
onClick: syncDelay
|
|
4533
|
+
}, {
|
|
4534
|
+
default: withCtx(() => [
|
|
4535
|
+
createTextVNode("Ditunda")
|
|
4536
|
+
]),
|
|
4537
|
+
_: 1
|
|
4538
|
+
/* STABLE */
|
|
4539
|
+
}, 8, ["is-disabled"])
|
|
4540
|
+
];
|
|
4541
|
+
}),
|
|
4542
|
+
_: 1
|
|
4543
|
+
/* STABLE */
|
|
4544
|
+
})) : createCommentVNode("v-if", true)
|
|
4545
|
+
]),
|
|
4546
|
+
createTextVNode(" "),
|
|
4547
|
+
createElementVNode("div", _hoisted_3, [
|
|
4548
|
+
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
4549
|
+
input: withCtx(() => {
|
|
4550
|
+
var _a2, _b;
|
|
4551
|
+
return [
|
|
4552
|
+
createVNode(unref(NeonButton), {
|
|
4553
|
+
size: "md",
|
|
4554
|
+
color: "success",
|
|
4555
|
+
"icon-left": "list-check",
|
|
4556
|
+
"is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).agreedStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
4557
|
+
onClick: syncApproved
|
|
4558
|
+
}, {
|
|
4559
|
+
default: withCtx(() => [
|
|
4560
|
+
createTextVNode("Disetujui")
|
|
4561
|
+
]),
|
|
4562
|
+
_: 1
|
|
4563
|
+
/* STABLE */
|
|
4564
|
+
}, 8, ["is-disabled"])
|
|
4565
|
+
];
|
|
4566
|
+
}),
|
|
4567
|
+
_: 1
|
|
4568
|
+
/* STABLE */
|
|
4569
|
+
})) : createCommentVNode("v-if", true)
|
|
4570
|
+
])
|
|
4571
|
+
]),
|
|
4245
4572
|
createVNode(unref(NeonField), mergeProps({
|
|
4246
4573
|
modelValue: unref(values).title,
|
|
4247
4574
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
|
|
@@ -4312,21 +4639,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4312
4639
|
createVNode(unref(NeonField), mergeProps({
|
|
4313
4640
|
modelValue: unref(values).preparedAt,
|
|
4314
4641
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
|
|
4315
|
-
}, unref(fields).preparedAt, {
|
|
4316
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4317
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4642
|
+
}, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4318
4643
|
createVNode(unref(NeonField), mergeProps({
|
|
4319
4644
|
modelValue: unref(values).raisedAt,
|
|
4320
4645
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
|
|
4321
|
-
}, unref(fields).raisedAt, {
|
|
4322
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4323
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4646
|
+
}, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4324
4647
|
createVNode(unref(NeonField), mergeProps({
|
|
4325
4648
|
modelValue: unref(values).processedAt,
|
|
4326
4649
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
|
|
4327
|
-
}, unref(fields).processedAt, {
|
|
4328
|
-
"is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
|
|
4329
|
-
}), null, 16, ["modelValue", "is-disabled"]),
|
|
4650
|
+
}, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
|
|
4330
4651
|
createVNode(unref(NeonDivider), {
|
|
4331
4652
|
"is-dashed": "",
|
|
4332
4653
|
label: "Nominal"
|
|
@@ -4403,8 +4724,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4403
4724
|
};
|
|
4404
4725
|
}
|
|
4405
4726
|
});
|
|
4406
|
-
const
|
|
4407
|
-
const
|
|
4727
|
+
const SubmissionWaitingDecision_vue_vue_type_style_index_0_scoped_051b2194_lang = "";
|
|
4728
|
+
const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-051b2194"]]);
|
|
4408
4729
|
const SubmissionTypeModel = models$2.SubmissionTypeModel;
|
|
4409
4730
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4410
4731
|
...{
|
|
@@ -4494,30 +4815,30 @@ const SubmissionTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId
|
|
|
4494
4815
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4495
4816
|
__proto__: null,
|
|
4496
4817
|
CheckInAccess,
|
|
4497
|
-
CheckInCollection: _sfc_main$
|
|
4818
|
+
CheckInCollection: _sfc_main$n,
|
|
4498
4819
|
CheckInExternal,
|
|
4499
4820
|
CheckInModel,
|
|
4500
4821
|
CheckInPresenceCollection,
|
|
4501
|
-
CheckInScanError: _sfc_main$
|
|
4502
|
-
CheckInScanSuccess: _sfc_main$
|
|
4822
|
+
CheckInScanError: _sfc_main$q,
|
|
4823
|
+
CheckInScanSuccess: _sfc_main$o,
|
|
4503
4824
|
CheckInScanner,
|
|
4504
4825
|
CheckInSingle,
|
|
4505
4826
|
OperasionalIdentitas,
|
|
4506
|
-
SituationCollection: _sfc_main$
|
|
4827
|
+
SituationCollection: _sfc_main$i,
|
|
4507
4828
|
SituationModel,
|
|
4508
|
-
SituationSingle: _sfc_main$
|
|
4509
|
-
SituationSupportive: _sfc_main$
|
|
4510
|
-
SituationTypeCollection: _sfc_main$
|
|
4829
|
+
SituationSingle: _sfc_main$h,
|
|
4830
|
+
SituationSupportive: _sfc_main$f,
|
|
4831
|
+
SituationTypeCollection: _sfc_main$e,
|
|
4511
4832
|
SituationTypeModel,
|
|
4512
|
-
SituationTypeSingle: _sfc_main$
|
|
4513
|
-
SituationWork: _sfc_main$
|
|
4514
|
-
StaffCollection: _sfc_main$
|
|
4515
|
-
StaffIdentity: _sfc_main$
|
|
4833
|
+
SituationTypeSingle: _sfc_main$d,
|
|
4834
|
+
SituationWork: _sfc_main$g,
|
|
4835
|
+
StaffCollection: _sfc_main$m,
|
|
4836
|
+
StaffIdentity: _sfc_main$j,
|
|
4516
4837
|
StaffModel,
|
|
4517
4838
|
StaffOperasional,
|
|
4518
4839
|
StaffSingle,
|
|
4519
4840
|
SubmissionAudit,
|
|
4520
|
-
SubmissionCollection: _sfc_main$
|
|
4841
|
+
SubmissionCollection: _sfc_main$8,
|
|
4521
4842
|
SubmissionDecision,
|
|
4522
4843
|
SubmissionFollowUp,
|
|
4523
4844
|
SubmissionModel,
|
|
@@ -4526,12 +4847,13 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4526
4847
|
SubmissionTypeCollection: _sfc_main$1,
|
|
4527
4848
|
SubmissionTypeModel,
|
|
4528
4849
|
SubmissionTypeSingle,
|
|
4529
|
-
|
|
4850
|
+
SubmissionWaitingDecision,
|
|
4851
|
+
TaskCollection: _sfc_main$b,
|
|
4530
4852
|
TaskModel,
|
|
4531
|
-
TaskSingle: _sfc_main$
|
|
4532
|
-
TaskWork: _sfc_main$
|
|
4533
|
-
TaskWorkButton: _sfc_main$
|
|
4534
|
-
XxxButton: _sfc_main$
|
|
4853
|
+
TaskSingle: _sfc_main$a,
|
|
4854
|
+
TaskWork: _sfc_main$9,
|
|
4855
|
+
TaskWorkButton: _sfc_main$c,
|
|
4856
|
+
XxxButton: _sfc_main$w
|
|
4535
4857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4536
4858
|
function registerComponents(app) {
|
|
4537
4859
|
Object.entries(components).forEach(([name, component]) => {
|
|
@@ -4548,33 +4870,33 @@ const OperasionalInterfacesPlugin = {
|
|
|
4548
4870
|
};
|
|
4549
4871
|
export {
|
|
4550
4872
|
CheckInAccess,
|
|
4551
|
-
_sfc_main$
|
|
4873
|
+
_sfc_main$n as CheckInCollection,
|
|
4552
4874
|
CheckInExternal,
|
|
4553
4875
|
CheckInModel,
|
|
4554
4876
|
CheckInPresenceCollection,
|
|
4555
|
-
_sfc_main$
|
|
4556
|
-
_sfc_main$
|
|
4877
|
+
_sfc_main$q as CheckInScanError,
|
|
4878
|
+
_sfc_main$o as CheckInScanSuccess,
|
|
4557
4879
|
CheckInScanner,
|
|
4558
4880
|
CheckInSingle,
|
|
4559
4881
|
operasional_types as NOperasional,
|
|
4560
4882
|
OperasionalIdentitas,
|
|
4561
4883
|
OperasionalInterfacesPlugin,
|
|
4562
4884
|
graphql as Schema,
|
|
4563
|
-
_sfc_main$
|
|
4885
|
+
_sfc_main$i as SituationCollection,
|
|
4564
4886
|
SituationModel,
|
|
4565
|
-
_sfc_main$
|
|
4566
|
-
_sfc_main$
|
|
4567
|
-
_sfc_main$
|
|
4887
|
+
_sfc_main$h as SituationSingle,
|
|
4888
|
+
_sfc_main$f as SituationSupportive,
|
|
4889
|
+
_sfc_main$e as SituationTypeCollection,
|
|
4568
4890
|
SituationTypeModel,
|
|
4569
|
-
_sfc_main$
|
|
4570
|
-
_sfc_main$
|
|
4571
|
-
_sfc_main$
|
|
4572
|
-
_sfc_main$
|
|
4891
|
+
_sfc_main$d as SituationTypeSingle,
|
|
4892
|
+
_sfc_main$g as SituationWork,
|
|
4893
|
+
_sfc_main$m as StaffCollection,
|
|
4894
|
+
_sfc_main$j as StaffIdentity,
|
|
4573
4895
|
StaffModel,
|
|
4574
4896
|
StaffOperasional,
|
|
4575
4897
|
StaffSingle,
|
|
4576
4898
|
SubmissionAudit,
|
|
4577
|
-
_sfc_main$
|
|
4899
|
+
_sfc_main$8 as SubmissionCollection,
|
|
4578
4900
|
SubmissionDecision,
|
|
4579
4901
|
SubmissionFollowUp,
|
|
4580
4902
|
SubmissionModel,
|
|
@@ -4583,12 +4905,13 @@ export {
|
|
|
4583
4905
|
_sfc_main$1 as SubmissionTypeCollection,
|
|
4584
4906
|
SubmissionTypeModel,
|
|
4585
4907
|
SubmissionTypeSingle,
|
|
4586
|
-
|
|
4908
|
+
SubmissionWaitingDecision,
|
|
4909
|
+
_sfc_main$b as TaskCollection,
|
|
4587
4910
|
TaskModel,
|
|
4588
|
-
_sfc_main$
|
|
4589
|
-
_sfc_main$
|
|
4590
|
-
_sfc_main$
|
|
4591
|
-
_sfc_main$
|
|
4911
|
+
_sfc_main$a as TaskSingle,
|
|
4912
|
+
_sfc_main$9 as TaskWork,
|
|
4913
|
+
_sfc_main$c as TaskWorkButton,
|
|
4914
|
+
_sfc_main$w as XxxButton,
|
|
4592
4915
|
bus,
|
|
4593
4916
|
useAttendanceStore,
|
|
4594
4917
|
useOperasional,
|