@neutron.co.id/operasional-interfaces 1.12.1 → 1.12.4
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 +96 -46
- package/build/index.mjs +96 -46
- package/build/mock/index.cjs +96 -46
- package/build/mock/index.mjs +96 -46
- package/build/mock/style.css +6 -6
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/build/office/index.cjs +96 -46
- package/build/office/index.mjs +96 -46
- package/build/office/style.css +6 -6
- package/build/style.css +6 -6
- package/package.json +4 -4
package/build/mock/index.mjs
CHANGED
|
@@ -20646,7 +20646,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20646
20646
|
discardChanges
|
|
20647
20647
|
} = useSingle();
|
|
20648
20648
|
useRoute();
|
|
20649
|
-
|
|
20649
|
+
usePermit();
|
|
20650
20650
|
const { staff } = useOperasional$1();
|
|
20651
20651
|
const { coords } = useGeolocation();
|
|
20652
20652
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
@@ -20710,11 +20710,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20710
20710
|
modelValue: unref(values),
|
|
20711
20711
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
|
|
20712
20712
|
field: unref(fields).staff,
|
|
20713
|
-
"is-disabled":
|
|
20714
|
-
"neu:cabangOperasional",
|
|
20715
|
-
"neu:admin",
|
|
20716
|
-
"neu:karyawan"
|
|
20717
|
-
])
|
|
20713
|
+
"is-disabled": unref(values).type === "in" || unref(values).type === "out" || unref(values).type === "home" || unref(values).type === "checkpoint"
|
|
20718
20714
|
}, null, 8, ["modelValue", "field", "is-disabled"]),
|
|
20719
20715
|
createVNode(unref(NeonField), mergeProps({
|
|
20720
20716
|
modelValue: unref(values).note,
|
|
@@ -20739,7 +20735,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
20739
20735
|
};
|
|
20740
20736
|
}
|
|
20741
20737
|
});
|
|
20742
|
-
const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-
|
|
20738
|
+
const CheckInExternal = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-44977e6b"]]);
|
|
20743
20739
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-aaabd996"), n = n(), popScopeId(), n);
|
|
20744
20740
|
const _hoisted_1$j = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
20745
20741
|
"h4",
|
|
@@ -24023,6 +24019,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
24023
24019
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
24024
24020
|
__name: "ResponsibilitySingle",
|
|
24025
24021
|
setup(__props) {
|
|
24022
|
+
var _a, _b;
|
|
24026
24023
|
const {
|
|
24027
24024
|
fields,
|
|
24028
24025
|
id,
|
|
@@ -24049,13 +24046,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24049
24046
|
};
|
|
24050
24047
|
});
|
|
24051
24048
|
const branchOptions = computed(() => {
|
|
24052
|
-
var
|
|
24049
|
+
var _a2;
|
|
24053
24050
|
return {
|
|
24054
24051
|
filter: [
|
|
24055
24052
|
{
|
|
24056
24053
|
handle: "_id",
|
|
24057
24054
|
operator: "in",
|
|
24058
|
-
value: (
|
|
24055
|
+
value: (_a2 = staff.value) == null ? void 0 : _a2.branchIds
|
|
24059
24056
|
}
|
|
24060
24057
|
]
|
|
24061
24058
|
};
|
|
@@ -24071,6 +24068,19 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24071
24068
|
]
|
|
24072
24069
|
};
|
|
24073
24070
|
});
|
|
24071
|
+
const branchId = ((_a = staff.value) == null ? void 0 : _a.branchIds) || [];
|
|
24072
|
+
const branchDisplay = ((_b = staff.value) == null ? void 0 : _b.branches) || [];
|
|
24073
|
+
watch(isNew, setInitialValues, { immediate: true });
|
|
24074
|
+
async function setInitialValues() {
|
|
24075
|
+
var _a2;
|
|
24076
|
+
if (!isNew.value)
|
|
24077
|
+
return;
|
|
24078
|
+
await PromiseUtil.wait(1e3);
|
|
24079
|
+
if ((_a2 = staff.value) == null ? void 0 : _a2.branchIds) {
|
|
24080
|
+
values.value.branchIds = [branchId[0]];
|
|
24081
|
+
values.value.branches = [branchDisplay[0]];
|
|
24082
|
+
}
|
|
24083
|
+
}
|
|
24074
24084
|
return (_ctx, _cache) => {
|
|
24075
24085
|
return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-single" }, {
|
|
24076
24086
|
default: withCtx(() => [
|
|
@@ -24196,7 +24206,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24196
24206
|
title: "Progress"
|
|
24197
24207
|
}, {
|
|
24198
24208
|
default: withCtx(() => {
|
|
24199
|
-
var
|
|
24209
|
+
var _a2;
|
|
24200
24210
|
return [
|
|
24201
24211
|
createVNode(unref(OfficeCollectionRelated), {
|
|
24202
24212
|
definition: "neu:personalia:progress",
|
|
@@ -24226,7 +24236,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24226
24236
|
"initial-values": {
|
|
24227
24237
|
responsibilityIds: unref(id),
|
|
24228
24238
|
responsibilities: unref(values),
|
|
24229
|
-
staffIds: (
|
|
24239
|
+
staffIds: (_a2 = unref(staff)) == null ? void 0 : _a2.id,
|
|
24230
24240
|
staffs: unref(staff)
|
|
24231
24241
|
}
|
|
24232
24242
|
}, null, 8, ["query", "is-ready", "initial-values"])
|
|
@@ -24246,7 +24256,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24246
24256
|
};
|
|
24247
24257
|
}
|
|
24248
24258
|
});
|
|
24249
|
-
const ResponsibilitySingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-
|
|
24259
|
+
const ResponsibilitySingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-23c57dc8"]]);
|
|
24250
24260
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
24251
24261
|
...{
|
|
24252
24262
|
name: "ResponsibilityTypeCollection"
|
|
@@ -25639,7 +25649,7 @@ const SubmissionDetailTab = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scop
|
|
|
25639
25649
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
25640
25650
|
__name: "SubmissionStaff",
|
|
25641
25651
|
setup(__props) {
|
|
25642
|
-
var _a;
|
|
25652
|
+
var _a, _b, _c;
|
|
25643
25653
|
const {
|
|
25644
25654
|
fields,
|
|
25645
25655
|
id,
|
|
@@ -25713,20 +25723,30 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25713
25723
|
};
|
|
25714
25724
|
});
|
|
25715
25725
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
25726
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
25727
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
25716
25728
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
25717
25729
|
async function setDefaultValues() {
|
|
25718
|
-
var _a2;
|
|
25730
|
+
var _a2, _b2, _c2;
|
|
25719
25731
|
if (!isNew.value)
|
|
25720
25732
|
return;
|
|
25721
25733
|
await PromiseUtil.wait(500);
|
|
25722
25734
|
const defaultValues = {
|
|
25723
25735
|
submissionStaffIds: [staffId],
|
|
25724
25736
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
25737
|
+
branchIds: [branchIds[0]],
|
|
25738
|
+
branches: [branchDisplay[0]],
|
|
25725
25739
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
25726
25740
|
};
|
|
25727
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
25728
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
25729
25741
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
25742
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
25743
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
25744
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
25745
|
+
}
|
|
25746
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
25747
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
25748
|
+
values.value.branches = defaultValues.branches;
|
|
25749
|
+
}
|
|
25730
25750
|
}
|
|
25731
25751
|
const syncRaise = async () => {
|
|
25732
25752
|
var _a2;
|
|
@@ -25759,13 +25779,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25759
25779
|
default: withCtx(() => [
|
|
25760
25780
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
25761
25781
|
input: withCtx(() => {
|
|
25762
|
-
var _a2,
|
|
25782
|
+
var _a2, _b2;
|
|
25763
25783
|
return [
|
|
25764
25784
|
createVNode(unref(NeonButton), {
|
|
25765
25785
|
size: "md",
|
|
25766
25786
|
color: "dark",
|
|
25767
25787
|
"icon-left": "arrow-up-from-line",
|
|
25768
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || !unref(values).agreedStaffs || !unref(values).branches || !unref(values).decideStaffs || !unref(values).followUpStaffs || !unref(values).raiseStaffs || !unref(values).submissionStaffs || !unref(values).title || !unref(values).type || ((
|
|
25788
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || !unref(values).agreedStaffs || !unref(values).branches || !unref(values).decideStaffs || !unref(values).followUpStaffs || !unref(values).raiseStaffs || !unref(values).submissionStaffs || !unref(values).title || !unref(values).type || ((_b2 = unref(values).hasRaiseStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
25769
25789
|
onClick: syncRaise
|
|
25770
25790
|
}, {
|
|
25771
25791
|
default: withCtx(() => [
|
|
@@ -25978,7 +25998,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25978
25998
|
};
|
|
25979
25999
|
}
|
|
25980
26000
|
});
|
|
25981
|
-
const SubmissionStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-
|
|
26001
|
+
const SubmissionStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-e39fa184"]]);
|
|
25982
26002
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
25983
26003
|
__name: "SubmissionFollowUp",
|
|
25984
26004
|
setup(__props) {
|
|
@@ -26197,7 +26217,7 @@ const _hoisted_6 = { class: "mt-2" };
|
|
|
26197
26217
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
26198
26218
|
__name: "SubmissionAudit",
|
|
26199
26219
|
setup(__props) {
|
|
26200
|
-
var _a;
|
|
26220
|
+
var _a, _b, _c;
|
|
26201
26221
|
const {
|
|
26202
26222
|
fields,
|
|
26203
26223
|
id,
|
|
@@ -26272,20 +26292,30 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26272
26292
|
};
|
|
26273
26293
|
});
|
|
26274
26294
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
26295
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
26296
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
26275
26297
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
26276
26298
|
async function setDefaultValues() {
|
|
26277
|
-
var _a2;
|
|
26299
|
+
var _a2, _b2, _c2;
|
|
26278
26300
|
if (!isNew.value)
|
|
26279
26301
|
return;
|
|
26280
26302
|
await PromiseUtil.wait(500);
|
|
26281
26303
|
const defaultValues = {
|
|
26282
26304
|
submissionStaffIds: [staffId],
|
|
26283
26305
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26306
|
+
branchIds: [branchIds[0]],
|
|
26307
|
+
branches: [branchDisplay[0]],
|
|
26284
26308
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26285
26309
|
};
|
|
26286
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26287
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26288
26310
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
26311
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
26312
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26313
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26314
|
+
}
|
|
26315
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
26316
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
26317
|
+
values.value.branches = defaultValues.branches;
|
|
26318
|
+
}
|
|
26289
26319
|
}
|
|
26290
26320
|
const syncResolved = async () => {
|
|
26291
26321
|
await executeOne("resolvedSubmission", { submissionId: id.value });
|
|
@@ -26406,13 +26436,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26406
26436
|
createElementVNode("div", _hoisted_5, [
|
|
26407
26437
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26408
26438
|
input: withCtx(() => {
|
|
26409
|
-
var _a2,
|
|
26439
|
+
var _a2, _b2;
|
|
26410
26440
|
return [
|
|
26411
26441
|
createVNode(unref(NeonButton), {
|
|
26412
26442
|
size: "md",
|
|
26413
26443
|
color: "warning",
|
|
26414
26444
|
"icon-left": "spinner",
|
|
26415
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || unref(values).status !== "delay" && ((
|
|
26445
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || unref(values).status !== "delay" && ((_b2 = unref(values).hasProcessStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26416
26446
|
onClick: syncProcessed
|
|
26417
26447
|
}, {
|
|
26418
26448
|
default: withCtx(() => [
|
|
@@ -26484,7 +26514,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26484
26514
|
}),
|
|
26485
26515
|
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
26486
26516
|
default: withCtx(() => {
|
|
26487
|
-
var _a2,
|
|
26517
|
+
var _a2, _b2;
|
|
26488
26518
|
return [
|
|
26489
26519
|
createVNode(unref(OfficeRelation), {
|
|
26490
26520
|
modelValue: unref(values),
|
|
@@ -26498,7 +26528,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26498
26528
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
|
|
26499
26529
|
field: unref(fields).raiseStaffs,
|
|
26500
26530
|
query: unref(Query).define(roleStaffOptions.value),
|
|
26501
|
-
"is-disabled": unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || ((
|
|
26531
|
+
"is-disabled": unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved" || ((_b2 = unref(values).hasProcessStaffIds) == null ? void 0 : _b2.length) ? true : false
|
|
26502
26532
|
}, null, 8, ["modelValue", "field", "query", "is-disabled"])
|
|
26503
26533
|
];
|
|
26504
26534
|
}),
|
|
@@ -26680,14 +26710,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26680
26710
|
};
|
|
26681
26711
|
}
|
|
26682
26712
|
});
|
|
26683
|
-
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-
|
|
26713
|
+
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-3ef7852b"]]);
|
|
26684
26714
|
const _hoisted_1$4 = { class: "flex flex-wrap" };
|
|
26685
26715
|
const _hoisted_2$4 = { class: "mt-2" };
|
|
26686
26716
|
const _hoisted_3$2 = { class: "mt-2" };
|
|
26687
26717
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
26688
26718
|
__name: "SubmissionDecision",
|
|
26689
26719
|
setup(__props) {
|
|
26690
|
-
var _a;
|
|
26720
|
+
var _a, _b, _c;
|
|
26691
26721
|
const {
|
|
26692
26722
|
fields,
|
|
26693
26723
|
id,
|
|
@@ -26761,20 +26791,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26761
26791
|
};
|
|
26762
26792
|
});
|
|
26763
26793
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
26794
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
26795
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
26764
26796
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
26765
26797
|
async function setDefaultValues() {
|
|
26766
|
-
var _a2;
|
|
26798
|
+
var _a2, _b2, _c2;
|
|
26767
26799
|
if (!isNew.value)
|
|
26768
26800
|
return;
|
|
26769
26801
|
await PromiseUtil.wait(500);
|
|
26770
26802
|
const defaultValues = {
|
|
26771
26803
|
submissionStaffIds: [staffId],
|
|
26772
26804
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26805
|
+
branchIds: [branchIds[0]],
|
|
26806
|
+
branches: [branchDisplay[0]],
|
|
26773
26807
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26774
26808
|
};
|
|
26775
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26776
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26777
26809
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
26810
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
26811
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26812
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26813
|
+
}
|
|
26814
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
26815
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
26816
|
+
values.value.branches = defaultValues.branches;
|
|
26817
|
+
}
|
|
26778
26818
|
}
|
|
26779
26819
|
const syncDelay = async () => {
|
|
26780
26820
|
var _a2;
|
|
@@ -26817,13 +26857,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26817
26857
|
createElementVNode("div", _hoisted_2$4, [
|
|
26818
26858
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26819
26859
|
input: withCtx(() => {
|
|
26820
|
-
var _a2,
|
|
26860
|
+
var _a2, _b2;
|
|
26821
26861
|
return [
|
|
26822
26862
|
createVNode(unref(NeonButton), {
|
|
26823
26863
|
size: "md",
|
|
26824
26864
|
color: "danger",
|
|
26825
26865
|
"icon-left": "circle-stop",
|
|
26826
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((
|
|
26866
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b2 = unref(values).delayStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26827
26867
|
onClick: syncDelay
|
|
26828
26868
|
}, {
|
|
26829
26869
|
default: withCtx(() => [
|
|
@@ -26842,13 +26882,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26842
26882
|
createElementVNode("div", _hoisted_3$2, [
|
|
26843
26883
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26844
26884
|
input: withCtx(() => {
|
|
26845
|
-
var _a2,
|
|
26885
|
+
var _a2, _b2;
|
|
26846
26886
|
return [
|
|
26847
26887
|
createVNode(unref(NeonButton), {
|
|
26848
26888
|
size: "md",
|
|
26849
26889
|
color: "success",
|
|
26850
26890
|
"icon-left": "list-check",
|
|
26851
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((
|
|
26891
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b2 = unref(values).agreedStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26852
26892
|
onClick: syncApproved
|
|
26853
26893
|
}, {
|
|
26854
26894
|
default: withCtx(() => [
|
|
@@ -27105,14 +27145,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
27105
27145
|
};
|
|
27106
27146
|
}
|
|
27107
27147
|
});
|
|
27108
|
-
const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-
|
|
27148
|
+
const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-b87a8600"]]);
|
|
27109
27149
|
const _hoisted_1$3 = { class: "flex flex-wrap" };
|
|
27110
27150
|
const _hoisted_2$3 = { class: "mt-2" };
|
|
27111
27151
|
const _hoisted_3$1 = { class: "mt-2" };
|
|
27112
27152
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27113
27153
|
__name: "SubmissionWaitingDecision",
|
|
27114
27154
|
setup(__props) {
|
|
27115
|
-
var _a;
|
|
27155
|
+
var _a, _b, _c;
|
|
27116
27156
|
const {
|
|
27117
27157
|
fields,
|
|
27118
27158
|
id,
|
|
@@ -27186,20 +27226,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27186
27226
|
};
|
|
27187
27227
|
});
|
|
27188
27228
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
27229
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
27230
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
27189
27231
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
27190
27232
|
async function setDefaultValues() {
|
|
27191
|
-
var _a2;
|
|
27233
|
+
var _a2, _b2, _c2;
|
|
27192
27234
|
if (!isNew.value)
|
|
27193
27235
|
return;
|
|
27194
27236
|
await PromiseUtil.wait(500);
|
|
27195
27237
|
const defaultValues = {
|
|
27196
27238
|
submissionStaffIds: [staffId],
|
|
27197
27239
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
27240
|
+
branchIds: [branchIds[0]],
|
|
27241
|
+
branches: [branchDisplay[0]],
|
|
27198
27242
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
27199
27243
|
};
|
|
27200
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
27201
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
27202
27244
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
27245
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
27246
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
27247
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
27248
|
+
}
|
|
27249
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
27250
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
27251
|
+
values.value.branches = defaultValues.branches;
|
|
27252
|
+
}
|
|
27203
27253
|
}
|
|
27204
27254
|
const syncDelay = async () => {
|
|
27205
27255
|
var _a2;
|
|
@@ -27244,13 +27294,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27244
27294
|
createElementVNode("div", _hoisted_2$3, [
|
|
27245
27295
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
27246
27296
|
input: withCtx(() => {
|
|
27247
|
-
var _a2,
|
|
27297
|
+
var _a2, _b2;
|
|
27248
27298
|
return [
|
|
27249
27299
|
createVNode(unref(NeonButton), {
|
|
27250
27300
|
size: "md",
|
|
27251
27301
|
color: "danger",
|
|
27252
27302
|
"icon-left": "circle-stop",
|
|
27253
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((
|
|
27303
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b2 = unref(values).delayStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
27254
27304
|
onClick: syncDelay
|
|
27255
27305
|
}, {
|
|
27256
27306
|
default: withCtx(() => [
|
|
@@ -27269,13 +27319,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27269
27319
|
createElementVNode("div", _hoisted_3$1, [
|
|
27270
27320
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
27271
27321
|
input: withCtx(() => {
|
|
27272
|
-
var _a2,
|
|
27322
|
+
var _a2, _b2;
|
|
27273
27323
|
return [
|
|
27274
27324
|
createVNode(unref(NeonButton), {
|
|
27275
27325
|
size: "md",
|
|
27276
27326
|
color: "success",
|
|
27277
27327
|
"icon-left": "list-check",
|
|
27278
|
-
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((
|
|
27328
|
+
"is-disabled": unref(isNew) || unref(isChanged) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b2 = unref(values).agreedStaffIds) == null ? void 0 : _b2.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
27279
27329
|
onClick: syncApproved
|
|
27280
27330
|
}, {
|
|
27281
27331
|
default: withCtx(() => [
|
|
@@ -27488,7 +27538,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27488
27538
|
};
|
|
27489
27539
|
}
|
|
27490
27540
|
});
|
|
27491
|
-
const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-
|
|
27541
|
+
const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-a3b47d86"]]);
|
|
27492
27542
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
27493
27543
|
__name: "SubmissionSupervisor",
|
|
27494
27544
|
setup(__props) {
|
package/build/mock/style.css
CHANGED
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
padding-bottom: 0.5rem
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.neu-checkIn-single[data-v-
|
|
151
|
+
.neu-checkIn-single[data-v-44977e6b] {
|
|
152
152
|
display: block
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
display: block
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
.neu-responsibility-single[data-v-
|
|
316
|
+
.neu-responsibility-single[data-v-23c57dc8] {
|
|
317
317
|
display: block
|
|
318
318
|
}
|
|
319
319
|
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
display: block
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.neu-submission-single[data-v-
|
|
336
|
+
.neu-submission-single[data-v-e39fa184] {
|
|
337
337
|
display: block
|
|
338
338
|
}
|
|
339
339
|
|
|
@@ -341,15 +341,15 @@
|
|
|
341
341
|
display: block
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
.neu-submission-single[data-v-
|
|
344
|
+
.neu-submission-single[data-v-3ef7852b] {
|
|
345
345
|
display: block
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
.neu-submission-single[data-v-
|
|
348
|
+
.neu-submission-single[data-v-b87a8600] {
|
|
349
349
|
display: block
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
.neu-submission-single[data-v-
|
|
352
|
+
.neu-submission-single[data-v-a3b47d86] {
|
|
353
353
|
display: block
|
|
354
354
|
}
|
|
355
355
|
|
package/build/module.json
CHANGED
package/build/nuxt.json
CHANGED