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.
Files changed (44) hide show
  1. package/dist/ActionsConfig-gWnpd8yJ.js +521 -0
  2. package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-BsHxlueJ.js} +1 -1
  3. package/dist/{CancelModal-BUi3ieI8.js → CancelModal-CgQeC543.js} +1 -1
  4. package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-CzEatC97.js} +34 -32
  5. package/dist/{JsonTags-BbWLqghI.js → JsonTags-DQdw3WxB.js} +1 -1
  6. package/dist/{MyProcess-FWGEwQcv.js → MyProcess-SGZ_-9C3.js} +17 -17
  7. package/dist/{approval-BaD4Bmw6.js → approval-DD00xYMY.js} +1 -1
  8. package/dist/{approval-BW2WjPxY.js → approval-ekd9_mwq.js} +35 -35
  9. package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-DsHMvx1n.js} +35 -35
  10. package/dist/{approvalHistoryViewModal-DgLpv2ot.js → approvalHistoryViewModal-UzVPPpNH.js} +9 -9
  11. package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-DsoxsuXo.js} +83 -83
  12. package/dist/{approveLeftConfig-BOU_UgHp.js → approveLeftConfig-Cskh4ezK.js} +16 -16
  13. package/dist/{codeHistoryViewModal-BfSjIbEU.js → codeHistoryViewModal-BIktV_o6.js} +8 -8
  14. package/dist/{columnTables-DLwtgcC7.js → columnTables-a7yfMH5Q.js} +88 -80
  15. package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
  16. package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
  17. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +12 -0
  18. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1222 -0
  19. package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
  20. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +617 -0
  21. package/dist/components/approval/core.vue.d.ts +2 -0
  22. package/dist/components/approval/typing.d.ts +1 -1
  23. package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
  24. package/dist/constants.d.ts +26 -0
  25. package/dist/{core-Cv0Erg9E.js → core-BY-t0ghx.js} +393 -352
  26. package/dist/{dataStoreSettingHistoryViewModal-D_so-KLp.js → dataStoreSettingHistoryViewModal-DjSRPgQC.js} +9 -9
  27. package/dist/{debugCode-Cm9-WiUG.js → debugCode-CTU6KCej.js} +20 -20
  28. package/dist/{default-VdDMlY4e.js → default-CFd6cRxl.js} +28 -21
  29. package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
  30. package/dist/{flowHistoryViewModal-D8DJP7Te.js → flowHistoryViewModal-CaGj3LP4.js} +9 -9
  31. package/dist/index.js +36 -34
  32. package/dist/{init-plugin-fQTSQzui.js → init-plugin-CpYzRii0.js} +7 -3
  33. package/dist/init-plugin.d.ts +13 -0
  34. package/dist/{leftColumn-CsPjufue.js → leftColumn-Dzw2Dk6g.js} +3 -3
  35. package/dist/lyflowchart.css +1 -1
  36. package/dist/{middleColumn-C7M6-eVo.js → middleColumn-CTOCcPnB.js} +12 -12
  37. package/dist/{recordActions-BgFlNsGU.js → recordActions-z7hvfqGR.js} +1 -1
  38. package/dist/{tableConfig-uLXue-BS.js → tableConfig-CMhKXmQF.js} +740 -585
  39. package/dist/{tableModal-BcYfVL02.js → tableModal-LuDGonFy.js} +2 -2
  40. package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-6IFZrwvr.js} +68 -68
  41. package/dist/{utils-CLet2gLV.js → utils-DRldFEoM.js} +14 -10
  42. package/dist/{viewer-Dv3kQsMf.js → viewer-BDGXjryM.js} +916 -917
  43. package/package.json +1 -1
  44. package/dist/ActionsConfig-BuvSvRbv.js +0 -395
@@ -1,5 +1,5 @@
1
- import { a as e, o as t, v as n } from "./init-plugin-fQTSQzui.js";
2
- import { C as r, D as i, O as a, _ as o, b as s, g as c, h as l, m as u, o as d, u as f, x as p, y as m } from "./utils-CLet2gLV.js";
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-DRldFEoM.js";
3
3
  import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, onMounted as ee, onUnmounted as te, openBlock as E, reactive as D, ref as O, renderList as k, resolveComponent as A, resolveDynamicComponent as j, toDisplayString as M, unref as N, watch as P, withCtx as F } from "vue";
