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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, o as t } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, renderList as f, resolveComponent as p, withCtx as m } from "vue";
|
|
3
3
|
//#region src/components/approval/components/approvalHistory/dataStoreSettingHistoryViewModal.vue?vue&type=script&lang.ts
|
|
4
4
|
var h = c({
|
|
@@ -19,19 +19,19 @@ var h = c({
|
|
|
19
19
|
},
|
|
20
20
|
components: {},
|
|
21
21
|
emits: ["ok", "cancel"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(e, { emit: n }) {
|
|
23
23
|
let r = () => {
|
|
24
24
|
n("cancel");
|
|
25
25
|
}, i = () => {}, a = d(!1), o = d([]), s = async () => {
|
|
26
26
|
let n = [{
|
|
27
27
|
field_name: "id",
|
|
28
28
|
operator: "in",
|
|
29
|
-
value:
|
|
29
|
+
value: e.history_ids,
|
|
30
30
|
format: "input",
|
|
31
31
|
class_name: "str"
|
|
32
32
|
}];
|
|
33
|
-
|
|
34
|
-
org_id:
|
|
33
|
+
t({
|
|
34
|
+
org_id: e.org_id,
|
|
35
35
|
is_pagination: !1,
|
|
36
36
|
column_fields: [
|
|
37
37
|
"id",
|
|
@@ -40,15 +40,15 @@ var h = c({
|
|
|
40
40
|
],
|
|
41
41
|
sort_fields: ["-id"],
|
|
42
42
|
conditions: [n]
|
|
43
|
-
}, "/approve/query_data_store_setting_history_list").then((
|
|
43
|
+
}, "/approve/query_data_store_setting_history_list").then((t) => {
|
|
44
44
|
let n = {};
|
|
45
|
-
a.value = !0,
|
|
45
|
+
a.value = !0, t.data.forEach((e) => {
|
|
46
46
|
n[e.id] = {
|
|
47
47
|
name: `[${e.id}]${e.create_time}`,
|
|
48
48
|
content: e.content,
|
|
49
49
|
data: JSON.parse(e.content)
|
|
50
50
|
};
|
|
51
|
-
}), o.value.length = 0,
|
|
51
|
+
}), o.value.length = 0, e.history_ids.forEach((e) => {
|
|
52
52
|
o.value.push(n[e]);
|
|
53
53
|
}), a.value = !1;
|
|
54
54
|
}).catch(() => {
|
|
@@ -109,6 +109,6 @@ function _(e, t, c, l, d, h) {
|
|
|
109
109
|
_: 1
|
|
110
110
|
}, 8, ["title", "onCancel"]);
|
|
111
111
|
}
|
|
112
|
-
var v = /* @__PURE__ */
|
|
112
|
+
var v = /* @__PURE__ */ e(h, [["render", _], ["__scopeId", "data-v-e4f69f29"]]);
|
|
113
113
|
//#endregion
|
|
114
114
|
export { v as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as e, b as t, c as n, o as r } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { n as i } from "./debugCode-dD1YnQSD.js";
|
|
3
|
-
import { t as a } from "./example_code-
|
|
3
|
+
import { t as a } from "./example_code-DKjqP7KK.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, normalizeClass as h, onMounted as g, onUnmounted as _, openBlock as v, reactive as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, toDisplayString as w, withCtx as T } from "vue";
|
|
5
5
|
import { Modal as E, message as D } from "ant-design-vue";
|
|
6
6
|
import { useI18n as O } from "vue-i18n";
|
|
@@ -20,8 +20,8 @@ var A = m({
|
|
|
20
20
|
},
|
|
21
21
|
components: {},
|
|
22
22
|
emits: ["apply"],
|
|
23
|
-
setup(
|
|
24
|
-
let a =
|
|
23
|
+
setup(t, { emit: i }) {
|
|
24
|
+
let a = e(), { t: o } = O(), c = b(!1), l = b(""), u = b(""), d = b([]), f = b(1), p = b(10), m = b(0), h = b([]), v = b([]), x = b(0), S = [
|
|
25
25
|
{
|
|
26
26
|
title: "ID",
|
|
27
27
|
dataIndex: "id",
|
|
@@ -52,13 +52,13 @@ var A = m({
|
|
|
52
52
|
let e = [{
|
|
53
53
|
field_name: "action_code_setting__action_code_id",
|
|
54
54
|
operator: "eq",
|
|
55
|
-
value: [
|
|
55
|
+
value: [t.action_code_id],
|
|
56
56
|
format: "input",
|
|
57
57
|
class_name: "str"
|
|
58
58
|
}, {
|
|
59
59
|
field_name: "action_code_setting__menu_flag",
|
|
60
60
|
operator: "eq",
|
|
61
|
-
value: [
|
|
61
|
+
value: [t.modelType],
|
|
62
62
|
format: "input",
|
|
63
63
|
class_name: "str"
|
|
64
64
|
}];
|
|
@@ -68,7 +68,7 @@ var A = m({
|
|
|
68
68
|
value: [d.value[0], d.value[1]],
|
|
69
69
|
format: "input",
|
|
70
70
|
class_name: "str"
|
|
71
|
-
}),
|
|
71
|
+
}), r({
|
|
72
72
|
current: f.value,
|
|
73
73
|
pageSize: p.value,
|
|
74
74
|
is_pagination: !0,
|
|
@@ -91,10 +91,10 @@ var A = m({
|
|
|
91
91
|
N(v.value);
|
|
92
92
|
}, j = (e, t) => {
|
|
93
93
|
f.value === e && p.value === t || (f.value = e || 1, p.value = t || 50, C());
|
|
94
|
-
}, M = (e) => e / 2, N = (
|
|
95
|
-
|
|
94
|
+
}, M = (e) => e / 2, N = (e) => {
|
|
95
|
+
n(y({
|
|
96
96
|
component: "codeHistoryViewModal",
|
|
97
|
-
history_ids:
|
|
97
|
+
history_ids: e,
|
|
98
98
|
height: x.value,
|
|
99
99
|
ok: (e) => {},
|
|
100
100
|
cancel: () => {}
|
|
@@ -107,7 +107,7 @@ var A = m({
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}, F = async (e) => {
|
|
110
|
-
let
|
|
110
|
+
let n = await r({
|
|
111
111
|
is_pagination: !1,
|
|
112
112
|
column_fields: [
|
|
113
113
|
"id",
|
|
@@ -125,10 +125,10 @@ var A = m({
|
|
|
125
125
|
class_name: "str"
|
|
126
126
|
}]]
|
|
127
127
|
}, "/approve/query_action_code_setting_history_list");
|
|
128
|
-
if (
|
|
129
|
-
let e =
|
|
130
|
-
return await
|
|
131
|
-
action_code_id:
|
|
128
|
+
if (n.data.length > 0) {
|
|
129
|
+
let e = n.data[0];
|
|
130
|
+
return await r({
|
|
131
|
+
action_code_id: t.action_code_id,
|
|
132
132
|
action: e.action,
|
|
133
133
|
code: e.code
|
|
134
134
|
}, "/approve/update_action_code"), i("apply", e), !0;
|
|
@@ -267,7 +267,7 @@ function F(e, t, n, r, i, a) {
|
|
|
267
267
|
"pagination"
|
|
268
268
|
])])], 64);
|
|
269
269
|
}
|
|
270
|
-
var I = /* @__PURE__ */
|
|
270
|
+
var I = /* @__PURE__ */ t(A, [["render", F], ["__scopeId", "data-v-74a2cbb7"]]), L = "click", R = "show", z = "disable", B = "value", V = "dynamic_title", H = m({
|
|
271
271
|
name: "debugCode",
|
|
272
272
|
props: {
|
|
273
273
|
action_code_id: {
|
|
@@ -314,7 +314,7 @@ var I = /* @__PURE__ */ r(A, [["render", F], ["__scopeId", "data-v-74a2cbb7"]]),
|
|
|
314
314
|
"update:dynamicTitle"
|
|
315
315
|
],
|
|
316
316
|
setup(e, { emit: t }) {
|
|
317
|
-
let
|
|
317
|
+
let n = k(), o = b(!1), c = b(e.code), l = b(e.action), u = i(), d = b(1), f = b(null), p = b(L), m = b("编辑代码"), h = b(""), _ = s(() => p.value === L ? l != null : !1), v = () => {
|
|
318
318
|
p.value = L, c.value = e.code, l.value = e.action, o.value = !0, m.value = "编辑点击事件";
|
|
319
319
|
}, y = () => {
|
|
320
320
|
p.value = R, c.value = e.showCode?.code, l.value = null, o.value = !0, m.value = "编辑显示控制";
|
|
@@ -341,7 +341,7 @@ var I = /* @__PURE__ */ r(A, [["render", F], ["__scopeId", "data-v-74a2cbb7"]]),
|
|
|
341
341
|
code: n.code
|
|
342
342
|
}) : p.value === B ? e.valueCode.code = n.code : p.value === V && (e.dynamicTitle.code = n.code), c.value = n.code, l.value = n.action;
|
|
343
343
|
}, O = async () => {
|
|
344
|
-
await
|
|
344
|
+
await r({
|
|
345
345
|
action_code_id: T.value,
|
|
346
346
|
menu_flag: h.value,
|
|
347
347
|
action: l.value,
|
|
@@ -366,7 +366,7 @@ var I = /* @__PURE__ */ r(A, [["render", F], ["__scopeId", "data-v-74a2cbb7"]]),
|
|
|
366
366
|
f.value && (c.value = `${c.value || ""}\n${f.value}`);
|
|
367
367
|
}, M = s(() => a.filter((e) => p.value === L ? e.types.includes(L) && e.actions.includes(l.value || null) : e.types.includes(p.value)));
|
|
368
368
|
return g(() => {
|
|
369
|
-
let e =
|
|
369
|
+
let e = n.path.split("/");
|
|
370
370
|
h.value = e[e.length - 1];
|
|
371
371
|
}), {
|
|
372
372
|
handleEditClick: v,
|
|
@@ -560,6 +560,6 @@ function U(e, t, n, r, i, a) {
|
|
|
560
560
|
"onOk"
|
|
561
561
|
])) : l("", !0)], 64);
|
|
562
562
|
}
|
|
563
|
-
var W = /* @__PURE__ */
|
|
563
|
+
var W = /* @__PURE__ */ t(H, [["render", U]]);
|
|
564
564
|
//#endregion
|
|
565
565
|
export { W as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t } from "./recordActions-
|
|
1
|
+
import { n as e, r as t } from "./recordActions-z7hvfqGR.js";
|
|
2
2
|
//#region src/components/approval/configs/approval/default.ts
|
|
3
3
|
var n = () => ({
|
|
4
4
|
type: "data_list",
|
|
@@ -530,28 +530,35 @@ var n = () => ({
|
|
|
530
530
|
rules: {},
|
|
531
531
|
options: {}
|
|
532
532
|
},
|
|
533
|
-
actions: [
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
533
|
+
actions: [
|
|
534
|
+
{
|
|
535
|
+
danger: !1,
|
|
536
|
+
label: "保存并提交",
|
|
537
|
+
settings: {},
|
|
538
|
+
type: "primary",
|
|
539
|
+
action: "save_and_commit_approve",
|
|
540
|
+
code: "async function run({ context, settings }) {\n const { tables, formModel } = context;\n return { data: context.formModel };\n}\n"
|
|
540
541
|
},
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
showCode: {
|
|
549
|
-
enable: !0,
|
|
550
|
-
code: "async function run({ context, settings }) {\n const { isEdit } = context;\n return !!isEdit;\n}\n"
|
|
542
|
+
{
|
|
543
|
+
danger: !1,
|
|
544
|
+
label: "保存",
|
|
545
|
+
settings: {},
|
|
546
|
+
type: "primary",
|
|
547
|
+
action: "save_approve",
|
|
548
|
+
code: "async function run({ context, settings }) {\n const { tables, formModel } = context;\n return { data: context.formModel };\n}\n"
|
|
551
549
|
},
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
550
|
+
{
|
|
551
|
+
danger: !1,
|
|
552
|
+
label: "新建",
|
|
553
|
+
settings: {},
|
|
554
|
+
showCode: {
|
|
555
|
+
enable: !0,
|
|
556
|
+
code: "async function run({ context, settings }) {\n const { isEdit } = context;\n return !!isEdit;\n}\n"
|
|
557
|
+
},
|
|
558
|
+
type: "default",
|
|
559
|
+
action: "clear_form"
|
|
560
|
+
}
|
|
561
|
+
]
|
|
555
562
|
},
|
|
556
563
|
n()
|
|
557
564
|
]
|
|
@@ -24,6 +24,12 @@ var e = "async function run({ table_id, record, context, settings }) {\n consol
|
|
|
24
24
|
actions: ["save_approve"],
|
|
25
25
|
types: ["click"]
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
label: "审批保存并提交",
|
|
29
|
+
value: r,
|
|
30
|
+
actions: ["save_and_commit_approve"],
|
|
31
|
+
types: ["click"]
|
|
32
|
+
},
|
|
27
33
|
{
|
|
28
34
|
label: "审批表格行编辑",
|
|
29
35
|
value: i,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, o as t } from "./init-plugin-CpYzRii0.js";
|
|
2
2
|
import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, renderList as f, resolveComponent as p, withCtx as m } from "vue";
|
|
3
3
|
//#region src/components/approval/components/approvalHistory/flowHistoryViewModal.vue?vue&type=script&lang.ts
|
|
4
4
|
var h = c({
|
|
@@ -19,19 +19,19 @@ var h = c({
|
|
|
19
19
|
},
|
|
20
20
|
components: {},
|
|
21
21
|
emits: ["ok", "cancel"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(e, { emit: n }) {
|
|
23
23
|
let r = () => {
|
|
24
24
|
n("cancel");
|
|
25
25
|
}, i = () => {}, a = d(!1), o = d([]), s = async () => {
|
|
26
26
|
let n = [{
|
|
27
27
|
field_name: "id",
|
|
28
28
|
operator: "in",
|
|
29
|
-
value:
|
|
29
|
+
value: e.history_ids,
|
|
30
30
|
format: "input",
|
|
31
31
|
class_name: "str"
|
|
32
32
|
}];
|
|
33
|
-
|
|
34
|
-
org_id:
|
|
33
|
+
t({
|
|
34
|
+
org_id: e.org_id,
|
|
35
35
|
is_pagination: !1,
|
|
36
36
|
column_fields: [
|
|
37
37
|
"id",
|
|
@@ -40,14 +40,14 @@ var h = c({
|
|
|
40
40
|
],
|
|
41
41
|
sort_fields: ["-id"],
|
|
42
42
|
conditions: [n]
|
|
43
|
-
}, "/approve/query_flow_setting_history_list").then((
|
|
43
|
+
}, "/approve/query_flow_setting_history_list").then((t) => {
|
|
44
44
|
let n = {};
|
|
45
|
-
a.value = !0,
|
|
45
|
+
a.value = !0, t.data.forEach((e) => {
|
|
46
46
|
n[e.id] = {
|
|
47
47
|
name: `[${e.id}]${e.create_time}`,
|
|
48
48
|
content: e.content
|
|
49
49
|
};
|
|
50
|
-
}), o.value.length = 0,
|
|
50
|
+
}), o.value.length = 0, e.history_ids.forEach((e) => {
|
|
51
51
|
o.value.push(n[e]);
|
|
52
52
|
}), a.value = !1;
|
|
53
53
|
}).catch(() => {
|
|
@@ -104,6 +104,6 @@ function _(e, t, c, l, d, h) {
|
|
|
104
104
|
_: 1
|
|
105
105
|
}, 8, ["title", "onCancel"]);
|
|
106
106
|
}
|
|
107
|
-
var v = /* @__PURE__ */
|
|
107
|
+
var v = /* @__PURE__ */ e(h, [["render", _], ["__scopeId", "data-v-7a87c333"]]);
|
|
108
108
|
//#endregion
|
|
109
109
|
export { v as default };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Dn as e, t } from "./viewer-
|
|
2
|
-
import { n, t as r } from "./MyProcess-
|
|
3
|
-
import {
|
|
4
|
-
import { n as c, r as l, t as u } from "./useApprovalRecordActions-
|
|
5
|
-
import { t as d } from "./CancelModal-
|
|
1
|
+
import { Dn as e, t } from "./viewer-BDGXjryM.js";
|
|
2
|
+
import { n, t as r } from "./MyProcess-SGZ_-9C3.js";
|
|
3
|
+
import { f as i, i as a, t as o, y as s } from "./init-plugin-CpYzRii0.js";
|
|
4
|
+
import { n as c, r as l, t as u } from "./useApprovalRecordActions-6IFZrwvr.js";
|
|
5
|
+
import { t as d } from "./CancelModal-CgQeC543.js";
|
|
6
6
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineAsyncComponent as b, defineComponent as x, isRef as S, mergeProps as C, onMounted as w, openBlock as T, ref as E, resolveComponent as D, toDisplayString as O, unref as k, withCtx as A } from "vue";
|
|
7
7
|
(/* @__PURE__ */ e(((e, t) => {
|
|
8
8
|
(function(r) {
|
|
@@ -313,18 +313,20 @@ var j = { style: {
|
|
|
313
313
|
__name: "Cell_click_data_source",
|
|
314
314
|
props: { cmpObj: {} },
|
|
315
315
|
setup(e) {
|
|
316
|
-
let t = e, n =
|
|
316
|
+
let t = e, n = i(), r = s()?.current_org, a = E(!1), o = E(!1), u = E("base"), x = E(!1), F = E(t.cmpObj?.text), I = p(() => {
|
|
317
317
|
let e = t.cmpObj?.text;
|
|
318
318
|
return e != null && e !== "";
|
|
319
319
|
}), L = E({}), R = E(null), z = E(null), B = E(null), { canShow: V, runAction: H, loading: U, editorOpen: W, editorProps: G, removeOpen: K, removeProps: q } = c({
|
|
320
|
-
recordId: () =>
|
|
320
|
+
recordId: () => a.value ? R.value?.id ?? null : null,
|
|
321
321
|
modelType: () => R.value?.menu_flag,
|
|
322
322
|
getPrintElement: () => z.value,
|
|
323
323
|
printTitle: "审批信息",
|
|
324
324
|
onChange: () => {
|
|
325
325
|
B.value?.reload();
|
|
326
326
|
}
|
|
327
|
-
}), J =
|
|
327
|
+
}), J = async (e) => {
|
|
328
|
+
await H(e), (W.value || K.value) && (a.value = !1);
|
|
329
|
+
}, Y = b(() => import("./ApprovalEditorModal-BsHxlueJ.js")), X = async (e) => {
|
|
328
330
|
let t = N.get(e);
|
|
329
331
|
if (t && Date.now() - t.time < M) return t.data;
|
|
330
332
|
let i = P.get(e);
|
|
@@ -342,25 +344,25 @@ var j = { style: {
|
|
|
342
344
|
data: o,
|
|
343
345
|
time: Date.now()
|
|
344
346
|
}), o;
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
+
}, Z = async () => {
|
|
348
|
+
o.value = !0;
|
|
347
349
|
try {
|
|
348
|
-
let e = await
|
|
350
|
+
let e = await X(t.cmpObj.text);
|
|
349
351
|
L.value = e.excel_item, R.value = e.approve_record, L.value.name && (F.value = L.value.name), x.value = !0;
|
|
350
352
|
} finally {
|
|
351
|
-
|
|
353
|
+
o.value = !1;
|
|
352
354
|
}
|
|
353
355
|
};
|
|
354
356
|
w(() => {
|
|
355
|
-
I.value &&
|
|
357
|
+
I.value && Z();
|
|
356
358
|
});
|
|
357
|
-
let
|
|
358
|
-
I.value && (
|
|
359
|
-
},
|
|
360
|
-
|
|
359
|
+
let Q = async () => {
|
|
360
|
+
I.value && (a.value = !0, x.value || await Z(), u.value = R.value ? "approve" : "base");
|
|
361
|
+
}, $ = () => {
|
|
362
|
+
a.value = !1;
|
|
361
363
|
};
|
|
362
364
|
return (e, t) => {
|
|
363
|
-
let n = D("a-button"), r = D("a-descriptions-item"), i = D("a-descriptions"),
|
|
365
|
+
let n = D("a-button"), r = D("a-descriptions-item"), i = D("a-descriptions"), s = D("a-tab-pane"), c = D("a-tabs"), p = D("a-spin"), b = D("a-drawer");
|
|
364
366
|
return T(), g(f, null, [
|
|
365
367
|
y(n, {
|
|
366
368
|
title: F.value,
|
|
@@ -370,7 +372,7 @@ var j = { style: {
|
|
|
370
372
|
width: "100%"
|
|
371
373
|
},
|
|
372
374
|
type: "link",
|
|
373
|
-
onClick: t[0] ||= (e) =>
|
|
375
|
+
onClick: t[0] ||= (e) => Q()
|
|
374
376
|
}, {
|
|
375
377
|
default: A(() => [_("span", j, O(I.value ? F.value : "—"), 1)]),
|
|
376
378
|
_: 1
|
|
@@ -378,12 +380,12 @@ var j = { style: {
|
|
|
378
380
|
y(b, {
|
|
379
381
|
"body-style": { padding: "10px 20px" },
|
|
380
382
|
footer: null,
|
|
381
|
-
open:
|
|
383
|
+
open: a.value,
|
|
382
384
|
width: 1120,
|
|
383
385
|
title: "数据来源",
|
|
384
|
-
onClose:
|
|
386
|
+
onClose: $
|
|
385
387
|
}, {
|
|
386
|
-
default: A(() => [y(p, { spinning:
|
|
388
|
+
default: A(() => [y(p, { spinning: o.value }, {
|
|
387
389
|
default: A(() => [y(c, {
|
|
388
390
|
activeKey: u.value,
|
|
389
391
|
"onUpdate:activeKey": t[4] ||= (e) => u.value = e
|
|
@@ -393,7 +395,7 @@ var j = { style: {
|
|
|
393
395
|
key: 0,
|
|
394
396
|
loading: k(U),
|
|
395
397
|
type: "primary",
|
|
396
|
-
onClick: t[1] ||= (e) =>
|
|
398
|
+
onClick: t[1] ||= (e) => J("edit_approve")
|
|
397
399
|
}, {
|
|
398
400
|
default: A(() => [...t[7] ||= [v(" 修改 ", -1)]]),
|
|
399
401
|
_: 1
|
|
@@ -404,7 +406,7 @@ var j = { style: {
|
|
|
404
406
|
danger: "",
|
|
405
407
|
style: { "margin-left": "10px" },
|
|
406
408
|
type: "primary",
|
|
407
|
-
onClick: t[2] ||= (e) =>
|
|
409
|
+
onClick: t[2] ||= (e) => J("cancel_agree_approve")
|
|
408
410
|
}, {
|
|
409
411
|
default: A(() => [...t[8] ||= [v(" 删除 ", -1)]]),
|
|
410
412
|
_: 1
|
|
@@ -419,7 +421,7 @@ var j = { style: {
|
|
|
419
421
|
_: 1
|
|
420
422
|
})) : h("", !0)
|
|
421
423
|
], 64)) : h("", !0)]),
|
|
422
|
-
default: A(() => [y(
|
|
424
|
+
default: A(() => [y(s, {
|
|
423
425
|
key: "base",
|
|
424
426
|
tab: "基础信息"
|
|
425
427
|
}, {
|
|
@@ -495,7 +497,7 @@ var j = { style: {
|
|
|
495
497
|
_: 1
|
|
496
498
|
})]),
|
|
497
499
|
_: 1
|
|
498
|
-
}), R.value ? (T(), m(
|
|
500
|
+
}), R.value ? (T(), m(s, {
|
|
499
501
|
key: "approve",
|
|
500
502
|
tab: "审批单"
|
|
501
503
|
}, {
|
|
@@ -517,7 +519,7 @@ var j = { style: {
|
|
|
517
519
|
}, 8, ["spinning"])]),
|
|
518
520
|
_: 1
|
|
519
521
|
}, 8, ["open"]),
|
|
520
|
-
k(W) ? (T(), m(k(
|
|
522
|
+
k(W) ? (T(), m(k(Y), C({
|
|
521
523
|
key: 0,
|
|
522
524
|
open: k(W),
|
|
523
525
|
"onUpdate:open": t[5] ||= (e) => S(W) ? W.value = e : null
|
|
@@ -530,15 +532,15 @@ var j = { style: {
|
|
|
530
532
|
], 64);
|
|
531
533
|
};
|
|
532
534
|
}
|
|
533
|
-
}), I = b(() => import("./approval-
|
|
534
|
-
codeHistoryViewModal: () => import("./codeHistoryViewModal-
|
|
535
|
-
approvalHistoryViewModal: () => import("./approvalHistoryViewModal-
|
|
536
|
-
flowHistoryViewModal: () => import("./flowHistoryViewModal-
|
|
535
|
+
}), I = b(() => import("./approval-DD00xYMY.js")), L = b(() => import("./approvalPageConfig-DsoxsuXo.js")), R = b(() => import("./approvalHistory-DsHMvx1n.js")), z = b(() => import("./debugCode-CTU6KCej.js")), B = b(() => import("./ApprovalEditorModal-BsHxlueJ.js")), V = b(() => import("./Cell_click_approve-CzEatC97.js")), H = {
|
|
536
|
+
codeHistoryViewModal: () => import("./codeHistoryViewModal-BIktV_o6.js"),
|
|
537
|
+
approvalHistoryViewModal: () => import("./approvalHistoryViewModal-UzVPPpNH.js"),
|
|
538
|
+
flowHistoryViewModal: () => import("./flowHistoryViewModal-CaGj3LP4.js")
|
|
537
539
|
}, U = { install(e, t) {
|
|
538
|
-
e.use(
|
|
539
|
-
for (let n of Object.keys(
|
|
540
|
+
e.use(a(t || {}));
|
|
541
|
+
for (let n of Object.keys(o)) {
|
|
540
542
|
let r = t?.[n];
|
|
541
|
-
r && e.component(
|
|
543
|
+
r && e.component(o[n], r);
|
|
542
544
|
}
|
|
543
545
|
for (let t of Object.keys(H)) e.component(t, b(H[t]));
|
|
544
546
|
e.component("Cell_click_data_source", F).component("Cell_click_approve", V).component("approvalIndex", I).component("approvalSettings", L).component("approvalHistory", R);
|
|
@@ -40,9 +40,13 @@ function d(...e) {
|
|
|
40
40
|
function f(...e) {
|
|
41
41
|
return i("cellComponentList")(...e);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
var p = () => {
|
|
44
|
+
let e = t.cellSummaryComponentList;
|
|
45
|
+
return (typeof e == "function" ? e() : e) || [];
|
|
46
|
+
}, m = () => t.numfmtPatternPresets || [];
|
|
47
|
+
function h(...e) {
|
|
44
48
|
return i("modalBox")(...e);
|
|
45
49
|
}
|
|
46
|
-
var
|
|
50
|
+
var g = () => i("pageSelectOptions"), _ = () => i("modelOperator"), v = () => i("modelTypeList"), y = () => i("ConditionOperatorMap"), b = () => i("operator_params_count"), x = () => t.customConfigs || {};
|
|
47
51
|
//#endregion
|
|
48
|
-
export {
|
|
52
|
+
export { g as _, u as a, e as b, h as c, x as d, o as f, b as g, m as h, r as i, p as l, v as m, l as n, c as o, _ as p, f as r, d as s, n as t, y as u, a as v, s as y };
|
package/dist/init-plugin.d.ts
CHANGED
|
@@ -22,6 +22,19 @@ export declare function executeScriptInWorker(...args: any[]): any;
|
|
|
22
22
|
export declare function get_org_id(...args: any[]): any;
|
|
23
23
|
/** 可选单元格组件(含宿主注册的自定义单元格) */
|
|
24
24
|
export declare function cellComponentList(...args: any[]): any;
|
|
25
|
+
/**
|
|
26
|
+
* 汇总组件清单(★ v29.50.12 用户定案:**不在本库定义兜底清单**,统一使用
|
|
27
|
+
* liyu-pc-lib/src/components/cellComponent/data.ts 的 commonCellSummaryComponentList ——
|
|
28
|
+
* 宿主经 `cellSummaryComponentList: cellSummaryComponentList()` 注入)。
|
|
29
|
+
* ⚠️ 宿主传的是 **lib 导出的函数**,这里必须调用它取数组(原样返回函数会让 v-for 遍历函数 → 下拉恒空);
|
|
30
|
+
* 宿主未注入时返回空数组(合计组件下拉为空,仅此而已,不抛错)。
|
|
31
|
+
*/
|
|
32
|
+
export declare const useCellSummaryComponentList: () => any[];
|
|
33
|
+
/**
|
|
34
|
+
* 可选注入:通用数字格式串预设(宿主传 liyu-pc-lib/utils/numfmt_format 的
|
|
35
|
+
* NUMFMT_PATTERN_PRESETS)。未注入时返回空数组 —— a-auto-complete 仍可自由输入格式串。
|
|
36
|
+
*/
|
|
37
|
+
export declare const useNumfmtPatternPresets: () => any[];
|
|
25
38
|
/** 弹窗(走宿主事件总线 modal.add,必须与宿主 basic-layout 的监听同一个 bus 实例) */
|
|
26
39
|
export declare function modalBox(...args: any[]): any;
|
|
27
40
|
export declare const usePageSelectOptions: () => Array<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as t, t as n } from "./tableConfig-
|
|
3
|
-
import { t as r } from "./ActionsConfig-
|
|
1
|
+
import { b as e } from "./init-plugin-CpYzRii0.js";
|
|
2
|
+
import { r as t, t as n } from "./tableConfig-CMhKXmQF.js";
|
|
3
|
+
import { t as r } from "./ActionsConfig-gWnpd8yJ.js";
|
|
4
4
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, reactive as m, ref as h, resolveComponent as g, withCtx as _, withModifiers as v } from "vue";
|
|
5
5
|
//#region src/components/approval/components/approvalPageConfig/leftColumn.vue?vue&type=script&lang.ts
|
|
6
6
|
var y = f({
|