@neutron.co.id/operasional-interfaces 1.12.2 → 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 +57 -27
- package/build/index.mjs +57 -27
- package/build/mock/index.cjs +57 -27
- package/build/mock/index.mjs +57 -27
- package/build/mock/style.css +3 -3
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/build/office/index.cjs +57 -27
- package/build/office/index.mjs +57 -27
- package/build/office/style.css +3 -3
- package/build/style.css +3 -3
- package/package.json +4 -4
package/build/mock/index.cjs
CHANGED
|
@@ -26219,7 +26219,7 @@ const _hoisted_6 = { class: "mt-2" };
|
|
|
26219
26219
|
const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
26220
26220
|
__name: "SubmissionAudit",
|
|
26221
26221
|
setup(__props) {
|
|
26222
|
-
var _a;
|
|
26222
|
+
var _a, _b, _c;
|
|
26223
26223
|
const {
|
|
26224
26224
|
fields,
|
|
26225
26225
|
id,
|
|
@@ -26294,20 +26294,30 @@ const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26294
26294
|
};
|
|
26295
26295
|
});
|
|
26296
26296
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
26297
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
26298
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
26297
26299
|
vue$1.watch(isNew, setDefaultValues, { immediate: true });
|
|
26298
26300
|
async function setDefaultValues() {
|
|
26299
|
-
var _a2;
|
|
26301
|
+
var _a2, _b2, _c2;
|
|
26300
26302
|
if (!isNew.value)
|
|
26301
26303
|
return;
|
|
26302
26304
|
await promise.PromiseUtil.wait(500);
|
|
26303
26305
|
const defaultValues = {
|
|
26304
26306
|
submissionStaffIds: [staffId],
|
|
26305
26307
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26308
|
+
branchIds: [branchIds[0]],
|
|
26309
|
+
branches: [branchDisplay[0]],
|
|
26306
26310
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26307
26311
|
};
|
|
26308
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26309
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26310
26312
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
26313
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
26314
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26315
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26316
|
+
}
|
|
26317
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
26318
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
26319
|
+
values.value.branches = defaultValues.branches;
|
|
26320
|
+
}
|
|
26311
26321
|
}
|
|
26312
26322
|
const syncResolved = async () => {
|
|
26313
26323
|
await executeOne("resolvedSubmission", { submissionId: id.value });
|
|
@@ -26428,13 +26438,13 @@ const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26428
26438
|
vue$1.createElementVNode("div", _hoisted_5, [
|
|
26429
26439
|
vue$1.unref(isReady) ? (vue$1.openBlock(), vue$1.createBlock(vue$1.unref(form.NeonField), { key: 0 }, {
|
|
26430
26440
|
input: vue$1.withCtx(() => {
|
|
26431
|
-
var _a2,
|
|
26441
|
+
var _a2, _b2;
|
|
26432
26442
|
return [
|
|
26433
26443
|
vue$1.createVNode(vue$1.unref(interfaces.NeonButton), {
|
|
26434
26444
|
size: "md",
|
|
26435
26445
|
color: "warning",
|
|
26436
26446
|
"icon-left": "spinner",
|
|
26437
|
-
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "processed" || vue$1.unref(values).status === "approved" || vue$1.unref(values).status === "monitored" || vue$1.unref(values).status === "discontinued" || vue$1.unref(values).status === "resolved" || vue$1.unref(values).status !== "delay" && ((
|
|
26447
|
+
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "processed" || vue$1.unref(values).status === "approved" || vue$1.unref(values).status === "monitored" || vue$1.unref(values).status === "discontinued" || vue$1.unref(values).status === "resolved" || vue$1.unref(values).status !== "delay" && ((_b2 = vue$1.unref(values).hasProcessStaffIds) == null ? void 0 : _b2.includes(((_a2 = vue$1.unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26438
26448
|
onClick: syncProcessed
|
|
26439
26449
|
}, {
|
|
26440
26450
|
default: vue$1.withCtx(() => [
|
|
@@ -26506,7 +26516,7 @@ const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26506
26516
|
}),
|
|
26507
26517
|
vue$1.createVNode(vue$1.unref(form.NeonFields), { md: "grid-cols-2" }, {
|
|
26508
26518
|
default: vue$1.withCtx(() => {
|
|
26509
|
-
var _a2,
|
|
26519
|
+
var _a2, _b2;
|
|
26510
26520
|
return [
|
|
26511
26521
|
vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
|
|
26512
26522
|
modelValue: vue$1.unref(values),
|
|
@@ -26520,7 +26530,7 @@ const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26520
26530
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
|
|
26521
26531
|
field: vue$1.unref(fields).raiseStaffs,
|
|
26522
26532
|
query: vue$1.unref(query.Query).define(roleStaffOptions.value),
|
|
26523
|
-
"is-disabled": vue$1.unref(values).status === "processed" || vue$1.unref(values).status === "approved" || vue$1.unref(values).status === "monitored" || vue$1.unref(values).status === "discontinued" || vue$1.unref(values).status === "resolved" || ((
|
|
26533
|
+
"is-disabled": vue$1.unref(values).status === "processed" || vue$1.unref(values).status === "approved" || vue$1.unref(values).status === "monitored" || vue$1.unref(values).status === "discontinued" || vue$1.unref(values).status === "resolved" || ((_b2 = vue$1.unref(values).hasProcessStaffIds) == null ? void 0 : _b2.length) ? true : false
|
|
26524
26534
|
}, null, 8, ["modelValue", "field", "query", "is-disabled"])
|
|
26525
26535
|
];
|
|
26526
26536
|
}),
|
|
@@ -26702,14 +26712,14 @@ const _sfc_main$f = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26702
26712
|
};
|
|
26703
26713
|
}
|
|
26704
26714
|
});
|
|
26705
|
-
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-
|
|
26715
|
+
const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-3ef7852b"]]);
|
|
26706
26716
|
const _hoisted_1$4 = { class: "flex flex-wrap" };
|
|
26707
26717
|
const _hoisted_2$4 = { class: "mt-2" };
|
|
26708
26718
|
const _hoisted_3$2 = { class: "mt-2" };
|
|
26709
26719
|
const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
|
|
26710
26720
|
__name: "SubmissionDecision",
|
|
26711
26721
|
setup(__props) {
|
|
26712
|
-
var _a;
|
|
26722
|
+
var _a, _b, _c;
|
|
26713
26723
|
const {
|
|
26714
26724
|
fields,
|
|
26715
26725
|
id,
|
|
@@ -26783,20 +26793,30 @@ const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26783
26793
|
};
|
|
26784
26794
|
});
|
|
26785
26795
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
26796
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
26797
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
26786
26798
|
vue$1.watch(isNew, setDefaultValues, { immediate: true });
|
|
26787
26799
|
async function setDefaultValues() {
|
|
26788
|
-
var _a2;
|
|
26800
|
+
var _a2, _b2, _c2;
|
|
26789
26801
|
if (!isNew.value)
|
|
26790
26802
|
return;
|
|
26791
26803
|
await promise.PromiseUtil.wait(500);
|
|
26792
26804
|
const defaultValues = {
|
|
26793
26805
|
submissionStaffIds: [staffId],
|
|
26794
26806
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26807
|
+
branchIds: [branchIds[0]],
|
|
26808
|
+
branches: [branchDisplay[0]],
|
|
26795
26809
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26796
26810
|
};
|
|
26797
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26798
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26799
26811
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
26812
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
26813
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26814
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26815
|
+
}
|
|
26816
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
26817
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
26818
|
+
values.value.branches = defaultValues.branches;
|
|
26819
|
+
}
|
|
26800
26820
|
}
|
|
26801
26821
|
const syncDelay = async () => {
|
|
26802
26822
|
var _a2;
|
|
@@ -26839,13 +26859,13 @@ const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26839
26859
|
vue$1.createElementVNode("div", _hoisted_2$4, [
|
|
26840
26860
|
vue$1.unref(isReady) ? (vue$1.openBlock(), vue$1.createBlock(vue$1.unref(form.NeonField), { key: 0 }, {
|
|
26841
26861
|
input: vue$1.withCtx(() => {
|
|
26842
|
-
var _a2,
|
|
26862
|
+
var _a2, _b2;
|
|
26843
26863
|
return [
|
|
26844
26864
|
vue$1.createVNode(vue$1.unref(interfaces.NeonButton), {
|
|
26845
26865
|
size: "md",
|
|
26846
26866
|
color: "danger",
|
|
26847
26867
|
"icon-left": "circle-stop",
|
|
26848
|
-
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((
|
|
26868
|
+
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((_b2 = vue$1.unref(values).delayStaffIds) == null ? void 0 : _b2.includes(((_a2 = vue$1.unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26849
26869
|
onClick: syncDelay
|
|
26850
26870
|
}, {
|
|
26851
26871
|
default: vue$1.withCtx(() => [
|
|
@@ -26864,13 +26884,13 @@ const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
26864
26884
|
vue$1.createElementVNode("div", _hoisted_3$2, [
|
|
26865
26885
|
vue$1.unref(isReady) ? (vue$1.openBlock(), vue$1.createBlock(vue$1.unref(form.NeonField), { key: 0 }, {
|
|
26866
26886
|
input: vue$1.withCtx(() => {
|
|
26867
|
-
var _a2,
|
|
26887
|
+
var _a2, _b2;
|
|
26868
26888
|
return [
|
|
26869
26889
|
vue$1.createVNode(vue$1.unref(interfaces.NeonButton), {
|
|
26870
26890
|
size: "md",
|
|
26871
26891
|
color: "success",
|
|
26872
26892
|
"icon-left": "list-check",
|
|
26873
|
-
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((
|
|
26893
|
+
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((_b2 = vue$1.unref(values).agreedStaffIds) == null ? void 0 : _b2.includes(((_a2 = vue$1.unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
26874
26894
|
onClick: syncApproved
|
|
26875
26895
|
}, {
|
|
26876
26896
|
default: vue$1.withCtx(() => [
|
|
@@ -27127,14 +27147,14 @@ const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
27127
27147
|
};
|
|
27128
27148
|
}
|
|
27129
27149
|
});
|
|
27130
|
-
const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-
|
|
27150
|
+
const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-b87a8600"]]);
|
|
27131
27151
|
const _hoisted_1$3 = { class: "flex flex-wrap" };
|
|
27132
27152
|
const _hoisted_2$3 = { class: "mt-2" };
|
|
27133
27153
|
const _hoisted_3$1 = { class: "mt-2" };
|
|
27134
27154
|
const _sfc_main$d = /* @__PURE__ */ vue$1.defineComponent({
|
|
27135
27155
|
__name: "SubmissionWaitingDecision",
|
|
27136
27156
|
setup(__props) {
|
|
27137
|
-
var _a;
|
|
27157
|
+
var _a, _b, _c;
|
|
27138
27158
|
const {
|
|
27139
27159
|
fields,
|
|
27140
27160
|
id,
|
|
@@ -27208,20 +27228,30 @@ const _sfc_main$d = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
27208
27228
|
};
|
|
27209
27229
|
});
|
|
27210
27230
|
const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
|
|
27231
|
+
const branchIds = ((_b = staff.value) == null ? void 0 : _b.branchIds) || [];
|
|
27232
|
+
const branchDisplay = ((_c = staff.value) == null ? void 0 : _c.branches) || [];
|
|
27211
27233
|
vue$1.watch(isNew, setDefaultValues, { immediate: true });
|
|
27212
27234
|
async function setDefaultValues() {
|
|
27213
|
-
var _a2;
|
|
27235
|
+
var _a2, _b2, _c2;
|
|
27214
27236
|
if (!isNew.value)
|
|
27215
27237
|
return;
|
|
27216
27238
|
await promise.PromiseUtil.wait(500);
|
|
27217
27239
|
const defaultValues = {
|
|
27218
27240
|
submissionStaffIds: [staffId],
|
|
27219
27241
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
27242
|
+
branchIds: [branchIds[0]],
|
|
27243
|
+
branches: [branchDisplay[0]],
|
|
27220
27244
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
27221
27245
|
};
|
|
27222
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
27223
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
27224
27246
|
values.value.preparedAt = defaultValues.preparedAt;
|
|
27247
|
+
if ((_b2 = staff == null ? void 0 : staff.value) == null ? void 0 : _b2.id) {
|
|
27248
|
+
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
27249
|
+
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
27250
|
+
}
|
|
27251
|
+
if ((_c2 = staff == null ? void 0 : staff.value) == null ? void 0 : _c2.branchIds) {
|
|
27252
|
+
values.value.branchIds = defaultValues.branchIds;
|
|
27253
|
+
values.value.branches = defaultValues.branches;
|
|
27254
|
+
}
|
|
27225
27255
|
}
|
|
27226
27256
|
const syncDelay = async () => {
|
|
27227
27257
|
var _a2;
|
|
@@ -27266,13 +27296,13 @@ const _sfc_main$d = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
27266
27296
|
vue$1.createElementVNode("div", _hoisted_2$3, [
|
|
27267
27297
|
vue$1.unref(isReady) ? (vue$1.openBlock(), vue$1.createBlock(vue$1.unref(form.NeonField), { key: 0 }, {
|
|
27268
27298
|
input: vue$1.withCtx(() => {
|
|
27269
|
-
var _a2,
|
|
27299
|
+
var _a2, _b2;
|
|
27270
27300
|
return [
|
|
27271
27301
|
vue$1.createVNode(vue$1.unref(interfaces.NeonButton), {
|
|
27272
27302
|
size: "md",
|
|
27273
27303
|
color: "danger",
|
|
27274
27304
|
"icon-left": "circle-stop",
|
|
27275
|
-
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((
|
|
27305
|
+
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((_b2 = vue$1.unref(values).delayStaffIds) == null ? void 0 : _b2.includes(((_a2 = vue$1.unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
27276
27306
|
onClick: syncDelay
|
|
27277
27307
|
}, {
|
|
27278
27308
|
default: vue$1.withCtx(() => [
|
|
@@ -27291,13 +27321,13 @@ const _sfc_main$d = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
27291
27321
|
vue$1.createElementVNode("div", _hoisted_3$1, [
|
|
27292
27322
|
vue$1.unref(isReady) ? (vue$1.openBlock(), vue$1.createBlock(vue$1.unref(form.NeonField), { key: 0 }, {
|
|
27293
27323
|
input: vue$1.withCtx(() => {
|
|
27294
|
-
var _a2,
|
|
27324
|
+
var _a2, _b2;
|
|
27295
27325
|
return [
|
|
27296
27326
|
vue$1.createVNode(vue$1.unref(interfaces.NeonButton), {
|
|
27297
27327
|
size: "md",
|
|
27298
27328
|
color: "success",
|
|
27299
27329
|
"icon-left": "list-check",
|
|
27300
|
-
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((
|
|
27330
|
+
"is-disabled": vue$1.unref(isNew) || vue$1.unref(isChanged) || vue$1.unref(values).status === "prepared" || vue$1.unref(values).status === "raised" || ((_b2 = vue$1.unref(values).agreedStaffIds) == null ? void 0 : _b2.includes(((_a2 = vue$1.unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
|
|
27301
27331
|
onClick: syncApproved
|
|
27302
27332
|
}, {
|
|
27303
27333
|
default: vue$1.withCtx(() => [
|
|
@@ -27510,7 +27540,7 @@ const _sfc_main$d = /* @__PURE__ */ vue$1.defineComponent({
|
|
|
27510
27540
|
};
|
|
27511
27541
|
}
|
|
27512
27542
|
});
|
|
27513
|
-
const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-
|
|
27543
|
+
const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-a3b47d86"]]);
|
|
27514
27544
|
const _sfc_main$c = /* @__PURE__ */ vue$1.defineComponent({
|
|
27515
27545
|
__name: "SubmissionSupervisor",
|
|
27516
27546
|
setup(__props) {
|
package/build/mock/index.mjs
CHANGED
|
@@ -26217,7 +26217,7 @@ const _hoisted_6 = { class: "mt-2" };
|
|
|
26217
26217
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
26218
26218
|
__name: "SubmissionAudit",
|
|
26219
26219
|
setup(__props) {
|
|
26220
|
-
var _a;
|
|
26220
|
+
var _a, _b, _c;
|
|
26221
26221
|
const {
|
|
26222
26222
|
fields,
|
|
26223
26223
|
id,
|
|
@@ -26292,20 +26292,30 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26292
26292
|
};
|
|
26293
26293
|
});
|
|
26294
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) || [];
|
|
26295
26297
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
26296
26298
|
async function setDefaultValues() {
|
|
26297
|
-
var _a2;
|
|
26299
|
+
var _a2, _b2, _c2;
|
|
26298
26300
|
if (!isNew.value)
|
|
26299
26301
|
return;
|
|
26300
26302
|
await PromiseUtil.wait(500);
|
|
26301
26303
|
const defaultValues = {
|
|
26302
26304
|
submissionStaffIds: [staffId],
|
|
26303
26305
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26306
|
+
branchIds: [branchIds[0]],
|
|
26307
|
+
branches: [branchDisplay[0]],
|
|
26304
26308
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26305
26309
|
};
|
|
26306
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26307
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26308
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
|
+
}
|
|
26309
26319
|
}
|
|
26310
26320
|
const syncResolved = async () => {
|
|
26311
26321
|
await executeOne("resolvedSubmission", { submissionId: id.value });
|
|
@@ -26426,13 +26436,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26426
26436
|
createElementVNode("div", _hoisted_5, [
|
|
26427
26437
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26428
26438
|
input: withCtx(() => {
|
|
26429
|
-
var _a2,
|
|
26439
|
+
var _a2, _b2;
|
|
26430
26440
|
return [
|
|
26431
26441
|
createVNode(unref(NeonButton), {
|
|
26432
26442
|
size: "md",
|
|
26433
26443
|
color: "warning",
|
|
26434
26444
|
"icon-left": "spinner",
|
|
26435
|
-
"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,
|
|
26436
26446
|
onClick: syncProcessed
|
|
26437
26447
|
}, {
|
|
26438
26448
|
default: withCtx(() => [
|
|
@@ -26504,7 +26514,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26504
26514
|
}),
|
|
26505
26515
|
createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
|
|
26506
26516
|
default: withCtx(() => {
|
|
26507
|
-
var _a2,
|
|
26517
|
+
var _a2, _b2;
|
|
26508
26518
|
return [
|
|
26509
26519
|
createVNode(unref(OfficeRelation), {
|
|
26510
26520
|
modelValue: unref(values),
|
|
@@ -26518,7 +26528,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26518
26528
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
|
|
26519
26529
|
field: unref(fields).raiseStaffs,
|
|
26520
26530
|
query: unref(Query).define(roleStaffOptions.value),
|
|
26521
|
-
"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
|
|
26522
26532
|
}, null, 8, ["modelValue", "field", "query", "is-disabled"])
|
|
26523
26533
|
];
|
|
26524
26534
|
}),
|
|
@@ -26700,14 +26710,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
26700
26710
|
};
|
|
26701
26711
|
}
|
|
26702
26712
|
});
|
|
26703
|
-
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"]]);
|
|
26704
26714
|
const _hoisted_1$4 = { class: "flex flex-wrap" };
|
|
26705
26715
|
const _hoisted_2$4 = { class: "mt-2" };
|
|
26706
26716
|
const _hoisted_3$2 = { class: "mt-2" };
|
|
26707
26717
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
26708
26718
|
__name: "SubmissionDecision",
|
|
26709
26719
|
setup(__props) {
|
|
26710
|
-
var _a;
|
|
26720
|
+
var _a, _b, _c;
|
|
26711
26721
|
const {
|
|
26712
26722
|
fields,
|
|
26713
26723
|
id,
|
|
@@ -26781,20 +26791,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26781
26791
|
};
|
|
26782
26792
|
});
|
|
26783
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) || [];
|
|
26784
26796
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
26785
26797
|
async function setDefaultValues() {
|
|
26786
|
-
var _a2;
|
|
26798
|
+
var _a2, _b2, _c2;
|
|
26787
26799
|
if (!isNew.value)
|
|
26788
26800
|
return;
|
|
26789
26801
|
await PromiseUtil.wait(500);
|
|
26790
26802
|
const defaultValues = {
|
|
26791
26803
|
submissionStaffIds: [staffId],
|
|
26792
26804
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
26805
|
+
branchIds: [branchIds[0]],
|
|
26806
|
+
branches: [branchDisplay[0]],
|
|
26793
26807
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
26794
26808
|
};
|
|
26795
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
26796
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
26797
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
|
+
}
|
|
26798
26818
|
}
|
|
26799
26819
|
const syncDelay = async () => {
|
|
26800
26820
|
var _a2;
|
|
@@ -26837,13 +26857,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26837
26857
|
createElementVNode("div", _hoisted_2$4, [
|
|
26838
26858
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26839
26859
|
input: withCtx(() => {
|
|
26840
|
-
var _a2,
|
|
26860
|
+
var _a2, _b2;
|
|
26841
26861
|
return [
|
|
26842
26862
|
createVNode(unref(NeonButton), {
|
|
26843
26863
|
size: "md",
|
|
26844
26864
|
color: "danger",
|
|
26845
26865
|
"icon-left": "circle-stop",
|
|
26846
|
-
"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,
|
|
26847
26867
|
onClick: syncDelay
|
|
26848
26868
|
}, {
|
|
26849
26869
|
default: withCtx(() => [
|
|
@@ -26862,13 +26882,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26862
26882
|
createElementVNode("div", _hoisted_3$2, [
|
|
26863
26883
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
26864
26884
|
input: withCtx(() => {
|
|
26865
|
-
var _a2,
|
|
26885
|
+
var _a2, _b2;
|
|
26866
26886
|
return [
|
|
26867
26887
|
createVNode(unref(NeonButton), {
|
|
26868
26888
|
size: "md",
|
|
26869
26889
|
color: "success",
|
|
26870
26890
|
"icon-left": "list-check",
|
|
26871
|
-
"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,
|
|
26872
26892
|
onClick: syncApproved
|
|
26873
26893
|
}, {
|
|
26874
26894
|
default: withCtx(() => [
|
|
@@ -27125,14 +27145,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
27125
27145
|
};
|
|
27126
27146
|
}
|
|
27127
27147
|
});
|
|
27128
|
-
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"]]);
|
|
27129
27149
|
const _hoisted_1$3 = { class: "flex flex-wrap" };
|
|
27130
27150
|
const _hoisted_2$3 = { class: "mt-2" };
|
|
27131
27151
|
const _hoisted_3$1 = { class: "mt-2" };
|
|
27132
27152
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27133
27153
|
__name: "SubmissionWaitingDecision",
|
|
27134
27154
|
setup(__props) {
|
|
27135
|
-
var _a;
|
|
27155
|
+
var _a, _b, _c;
|
|
27136
27156
|
const {
|
|
27137
27157
|
fields,
|
|
27138
27158
|
id,
|
|
@@ -27206,20 +27226,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27206
27226
|
};
|
|
27207
27227
|
});
|
|
27208
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) || [];
|
|
27209
27231
|
watch(isNew, setDefaultValues, { immediate: true });
|
|
27210
27232
|
async function setDefaultValues() {
|
|
27211
|
-
var _a2;
|
|
27233
|
+
var _a2, _b2, _c2;
|
|
27212
27234
|
if (!isNew.value)
|
|
27213
27235
|
return;
|
|
27214
27236
|
await PromiseUtil.wait(500);
|
|
27215
27237
|
const defaultValues = {
|
|
27216
27238
|
submissionStaffIds: [staffId],
|
|
27217
27239
|
submissionStaffs: [{ id: staffId, flag: (_a2 = staff.value) == null ? void 0 : _a2.flag }],
|
|
27240
|
+
branchIds: [branchIds[0]],
|
|
27241
|
+
branches: [branchDisplay[0]],
|
|
27218
27242
|
preparedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
27219
27243
|
};
|
|
27220
|
-
values.value.submissionStaffIds = defaultValues.submissionStaffIds;
|
|
27221
|
-
values.value.submissionStaffs = defaultValues.submissionStaffs;
|
|
27222
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
|
+
}
|
|
27223
27253
|
}
|
|
27224
27254
|
const syncDelay = async () => {
|
|
27225
27255
|
var _a2;
|
|
@@ -27264,13 +27294,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27264
27294
|
createElementVNode("div", _hoisted_2$3, [
|
|
27265
27295
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
27266
27296
|
input: withCtx(() => {
|
|
27267
|
-
var _a2,
|
|
27297
|
+
var _a2, _b2;
|
|
27268
27298
|
return [
|
|
27269
27299
|
createVNode(unref(NeonButton), {
|
|
27270
27300
|
size: "md",
|
|
27271
27301
|
color: "danger",
|
|
27272
27302
|
"icon-left": "circle-stop",
|
|
27273
|
-
"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,
|
|
27274
27304
|
onClick: syncDelay
|
|
27275
27305
|
}, {
|
|
27276
27306
|
default: withCtx(() => [
|
|
@@ -27289,13 +27319,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27289
27319
|
createElementVNode("div", _hoisted_3$1, [
|
|
27290
27320
|
unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
|
|
27291
27321
|
input: withCtx(() => {
|
|
27292
|
-
var _a2,
|
|
27322
|
+
var _a2, _b2;
|
|
27293
27323
|
return [
|
|
27294
27324
|
createVNode(unref(NeonButton), {
|
|
27295
27325
|
size: "md",
|
|
27296
27326
|
color: "success",
|
|
27297
27327
|
"icon-left": "list-check",
|
|
27298
|
-
"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,
|
|
27299
27329
|
onClick: syncApproved
|
|
27300
27330
|
}, {
|
|
27301
27331
|
default: withCtx(() => [
|
|
@@ -27508,7 +27538,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27508
27538
|
};
|
|
27509
27539
|
}
|
|
27510
27540
|
});
|
|
27511
|
-
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"]]);
|
|
27512
27542
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
27513
27543
|
__name: "SubmissionSupervisor",
|
|
27514
27544
|
setup(__props) {
|
package/build/mock/style.css
CHANGED
|
@@ -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