lyflowchart 1.0.139 → 1.0.154
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/dist/ActionsConfig-gWnpd8yJ.js +521 -0
- package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-BsHxlueJ.js} +1 -1
- package/dist/{CancelModal-BUi3ieI8.js → CancelModal-CgQeC543.js} +1 -1
- package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-CzEatC97.js} +34 -32
- package/dist/{JsonTags-BbWLqghI.js → JsonTags-DQdw3WxB.js} +1 -1
- package/dist/{MyProcess-FWGEwQcv.js → MyProcess-SGZ_-9C3.js} +17 -17
- package/dist/{approval-BaD4Bmw6.js → approval-DD00xYMY.js} +1 -1
- package/dist/{approval-BW2WjPxY.js → approval-ekd9_mwq.js} +35 -35
- package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-DsHMvx1n.js} +35 -35
- package/dist/{approvalHistoryViewModal-DgLpv2ot.js → approvalHistoryViewModal-UzVPPpNH.js} +9 -9
- package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-DsoxsuXo.js} +83 -83
- package/dist/{approveLeftConfig-BOU_UgHp.js → approveLeftConfig-Cskh4ezK.js} +16 -16
- package/dist/{codeHistoryViewModal-BfSjIbEU.js → codeHistoryViewModal-BIktV_o6.js} +8 -8
- package/dist/{columnTables-DLwtgcC7.js → columnTables-a7yfMH5Q.js} +88 -80
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
- package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +12 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1222 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +617 -0
- package/dist/components/approval/core.vue.d.ts +2 -0
- package/dist/components/approval/typing.d.ts +1 -1
- package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
- package/dist/constants.d.ts +26 -0
- package/dist/{core-Cv0Erg9E.js → core-BY-t0ghx.js} +393 -352
- package/dist/{dataStoreSettingHistoryViewModal-D_so-KLp.js → dataStoreSettingHistoryViewModal-DjSRPgQC.js} +9 -9
- package/dist/{debugCode-Cm9-WiUG.js → debugCode-CTU6KCej.js} +20 -20
- package/dist/{default-VdDMlY4e.js → default-CFd6cRxl.js} +28 -21
- package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
- package/dist/{flowHistoryViewModal-D8DJP7Te.js → flowHistoryViewModal-CaGj3LP4.js} +9 -9
- package/dist/index.js +36 -34
- package/dist/{init-plugin-fQTSQzui.js → init-plugin-CpYzRii0.js} +7 -3
- package/dist/init-plugin.d.ts +13 -0
- package/dist/{leftColumn-CsPjufue.js → leftColumn-Dzw2Dk6g.js} +3 -3
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-C7M6-eVo.js → middleColumn-CTOCcPnB.js} +12 -12
- package/dist/{recordActions-BgFlNsGU.js → recordActions-z7hvfqGR.js} +1 -1
- package/dist/{tableConfig-uLXue-BS.js → tableConfig-CMhKXmQF.js} +740 -585
- package/dist/{tableModal-BcYfVL02.js → tableModal-LuDGonFy.js} +2 -2
- package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-6IFZrwvr.js} +68 -68
- package/dist/{utils-CLet2gLV.js → utils-DRldFEoM.js} +14 -10
- package/dist/{viewer-Dv3kQsMf.js → viewer-BDGXjryM.js} +916 -917
- package/package.json +1 -1
- package/dist/ActionsConfig-BuvSvRbv.js +0 -395
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as t, t as n } from "./columnTables-
|
|
1
|
+
import { T as e } from "./utils-DRldFEoM.js";
|
|
2
|
+
import { p as t, t as n } from "./columnTables-a7yfMH5Q.js";
|
|
3
3
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, openBlock as f, ref as p, resolveComponent as m, toDisplayString as h, useModel as g, watch as _, withCtx as v } from "vue";
|
|
4
4
|
import { message as y } from "ant-design-vue";
|
|
5
5
|
//#region src/components/approval/components/tableModal.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { t as e } from "./viewer-
|
|
2
|
-
import { a as t,
|
|
3
|
-
import { t as a } from "./recordActions-
|
|
1
|
+
import { t as e } from "./viewer-BDGXjryM.js";
|
|
2
|
+
import { a as t, b as n, f as r, o as i } from "./init-plugin-CpYzRii0.js";
|
|
3
|
+
import { t as a } from "./recordActions-z7hvfqGR.js";
|
|
4
4
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, watch as S, withCtx as C } from "vue";
|
|
5
5
|
import { message as w } from "ant-design-vue";
|
|
6
6
|
//#region src/components/approval_for_details.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var T = { class: "form-container" },
|
|
7
|
+
var T = { class: "form-container" }, E = { class: "header-container" }, ee = { class: "serial-number" }, te = { class: "article-title" }, D = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "modify-status"
|
|
10
|
-
},
|
|
10
|
+
}, O = {
|
|
11
11
|
class: "form-body descriptions",
|
|
12
12
|
style: { "padding-bottom": "10px" }
|
|
13
|
-
},
|
|
13
|
+
}, k = { class: "xinxi-title" }, A = { style: {
|
|
14
14
|
"white-space": "pre-line",
|
|
15
15
|
margin: "0",
|
|
16
16
|
color: "#909399"
|
|
17
|
-
} },
|
|
17
|
+
} }, j = { key: 0 }, M = { key: 0 }, ne = { style: {
|
|
18
18
|
overflow: "hidden",
|
|
19
19
|
"text-overflow": "ellipsis",
|
|
20
20
|
"white-space": "nowrap",
|
|
21
21
|
width: "100%",
|
|
22
22
|
"user-select": "text",
|
|
23
23
|
"text-align": "left"
|
|
24
|
-
} },
|
|
24
|
+
} }, re = { style: {
|
|
25
25
|
"white-space": "pre-line",
|
|
26
26
|
margin: "0",
|
|
27
27
|
color: "#909399"
|
|
28
|
-
} },
|
|
28
|
+
} }, ie = { key: 0 }, ae = { key: 0 }, oe = { style: {
|
|
29
29
|
overflow: "hidden",
|
|
30
30
|
"text-overflow": "ellipsis",
|
|
31
31
|
"white-space": "nowrap",
|
|
@@ -57,12 +57,12 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
57
57
|
} }, V = { style: {
|
|
58
58
|
height: "400px",
|
|
59
59
|
"margin-top": "10px"
|
|
60
|
-
} }, H = /* @__PURE__ */
|
|
60
|
+
} }, H = /* @__PURE__ */ n(/* @__PURE__ */ m({
|
|
61
61
|
name: "ApprovalForDetails",
|
|
62
62
|
__name: "approval_for_details",
|
|
63
63
|
props: { record: {} },
|
|
64
|
-
setup(t, { expose:
|
|
65
|
-
let i =
|
|
64
|
+
setup(t, { expose: n }) {
|
|
65
|
+
let i = r(), a = t, s = v([]), m = _({}), w = v({}), H = [
|
|
66
66
|
{
|
|
67
67
|
title: "序号",
|
|
68
68
|
dataIndex: "index",
|
|
@@ -258,7 +258,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
258
258
|
Y();
|
|
259
259
|
}), S(() => a.record?.id, () => {
|
|
260
260
|
Y();
|
|
261
|
-
}),
|
|
261
|
+
}), n({ reload: Y });
|
|
262
262
|
let ce = (e) => {
|
|
263
263
|
let t = /* @__PURE__ */ new Set();
|
|
264
264
|
return e.filter((e) => !t.has(e.title) && t.add(e.title));
|
|
@@ -298,14 +298,14 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
298
298
|
};
|
|
299
299
|
return (n, r) => {
|
|
300
300
|
let i = b("a-tag"), a = b("a-descriptions-item"), h = b("a-descriptions"), _ = b("a-button"), v = b("s-table");
|
|
301
|
-
return g(), u("div", T, [d("div",
|
|
302
|
-
d("div",
|
|
303
|
-
d("div",
|
|
304
|
-
m?.modify_status ? (g(), u("div",
|
|
301
|
+
return g(), u("div", T, [d("div", E, [
|
|
302
|
+
d("div", ee, "流程编码:" + x(t.record?.number), 1),
|
|
303
|
+
d("div", te, x(m?.context) + "(" + x(m?.flow_name) + ")", 1),
|
|
304
|
+
m?.modify_status ? (g(), u("div", D, [p(i, { color: le(m.modify_status) }, {
|
|
305
305
|
default: C(() => [f(x(m.modify_status), 1)]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["color"])])) : l("", !0)
|
|
308
|
-
]), d("div",
|
|
308
|
+
]), d("div", O, [
|
|
309
309
|
r[2] ||= d("div", {
|
|
310
310
|
class: "xinxi-title",
|
|
311
311
|
style: { "margin-top": "0" }
|
|
@@ -362,7 +362,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
362
362
|
_: 1
|
|
363
363
|
}),
|
|
364
364
|
(g(!0), u(o, null, y(s.value, (e, t) => (g(), u(o, { key: t }, [
|
|
365
|
-
d("div",
|
|
365
|
+
d("div", k, x(e?.group_name ? e.group_name : "审批信息" + (t + 1)), 1),
|
|
366
366
|
p(h, {
|
|
367
367
|
bordered: "",
|
|
368
368
|
column: e?.column ? e?.column : 3
|
|
@@ -371,13 +371,13 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
371
371
|
key: 0,
|
|
372
372
|
label: e.label
|
|
373
373
|
}, {
|
|
374
|
-
default: C(() => [d("p",
|
|
374
|
+
default: C(() => [d("p", A, x(e.value), 1)]),
|
|
375
375
|
_: 2
|
|
376
376
|
}, 1032, ["label"])) : e.type === "upload" ? (g(), c(a, {
|
|
377
377
|
key: 1,
|
|
378
378
|
label: e.label
|
|
379
379
|
}, {
|
|
380
|
-
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
380
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", j)) : l("", !0), p(_, {
|
|
381
381
|
type: "link",
|
|
382
382
|
onClick: (t) => $(e.url)
|
|
383
383
|
}, {
|
|
@@ -414,7 +414,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
414
414
|
size: "small",
|
|
415
415
|
stripe: ""
|
|
416
416
|
}, {
|
|
417
|
-
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
417
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", M)) : l("", !0), p(_, {
|
|
418
418
|
title: e.name,
|
|
419
419
|
style: {
|
|
420
420
|
"padding-left": "1px",
|
|
@@ -423,7 +423,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
423
423
|
type: "link",
|
|
424
424
|
onClick: (t) => $(e.url)
|
|
425
425
|
}, {
|
|
426
|
-
default: C(() => [d("span",
|
|
426
|
+
default: C(() => [d("span", ne, x(e.name), 1)]),
|
|
427
427
|
_: 2
|
|
428
428
|
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
429
429
|
_: 1
|
|
@@ -442,13 +442,13 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
442
442
|
key: 0,
|
|
443
443
|
label: e.label
|
|
444
444
|
}, {
|
|
445
|
-
default: C(() => [d("p",
|
|
445
|
+
default: C(() => [d("p", re, x(e.value), 1)]),
|
|
446
446
|
_: 2
|
|
447
447
|
}, 1032, ["label"])) : e.type === "upload" && !e.is_hide ? (g(), c(a, {
|
|
448
448
|
key: 1,
|
|
449
449
|
label: e.label
|
|
450
450
|
}, {
|
|
451
|
-
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
451
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", ie)) : l("", !0), p(_, {
|
|
452
452
|
type: "link",
|
|
453
453
|
onClick: (t) => $(e.url)
|
|
454
454
|
}, {
|
|
@@ -483,7 +483,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
483
483
|
size: "small",
|
|
484
484
|
stripe: ""
|
|
485
485
|
}, {
|
|
486
|
-
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br",
|
|
486
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", ae)) : l("", !0), p(_, {
|
|
487
487
|
title: e.name,
|
|
488
488
|
style: {
|
|
489
489
|
"padding-left": "1px",
|
|
@@ -492,7 +492,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
492
492
|
type: "link",
|
|
493
493
|
onClick: (t) => $(e.url)
|
|
494
494
|
}, {
|
|
495
|
-
default: C(() => [d("span",
|
|
495
|
+
default: C(() => [d("span", oe, x(e.name), 1)]),
|
|
496
496
|
_: 2
|
|
497
497
|
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
498
498
|
_: 1
|
|
@@ -713,51 +713,51 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
713
713
|
formModel: null,
|
|
714
714
|
isEdit: !1
|
|
715
715
|
}), G = (e) => {
|
|
716
|
-
let n = v(null),
|
|
716
|
+
let n = v(null), r = v(""), o = v(!1), c = v(!1), l = v({
|
|
717
717
|
edit_approve: !1,
|
|
718
718
|
cancel_agree_approve: !1,
|
|
719
719
|
print: !1
|
|
720
|
-
}),
|
|
720
|
+
}), u = v(!1), d = v(null), f = v(!1), p = v(null), m = s(() => {
|
|
721
721
|
let t = e.actions?.();
|
|
722
722
|
return {
|
|
723
723
|
...a(),
|
|
724
724
|
...t || {}
|
|
725
725
|
};
|
|
726
|
-
}),
|
|
726
|
+
}), h = s(() => e.modelType?.() || n.value?.menu_flag || r.value || ""), g = (e, n, r) => t(e, {
|
|
727
727
|
table_id: "approve-approve_record",
|
|
728
728
|
record: r,
|
|
729
729
|
context: W(),
|
|
730
730
|
settings: n.settings || {}
|
|
731
|
-
}),
|
|
731
|
+
}), _ = async (e) => {
|
|
732
732
|
if (!e || !n.value) return !1;
|
|
733
733
|
try {
|
|
734
|
-
return !(e.showCode?.enable && e.showCode?.code && !await
|
|
734
|
+
return !(e.showCode?.enable && e.showCode?.code && !await g(e.showCode.code, e, n.value) || e.disableCode?.enable && e.disableCode?.code && await g(e.disableCode.code, e, n.value));
|
|
735
735
|
} catch (e) {
|
|
736
736
|
return console.error("[useApproveRecordActions] 可用性判定脚本执行失败,按不可用处理", e), !1;
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, y = async () => {
|
|
739
739
|
let t = e.recordId();
|
|
740
740
|
if (!t) {
|
|
741
|
-
n.value = null,
|
|
741
|
+
n.value = null, c.value = !1, l.value = {
|
|
742
742
|
edit_approve: !1,
|
|
743
743
|
cancel_agree_approve: !1,
|
|
744
744
|
print: !1
|
|
745
745
|
};
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
|
-
|
|
748
|
+
o.value = !0;
|
|
749
749
|
try {
|
|
750
|
-
n.value = await
|
|
751
|
-
let [
|
|
752
|
-
|
|
753
|
-
edit_approve:
|
|
754
|
-
cancel_agree_approve:
|
|
750
|
+
n.value = await i({ approve_record_id: t }, "/approve/get_approve_record"), n.value?.menu_flag && (r.value = n.value.menu_flag), c.value = !0;
|
|
751
|
+
let [a, o] = await Promise.all([_(m.value.edit_approve), _(m.value.cancel_agree_approve)]);
|
|
752
|
+
l.value = {
|
|
753
|
+
edit_approve: a,
|
|
754
|
+
cancel_agree_approve: o,
|
|
755
755
|
print: !!(e.getPrintElement && n.value)
|
|
756
756
|
};
|
|
757
757
|
} finally {
|
|
758
|
-
n.value || (
|
|
758
|
+
n.value || (c.value = !1), o.value = !1;
|
|
759
759
|
}
|
|
760
|
-
},
|
|
760
|
+
}, b = async () => {
|
|
761
761
|
let t = e.getPrintElement?.();
|
|
762
762
|
if (!t) {
|
|
763
763
|
w.error("未找到可打印的内容区域");
|
|
@@ -770,12 +770,12 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
770
770
|
extraHead: "<style>@page { margin: 0mm; } body { padding: 10mm !important; box-sizing: border-box; }</style>",
|
|
771
771
|
...e.printOptions?.() || {}
|
|
772
772
|
});
|
|
773
|
-
},
|
|
773
|
+
}, x = async (e) => {
|
|
774
774
|
if (e === "print") {
|
|
775
|
-
await
|
|
775
|
+
await b();
|
|
776
776
|
return;
|
|
777
777
|
}
|
|
778
|
-
let t =
|
|
778
|
+
let t = m.value[e];
|
|
779
779
|
if (!t?.code) {
|
|
780
780
|
w.error(`未配置 ${e} 的执行代码`);
|
|
781
781
|
return;
|
|
@@ -786,7 +786,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
786
786
|
}
|
|
787
787
|
let r;
|
|
788
788
|
try {
|
|
789
|
-
r = await
|
|
789
|
+
r = await g(t.code, t, n.value);
|
|
790
790
|
} catch (e) {
|
|
791
791
|
w.error(e?.message || "操作失败");
|
|
792
792
|
return;
|
|
@@ -797,7 +797,7 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
797
797
|
w.error("代码未返回id");
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
|
-
|
|
800
|
+
d.value = e, u.value = !0;
|
|
801
801
|
} else if (e === "cancel_agree_approve") {
|
|
802
802
|
let e = r?.ids;
|
|
803
803
|
if (!e?.length) {
|
|
@@ -808,35 +808,35 @@ var T = { class: "form-container" }, ee = { class: "header-container" }, te = {
|
|
|
808
808
|
w.error("每次仅能作废一个审批单");
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
|
|
811
|
+
p.value = e[0], f.value = !0;
|
|
812
812
|
}
|
|
813
|
-
},
|
|
814
|
-
modelType:
|
|
815
|
-
approveRecordId:
|
|
816
|
-
onSaved: async () => {
|
|
817
|
-
await
|
|
813
|
+
}, C = (e) => !!l.value[e], T = s(() => ({
|
|
814
|
+
modelType: h.value,
|
|
815
|
+
approveRecordId: d.value,
|
|
816
|
+
onSaved: async (t) => {
|
|
817
|
+
await y(), e.onChange?.(), t?.committed && (u.value = !1);
|
|
818
818
|
}
|
|
819
|
-
})),
|
|
820
|
-
id:
|
|
819
|
+
})), E = s(() => ({
|
|
820
|
+
id: p.value,
|
|
821
821
|
onDone: async () => {
|
|
822
|
-
await
|
|
822
|
+
await y(), e.onChange?.();
|
|
823
823
|
}
|
|
824
824
|
}));
|
|
825
825
|
return S(() => e.recordId(), () => {
|
|
826
|
-
|
|
826
|
+
y();
|
|
827
827
|
}, { immediate: !0 }), {
|
|
828
828
|
record: n,
|
|
829
|
-
ready:
|
|
830
|
-
loading:
|
|
831
|
-
modelType:
|
|
832
|
-
availability:
|
|
833
|
-
canShow:
|
|
834
|
-
runAction:
|
|
835
|
-
editorOpen:
|
|
836
|
-
editorProps:
|
|
837
|
-
removeOpen:
|
|
838
|
-
removeProps:
|
|
839
|
-
reload:
|
|
829
|
+
ready: c,
|
|
830
|
+
loading: o,
|
|
831
|
+
modelType: h,
|
|
832
|
+
availability: l,
|
|
833
|
+
canShow: C,
|
|
834
|
+
runAction: x,
|
|
835
|
+
editorOpen: u,
|
|
836
|
+
editorProps: T,
|
|
837
|
+
removeOpen: f,
|
|
838
|
+
removeProps: E,
|
|
839
|
+
reload: y
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as e, o as t, u as n } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { message as r } from "ant-design-vue";
|
|
3
3
|
import { cloneDeep as i } from "lodash";
|
|
4
4
|
//#region src/utils/function.ts
|
|
@@ -7,9 +7,9 @@ var a = (e) => e != null && e !== "", o = (e) => e === null || e == null || e ==
|
|
|
7
7
|
e?.message ? (t = e.val, n = e.message) : t = e;
|
|
8
8
|
let i = document.createElement("textarea");
|
|
9
9
|
i.setAttribute("readonly", "readonly"), i.value = t, document.body.appendChild(i), i.select(), document.execCommand("copy") && r.info(n), document.body.removeChild(i);
|
|
10
|
-
}, c = (
|
|
11
|
-
let r =
|
|
12
|
-
return
|
|
10
|
+
}, c = (e, t) => {
|
|
11
|
+
let r = n();
|
|
12
|
+
return e == "input" && t == "in" ? "等于" : r[t];
|
|
13
13
|
};
|
|
14
14
|
function l(e, t = /* @__PURE__ */ new Set(), n = []) {
|
|
15
15
|
let r = [];
|
|
@@ -25,7 +25,7 @@ function l(e, t = /* @__PURE__ */ new Set(), n = []) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/approval/utils.ts
|
|
28
|
-
var u = () =>
|
|
28
|
+
var u = () => n(), d = [
|
|
29
29
|
{
|
|
30
30
|
value: "上月",
|
|
31
31
|
label: "上月"
|
|
@@ -46,7 +46,7 @@ var u = () => e(), d = [
|
|
|
46
46
|
value: "期初",
|
|
47
47
|
label: "期初"
|
|
48
48
|
}
|
|
49
|
-
], f = (
|
|
49
|
+
], f = (t, n) => e()[t], p = (e) => e ? e.filter((e) => e.value instanceof Array && e.value.length > 0 && !e.value.some((e) => o(e))) : [], m = /\{\{\s*([^{}]+?)\s*\}\}/g, h = /^\{\{\s*([^{}]+?)\s*\}\}$/, g = (e, t) => {
|
|
50
50
|
let n = t ? t[e] : void 0;
|
|
51
51
|
if (n == null || n === "") throw Error(`查询条件参数 {{${e}}} 未提供,请检查调用方是否传入了该参数`);
|
|
52
52
|
return n;
|
|
@@ -61,8 +61,8 @@ var u = () => e(), d = [
|
|
|
61
61
|
});
|
|
62
62
|
}, b = async (e) => {
|
|
63
63
|
if (!e) return [];
|
|
64
|
-
let
|
|
65
|
-
return y(l(
|
|
64
|
+
let n = await t({}, e.split("-")[0] + "/obtain_" + e.split("-")[1] + "_column_data", !1, { skip_error: !0 }), r = {};
|
|
65
|
+
return y(l(n || []), r), "id" in r || (r.id = "ID"), Object.keys(r).map((e) => ({
|
|
66
66
|
value: e,
|
|
67
67
|
label: r[e]
|
|
68
68
|
}));
|
|
@@ -71,6 +71,10 @@ var u = () => e(), d = [
|
|
|
71
71
|
label: "把(新建/修改)表单暂时保存,审批处于待提交状态(save_approve)",
|
|
72
72
|
value: "save_approve"
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
label: "保存(新建/修改)表单并立即提交,一步完成(save_and_commit_approve)",
|
|
76
|
+
value: "save_and_commit_approve"
|
|
77
|
+
},
|
|
74
78
|
{
|
|
75
79
|
label: "选择待提交/已通过(可修改)的审批进行编辑(edit_approve)",
|
|
76
80
|
value: "edit_approve"
|
|
@@ -336,7 +340,7 @@ var u = () => e(), d = [
|
|
|
336
340
|
if (!Array.isArray(e)) return e;
|
|
337
341
|
for (let t of e) for (let e of t?.fields || []) if (e) for (let t of E) t in e && delete e[t];
|
|
338
342
|
return e;
|
|
339
|
-
}, O = (e) =>
|
|
343
|
+
}, O = (e) => t(e, "/approve/create_modify_approve"), k = (e) => {
|
|
340
344
|
let t = typeof e == "string" ? Number(e) : e;
|
|
341
345
|
if (typeof t != "number" || !Number.isFinite(t)) return null;
|
|
342
346
|
let n = Math.floor(t);
|
|
@@ -417,4 +421,4 @@ var u = () => e(), d = [
|
|
|
417
421
|
};
|
|
418
422
|
};
|
|
419
423
|
//#endregion
|
|
420
|
-
export {
|
|
424
|
+
export { l as A, D as C, c as D, s as E, o as O, B as S, N as T, j as _, L as a, d as b, w as c, T as d, b as f, A as g, v as h, F as i, a as k, O as l, f as m, R as n, x as o, C as p, I as r, V as s, P as t, p as u, S as v, u as w, _ as x, M as y };
|