4
4
  import { message as ne } from "ant-design-vue";
5
5
  import { cloneDeep as I, debounce as L, isArray as re, isEqual as R } from "lodash";
@@ -27,9 +27,9 @@ var U = w({
27
27
  },
28
28
  emits: ["update:searchConditions"],
29
29
  setup(e, { emit: t }) {
30
- let n = r(), { t: a } = z(), o = (e, t, r) => {
31
- let i = [], o;
32
- if (t === "is_or_not_blank_or_null" || t === "is_or_not_null") return a(r === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
30
+ let n = f(), { t: i } = z(), a = (e, t, r) => {
31
+ let a = [], o;
32
+ if (t === "is_or_not_blank_or_null" || t === "is_or_not_null") return i(r === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
33
33
  if (t === "_eq") {
34
34
  if ([
35
35
  "上月",
@@ -37,12 +37,12 @@ var U = w({
37
37
  "今日",
38
38
  "昨日",
39
39
  "期初"
40
- ].includes(r)) return a(r);
40
+ ].includes(r)) return i(r);
41
41
  } else if (e.options instanceof Array) return r instanceof Array ? (r.forEach((t) => {
42
42
  e.options.forEach((e) => {
43
- t == e.value && i.push(e.label);
43
+ t == e.value && a.push(e.label);
44
44
  });
45
- }), `${n[t]} ${i.join(",")}`) : (e.options.forEach((e) => {
45
+ }), `${n[t]} ${a.join(",")}`) : (e.options.forEach((e) => {
46
46
  r == e.value && (o = e.label);
47
47
  }), `${n[t]} ${o}`);
48
48
  else if (e.type == "monthpicker" && e.dateFormat) {
@@ -66,10 +66,10 @@ var U = w({
66
66
  let n = t[e.field_name] || {
67
67
  operator: e.default_operator || "eq",
68
68
  value: null
69
- }, r = null;
70
- return n.value instanceof Array && n.value.length > 0 && !n.value.some((e) => i(e)) && (r = `${e.label}: ${o(e, n.operator, n.value)}`), {
69
+ }, i = null;
70
+ return n.value instanceof Array && n.value.length > 0 && !n.value.some((e) => r(e)) && (i = `${e.label}: ${a(e, n.operator, n.value)}`), {
71
71
  field_name: e.field_name,
72
- summary: r
72
+ summary: i
73
73
  };
74
74
  }).filter((e) => e.summary);
75
75
  }),
@@ -122,16 +122,16 @@ var K = w({
122
122
  },
123
123
  emits: ["update:searchConditions"],
124
124
  setup(e, { emit: t }) {
125
- let n = r(), { t: o } = z(), c = O(!0), l = O({}), d = O({}), f = O({}), p = O([{
125
+ let n = f(), { t: i } = z(), o = O(!0), s = O({}), u = O({}), d = O({}), p = O([{
126
126
  value: "yes",
127
- label: o("is_or_not_blank_or_null.yes")
127
+ label: i("is_or_not_blank_or_null.yes")
128
128
  }, {
129
129
  value: "no",
130
- label: o("is_or_not_blank_or_null.no")
130
+ label: i("is_or_not_blank_or_null.no")
131
131
  }]);
132
132
  return {
133
- isShowForm: c,
134
- searchModel: l,
133
+ isShowForm: o,
134
+ searchModel: s,
135
135
  dataSource: g(() => {
136
136
  let t = {};
137
137
  for (let n of e.searchConditions) t[n.field_name] = {
@@ -143,7 +143,7 @@ var K = w({
143
143
  operator: e.default_operator || "eq",
144
144
  value: null
145
145
  }, r = n.value;
146
- return a(n.value) && u(n.operator, e) === 1 && r instanceof Array && (r = r[0]), d.value[e.field_name] = r, {
146
+ return c(n.value) && l(n.operator, e) === 1 && r instanceof Array && (r = r[0]), u.value[e.field_name] = r, {
147
147
  ...e,
148
148
  value: n.value,
149
149
  operator: n.operator,
@@ -151,25 +151,25 @@ var K = w({
151
151
  };
152
152
  });
153
153
  }),
154
- onChange: (n, r, o, s = void 0) => {
155
- let c = I(e.searchConditions), l = e.searchConfig.find((e) => e.field_name === n), d, f, p = c.find((e) => e.field_name === n);
156
- if (r === "value") if (f = p ? p.operator : l?.default_operator || "eq", s !== void 0) {
157
- let e = u(o, l);
154
+ onChange: (n, i, a, o = void 0) => {
155
+ let s = I(e.searchConditions), u = e.searchConfig.find((e) => e.field_name === n), d, f, p = s.find((e) => e.field_name === n);
156
+ if (i === "value") if (f = p ? p.operator : u?.default_operator || "eq", o !== void 0) {
157
+ let e = l(a, u);
158
158
  if (p) {
159
- if (d = p.value, i(d) || !(d instanceof Array)) {
159
+ if (d = p.value, r(d) || !(d instanceof Array)) {
160
160
  d = [];
161
161
  for (let t = 0; t < e; t++) d.push(null);
162
162
  }
163
- d[s] = o;
163
+ d[o] = a;
164
164
  } else {
165
165
  d = [];
166
166
  for (let t = 0; t < e; t++) d.push(null);
167
- d[s] = o;
167
+ d[o] = a;
168
168
  }
169
- } else a(o) && !(o instanceof Array) && (o = [o]), d = o;
170
- else if (r === "operator") {
171
- f = o;
172
- let e = u(o, l);
169
+ } else c(a) && !(a instanceof Array) && (a = [a]), d = a;
170
+ else if (i === "operator") {
171
+ f = a;
172
+ let e = l(a, u);
173
173
  if (e) {
174
174
  d = [];
175
175
  for (let t = 0; t < e; t++) d.push(null);
@@ -178,21 +178,21 @@ var K = w({
178
178
  if (p) p.operator = f, p.value = d;
179
179
  else {
180
180
  let e = "input", t = "str";
181
- l && (e = l.format || "input", t = l.class_name || "str"), p = {
181
+ u && (e = u.format || "input", t = u.class_name || "str"), p = {
182
182
  field_name: n,
183
183
  value: d,
184
184
  operator: f,
185
185
  format: e,
186
186
  class_name: t
187
- }, c.push(p);
187
+ }, s.push(p);
188
188
  }
189
- t("update:searchConditions", c);
189
+ t("update:searchConditions", s);
190
190
  },
191
191
  operator_type_map: n,
192
- formModel: d,
192
+ formModel: u,
193
193
  is_or_not_blank_or_null_options: p,
194
- validateInfos: f,
195
- options_for_date_eq: s,
194
+ validateInfos: d,
195
+ options_for_date_eq: a,
196
196
  handleUpdateSearchConditions: (e) => {
197
197
  t("update:searchConditions", e);
198
198
  },
@@ -200,7 +200,7 @@ var K = w({
200
200
  e.eventBus.emit("refresh");
201
201
  },
202
202
  getValue: (e) => {
203
- let t = u(e.operator, e), n = e.value;
203
+ let t = l(e.operator, e), n = e.value;
204
204
  if (t == 1) return n instanceof Array ? n[0] || void 0 : n || void 0;
205
205
  if (t == 2) if (n instanceof Array) {
206
206
  let [e, t] = n;
@@ -211,7 +211,7 @@ var K = w({
211
211
  }
212
212
  };
213
213
  },
214
- components: { searchSummary: /* @__PURE__ */ n(U, [["render", G], ["__scopeId", "data-v-af740a0c"]]) }
214
+ components: { searchSummary: /* @__PURE__ */ t(U, [["render", G], ["__scopeId", "data-v-af740a0c"]]) }
215
215
  }), q = { class: "search-switch" }, J = { class: "expand-btn" }, Y = { class: "btn-content" };
216
216
  function X(e, t, n, r, i, a) {
217
217
  let o = A("a-button"), s = A("search-summary"), c = A("a-select-option"), l = A("a-select"), u = A("SmallTableSerarchField"), d = A("a-input-group"), f = A("a-form-item"), p = A("a-form");
@@ -492,7 +492,7 @@ function X(e, t, n, r, i, a) {
492
492
  }, 8, ["onClick"])])], 64)) : v("", !0)
493
493
  ], 64);
494
494
  }
495
- var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]), Q = "SET_SEARCH_CONDITIONS", ae = "SET_SELECTED_ROWKEYS", oe = "SET_DATASOURCE", $ = "SET_FORM_MODEL", se = "SET_RAW", ce = "SET_CURRENT_HISTORY_ID", le = "SET_REQUST_HISTORY_ID", ue = "CLEAR_CONTEXT", de = "SET_EDIT", fe = "SET_CURRENT_FLOW_HISTORY_ID", pe = "SET_REQUST_FLOW_HISTORY_ID", me = "SET_GLOBAL_DATA", he = H("approval_context", {
495
+ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]), Q = "SET_SEARCH_CONDITIONS", ae = "SET_SELECTED_ROWKEYS", oe = "SET_DATASOURCE", $ = "SET_FORM_MODEL", se = "SET_RAW", ce = "SET_CURRENT_HISTORY_ID", le = "SET_REQUST_HISTORY_ID", ue = "CLEAR_CONTEXT", de = "SET_EDIT", fe = "SET_CURRENT_FLOW_HISTORY_ID", pe = "SET_REQUST_FLOW_HISTORY_ID", me = "SET_GLOBAL_DATA", he = H("approval_context", {
496
496
  persist: !1,
497
497
  state: () => ({ contexts: null }),
498
498
  actions: {
@@ -566,7 +566,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
566
566
  cursor: "pointer",
567
567
  padding: "4px 16px"
568
568
  }
569
- }, _e = /* @__PURE__ */ n(/* @__PURE__ */ w({
569
+ }, _e = /* @__PURE__ */ t(/* @__PURE__ */ w({
570
570
  name: "actionBar",
571
571
  __name: "actionsBar",
572
572
  props: {
@@ -587,7 +587,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
587
587
  children: []
588
588
  }, t.push(e[n.group_name])), e[n.group_name].children.push(n));
589
589
  return t;
590
- }), u = () => {
590
+ }), d = () => {
591
591
  let e = I(o.value), t = I(s.value);
592
592
  for (let n of r.actions || []) e[n.action_code_id] = !0, t[n.action_code_id] = !1;
593
593
  o.value = e, s.value = t;
@@ -613,11 +613,18 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
613
613
  }
614
614
  o.value = n, s.value = i;
615
615
  }, 200);
616
- P(() => [r.params, r.actions], (e, t) => {
616
+ P(() => [r.params, (r.actions || []).map((e) => ({
617
+ action_code_id: e.action_code_id,
618
+ action: e.action,
619
+ code: e.code,
620
+ settings: e.settings,
621
+ showCode: e.showCode,
622
+ disableCode: e.disableCode
623
+ }))], (e, t) => {
617
624
  e ||= [], t ||= [];
618
625
  let n = e[0];
619
626
  if (n === void 0) {
620
- u();
627
+ d();
621
628
  return;
622
629
  }
623
630
  n ||= {}, f(n);
@@ -629,7 +636,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
629
636
  i("click", e);
630
637
  };
631
638
  return (e, n) => {
632
- let r = A("a-button"), i = A("debugCode"), u = A("a-menu-item"), f = A("a-menu"), m = A("DownOutlined"), g = A("a-dropdown");
639
+ let r = A("a-button"), i = A("debugCode"), d = A("a-menu-item"), f = A("a-menu"), m = A("DownOutlined"), g = A("a-dropdown");
633
640
  return t.actions ? (E(), y("div", {
634
641
  key: 0,
635
642
  class: "actions",
@@ -646,7 +653,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
646
653
  "onUpdate:showCode": (t) => e.showCode = t,
647
654
  disableCode: e.disableCode,
648
655
  "onUpdate:disableCode": (t) => e.disableCode = t,
649
- options: N(d),
656
+ options: N(u),
650
657
  show: o.value[e.action_code_id]
651
658
  }, {
652
659
  default: F(() => [C(r, {
@@ -692,10 +699,10 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
692
699
  "onUpdate:showCode": (t) => e.showCode = t,
693
700
  disableCode: e.disableCode,
694
701
  "onUpdate:disableCode": (t) => e.disableCode = t,
695
- options: N(d),
702
+ options: N(u),
696
703
  show: o.value[e.action_code_id]
697
704
  }, {
698
- default: F(() => [C(u, {
705
+ default: F(() => [C(d, {
699
706
  onClick: (t) => p(e),
700
707
  disabled: s.value[e.action_code_id]
701
708
  }, {
@@ -729,7 +736,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
729
736
  }, 1024))), 256))], 512)) : v("", !0);
730
737
  };
731
738
  }
732
- }), [["__scopeId", "data-v-f2a8685c"]]), ve = 50, ye = w({
739
+ }), [["__scopeId", "data-v-f6310668"]]), ve = 50, ye = w({
733
740
  name: "ApprovalTable",
734
741
  props: {
735
742
  config: {
@@ -758,8 +765,8 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
758
765
  }
759
766
  },
760
767
  emits: ["selection-change"],
761
- setup(e, { emit: n }) {
762
- let r = he(), i = O([]), o = O([]), s = O(!1), c = ie(), u = O([]), d = null, m = O(null), h = O(null), _ = O(null), v = O(null), y = O(null), b = O(null), x = O(70), S = O({}), C = O([]), w = !1, T = !1, E = O([
768
+ setup(e, { emit: t }) {
769
+ let r = he(), i = O([]), a = O([]), o = O(!1), l = ie(), u = O([]), f = null, m = O(null), h = O(null), _ = O(null), v = O(null), y = O(null), b = O(null), x = O(70), S = O({}), C = O([]), w = !1, T = !1, E = O([
763
770
  "10",
764
771
  "20",
765
772
  "50",
@@ -786,12 +793,12 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
786
793
  });
787
794
  let A = () => !1, j = (t) => {
788
795
  if (!t) return [];
789
- let n = l(e.modelType), i = r.contexts?.[e.modelType] || {}, o = {};
796
+ let n = s(e.modelType), i = r.contexts?.[e.modelType] || {}, a = {};
790
797
  for (let t of e.approvalConfig?.columns || []) if (t.type === "form") {
791
798
  let e = t.form?.dynamicFieldList;
792
- if (e) for (let t of e) for (let e of t.children || []) o[e.key] = e.name;
799
+ if (e) for (let t of e) for (let e of t.children || []) a[e.key] = e.name;
793
800
  }
794
- let s = (e) => {
801
+ let o = (e) => {
795
802
  let t = e.value;
796
803
  if (e.value_type == "global") if (e.value?.length == 2) {
797
804
  w = !0;
@@ -800,7 +807,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
800
807
  } else t = null;
801
808
  else if (e.value_type == "form") if (e.value?.length == 2) {
802
809
  T = !0;
803
- let n = i.formModel?.[o[e.value[1]]];
810
+ let n = i.formModel?.[a[e.value[1]]];
804
811
  t = n ? [n] : null;
805
812
  } else t = null;
806
813
  else t = p(e.value, n);
@@ -810,13 +817,13 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
810
817
  value: t
811
818
  };
812
819
  };
813
- return (t.length > 0 && Array.isArray(t[0]) ? t : [t]).map((e) => (Array.isArray(e) ? e : [e]).map(s).filter((e) => a(e.value))).filter((e) => e.length > 0);
820
+ return (t.length > 0 && Array.isArray(t[0]) ? t : [t]).map((e) => (Array.isArray(e) ? e : [e]).map(o).filter((e) => c(e.value))).filter((e) => e.length > 0);
814
821
  }, M = async () => {
815
822
  if (!e.config.list_url) return;
816
- let n = Symbol();
817
- d = n;
823
+ let t = Symbol();
824
+ f = t;
818
825
  try {
819
- s.value = !0;
826
+ o.value = !0;
820
827
  let a = [];
821
828
  try {
822
829
  a = j(e.config.base_conditions);
@@ -824,17 +831,17 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
824
831
  console.error(e), ne.error(e instanceof Error ? e.message : String(e));
825
832
  return;
826
833
  }
827
- let o = f(u.value), c = [];
828
- o.length > 0 && c.push({
834
+ let s = d(u.value), c = [];
835
+ s.length > 0 && c.push({
829
836
  op: "and",
830
- children: o
837
+ children: s
831
838
  }), a.length > 0 && c.push({
832
839
  op: "and",
833
840
  children: a
834
841
  });
835
842
  let l = e.config.columns?.map((e) => e.dataIndex), p = [];
836
843
  for (let e of C.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
837
- let m = await t({
844
+ let m = await n({
838
845
  ...e.config.query_params || {},
839
846
  current: k.current,
840
847
  pageSize: k.pageSize,
@@ -842,11 +849,11 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
842
849
  column_fields: l,
843
850
  sort_fields: p
844
851
  }, e.config.list_url);
845
- if (d !== n) return;
852
+ if (f !== t) return;
846
853
  i.value = m.data, e.modelType && r[oe](e.modelType, e.config.id, i.value), k.current = m.current, k.total = m.total;
847
854
  } finally {
848
- if (d !== n) return;
849
- s.value = !1;
855
+ if (f !== t) return;
856
+ o.value = !1;
850
857
  }
851
858
  }, N = L(M, 500), F = (e, t) => {
852
859
  k.current == e && k.pageSize == t || (k.current = e || 1, k.pageSize = t || ve, M());
@@ -857,8 +864,8 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
857
864
  e.modelType && r[ae](e.modelType, e.config.id, t, n);
858
865
  }
859
866
  }));
860
- P(o, (e) => {
861
- n("selection-change", (e || []).length);
867
+ P(a, (e) => {
868
+ t("selection-change", (e || []).length);
862
869
  }, {
863
870
  deep: !0,
864
871
  immediate: !0
@@ -947,12 +954,13 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
947
954
  let e = [], t = 0;
948
955
  for (let n of B.value) n.approve_summary && e.push({
949
956
  index: t + 1,
950
- cellSummaryComponent: n.cellSummaryComponent
957
+ cellSummaryComponent: n.cellSummaryComponent,
958
+ column: n
951
959
  }), t++;
952
960
  return e;
953
961
  });
954
962
  return ee(async () => {
955
- c.on("refresh", H), e.eventBus && (e.eventBus.on("reinit", Y), e.eventBus.on("reload_table", X), e.eventBus.on("cell_execute_row_action", G)), await J();
963
+ l.on("refresh", H), e.eventBus && (e.eventBus.on("reinit", Y), e.eventBus.on("reload_table", X), e.eventBus.on("cell_execute_row_action", G)), await J();
956
964
  let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
957
965
  t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
958
966
  for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
@@ -960,17 +968,17 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
960
968
  order: e.defaultSortOrder
961
969
  });
962
970
  }), te(() => {
963
- c.off("refresh", H), e.eventBus && (e.eventBus.off("reinit", Y), e.eventBus.off("reload_table", X), e.eventBus.off("cell_execute_row_action", G));
971
+ l.off("refresh", H), e.eventBus && (e.eventBus.off("reinit", Y), e.eventBus.off("reload_table", X), e.eventBus.off("cell_execute_row_action", G));
964
972
  }), e.modelType && (P(() => u.value, (t, n) => {
965
- R(f(t), f(n)) || (r[Q](e.modelType, e.config.id, t), N());
973
+ R(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), N());
966
974
  }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.globalData), (e, t) => {
967
975
  !R(e, t) && w && N();
968
976
  }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.formModel), (e, t) => {
969
977
  !R(e, t) && T && N();
970
978
  }, { deep: !0 })), {
971
979
  dataSource: i,
972
- selectedRowKeys: o,
973
- loading: s,
980
+ selectedRowKeys: a,
981
+ loading: o,
974
982
  state: k,
975
983
  handlePageChange: F,
976
984
  handleRowAction: U,
@@ -979,7 +987,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
979
987
  columns: B,
980
988
  searchConditions: u,
981
989
  delayGetDate: N,
982
- selfEventBus: c,
990
+ selfEventBus: l,
983
991
  row_selection: z,
984
992
  handleAction: K,
985
993
  searchRef: _,
@@ -1168,7 +1176,7 @@ function Te(e, t, n, r, i, a) {
1168
1176
  }, null, 8, ["actions", "action_width"])])
1169
1177
  ], 512);
1170
1178
  }
1171
- var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]]), De = w({
1179
+ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]]), De = w({
1172
1180
  name: "ApprovalColumnTables",
1173
1181
  props: {
1174
1182
  columnConfig: {
@@ -1214,28 +1222,28 @@ var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]
1214
1222
  let r = g(() => {
1215
1223
  let t = e.filterTables.map((e) => e.id);
1216
1224
  return e.columnConfig.tables.filter((n) => t && t.length > 0 ? t.includes(n.id) : e.groupTitle ? (n.group_title || "未命名") === e.groupTitle : !0);
1217
- }), i = g(() => {
1225
+ }), a = g(() => {
1218
1226
  let t = {};
1219
1227
  for (let n of e.filterTables) t[n.id] = n.isMul ? "checkbox" : "radio";
1220
1228
  return t;
1221
- }), a = g(() => {
1229
+ }), s = g(() => {
1222
1230
  let t = {};
1223
1231
  for (let n of e.filterTables || []) {
1224
- let e = c(n);
1232
+ let e = o(n);
1225
1233
  e && (t[n.id] = e);
1226
1234
  }
1227
1235
  return t;
1228
- }), s = D({}), l = (e) => a.value[e] || null, u = (e) => o(l(e)), d = (e) => s[e] || 0;
1236
+ }), c = D({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1229
1237
  return {
1230
1238
  activeKey: n,
1231
1239
  filterTables: r,
1232
- rowSelectionTypeMap: i,
1240
+ rowSelectionTypeMap: a,
1233
1241
  getSelectLimit: l,
1234
1242
  getSelectLimitText: u,
1235
1243
  getSelectedCount: d,
1236
1244
  isSelectCountInvalid: (e) => m(l(e), d(e)),
1237
1245
  handleSelectionChange: (e, n) => {
1238
- s[e] = Number(n) || 0, t("selected-counts-change", { ...s });
1246
+ c[e] = Number(n) || 0, t("selected-counts-change", { ...c });
1239
1247
  }
1240
1248
  };
1241
1249
  },
@@ -1267,6 +1275,6 @@ function je(e, t, n, r, i, a) {
1267
1275
  "onSelectionChange"
1268
1276
  ])]))), 128))]);
1269
1277
  }
1270
- var Me = /* @__PURE__ */ n(De, [["render", je], ["__scopeId", "data-v-3e52fe46"]]);
1278
+ var Me = /* @__PURE__ */ t(De, [["render", je], ["__scopeId", "data-v-3e52fe46"]]);
1271
1279
  //#endregion
1272
1280
  export { fe as a, $ as c, pe as d, le as f, ue as i, me as l, Ee as n, ce as o, he as p, _e as r, de as s, Me as t, se as u };
@@ -15,12 +15,14 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
15
15
  cancel: () => any;
16
16
  saved: (payload: {
17
17
  isEdit?: boolean;
18
+ committed?: boolean;
18
19
  }) => any;
19
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
21
  onCancel?: () => any;
21
22
  "onUpdate:open"?: (value: boolean) => any;
22
23
  onSaved?: (payload: {
23
24
  isEdit?: boolean;
25
+ committed?: boolean;
24
26
  }) => any;
25
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
28
  export default _default;