lyflowchart 1.0.152 → 1.0.157

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 (43) hide show
  1. package/dist/{ActionsConfig-BrfcGMc2.js → ActionsConfig-gWnpd8yJ.js} +2 -2
  2. package/dist/{ApprovalEditorModal-HuU6SRJe.js → ApprovalEditorModal-Bvxrg96y.js} +1 -1
  3. package/dist/{CancelModal-BUi3ieI8.js → CancelModal-CgQeC543.js} +1 -1
  4. package/dist/{Cell_click_approve-DiMuUB1k.js → Cell_click_approve-DMXnrtxc.js} +16 -16
  5. package/dist/{JsonTags-BbWLqghI.js → JsonTags-DQdw3WxB.js} +1 -1
  6. package/dist/{MyProcess-C6fgOFiw.js → MyProcess-SGZ_-9C3.js} +17 -17
  7. package/dist/{approval-BlbNEsGQ.js → approval-DfU1MtBL.js} +1 -1
  8. package/dist/{approval-1GfOMaS4.js → approval-ekd9_mwq.js} +35 -35
  9. package/dist/{approvalHistory-D-5rRWNw.js → approvalHistory-DsHMvx1n.js} +35 -35
  10. package/dist/{approvalHistoryViewModal-DgLpv2ot.js → approvalHistoryViewModal-UzVPPpNH.js} +9 -9
  11. package/dist/{approvalPageConfig-4VU81v-x.js → approvalPageConfig-BA2SXnnv.js} +79 -79
  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-DFwoawLF.js → columnTables-DdOJYJq9.js} +211 -172
  15. package/dist/components/approval/components/TableSummary.vue.d.ts +20 -0
  16. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +12 -0
  17. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +12 -0
  18. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +12 -0
  19. package/dist/components/approval/components/columnDataList.vue.d.ts +25 -2
  20. package/dist/components/approval/components/columnTables.vue.d.ts +25 -2
  21. package/dist/components/approval/components/drawerDataList.vue.d.ts +25 -2
  22. package/dist/components/approval/components/drawerTablesList.vue.d.ts +25 -2
  23. package/dist/components/approval/components/modelTablesList.vue.d.ts +25 -2
  24. package/dist/components/approval/components/table.vue.d.ts +25 -2
  25. package/dist/components/approval/typing.d.ts +3 -1
  26. package/dist/{core-BkpI8NUK.js → core-o5mxWnrL.js} +68 -68
  27. package/dist/{dataStoreSettingHistoryViewModal-D_so-KLp.js → dataStoreSettingHistoryViewModal-DjSRPgQC.js} +9 -9
  28. package/dist/{debugCode-CQm5weGM.js → debugCode-CTU6KCej.js} +19 -19
  29. package/dist/{default-kv1XZD9P.js → default-CFd6cRxl.js} +1 -1
  30. package/dist/{flowHistoryViewModal-D8DJP7Te.js → flowHistoryViewModal-CaGj3LP4.js} +9 -9
  31. package/dist/index.js +25 -25
  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-OrLOxcyw.js → leftColumn-CLixXPdW.js} +3 -3
  35. package/dist/lyflowchart.css +1 -1
  36. package/dist/{middleColumn-DUBZPkDG.js → middleColumn-CTOCcPnB.js} +12 -12
  37. package/dist/{recordActions-3vqHADOf.js → recordActions-z7hvfqGR.js} +1 -1
  38. package/dist/{tableConfig-W9yGeZs-.js → tableConfig-0LuPJS0X.js} +740 -585
  39. package/dist/{tableModal-H0SGP8PM.js → tableModal-CbEn3HNo.js} +2 -2
  40. package/dist/{useApprovalRecordActions-B82xPY8g.js → useApprovalRecordActions-6IFZrwvr.js} +10 -10
  41. package/dist/{utils-B1lkML14.js → utils-DRldFEoM.js} +9 -9
  42. package/dist/{viewer-C_OHXXRU.js → viewer-BDGXjryM.js} +1 -1
  43. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { a as e, o as t, v as n } from "./init-plugin-fQTSQzui.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-B1lkML14.js";
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
- import { message as ne } from "ant-design-vue";
5
- import { cloneDeep as I, debounce as L, isArray as re, isEqual as R } from "lodash";
6
- import { useI18n as z } from "vue-i18n";
7
- import B from "moment";
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
+ 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, normalizeStyle as E, onMounted as D, onUnmounted as ee, 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";
4
+ import { message as te } from "ant-design-vue";
5
+ import { cloneDeep as R, debounce as ne, isArray as re, isEqual as z } from "lodash";
6
+ import { useI18n as B } from "vue-i18n";
7
+ import V from "moment";
8
8
  import ie from "mitt";
9
- import { useResizeObserver as V } from "@vueuse/core";
10
- import { defineStore as H } from "pinia";
9
+ import { useResizeObserver as H } from "@vueuse/core";
10
+ import { defineStore as U } from "pinia";
11
11
  //#region src/components/approval/components/searchSummary.vue?vue&type=script&lang.ts
