lyflowchart 1.0.170 → 1.0.172

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.
@@ -1,4 +1,4 @@
1
- import { t as e } from "./core-JkhxFOXr.js";
1
+ import { t as e } from "./core-BbRTQ1Aj.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-BiFAYrYg.js";
3
- import { t as a } from "./CancelModal-CgQeC543.js";
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-CiaYzraw.js")), K = async () => {
29
+ }, G = p(() => import("./ApprovalEditorModal-D3ydOxhg.js")), K = async () => {
30
30
  k.value = !0;
31
31
  let e = await t({
32
32
  org_id: O?.id,
@@ -1,4 +1,4 @@
1
- import { t as e } from "./core-JkhxFOXr.js";
1
+ import { t as e } from "./core-BbRTQ1Aj.js";
2
2
  import { computed as t, createBlock as n, defineComponent as r, openBlock as i } from "vue";
3
3
  import { useRoute as a } from "vue-router";
4
4
  //#endregion
@@ -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>;
@@ -1,5 +1,5 @@
1
1
  import { a as e, b as t, c as n, o as r, y as i } from "./init-plugin-CpYzRii0.js";
2
- import { t as a } from "./CancelModal-CgQeC543.js";
2
+ import { t as a } from "./CancelModal--ylIIPjo.js";
3
3
  import { n as o, r as s, t as c } from "./approval-TIlcTs-h.js";
4
4
  import { c as l, d as u, l as d, p as f } from "./utils-DRldFEoM.js";
5
5
  import { a as p, c as m, d as h, f as g, i as ee, l as _, n as v, o as te, p as ne, r as y, s as re, t as b, u as ie } from "./columnTables-Drq0OCcY.js";
@@ -731,7 +731,7 @@ var Te = /* @__PURE__ */ t(Ce, [["render", we]]), Ee = { class: "form-body" }, D
731
731
  U.error("ids应为数组");
732
732
  return;
733
733
  }
734
- j.value = r[0], S.value = !0;
734
+ j.value = r, S.value = !0;
735
735
  }
736
736
  } else if (a === "send_reminder") t && H.confirm({
737
737
  title: "提示",
@@ -993,7 +993,7 @@ var Te = /* @__PURE__ */ t(Ce, [["render", we]]), Ee = { class: "form-body" }, D
993
993
  ])], 64);
994
994
  };
995
995
  }
996
- }), [["__scopeId", "data-v-48850c65"]]), Ae = j({
996
+ }), [["__scopeId", "data-v-7b6ee2e0"]]), Ae = j({
997
997
  name: "ApprovalColumnDataList",
998
998
  props: {
999
999
  columnConfig: {
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Dn as e, t } from "./viewer-BDGXjryM.js";
2
2
  import { n, t as r } from "./MyProcess-SGZ_-9C3.js";
3
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-BiFAYrYg.js";
5
- import { t as d } from "./CancelModal-CgQeC543.js";
4
+ import { n as c, r as l, t as u } from "./useApprovalRecordActions-gkFffZvz.js";
5
+ import { t as d } from "./CancelModal--ylIIPjo.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) {
@@ -326,7 +326,7 @@ var j = { style: {
326
326
  }
327
327
  }), J = async (e) => {
328
328
  await H(e), (W.value || K.value) && (a.value = !1);
329
- }, Y = b(() => import("./ApprovalEditorModal-CiaYzraw.js")), X = async (e) => {
329
+ }, Y = b(() => import("./ApprovalEditorModal-D3ydOxhg.js")), X = async (e) => {
330
330
  let t = N.get(e);
331
331
  if (t && Date.now() - t.time < M) return t.data;
332
332
  let i = P.get(e);
@@ -532,7 +532,7 @@ var j = { style: {
532
532
  ], 64);
533
533
  };
534
534
  }
535
- }), I = b(() => import("./approval-DEJzLlL0.js")), L = b(() => import("./approvalPageConfig-Yn3tPl7r.js")), R = b(() => import("./approvalHistory-BYTbTSXf.js")), z = b(() => import("./debugCode-uE8rOKz4.js")), B = b(() => import("./ApprovalEditorModal-CiaYzraw.js")), V = b(() => import("./Cell_click_approve-Cn5f0ofI.js")), H = {
535
+ }), I = b(() => import("./approval-BiNM_Eas.js")), L = b(() => import("./approvalPageConfig-Yn3tPl7r.js")), R = b(() => import("./approvalHistory-BYTbTSXf.js")), z = b(() => import("./debugCode-uE8rOKz4.js")), B = b(() => import("./ApprovalEditorModal-D3ydOxhg.js")), V = b(() => import("./Cell_click_approve-D3NQ9Iaq.js")), H = {
536
536
  codeHistoryViewModal: () => import("./codeHistoryViewModal-DnNI_S8C.js"),
537
537
  approvalHistoryViewModal: () => import("./approvalHistoryViewModal-D3_z9bf3.js"),
538
538
  flowHistoryViewModal: () => import("./flowHistoryViewModal-CVg7Wn7_.js")