lyflowchart 1.0.170 → 1.0.175
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-Bx0tgz1e.js → ActionsConfig-qT6Bc-4m.js} +1 -1
- package/dist/{ApprovalEditorModal-CiaYzraw.js → ApprovalEditorModal-ya6wSz_K.js} +1 -1
- package/dist/CancelModal--ylIIPjo.js +80 -0
- package/dist/{Cell_click_approve-Cn5f0ofI.js → Cell_click_approve-CkTzNo0c.js} +3 -3
- package/dist/{approval-TIlcTs-h.js → approval-BaIlEt6M.js} +2 -2
- package/dist/{approval-DEJzLlL0.js → approval-DwIVRNQk.js} +1 -1
- package/dist/{approvalHistory-BYTbTSXf.js → approvalHistory-BjMzTPTH.js} +1 -1
- package/dist/{approvalPageConfig-Yn3tPl7r.js → approvalPageConfig-BdW2hpxX.js} +5 -5
- package/dist/{columnTables-Drq0OCcY.js → columnTables-Bcjih5vD.js} +1 -1
- package/dist/components/approval/components/CancelModal.vue.d.ts +3 -3
- package/dist/components/approval/useApprovalRecordActions.d.ts +1 -1
- package/dist/{core-JkhxFOXr.js → core-R1eodqEI.js} +206 -231
- package/dist/{default-BNQ2XYku.js → default-CNBMPyix.js} +7 -0
- package/dist/index.js +4 -4
- package/dist/{leftColumn-Bn1KoLRy.js → leftColumn-GyLhpACC.js} +2 -2
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-Cdx9-JfV.js → middleColumn-PrdbogUl.js} +2 -2
- package/dist/{tableConfig-B6bfpf7X.js → tableConfig-DL2-129W.js} +2 -2
- package/dist/{tableModal-DJ4BgjcA.js → tableModal-DL-BbNkn.js} +2 -2
- package/dist/{useApprovalRecordActions-BiFAYrYg.js → useApprovalRecordActions-gkFffZvz.js} +1 -1
- package/dist/{utils-DRldFEoM.js → utils-DwIGp2_v.js} +1 -5
- package/package.json +1 -1
- package/dist/CancelModal-CgQeC543.js +0 -61
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as e } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { S as t, o as n } from "./utils-
|
|
2
|
+
import { S as t, o as n } from "./utils-DwIGp2_v.js";
|
|
3
3
|
import { t as r } from "./example_code-Bqj9GjMk.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, normalizeClass as p, openBlock as m, ref as h, renderList as g, resolveComponent as _, shallowRef as v, toDisplayString as y, toRaw as b, withCtx as x, withModifiers as S } from "vue";
|
|
5
5
|
import { CopyOutlined as C, DeleteOutlined as w, DownOutlined as T, HolderOutlined as E, NodeCollapseOutlined as D, NodeExpandOutlined as O, RightOutlined as k } from "@ant-design/icons-vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./core-
|
|
1
|
+
import { t as e } from "./core-R1eodqEI.js";
|
|
2
2
|
import { createBlock as t, createCommentVNode as n, defineComponent as r, mergeModels as i, openBlock as a, resolveComponent as o, useModel as s, withCtx as c } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/approval/ApprovalEditorModal.vue
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { o as e } from "./init-plugin-CpYzRii0.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createVNode as i, defineComponent as a, mergeModels as o, openBlock as s, reactive as c, ref as l, resolveComponent as u, useModel as d, watch as f, withCtx as p } from "vue";
|
|
3
|
+
import { message as m } from "ant-design-vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/approval/components/CancelModal.vue
|
|
6
|
+
var h = /* @__PURE__ */ a({
|
|
7
|
+
name: "ApprovalCancelModal",
|
|
8
|
+
__name: "CancelModal",
|
|
9
|
+
props: /* @__PURE__ */ o({
|
|
10
|
+
id: { default: null },
|
|
11
|
+
eventBus: { default: null }
|
|
12
|
+
}, {
|
|
13
|
+
cancelModalShow: {},
|
|
14
|
+
cancelModalShowModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: /* @__PURE__ */ o(["done"], ["update:cancelModalShow"]),
|
|
17
|
+
setup(a, { emit: o }) {
|
|
18
|
+
let h = a, g = o, _ = d(a, "cancelModalShow"), v = c({ bz: "" }), y = l(null), b = l(!1), x = t(() => Array.isArray(h.id) ? h.id.length : +!!h.id), S = t(() => x.value - w.value.length), C = t(() => x.value ? Math.round(S.value / x.value * 100) : 0), w = l([]);
|
|
19
|
+
f([() => h.id, _], ([e, t]) => {
|
|
20
|
+
t && (w.value = Array.isArray(e) ? [...e] : e ? [e] : []);
|
|
21
|
+
}, { immediate: !0 });
|
|
22
|
+
let T = async () => {
|
|
23
|
+
if (!w.value.length) {
|
|
24
|
+
m.error("未获取到要作废的审批记录");
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
await y.value.validate(), b.value = !0;
|
|
28
|
+
try {
|
|
29
|
+
for (let t of [...w.value]) await e({
|
|
30
|
+
approve_record_id: t,
|
|
31
|
+
bz: v.bz
|
|
32
|
+
}, "/approve/cancel_agree_approve_record"), w.value.shift();
|
|
33
|
+
} catch {
|
|
34
|
+
return;
|
|
35
|
+
} finally {
|
|
36
|
+
b.value = !1;
|
|
37
|
+
}
|
|
38
|
+
h.eventBus?.emit("reload_table"), g("done"), m.success(x.value > 1 ? `删除成功(共 ${x.value} 条)` : "作废成功"), _.value = !1;
|
|
39
|
+
};
|
|
40
|
+
return (e, t) => {
|
|
41
|
+
let a = u("a-progress"), o = u("a-textarea"), c = u("a-form-item"), l = u("a-form"), d = u("a-modal");
|
|
42
|
+
return s(), n(d, {
|
|
43
|
+
open: _.value,
|
|
44
|
+
"onUpdate:open": t[1] ||= (e) => _.value = e,
|
|
45
|
+
title: "审批作废",
|
|
46
|
+
"confirm-loading": b.value,
|
|
47
|
+
onOk: T
|
|
48
|
+
}, {
|
|
49
|
+
default: p(() => [x.value > 1 && (b.value || S.value > 0) ? (s(), n(a, {
|
|
50
|
+
key: 0,
|
|
51
|
+
percent: C.value,
|
|
52
|
+
format: () => `${S.value}/${x.value}`,
|
|
53
|
+
size: "small",
|
|
54
|
+
style: { "margin-bottom": "12px" }
|
|
55
|
+
}, null, 8, ["percent", "format"])) : r("", !0), i(l, {
|
|
56
|
+
model: v,
|
|
57
|
+
ref_key: "formRef",
|
|
58
|
+
ref: y
|
|
59
|
+
}, {
|
|
60
|
+
default: p(() => [i(c, {
|
|
61
|
+
name: "bz",
|
|
62
|
+
rules: [{ required: !0 }],
|
|
63
|
+
label: "删除原因"
|
|
64
|
+
}, {
|
|
65
|
+
default: p(() => [i(o, {
|
|
66
|
+
placeholder: "请输入删除原因",
|
|
67
|
+
value: v.bz,
|
|
68
|
+
"onUpdate:value": t[0] ||= (e) => v.bz = e
|
|
69
|
+
}, null, 8, ["value"])]),
|
|
70
|
+
_: 1
|
|
71
|
+
})]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["model"])]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["open", "confirm-loading"]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
export { h as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, o as t, y as n } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { n as r, r as i } from "./useApprovalRecordActions-
|
|
3
|
-
import { t as a } from "./CancelModal
|
|
2
|
+
import { n as r, r as i } from "./useApprovalRecordActions-gkFffZvz.js";
|
|
3
|
+
import { t as a } from "./CancelModal--ylIIPjo.js";
|
|
4
4
|
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineAsyncComponent as p, defineComponent as m, isRef as h, mergeProps as g, openBlock as _, reactive as v, ref as y, resolveComponent as b, toDisplayString as x, unref as S, withCtx as C } from "vue";
|
|
5
5
|
import { Modal as w, message as T } from "ant-design-vue";
|
|
6
6
|
//#region src/components/Cell_click_approve.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -26,7 +26,7 @@ var E = { style: {
|
|
|
26
26
|
}
|
|
27
27
|
}), W = async (e) => {
|
|
28
28
|
await R(e), (B.value || H.value) && (k.value = !1);
|
|
29
|
-
}, G = p(() => import("./ApprovalEditorModal-
|
|
29
|
+
}, G = p(() => import("./ApprovalEditorModal-ya6wSz_K.js")), K = async () => {
|
|
30
30
|
k.value = !0;
|
|
31
31
|
let e = await t({
|
|
32
32
|
org_id: O?.id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as e, o as t } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { C as n, d as r } from "./utils-
|
|
2
|
+
import { C as n, d as r } from "./utils-DwIGp2_v.js";
|
|
3
3
|
import { cloneDeep as i } from "lodash";
|
|
4
4
|
var a = (async () => {
|
|
5
5
|
let e = /* @__PURE__ */ Object.assign({ "./v0001.ts": () => import("./v0001-iEj36Rvz.js") }), t = Object.keys(e).map(async (t) => {
|
|
@@ -21,7 +21,7 @@ var a = (async () => {
|
|
|
21
21
|
if (Object.keys(s).length > 0) return s[t] ? (await s[t]()).default : (await s.default()).default;
|
|
22
22
|
let n = {
|
|
23
23
|
.../* @__PURE__ */ Object.assign({
|
|
24
|
-
"./configs/approval/default.ts": () => import("./default-
|
|
24
|
+
"./configs/approval/default.ts": () => import("./default-CNBMPyix.js"),
|
|
25
25
|
"./configs/approval/recordActions.ts": () => import("./recordActions-z7hvfqGR.js").then((e) => e.i)
|
|
26
26
|
}),
|
|
27
27
|
...e()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e, b as t, c as n, o as r, y as i } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { C as a } from "./utils-
|
|
2
|
+
import { C as a } from "./utils-DwIGp2_v.js";
|
|
3
3
|
import { t as o } from "./approveLeftConfig-BKDdM87m.js";
|
|
4
4
|
import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineAsyncComponent as m, defineComponent as h, normalizeStyle as g, onMounted as _, openBlock as v, reactive as y, ref as b, resolveComponent as x, toDisplayString as S, watch as C, withCtx as w } from "vue";
|
|
5
5
|
import { Modal as T, message as E } from "ant-design-vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./viewer-BDGXjryM.js";
|
|
2
2
|
import { t } from "./MyProcess-SGZ_-9C3.js";
|
|
3
3
|
import { b as n, o as r, v as i, y as a } from "./init-plugin-CpYzRii0.js";
|
|
4
|
-
import { n as o, r as s, t as c } from "./approval-
|
|
5
|
-
import { C as l, O as u, d, v as f } from "./utils-
|
|
4
|
+
import { n as o, r as s, t as c } from "./approval-BaIlEt6M.js";
|
|
5
|
+
import { C as l, O as u, d, v as f } from "./utils-DwIGp2_v.js";
|
|
6
6
|
import { n as p, t as m } from "./debugCode-_6PzXpbO.js";
|
|
7
7
|
import { t as h } from "./approveLeftConfig-BKDdM87m.js";
|
|
8
8
|
import { t as g } from "./JsonTags-BQZ9jIF_.js";
|
|
@@ -2074,18 +2074,18 @@ var ft = /* @__PURE__ */ n(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
|
|
|
2074
2074
|
{
|
|
2075
2075
|
title: "左侧栏",
|
|
2076
2076
|
key: "tables",
|
|
2077
|
-
component: D(() => import("./leftColumn-
|
|
2077
|
+
component: D(() => import("./leftColumn-GyLhpACC.js"))
|
|
2078
2078
|
},
|
|
2079
2079
|
{
|
|
2080
2080
|
title: "中间栏",
|
|
2081
2081
|
key: "form",
|
|
2082
|
-
component: D(() => import("./middleColumn-
|
|
2082
|
+
component: D(() => import("./middleColumn-PrdbogUl.js"))
|
|
2083
2083
|
},
|
|
2084
2084
|
{
|
|
2085
2085
|
title: "右侧栏",
|
|
2086
2086
|
key: "data_list",
|
|
2087
2087
|
sectionType: "data_list",
|
|
2088
|
-
component: D(() => import("./tableConfig-
|
|
2088
|
+
component: D(() => import("./tableConfig-DL2-129W.js").then((e) => e.n))
|
|
2089
2089
|
}
|
|
2090
2090
|
], oe = b(() => {
|
|
2091
2091
|
let e = K("form");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, b as t, o as n } from "./init-plugin-CpYzRii0.js";
|
|
2
|
-
import { O as r, _ as i, b as a, g as o, h as s, k as c, m as l, o as u, u as d, w as f, x as p, y as m } from "./utils-
|
|
2
|
+
import { O as r, _ as i, b as a, g as o, h as s, k as c, m as l, o as u, u as d, w as f, x as p, y as m } from "./utils-DwIGp2_v.js";
|
|
3
3
|
import { r as h } from "./dbViewAdapter-ByVGSDgn.js";
|
|
4
4
|
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as E, normalizeStyle as D, onMounted as ee, onUnmounted as te, openBlock as O, reactive as k, ref as A, renderList as j, resolveComponent as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, watch as I, withCtx as L } from "vue";
|
|
5
5
|
import { message as ne } from "ant-design-vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
/** 要作废的审批记录 id */
|
|
3
|
-
id?: number | null;
|
|
2
|
+
/** 要作废的审批记录 id;批量作废传 id 数组(轮询逐条调接口),单条传单个 id(旧用法兼容) */
|
|
3
|
+
id?: number | number[] | null;
|
|
4
4
|
/** 审批页面的事件总线;详情场景不传 */
|
|
5
5
|
eventBus?: {
|
|
6
6
|
emit: (event: string, payload?: any) => void;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
17
17
|
onDone?: () => any;
|
|
18
18
|
"onUpdate:cancelModalShow"?: (value: any) => any;
|
|
19
19
|
}>, {
|
|
20
|
-
id: number | null;
|
|
20
|
+
id: number | number[] | null;
|
|
21
21
|
eventBus: {
|
|
22
22
|
emit: (event: string, payload?: any) => void;
|
|
23
23
|
} | null;
|
|
@@ -78,7 +78,7 @@ export declare const useApproveRecordActions: (options: UseApproveRecordActionsO
|
|
|
78
78
|
}>;
|
|
79
79
|
removeOpen: Ref<boolean, boolean>;
|
|
80
80
|
removeProps: import("vue").ComputedRef<{
|
|
81
|
-
id: number;
|
|
81
|
+
id: number | number[];
|
|
82
82
|
onDone: () => Promise<void>;
|
|
83
83
|
}>;
|
|
84
84
|
reload: () => Promise<void>;
|