12
- var U = w({
12
+ var W = w({
13
13
  name: "searchSummary",
14
14
  props: {
15
15
  searchConfig: {
@@ -27,7 +27,7 @@ var U = w({
27
27
  },
28
28
  emits: ["update:searchConditions"],
29
29
  setup(e, { emit: t }) {
30
- let n = f(), { t: i } = z(), a = (e, t, r) => {
30
+ let n = f(), { t: i } = B(), a = (e, t, r) => {
31
31
  let a = [], o;
32
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") {
@@ -49,9 +49,9 @@ var U = w({
49
49
  if (r instanceof Array) {
50
50
  let t = [];
51
51
  r.forEach((n) => {
52
- n ? t.push(B(n).format(e.dateFormat)) : t.push(n);
52
+ n ? t.push(V(n).format(e.dateFormat)) : t.push(n);
53
53
  }), o = t.join(",");
54
- } else o = B(r).format(e.dateFormat);
54
+ } else o = V(r).format(e.dateFormat);
55
55
  return `${n[t]} ${o}`;
56
56
  } else return `${n[t]} ${r}`;
57
57
  };
@@ -82,29 +82,29 @@ var U = w({
82
82
  };
83
83
  },
84
84
  components: {}
85
- }), W = { class: "search-summary" };
86
- function G(e, t, n, r, i, a) {
87
- let o = A("a-tag"), s = A("RedoOutlined"), c = A("a-button");
88
- return E(), y("span", W, [(E(!0), y(h, null, k(e.dataSource, (t) => (E(), _(o, {
85
+ }), G = { class: "search-summary" };
86
+ function K(e, t, n, r, i, a) {
87
+ let o = M("a-tag"), s = M("RedoOutlined"), c = M("a-button");
88
+ return O(), y("span", G, [(O(!0), y(h, null, j(e.dataSource, (t) => (O(), _(o, {
89
89
  key: t.field_name,
90
90
  color: "green",
91
91
  closable: "",
92
92
  onClose: (n) => e.handleClose(t.field_name)
93
93
  }, {
94
- default: F(() => [S(M(t.summary), 1)]),
94
+ default: L(() => [S(P(t.summary), 1)]),
95
95
  _: 2
96
96
  }, 1032, ["onClose"]))), 128)), C(c, {
97
97
  size: "small",
98
98
  type: "text",
99
99
  onClick: e.handleRefresh
100
100
  }, {
101
- default: F(() => [C(s)]),
101
+ default: L(() => [C(s)]),
102
102
  _: 1
103
103
  }, 8, ["onClick"])]);
104
104
  }
105
105
  //#endregion
106
106
  //#region src/components/approval/components/search.vue?vue&type=script&lang.ts
107
- var K = w({
107
+ var q = w({
108
108
  name: "Search",
109
109
  props: {
110
110
  searchConfig: {
@@ -122,7 +122,7 @@ var K = w({
122
122
  },
123
123
  emits: ["update:searchConditions"],
124
124
  setup(e, { emit: t }) {
125
- let n = f(), { t: i } = z(), o = O(!0), s = O({}), u = O({}), d = O({}), p = O([{
125
+ let n = f(), { t: i } = B(), o = A(!0), s = A({}), u = A({}), d = A({}), p = A([{
126
126
  value: "yes",
127
127
  label: i("is_or_not_blank_or_null.yes")
128
128
  }, {
@@ -152,7 +152,7 @@ var K = w({
152
152
  });
153
153
  }),
154
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);
155
+ let s = R(e.searchConditions), u = e.searchConfig.find((e) => e.field_name === n), d, f, p = s.find((e) => e.field_name === n);
156
156
  if (i === "value") if (f = p ? p.operator : u?.default_operator || "eq", o !== void 0) {
157
157
  let e = l(a, u);
158
158
  if (p) {
@@ -211,29 +211,29 @@ var K = w({
211
211
  }
212
212
  };
213
213
  },
214
- components: { searchSummary: /* @__PURE__ */ n(U, [["render", G], ["__scopeId", "data-v-af740a0c"]]) }
215
- }), q = { class: "search-switch" }, J = { class: "expand-btn" }, Y = { class: "btn-content" };
216
- function X(e, t, n, r, i, a) {
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");
218
- return E(), y(h, null, [
219
- b("span", q, [e.isShowForm ? (E(), _(o, {
214
+ components: { searchSummary: /* @__PURE__ */ t(W, [["render", K], ["__scopeId", "data-v-af740a0c"]]) }
215
+ }), J = { class: "search-switch" }, Y = { class: "expand-btn" }, X = { class: "btn-content" };
216
+ function Z(e, t, n, r, i, a) {
217
+ let o = M("a-button"), s = M("search-summary"), c = M("a-select-option"), l = M("a-select"), u = M("SmallTableSerarchField"), d = M("a-input-group"), f = M("a-form-item"), p = M("a-form");
218
+ return O(), y(h, null, [
219
+ b("span", J, [e.isShowForm ? (O(), _(o, {
220
220
  key: 1,
221
221
  type: "link",
222
222
  size: "small",
223
223
  onClick: t[1] ||= (t) => e.isShowForm = !1
224
224
  }, {
225
- default: F(() => [S(M(e.$t("隐藏")), 1)]),
225
+ default: L(() => [S(P(e.$t("隐藏")), 1)]),
226
226
  _: 1
227
- })) : (E(), _(o, {
227
+ })) : (O(), _(o, {
228
228
  key: 0,
229
229
  type: "link",
230
230
  size: "small",
231
231
  onClick: t[0] ||= (t) => e.isShowForm = !0
232
232
  }, {
233
- default: F(() => [b("span", J, M(e.$t("展开")), 1)]),
233
+ default: L(() => [b("span", Y, P(e.$t("展开")), 1)]),
234
234
  _: 1
235
235
  }))]),
236
- e.isShowForm ? v("", !0) : (E(), _(s, {
236
+ e.isShowForm ? v("", !0) : (O(), _(s, {
237
237
  key: 0,
238
238
  "search-conditions": e.searchConditions,
239
239
  "search-config": e.searchConfig,
@@ -245,31 +245,31 @@ function X(e, t, n, r, i, a) {
245
245
  "event-bus",
246
246
  "onUpdate:searchConditions"
247
247
  ])),
248
- e.isShowForm ? (E(), y(h, { key: 1 }, [C(p, { layout: "inline" }, {
249
- default: F(() => [(E(!0), y(h, null, k(e.dataSource, (n, r) => (E(), _(f, {
248
+ e.isShowForm ? (O(), y(h, { key: 1 }, [C(p, { layout: "inline" }, {
249
+ default: L(() => [(O(!0), y(h, null, j(e.dataSource, (n, r) => (O(), _(f, {
250
250
  key: n.field_name,
251
251
  label: n.label
252
252
  }, {
253
- default: F(() => [C(d, {
253
+ default: L(() => [C(d, {
254
254
  compact: "",
255
255
  size: "small"
256
256
  }, {
257
- default: F(() => [n.operator_list.length > 0 ? (E(), _(l, {
257
+ default: L(() => [n.operator_list.length > 0 ? (O(), _(l, {
258
258
  key: 0,
259
259
  dropdownMatchSelectWidth: !1,
260
260
  value: n.operator,
261
261
  onChange: (t) => e.onChange(n.field_name, "operator", t),
262
262
  size: "small"
263
263
  }, {
264
- default: F(() => [(E(!0), y(h, null, k(n.operator_list, (t) => (E(), _(c, {
264
+ default: L(() => [(O(!0), y(h, null, j(n.operator_list, (t) => (O(), _(c, {
265
265
  value: t,
266
266
  key: t
267
267
  }, {
268
- default: F(() => [S(M(e.operator_type_map[t]), 1)]),
268
+ default: L(() => [S(P(e.operator_type_map[t]), 1)]),
269
269
  _: 2
270
270
  }, 1032, ["value"]))), 128))]),
271
271
  _: 2
272
- }, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (E(), _(u, {
272
+ }, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (O(), _(u, {
273
273
  key: 1,
274
274
  is_show_label: !1,
275
275
  label: n.field_name,
@@ -294,7 +294,7 @@ function X(e, t, n, r, i, a) {
294
294
  "options",
295
295
  "validateInfos",
296
296
  "onUpdate:value"
297
- ])) : ["input"].includes(n.format) ? (E(), y(h, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (E(), y(h, { key: 0 }, [n.type === "datepicker" ? (E(), _(u, {
297
+ ])) : ["input"].includes(n.format) ? (O(), y(h, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (O(), y(h, { key: 0 }, [n.type === "datepicker" ? (O(), _(u, {
298
298
  key: 0,
299
299
  is_show_label: !1,
300
300
  label: n.field_name,
@@ -314,7 +314,7 @@ function X(e, t, n, r, i, a) {
314
314
  "formModel",
315
315
  "validateInfos",
316
316
  "onUpdate:value"
317
- ])) : n.type === "monthpicker" ? (E(), _(u, {
317
+ ])) : n.type === "monthpicker" ? (O(), _(u, {
318
318
  key: 1,
319
319
  is_show_label: !1,
320
320
  label: n.field_name,
@@ -333,7 +333,7 @@ function X(e, t, n, r, i, a) {
333
333
  "formModel",
334
334
  "validateInfos",
335
335
  "onUpdate:value"
336
- ])) : (E(), y(h, { key: 2 }, [
336
+ ])) : (O(), y(h, { key: 2 }, [
337
337
  C(u, {
338
338
  is_show_label: !1,
339
339
  label: n.field_name,
@@ -373,7 +373,7 @@ function X(e, t, n, r, i, a) {
373
373
  "validateInfos",
374
374
  "onUpdate:value"
375
375
  ])
376
- ], 64))], 64)) : n.operator === "_eq" ? (E(), _(u, {
376
+ ], 64))], 64)) : n.operator === "_eq" ? (O(), _(u, {
377
377
  key: 1,
378
378
  is_show_label: !1,
379
379
  label: n.field_name,
@@ -398,7 +398,7 @@ function X(e, t, n, r, i, a) {
398
398
  "options",
399
399
  "validateInfos",
400
400
  "onUpdate:value"
401
- ])) : n.type === "datepicker" || n.type === "monthpicker" ? (E(), _(u, {
401
+ ])) : n.type === "datepicker" || n.type === "monthpicker" ? (O(), _(u, {
402
402
  key: 2,
403
403
  is_show_label: !1,
404
404
  label: n.field_name,
@@ -419,7 +419,7 @@ function X(e, t, n, r, i, a) {
419
419
  "options",
420
420
  "validateInfos",
421
421
  "onUpdate:value"
422
- ])) : (E(), _(u, {
422
+ ])) : (O(), _(u, {
423
423
  key: 3,
424
424
  is_show_label: !1,
425
425
  label: n.field_name,
@@ -437,7 +437,7 @@ function X(e, t, n, r, i, a) {
437
437
  "options",
438
438
  "validateInfos",
439
439
  "onUpdate:value"
440
- ]))], 64)) : ["choices", "remote"].includes(n.format) ? (E(), y(h, { key: 3 }, [n.format === "choices" ? (E(), _(u, {
440
+ ]))], 64)) : ["choices", "remote"].includes(n.format) ? (O(), y(h, { key: 3 }, [n.format === "choices" ? (O(), _(u, {
441
441
  key: 0,
442
442
  is_show_label: !1,
443
443
  label: n.field_name,
@@ -455,7 +455,7 @@ function X(e, t, n, r, i, a) {
455
455
  "options",
456
456
  "validateInfos",
457
457
  "onUpdate:value"
458
- ])) : n.format === "remote" ? (E(), _(u, {
458
+ ])) : n.format === "remote" ? (O(), _(u, {
459
459
  key: 1,
460
460
  is_show_label: !1,
461
461
  label: n.field_name,
@@ -482,17 +482,17 @@ function X(e, t, n, r, i, a) {
482
482
  _: 2
483
483
  }, 1032, ["label"]))), 128))]),
484
484
  _: 1
485
- }), b("div", Y, [C(o, {
485
+ }), b("div", X, [C(o, {
486
486
  size: "small",
487
487
  type: "primary",
488
488
  onClick: e.handleRefresh
489
489
  }, {
490
- default: F(() => [...t[3] ||= [S(" 查询 ", -1)]]),
490
+ default: L(() => [...t[3] ||= [S(" 查询 ", -1)]]),
491
491
  _: 1
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 ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]]), Q = "SET_SEARCH_CONDITIONS", oe = "SET_SELECTED_ROWKEYS", se = "SET_DATASOURCE", ce = "SET_FORM_MODEL", le = "SET_RAW", ue = "SET_CURRENT_HISTORY_ID", de = "SET_REQUST_HISTORY_ID", fe = "CLEAR_CONTEXT", pe = "SET_EDIT", me = "SET_CURRENT_FLOW_HISTORY_ID", he = "SET_REQUST_FLOW_HISTORY_ID", ge = "SET_GLOBAL_DATA", _e = U("approval_context", {
496
496
  persist: !1,
497
497
  state: () => ({ contexts: null }),
498
498
  actions: {
@@ -518,55 +518,55 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
518
518
  let r = this.initTable(e, t);
519
519
  r.searchConditions = n;
520
520
  },
521
- [ae](e, t, n, r) {
521
+ [oe](e, t, n, r) {
522
522
  let i = this.initTable(e, t);
523
523
  i.selectedRowKeys = n, i.selectedRecord = r;
524
524
  },
525
- [oe](e, t, n) {
525
+ [se](e, t, n) {
526
526
  let r = this.initTable(e, t);
527
527
  r.datasource = n;
528
528
  },
529
- [$](e, t) {
529
+ [ce](e, t) {
530
530
  let n = this.init(e);
531
531
  n.formModel = t;
532
532
  },
533
- [me](e, t) {
533
+ [ge](e, t) {
534
534
  let n = this.init(e);
535
535
  n.globalData = t;
536
536
  },
537
- [se](e, t) {
537
+ [le](e, t) {
538
538
  this.init(e), this.contexts[e] = {
539
539
  ...t,
540
540
  current_history_id: this.contexts[e].current_history_id,
541
541
  current_flow_history_id: this.contexts[e].current_flow_history_id
542
542
  };
543
543
  },
544
- [ce](e, t) {
544
+ [ue](e, t) {
545
545
  this.init(e), this.contexts[e].current_history_id = t;
546
546
  },
547
- [le](e, t) {
547
+ [de](e, t) {
548
548
  this.init(e), this.contexts[e].request_history_id = t;
549
549
  },
550
- [fe](e, t) {
550
+ [me](e, t) {
551
551
  this.init(e), this.contexts[e].current_flow_history_id = t;
552
552
  },
553
- [pe](e, t) {
553
+ [he](e, t) {
554
554
  this.init(e), this.contexts[e].request_flow_history_id = t;
555
555
  },
556
- [de](e, t, n) {
556
+ [pe](e, t, n) {
557
557
  this.init(e), this.contexts[e].isEdit = t, this.contexts[e].editState = n;
558
558
  },
559
- [ue](e) {
559
+ [fe](e) {
560
560
  delete this.contexts[e];
561
561
  }
562
562
  }
563
- }), ge = {
563
+ }), ve = {
564
564
  key: 1,
565
565
  style: {
566
566
  cursor: "pointer",
567
567
  padding: "4px 16px"
568
568
  }
569
- }, _e = /* @__PURE__ */ n(/* @__PURE__ */ w({
569
+ }, ye = /* @__PURE__ */ t(/* @__PURE__ */ w({
570
570
  name: "actionBar",
571
571
  __name: "actionsBar",
572
572
  props: {
@@ -576,8 +576,8 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
576
576
  },
577
577
  emits: ["click", "update:action_width"],
578
578
  setup(t, { emit: n }) {
579
- let r = t, i = n, a = O(null), o = O({}), s = O({}), c = g(() => r.actions.filter((e) => !e.is_dropdown));
580
- V(a, (e) => {
579
+ let r = t, i = n, a = A(null), o = A({}), s = A({}), c = g(() => r.actions.filter((e) => !e.is_dropdown));
580
+ H(a, (e) => {
581
581
  i("update:action_width", e[0].contentRect.width);
582
582
  });
583
583
  let l = g(() => {
@@ -588,11 +588,11 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
588
588
  }, t.push(e[n.group_name])), e[n.group_name].children.push(n));
589
589
  return t;
590
590
  }), d = () => {
591
- let e = I(o.value), t = I(s.value);
591
+ let e = R(o.value), t = R(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;
594
- }, f = L(async (t) => {
595
- let n = I(o.value), i = I(s.value);
594
+ }, f = ne(async (t) => {
595
+ let n = R(o.value), i = R(s.value);
596
596
  for (let a of r.actions || []) {
597
597
  if (n[a.action_code_id] = !0, i[a.action_code_id] = !1, a.showCode?.enable && a.showCode?.code) try {
598
598
  n[a.action_code_id] = await e(a.showCode?.code, {
@@ -613,7 +613,7 @@ 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 || []).map((e) => ({
616
+ I(() => [r.params, (r.actions || []).map((e) => ({
617
617
  action_code_id: e.action_code_id,
618
618
  action: e.action,
619
619
  code: e.code,
@@ -636,13 +636,13 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
636
636
  i("click", e);
637
637
  };
638
638
  return (e, n) => {
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");
640
- return t.actions ? (E(), y("div", {
639
+ let r = M("a-button"), i = M("debugCode"), d = M("a-menu-item"), f = M("a-menu"), m = M("DownOutlined"), g = M("a-dropdown");
640
+ return t.actions ? (O(), y("div", {
641
641
  key: 0,
642
642
  class: "actions",
643
643
  ref_key: "rowActionTestRef",
644
644
  ref: a
645
- }, [(E(!0), y(h, null, k(c.value, (e, t) => (E(), _(i, {
645
+ }, [(O(!0), y(h, null, j(c.value, (e, t) => (O(), _(i, {
646
646
  key: t,
647
647
  action_code_id: e.action_code_id,
648
648
  code: e.code,
@@ -653,10 +653,10 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
653
653
  "onUpdate:showCode": (t) => e.showCode = t,
654
654
  disableCode: e.disableCode,
655
655
  "onUpdate:disableCode": (t) => e.disableCode = t,
656
- options: N(u),
656
+ options: F(u),
657
657
  show: o.value[e.action_code_id]
658
658
  }, {
659
- default: F(() => [C(r, {
659
+ default: L(() => [C(r, {
660
660
  size: "small",
661
661
  type: e.type,
662
662
  danger: e.danger,
@@ -664,7 +664,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
664
664
  onClick: (t) => p(e),
665
665
  disabled: s.value[e.action_code_id]
666
666
  }, {
667
- default: F(() => [S(M(e.label), 1)]),
667
+ default: L(() => [S(P(e.label), 1)]),
668
668
  _: 2
669
669
  }, 1032, [
670
670
  "type",
@@ -686,9 +686,9 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
686
686
  "onUpdate:disableCode",
687
687
  "options",
688
688
  "show"
689
- ]))), 128)), (E(!0), y(h, null, k(l.value, (e) => (E(), _(g, null, {
690
- overlay: F(() => [C(f, null, {
691
- default: F(() => [(E(!0), y(h, null, k(e.children, (e, t) => (E(), _(i, {
689
+ ]))), 128)), (O(!0), y(h, null, j(l.value, (e) => (O(), _(g, null, {
690
+ overlay: L(() => [C(f, null, {
691
+ default: L(() => [(O(!0), y(h, null, j(e.children, (e, t) => (O(), _(i, {
692
692
  key: t,
693
693
  action_code_id: e.action_code_id,
694
694
  code: e.code,
@@ -699,14 +699,14 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
699
699
  "onUpdate:showCode": (t) => e.showCode = t,
700
700
  disableCode: e.disableCode,
701
701
  "onUpdate:disableCode": (t) => e.disableCode = t,
702
- options: N(u),
702
+ options: F(u),
703
703
  show: o.value[e.action_code_id]
704
704
  }, {
705
- default: F(() => [C(d, {
705
+ default: L(() => [C(d, {
706
706
  onClick: (t) => p(e),
707
707
  disabled: s.value[e.action_code_id]
708
708
  }, {
709
- default: F(() => [S(M(e.label), 1)]),
709
+ default: L(() => [S(P(e.label), 1)]),
710
710
  _: 2
711
711
  }, 1032, ["onClick", "disabled"])]),
712
712
  _: 2
@@ -725,18 +725,55 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
725
725
  ]))), 128))]),
726
726
  _: 2
727
727
  }, 1024)]),
728
- default: F(() => [e.name ? (E(), _(r, {
728
+ default: L(() => [e.name ? (O(), _(r, {
729
729
  key: 0,
730
730
  size: "small"
731
731
  }, {
732
- default: F(() => [S(M(e.name) + " ", 1), C(m)]),
732
+ default: L(() => [S(P(e.name) + " ", 1), C(m)]),
733
733
  _: 2
734
- }, 1024)) : (E(), y("div", ge, " · · · "))]),
734
+ }, 1024)) : (O(), y("div", ve, " · · · "))]),
735
735
  _: 2
736
736
  }, 1024))), 256))], 512)) : v("", !0);
737
737
  };
738
738
  }
739
- }), [["__scopeId", "data-v-f6310668"]]), ve = 50, ye = w({
739
+ }), [["__scopeId", "data-v-f6310668"]]), be = /* @__PURE__ */ w({
740
+ __name: "TableSummary",
741
+ props: {
742
+ item: {
743
+ type: Object,
744
+ required: !0
745
+ },
746
+ summaryParams: {
747
+ type: Object,
748
+ required: !0
749
+ }
750
+ },
751
+ setup(e) {
752
+ let t = e, n = g(() => {
753
+ let e = 0;
754
+ for (let n of t.summaryParams.pageData) {
755
+ let a = n[t.summaryParams.column.dataIndex];
756
+ a = i(a), (isNaN(a) || a == null) && (a = 0), e = r(e, a);
757
+ }
758
+ return e;
759
+ });
760
+ function r(e, t) {
761
+ let n = Math.max((e.toString().split(".")[1] || "").length, (t.toString().split(".")[1] || "").length);
762
+ return parseFloat((e + t).toFixed(n));
763
+ }
764
+ let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
765
+ return (t, r) => e.item.cellSummaryComponent ? (O(), _(N("CellSummary_" + e.item.cellSummaryComponent), {
766
+ key: 0,
767
+ cmpObj: {
768
+ item: e.item,
769
+ total: n.value
770
+ }
771
+ }, null, 8, ["cmpObj"])) : (O(), y("span", {
772
+ key: 1,
773
+ style: E(e.item.total_color ? e.item.total_color(e.item) : null)
774
+ }, P(e.item.total_content ? e.item.total_content(e.item) : n.value), 5));
775
+ }
776
+ }), xe = 50, Se = w({
740
777
  name: "ApprovalTable",
741
778
  props: {
742
779
  config: {
@@ -765,8 +802,8 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
765
802
  }
766
803
  },
767
804
  emits: ["selection-change"],
768
- setup(e, { emit: n }) {
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([
805
+ setup(e, { emit: t }) {
806
+ let r = _e(), i = A([]), a = A([]), o = A(!1), l = ie(), u = A([]), f = null, m = A(null), h = A(null), _ = A(null), v = A(null), y = A(null), b = A(null), x = A(70), S = A({}), C = A([]), w = !1, T = !1, E = A([
770
807
  "10",
771
808
  "20",
772
809
  "50",
@@ -779,19 +816,19 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
779
816
  "50000",
780
817
  "60000",
781
818
  "70000"
782
- ]), k = D({
819
+ ]), O = k({
783
820
  current: 1,
784
- pageSize: ve,
821
+ pageSize: xe,
785
822
  total: 0
786
823
  });
787
- V(m, (e) => {
824
+ H(m, (e) => {
788
825
  h.value = e[0].contentRect.height;
789
- }), V(_, (e) => {
826
+ }), H(_, (e) => {
790
827
  v.value = e[0].contentRect.height;
791
- }), V(y, (e) => {
828
+ }), H(y, (e) => {
792
829
  b.value = e[0].contentRect.height;
793
830
  });
794
- let A = () => !1, j = (t) => {
831
+ let j = () => !1, M = (t) => {
795
832
  if (!t) return [];
796
833
  let n = s(e.modelType), i = r.contexts?.[e.modelType] || {}, a = {};
797
834
  for (let t of e.approvalConfig?.columns || []) if (t.type === "form") {
@@ -818,17 +855,17 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
818
855
  };
819
856
  };
820
857
  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);
821
- }, M = async () => {
858
+ }, N = async () => {
822
859
  if (!e.config.list_url) return;
823
- let n = Symbol();
824
- f = n;
860
+ let t = Symbol();
861
+ f = t;
825
862
  try {
826
863
  o.value = !0;
827
864
  let a = [];
828
865
  try {
829
- a = j(e.config.base_conditions);
866
+ a = M(e.config.base_conditions);
830
867
  } catch (e) {
831
- console.error(e), ne.error(e instanceof Error ? e.message : String(e));
868
+ console.error(e), te.error(e instanceof Error ? e.message : String(e));
832
869
  return;
833
870
  }
834
871
  let s = d(u.value), c = [];
@@ -841,31 +878,31 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
841
878
  });
842
879
  let l = e.config.columns?.map((e) => e.dataIndex), p = [];
843
880
  for (let e of C.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
844
- let m = await t({
881
+ let m = await n({
845
882
  ...e.config.query_params || {},
846
- current: k.current,
847
- pageSize: k.pageSize,
883
+ current: O.current,
884
+ pageSize: O.pageSize,
848
885
  conditions: c,
849
886
  column_fields: l,
850
887
  sort_fields: p
851
888
  }, e.config.list_url);
852
- if (f !== n) return;
853
- i.value = m.data, e.modelType && r[oe](e.modelType, e.config.id, i.value), k.current = m.current, k.total = m.total;
889
+ if (f !== t) return;
890
+ i.value = m.data, e.modelType && r[se](e.modelType, e.config.id, i.value), O.current = m.current, O.total = m.total;
854
891
  } finally {
855
- if (f !== n) return;
892
+ if (f !== t) return;
856
893
  o.value = !1;
857
894
  }
858
- }, N = L(M, 500), F = (e, t) => {
859
- k.current == e && k.pageSize == t || (k.current = e || 1, k.pageSize = t || ve, M());
860
- }, z = g(() => ({
895
+ }, P = ne(N, 500), F = (e, t) => {
896
+ O.current == e && O.pageSize == t || (O.current = e || 1, O.pageSize = t || xe, N());
897
+ }, L = g(() => ({
861
898
  type: e.rowSelectionType || e.config.rowSelectionType || "checkbox",
862
899
  onChange: (t) => {
863
900
  let n = i.value.filter((e) => t.includes(e.id));
864
- e.modelType && r[ae](e.modelType, e.config.id, t, n);
901
+ e.modelType && r[oe](e.modelType, e.config.id, t, n);
865
902
  }
866
903
  }));
867
- P(a, (e) => {
868
- n("selection-change", (e || []).length);
904
+ I(a, (e) => {
905
+ t("selection-change", (e || []).length);
869
906
  }, {
870
907
  deep: !0,
871
908
  immediate: !0
@@ -873,7 +910,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
873
910
  let B = g(() => {
874
911
  let t = {};
875
912
  for (let e of u.value) ["in", "eq"].includes(e.operator) && (t[e.field_name] = e.value);
876
- let n = S.value || {}, r = I(e.config.columns || []);
913
+ let n = S.value || {}, r = R(e.config.columns || []);
877
914
  !r.some((e) => e.autoWidth) && r.length && (r[r.length - 1].autoWidth = !0);
878
915
  let i = r.map((e) => e.autoWidth ? {
879
916
  ...e,
@@ -897,8 +934,8 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
897
934
  resizable: !0,
898
935
  fixed: "right"
899
936
  }] : i;
900
- }), H = () => {
901
- M();
937
+ }), V = () => {
938
+ N();
902
939
  }, U = async (t, n) => {
903
940
  if (!t.action) {
904
941
  console.error("未定义action");
@@ -943,51 +980,52 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
943
980
  let e = h.value - v.value - b.value - 130;
944
981
  return Z.value.length > 0 && (e -= 40), e;
945
982
  }), J = async () => {
946
- await M();
983
+ await N();
947
984
  let t = r.contexts?.[e.modelType]?.tables?.[e.config.id]?.searchConditions;
948
985
  t && (u.value = t);
949
986
  }, Y = async () => {
950
987
  J();
951
988
  }, X = async () => {
952
- await M();
989
+ await N();
953
990
  }, Z = g(() => {
954
991
  let e = [], t = 0;
955
992
  for (let n of B.value) n.approve_summary && e.push({
956
993
  index: t + 1,
957
- cellSummaryComponent: n.cellSummaryComponent
994
+ cellSummaryComponent: n.approve_cellSummaryComponent,
995
+ column: n
958
996
  }), t++;
959
997
  return e;
960
998
  });
961
- return ee(async () => {
962
- 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();
999
+ return D(async () => {
1000
+ l.on("refresh", V), e.eventBus && (e.eventBus.on("reinit", Y), e.eventBus.on("reload_table", X), e.eventBus.on("cell_execute_row_action", G)), await J();
963
1001
  let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
964
1002
  t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
965
1003
  for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
966
1004
  key: e.dataIndex,
967
1005
  order: e.defaultSortOrder
968
1006
  });
969
- }), te(() => {
970
- 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));
971
- }), e.modelType && (P(() => u.value, (t, n) => {
972
- R(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), N());
973
- }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.globalData), (e, t) => {
974
- !R(e, t) && w && N();
975
- }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.formModel), (e, t) => {
976
- !R(e, t) && T && N();
1007
+ }), ee(() => {
1008
+ l.off("refresh", V), e.eventBus && (e.eventBus.off("reinit", Y), e.eventBus.off("reload_table", X), e.eventBus.off("cell_execute_row_action", G));
1009
+ }), e.modelType && (I(() => u.value, (t, n) => {
1010
+ z(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), P());
1011
+ }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.globalData), (e, t) => {
1012
+ !z(e, t) && w && P();
1013
+ }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.formModel), (e, t) => {
1014
+ !z(e, t) && T && P();
977
1015
  }, { deep: !0 })), {
978
1016
  dataSource: i,
979
1017
  selectedRowKeys: a,
980
1018
  loading: o,
981
- state: k,
1019
+ state: O,
982
1020
  handlePageChange: F,
983
1021
  handleRowAction: U,
984
1022
  callRowActionByTitle: W,
985
1023
  pageSizeOptions: E,
986
1024
  columns: B,
987
1025
  searchConditions: u,
988
- delayGetDate: N,
1026
+ delayGetDate: P,
989
1027
  selfEventBus: l,
990
- row_selection: z,
1028
+ row_selection: L,
991
1029
  handleAction: K,
992
1030
  searchRef: _,
993
1031
  actionRef: y,
@@ -997,7 +1035,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
997
1035
  rowActionWidth: x,
998
1036
  context: r,
999
1037
  summaryColumns: Z,
1000
- preserveRow: A,
1038
+ preserveRow: j,
1001
1039
  handleChange: (e, t, n, r) => {
1002
1040
  if (r.action !== "paginate") {
1003
1041
  if (r.action === "filter") {
@@ -1013,7 +1051,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
1013
1051
  class_name: "str"
1014
1052
  };
1015
1053
  }
1016
- u.value = Object.values(e), M();
1054
+ u.value = Object.values(e), N();
1017
1055
  } else if (r.action === "sort") {
1018
1056
  let e = {}, t = [];
1019
1057
  if (!re(n)) e[n.columnKey] = n.order, t.push({
@@ -1024,7 +1062,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
1024
1062
  key: r.columnKey,
1025
1063
  order: r.order
1026
1064
  });
1027
- S.value = e, C.value = t, M();
1065
+ S.value = e, C.value = t, N();
1028
1066
  }
1029
1067
  }
1030
1068
  },
@@ -1033,26 +1071,27 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
1033
1071
  };
1034
1072
  },
1035
1073
  components: {
1036
- Search: Z,
1037
- actionsBar: _e
1074
+ Search: ae,
1075
+ actionsBar: ye,
1076
+ TableSummary: be
1038
1077
  }
1039
- }), be = {
1078
+ }), Ce = {
1040
1079
  class: "table-wraper",
1041
1080
  ref: "tableWraperRef"
1042
- }, xe = { ref: "searchRef" }, Se = { key: 1 }, Ce = {
1081
+ }, we = { ref: "searchRef" }, Te = {
1043
1082
  ref: "actionRef",
1044
1083
  class: "btn-wraper"
1045
- }, we = { style: {
1084
+ }, Ee = { style: {
1046
1085
  position: "fixed",
1047
1086
  width: "0",
1048
1087
  height: "0",
1049
1088
  display: "block",
1050
1089
  overflow: "hidden"
1051
1090
  } };
1052
- function Te(e, t, n, r, i, a) {
1053
- let o = A("Search"), s = A("actions-bar"), c = A("s-table-summary-cell"), l = A("s-table-summary-row"), u = A("s-table");
1054
- return E(), y("div", be, [
1055
- b("div", xe, [e.config.search_config ? (E(), _(o, {
1091
+ function De(e, t, n, r, i, a) {
1092
+ let o = M("Search"), s = M("actions-bar"), c = M("s-table-summary-cell"), l = M("TableSummary"), u = M("s-table-summary-row"), d = M("s-table");
1093
+ return O(), y("div", Ce, [
1094
+ b("div", we, [e.config.search_config ? (O(), _(o, {
1056
1095
  key: 0,
1057
1096
  searchConfig: e.config.search_config,
1058
1097
  searchConditions: e.searchConditions,
@@ -1063,7 +1102,7 @@ function Te(e, t, n, r, i, a) {
1063
1102
  "searchConditions",
1064
1103
  "event-bus"
1065
1104
  ])) : v("", !0)], 512),
1066
- C(u, {
1105
+ C(d, {
1067
1106
  columns: e.columns,
1068
1107
  selectedRowKeys: e.selectedRowKeys,
1069
1108
  "onUpdate:selectedRowKeys": t[1] ||= (t) => e.selectedRowKeys = t,
@@ -1094,7 +1133,7 @@ function Te(e, t, n, r, i, a) {
1094
1133
  preserveRow: e.preserveRow,
1095
1134
  onChange: e.handleChange
1096
1135
  }, x({
1097
- bodyCell: F(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (E(), y(h, { key: 0 }, [S(M(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (E(), _(s, {
1136
+ bodyCell: L(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (O(), y(h, { key: 0 }, [S(P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (O(), _(s, {
1098
1137
  key: 1,
1099
1138
  actions: e.config.row_actions,
1100
1139
  onClick: (t) => e.handleRowAction(t, i),
@@ -1107,7 +1146,7 @@ function Te(e, t, n, r, i, a) {
1107
1146
  "actions",
1108
1147
  "onClick",
1109
1148
  "params"
1110
- ])) : t.cellComponent ? (E(), _(j("Cell_" + t.cellComponent), {
1149
+ ])) : t.cellComponent ? (O(), _(N("Cell_" + t.cellComponent), {
1111
1150
  key: 2,
1112
1151
  cmpObj: {
1113
1152
  column: t || {},
@@ -1120,25 +1159,25 @@ function Te(e, t, n, r, i, a) {
1120
1159
  eventBus: e.eventBus,
1121
1160
  call_cell_row_action: (t) => e.callRowActionByTitle(t, i)
1122
1161
  }
1123
- }, null, 8, ["cmpObj"])) : (E(), y(h, { key: 3 }, [S(M(r), 1)], 64))]),
1162
+ }, null, 8, ["cmpObj"])) : (O(), y(h, { key: 3 }, [S(P(r), 1)], 64))]),
1124
1163
  _: 2
1125
1164
  }, [e.summaryColumns.length > 0 ? {
1126
1165
  name: "summary",
1127
- fn: F(() => [C(l, null, {
1128
- default: F(() => [C(c, { index: 0 }, {
1129
- default: F(() => [...t[3] ||= [S("合计", -1)]]),
1166
+ fn: L(() => [C(u, null, {
1167
+ default: L(() => [C(c, { index: 0 }, {
1168
+ default: L(() => [...t[3] ||= [S("合计", -1)]]),
1130
1169
  _: 1
1131
- }), (E(!0), y(h, null, k(e.summaryColumns, (e) => (E(), _(c, {
1132
- key: e.index,
1133
- index: e.index
1170
+ }), (O(!0), y(h, null, j(e.summaryColumns, (t) => (O(), _(c, {
1171
+ key: t.index,
1172
+ index: t.index
1134
1173
  }, {
1135
- default: F(({ total: t }) => [e.cellSummaryComponent ? (E(), _(j("CellSummary_" + e.cellSummaryComponent), {
1136
- key: 0,
1137
- cmpObj: {
1138
- item: e,
1139
- total: t
1174
+ default: L(() => [C(l, {
1175
+ item: t,
1176
+ summaryParams: {
1177
+ pageData: e.dataSource,
1178
+ column: t.column
1140
1179
  }
1141
- }, null, 8, ["cmpObj"])) : (E(), y("span", Se, M(e.total_content ? e.total_content(t) : t), 1))]),
1180
+ }, null, 8, ["item", "summaryParams"])]),
1142
1181
  _: 2
1143
1182
  }, 1032, ["index"]))), 128))]),
1144
1183
  _: 1
@@ -1155,7 +1194,7 @@ function Te(e, t, n, r, i, a) {
1155
1194
  "preserveRow",
1156
1195
  "onChange"
1157
1196
  ]),
1158
- b("div", Ce, [e.hideAllButtons ? v("", !0) : (E(), _(s, {
1197
+ b("div", Te, [e.hideAllButtons ? v("", !0) : (O(), _(s, {
1159
1198
  key: 0,
1160
1199
  actions: e.config.actions,
1161
1200
  onClick: e.handleAction,
@@ -1168,14 +1207,14 @@ function Te(e, t, n, r, i, a) {
1168
1207
  "onClick",
1169
1208
  "params"
1170
1209
  ]))], 512),
1171
- b("div", we, [C(s, {
1210
+ b("div", Ee, [C(s, {
1172
1211
  actions: e.config.row_actions,
1173
1212
  action_width: e.rowActionWidth,
1174
1213
  "onUpdate:action_width": t[2] ||= (t) => e.rowActionWidth = t
1175
1214
  }, null, 8, ["actions", "action_width"])])
1176
1215
  ], 512);
1177
1216
  }
1178
- var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]]), De = w({
1217
+ var $ = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-34282dc0"]]), Oe = w({
1179
1218
  name: "ApprovalColumnTables",
1180
1219
  props: {
1181
1220
  columnConfig: {
@@ -1214,8 +1253,8 @@ var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]
1214
1253
  },
1215
1254
  emits: ["selected-counts-change"],
1216
1255
  setup(e, { emit: t }) {
1217
- let n = O([]);
1218
- ee(() => {
1256
+ let n = A([]);
1257
+ D(() => {
1219
1258
  n.value = e.columnConfig.tables?.map((e, t) => t);
1220
1259
  });
1221
1260
  let r = g(() => {
@@ -1232,7 +1271,7 @@ var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]
1232
1271
  e && (t[n.id] = e);
1233
1272
  }
1234
1273
  return t;
1235
- }), c = D({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1274
+ }), c = k({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1236
1275
  return {
1237
1276
  activeKey: n,
1238
1277
  filterTables: r,
@@ -1246,17 +1285,17 @@ var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]
1246
1285
  }
1247
1286
  };
1248
1287
  },
1249
- components: { ApprovalTable: Ee }
1250
- }), Oe = { class: "approval-column-tables" }, ke = { class: "title" }, Ae = { class: "title-text" };
1251
- function je(e, t, n, r, i, a) {
1252
- let o = A("ApprovalTable");
1253
- return E(), y("div", Oe, [(E(!0), y(h, null, k(e.filterTables, (t, n) => (E(), y("div", {
1288
+ components: { ApprovalTable: $ }
1289
+ }), ke = { class: "approval-column-tables" }, Ae = { class: "title" }, je = { class: "title-text" };
1290
+ function Me(e, t, n, r, i, a) {
1291
+ let o = M("ApprovalTable");
1292
+ return O(), y("div", ke, [(O(!0), y(h, null, j(e.filterTables, (t, n) => (O(), y("div", {
1254
1293
  key: n,
1255
1294
  class: "table-item"
1256
- }, [b("div", ke, [b("span", Ae, M(t.title), 1), e.getSelectLimit(t.id) ? (E(), y("span", {
1295
+ }, [b("div", Ae, [b("span", je, P(t.title), 1), e.getSelectLimit(t.id) ? (O(), y("span", {
1257
1296
  key: 0,
1258
1297
  class: T(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
1259
- }, " (" + M(e.getSelectLimitText(t.id)) + " · 已选 " + M(e.getSelectedCount(t.id)) + " 条) ", 3)) : v("", !0)]), C(o, {
1298
+ }, " (" + P(e.getSelectLimitText(t.id)) + " · 已选 " + P(e.getSelectedCount(t.id)) + " 条) ", 3)) : v("", !0)]), C(o, {
1260
1299
  config: t,
1261
1300
  modelType: e.modelType,
1262
1301
  eventBus: e.eventBus,
@@ -1274,6 +1313,6 @@ function je(e, t, n, r, i, a) {
1274
1313
  "onSelectionChange"
1275
1314
  ])]))), 128))]);
1276
1315
  }
1277
- var Me = /* @__PURE__ */ n(De, [["render", je], ["__scopeId", "data-v-3e52fe46"]]);
1316
+ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-3e52fe46"]]);
1278
1317
  //#endregion
1279
- 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 };
1318
+ export { me as a, ce as c, he as d, de as f, fe as i, ge as l, $ as n, ue as o, _e as p, ye as r, pe as s, Ne as t, le as u };