lyflowchart 1.0.154 → 1.0.161

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 (40) hide show
  1. package/dist/{ActionsConfig-gWnpd8yJ.js → ActionsConfig-Bx0tgz1e.js} +1 -1
  2. package/dist/{ApprovalEditorModal-BsHxlueJ.js → ApprovalEditorModal-CGZEehE6.js} +1 -1
  3. package/dist/{Cell_click_approve-CzEatC97.js → Cell_click_approve-D4BAdjen.js} +1 -1
  4. package/dist/{approval-DD00xYMY.js → approval-DOumm1tc.js} +1 -1
  5. package/dist/{approval-ekd9_mwq.js → approval-TIlcTs-h.js} +2 -2
  6. package/dist/{approvalHistory-DsHMvx1n.js → approvalHistory-BYTbTSXf.js} +2 -2
  7. package/dist/{approvalPageConfig-DsoxsuXo.js → approvalPageConfig-Yn3tPl7r.js} +7 -7
  8. package/dist/{approveLeftConfig-Cskh4ezK.js → approveLeftConfig-BKDdM87m.js} +1 -1
  9. package/dist/{columnTables-a7yfMH5Q.js → columnTables-Drq0OCcY.js} +255 -214
  10. package/dist/components/approval/components/TableSummary.vue.d.ts +20 -0
  11. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +6 -6
  12. package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +7 -7
  13. package/dist/components/approval/components/columnDataList.vue.d.ts +26 -2
  14. package/dist/components/approval/components/columnTables.vue.d.ts +26 -2
  15. package/dist/components/approval/components/drawerDataList.vue.d.ts +26 -2
  16. package/dist/components/approval/components/drawerTablesList.vue.d.ts +26 -2
  17. package/dist/components/approval/components/modelTablesList.vue.d.ts +26 -2
  18. package/dist/components/approval/components/table.vue.d.ts +27 -3
  19. package/dist/components/approval/dbViewAdapter.d.ts +40 -0
  20. package/dist/components/approval/typing.d.ts +4 -1
  21. package/dist/{core-BY-t0ghx.js → core-fRduuqmc.js} +4 -4
  22. package/dist/dbViewAdapter-ByVGSDgn.js +25 -0
  23. package/dist/{debugCode-CTU6KCej.js → debugCode-ZiYZUq5N.js} +2 -2
  24. package/dist/index.js +5 -5
  25. package/dist/{leftColumn-Dzw2Dk6g.js → leftColumn-Bn1KoLRy.js} +2 -2
  26. package/dist/lyflowchart.css +1 -1
  27. package/dist/{middleColumn-CTOCcPnB.js → middleColumn-Cdx9-JfV.js} +1 -1
  28. package/dist/{tableConfig-CMhKXmQF.js → tableConfig-B6bfpf7X.js} +593 -569
  29. package/dist/{tableModal-LuDGonFy.js → tableModal-DJ4BgjcA.js} +1 -1
  30. package/package.json +1 -1
  31. /package/dist/{JsonTags-DQdw3WxB.js → JsonTags-BQZ9jIF_.js} +0 -0
  32. /package/dist/{approvalHistoryViewModal-UzVPPpNH.js → approvalHistoryViewModal-D3_z9bf3.js} +0 -0
  33. /package/dist/{codeHistoryViewModal-BIktV_o6.js → codeHistoryViewModal-DnNI_S8C.js} +0 -0
  34. /package/dist/{dataStoreSettingHistoryViewModal-DjSRPgQC.js → dataStoreSettingHistoryViewModal-Bwf0Kbvh.js} +0 -0
  35. /package/dist/{debugCode-dD1YnQSD.js → debugCode-_6PzXpbO.js} +0 -0
  36. /package/dist/{default-CFd6cRxl.js → default-BNQ2XYku.js} +0 -0
  37. /package/dist/{example_code-DKjqP7KK.js → example_code-Bqj9GjMk.js} +0 -0
  38. /package/dist/{flowHistoryViewModal-CaGj3LP4.js → flowHistoryViewModal-CVg7Wn7_.js} +0 -0
  39. /package/dist/{settingsState-CI81PG-i.js → settingsState-Bz7q-7ZJ.js} +0 -0
  40. /package/dist/{v0001-OaBeBCXI.js → v0001-iEj36Rvz.js} +0 -0
@@ -1,15 +1,16 @@
1
1
  import { a as e, b as t, o as n } from "./init-plugin-CpYzRii0.js";
2
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, 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";
3
+ import { r as h } from "./dbViewAdapter-ByVGSDgn.js";
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";
4
5
  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";
6
+ import { cloneDeep as R, debounce as z, isArray as re, isEqual as B } from "lodash";
7
+ import { useI18n as V } from "vue-i18n";
8
+ import H from "moment";
8
9
  import ie from "mitt";
9
- import { useResizeObserver as V } from "@vueuse/core";
10
- import { defineStore as H } from "pinia";
10
+ import { useResizeObserver as U } from "@vueuse/core";
11
+ import { defineStore as W } from "pinia";
11
12
  //#region src/components/approval/components/searchSummary.vue?vue&type=script&lang.ts
12
- var U = w({
13
+ var G = T({
13
14
  name: "searchSummary",
14
15
  props: {
15
16
  searchConfig: {
@@ -27,7 +28,7 @@ var U = w({
27
28
  },
28
29
  emits: ["update:searchConditions"],
29
30
  setup(e, { emit: t }) {
30
- let n = f(), { t: i } = z(), a = (e, t, r) => {
31
+ let n = f(), { t: i } = V(), a = (e, t, r) => {
31
32
  let a = [], o;
32
33
  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
34
  if (t === "_eq") {
@@ -49,14 +50,14 @@ var U = w({
49
50
  if (r instanceof Array) {
50
51
  let t = [];
51
52
  r.forEach((n) => {
52
- n ? t.push(B(n).format(e.dateFormat)) : t.push(n);
53
+ n ? t.push(H(n).format(e.dateFormat)) : t.push(n);
53
54
  }), o = t.join(",");
54
- } else o = B(r).format(e.dateFormat);
55
+ } else o = H(r).format(e.dateFormat);
55
56
  return `${n[t]} ${o}`;
56
57
  } else return `${n[t]} ${r}`;
57
58
  };
58
59
  return {
59
- dataSource: g(() => {
60
+ dataSource: _(() => {
60
61
  let t = {};
61
62
  for (let n of e.searchConditions) t[n.field_name] = {
62
63
  value: n.value,
@@ -82,29 +83,29 @@ var U = w({
82
83
  };
83
84
  },
84
85
  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, {
86
+ }), K = { class: "search-summary" };
87
+ function q(e, t, n, r, i, a) {
88
+ let o = M("a-tag"), s = M("RedoOutlined"), c = M("a-button");
89
+ return O(), b("span", K, [(O(!0), b(g, null, j(e.dataSource, (t) => (O(), v(o, {
89
90
  key: t.field_name,
90
91
  color: "green",
91
92
  closable: "",
92
93
  onClose: (n) => e.handleClose(t.field_name)
93
94
  }, {
94
- default: F(() => [S(M(t.summary), 1)]),
95
+ default: L(() => [C(P(t.summary), 1)]),
95
96
  _: 2
96
- }, 1032, ["onClose"]))), 128)), C(c, {
97
+ }, 1032, ["onClose"]))), 128)), w(c, {
97
98
  size: "small",
98
99
  type: "text",
99
100
  onClick: e.handleRefresh
100
101
  }, {
101
- default: F(() => [C(s)]),
102
+ default: L(() => [w(s)]),
102
103
  _: 1
103
104
  }, 8, ["onClick"])]);
104
105
  }
105
106
  //#endregion
106
107
  //#region src/components/approval/components/search.vue?vue&type=script&lang.ts
107
- var K = w({
108
+ var J = T({
108
109
  name: "Search",
109
110
  props: {
110
111
  searchConfig: {
@@ -122,7 +123,7 @@ var K = w({
122
123
  },
123
124
  emits: ["update:searchConditions"],
124
125
  setup(e, { emit: t }) {
125
- let n = f(), { t: i } = z(), o = O(!0), s = O({}), u = O({}), d = O({}), p = O([{
126
+ let n = f(), { t: i } = V(), o = A(!0), s = A({}), u = A({}), d = A({}), p = A([{
126
127
  value: "yes",
127
128
  label: i("is_or_not_blank_or_null.yes")
128
129
  }, {
@@ -132,7 +133,7 @@ var K = w({
132
133
  return {
133
134
  isShowForm: o,
134
135
  searchModel: s,
135
- dataSource: g(() => {
136
+ dataSource: _(() => {
136
137
  let t = {};
137
138
  for (let n of e.searchConditions) t[n.field_name] = {
138
139
  value: n.value,
@@ -152,7 +153,7 @@ var K = w({
152
153
  });
153
154
  }),
154
155
  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
+ 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
157
  if (i === "value") if (f = p ? p.operator : u?.default_operator || "eq", o !== void 0) {
157
158
  let e = l(a, u);
158
159
  if (p) {
@@ -211,29 +212,29 @@ var K = w({
211
212
  }
212
213
  };
213
214
  },
214
- components: { searchSummary: /* @__PURE__ */ t(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, {
215
+ components: { searchSummary: /* @__PURE__ */ t(G, [["render", q], ["__scopeId", "data-v-af740a0c"]]) }
216
+ }), Y = { class: "search-switch" }, X = { class: "expand-btn" }, Z = { class: "btn-content" };
217
+ function Q(e, t, n, r, i, a) {
218
+ 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");
219
+ return O(), b(g, null, [
220
+ x("span", Y, [e.isShowForm ? (O(), v(o, {
220
221
  key: 1,
221
222
  type: "link",
222
223
  size: "small",
223
224
  onClick: t[1] ||= (t) => e.isShowForm = !1
224
225
  }, {
225
- default: F(() => [S(M(e.$t("隐藏")), 1)]),
226
+ default: L(() => [C(P(e.$t("隐藏")), 1)]),
226
227
  _: 1
227
- })) : (E(), _(o, {
228
+ })) : (O(), v(o, {
228
229
  key: 0,
229
230
  type: "link",
230
231
  size: "small",
231
232
  onClick: t[0] ||= (t) => e.isShowForm = !0
232
233
  }, {
233
- default: F(() => [b("span", J, M(e.$t("展开")), 1)]),
234
+ default: L(() => [x("span", X, P(e.$t("展开")), 1)]),
234
235
  _: 1
235
236
  }))]),
236
- e.isShowForm ? v("", !0) : (E(), _(s, {
237
+ e.isShowForm ? y("", !0) : (O(), v(s, {
237
238
  key: 0,
238
239
  "search-conditions": e.searchConditions,
239
240
  "search-config": e.searchConfig,
@@ -245,31 +246,31 @@ function X(e, t, n, r, i, a) {
245
246
  "event-bus",
246
247
  "onUpdate:searchConditions"
247
248
  ])),
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, {
249
+ e.isShowForm ? (O(), b(g, { key: 1 }, [w(p, { layout: "inline" }, {
250
+ default: L(() => [(O(!0), b(g, null, j(e.dataSource, (n, r) => (O(), v(f, {
250
251
  key: n.field_name,
251
252
  label: n.label
252
253
  }, {
253
- default: F(() => [C(d, {
254
+ default: L(() => [w(d, {
254
255
  compact: "",
255
256
  size: "small"
256
257
  }, {
257
- default: F(() => [n.operator_list.length > 0 ? (E(), _(l, {
258
+ default: L(() => [n.operator_list.length > 0 ? (O(), v(l, {
258
259
  key: 0,
259
260
  dropdownMatchSelectWidth: !1,
260
261
  value: n.operator,
261
262
  onChange: (t) => e.onChange(n.field_name, "operator", t),
262
263
  size: "small"
263
264
  }, {
264
- default: F(() => [(E(!0), y(h, null, k(n.operator_list, (t) => (E(), _(c, {
265
+ default: L(() => [(O(!0), b(g, null, j(n.operator_list, (t) => (O(), v(c, {
265
266
  value: t,
266
267
  key: t
267
268
  }, {
268
- default: F(() => [S(M(e.operator_type_map[t]), 1)]),
269
+ default: L(() => [C(P(e.operator_type_map[t]), 1)]),
269
270
  _: 2
270
271
  }, 1032, ["value"]))), 128))]),
271
272
  _: 2
272
- }, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (E(), _(u, {
273
+ }, 1032, ["value", "onChange"])) : y("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (O(), v(u, {
273
274
  key: 1,
274
275
  is_show_label: !1,
275
276
  label: n.field_name,
@@ -294,7 +295,7 @@ function X(e, t, n, r, i, a) {
294
295
  "options",
295
296
  "validateInfos",
296
297
  "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, {
298
+ ])) : ["input"].includes(n.format) ? (O(), b(g, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (O(), b(g, { key: 0 }, [n.type === "datepicker" ? (O(), v(u, {
298
299
  key: 0,
299
300
  is_show_label: !1,
300
301
  label: n.field_name,
@@ -314,7 +315,7 @@ function X(e, t, n, r, i, a) {
314
315
  "formModel",
315
316
  "validateInfos",
316
317
  "onUpdate:value"
317
- ])) : n.type === "monthpicker" ? (E(), _(u, {
318
+ ])) : n.type === "monthpicker" ? (O(), v(u, {
318
319
  key: 1,
319
320
  is_show_label: !1,
320
321
  label: n.field_name,
@@ -333,8 +334,8 @@ function X(e, t, n, r, i, a) {
333
334
  "formModel",
334
335
  "validateInfos",
335
336
  "onUpdate:value"
336
- ])) : (E(), y(h, { key: 2 }, [
337
- C(u, {
337
+ ])) : (O(), b(g, { key: 2 }, [
338
+ w(u, {
338
339
  is_show_label: !1,
339
340
  label: n.field_name,
340
341
  value: n.value?.[0],
@@ -353,8 +354,8 @@ function X(e, t, n, r, i, a) {
353
354
  "validateInfos",
354
355
  "onUpdate:value"
355
356
  ]),
356
- t[2] ||= b("span", { class: "range" }, "~", -1),
357
- C(u, {
357
+ t[2] ||= x("span", { class: "range" }, "~", -1),
358
+ w(u, {
358
359
  is_show_label: !1,
359
360
  label: n.field_name,
360
361
  value: n.value?.[1],
@@ -373,7 +374,7 @@ function X(e, t, n, r, i, a) {
373
374
  "validateInfos",
374
375
  "onUpdate:value"
375
376
  ])
376
- ], 64))], 64)) : n.operator === "_eq" ? (E(), _(u, {
377
+ ], 64))], 64)) : n.operator === "_eq" ? (O(), v(u, {
377
378
  key: 1,
378
379
  is_show_label: !1,
379
380
  label: n.field_name,
@@ -398,7 +399,7 @@ function X(e, t, n, r, i, a) {
398
399
  "options",
399
400
  "validateInfos",
400
401
  "onUpdate:value"
401
- ])) : n.type === "datepicker" || n.type === "monthpicker" ? (E(), _(u, {
402
+ ])) : n.type === "datepicker" || n.type === "monthpicker" ? (O(), v(u, {
402
403
  key: 2,
403
404
  is_show_label: !1,
404
405
  label: n.field_name,
@@ -419,7 +420,7 @@ function X(e, t, n, r, i, a) {
419
420
  "options",
420
421
  "validateInfos",
421
422
  "onUpdate:value"
422
- ])) : (E(), _(u, {
423
+ ])) : (O(), v(u, {
423
424
  key: 3,
424
425
  is_show_label: !1,
425
426
  label: n.field_name,
@@ -437,7 +438,7 @@ function X(e, t, n, r, i, a) {
437
438
  "options",
438
439
  "validateInfos",
439
440
  "onUpdate:value"
440
- ]))], 64)) : ["choices", "remote"].includes(n.format) ? (E(), y(h, { key: 3 }, [n.format === "choices" ? (E(), _(u, {
441
+ ]))], 64)) : ["choices", "remote"].includes(n.format) ? (O(), b(g, { key: 3 }, [n.format === "choices" ? (O(), v(u, {
441
442
  key: 0,
442
443
  is_show_label: !1,
443
444
  label: n.field_name,
@@ -455,7 +456,7 @@ function X(e, t, n, r, i, a) {
455
456
  "options",
456
457
  "validateInfos",
457
458
  "onUpdate:value"
458
- ])) : n.format === "remote" ? (E(), _(u, {
459
+ ])) : n.format === "remote" ? (O(), v(u, {
459
460
  key: 1,
460
461
  is_show_label: !1,
461
462
  label: n.field_name,
@@ -476,23 +477,23 @@ function X(e, t, n, r, i, a) {
476
477
  "options",
477
478
  "validateInfos",
478
479
  "onUpdate:value"
479
- ])) : v("", !0)], 64)) : v("", !0)]),
480
+ ])) : y("", !0)], 64)) : y("", !0)]),
480
481
  _: 2
481
482
  }, 1024)]),
482
483
  _: 2
483
484
  }, 1032, ["label"]))), 128))]),
484
485
  _: 1
485
- }), b("div", Y, [C(o, {
486
+ }), x("div", Z, [w(o, {
486
487
  size: "small",
487
488
  type: "primary",
488
489
  onClick: e.handleRefresh
489
490
  }, {
490
- default: F(() => [...t[3] ||= [S(" 查询 ", -1)]]),
491
+ default: L(() => [...t[3] ||= [C(" 查询 ", -1)]]),
491
492
  _: 1
492
- }, 8, ["onClick"])])], 64)) : v("", !0)
493
+ }, 8, ["onClick"])])], 64)) : y("", !0)
493
494
  ], 64);
494
495
  }
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
+ var $ = /* @__PURE__ */ t(J, [["render", Q], ["__scopeId", "data-v-6db64c14"]]), ae = "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 = W("approval_context", {
496
497
  persist: !1,
497
498
  state: () => ({ contexts: null }),
498
499
  actions: {
@@ -514,59 +515,59 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
514
515
  datasource: []
515
516
  }), n.tables[t];
516
517
  },
517
- [Q](e, t, n) {
518
+ [ae](e, t, n) {
518
519
  let r = this.initTable(e, t);
519
520
  r.searchConditions = n;
520
521
  },
521
- [ae](e, t, n, r) {
522
+ [oe](e, t, n, r) {
522
523
  let i = this.initTable(e, t);
523
524
  i.selectedRowKeys = n, i.selectedRecord = r;
524
525
  },
525
- [oe](e, t, n) {
526
+ [se](e, t, n) {
526
527
  let r = this.initTable(e, t);
527
528
  r.datasource = n;
528
529
  },
529
- [$](e, t) {
530
+ [ce](e, t) {
530
531
  let n = this.init(e);
531
532
  n.formModel = t;
532
533
  },
533
- [me](e, t) {
534
+ [ge](e, t) {
534
535
  let n = this.init(e);
535
536
  n.globalData = t;
536
537
  },
537
- [se](e, t) {
538
+ [le](e, t) {
538
539
  this.init(e), this.contexts[e] = {
539
540
  ...t,
540
541
  current_history_id: this.contexts[e].current_history_id,
541
542
  current_flow_history_id: this.contexts[e].current_flow_history_id
542
543
  };
543
544
  },
544
- [ce](e, t) {
545
+ [ue](e, t) {
545
546
  this.init(e), this.contexts[e].current_history_id = t;
546
547
  },
547
- [le](e, t) {
548
+ [de](e, t) {
548
549
  this.init(e), this.contexts[e].request_history_id = t;
549
550
  },
550
- [fe](e, t) {
551
+ [me](e, t) {
551
552
  this.init(e), this.contexts[e].current_flow_history_id = t;
552
553
  },
553
- [pe](e, t) {
554
+ [he](e, t) {
554
555
  this.init(e), this.contexts[e].request_flow_history_id = t;
555
556
  },
556
- [de](e, t, n) {
557
+ [pe](e, t, n) {
557
558
  this.init(e), this.contexts[e].isEdit = t, this.contexts[e].editState = n;
558
559
  },
559
- [ue](e) {
560
+ [fe](e) {
560
561
  delete this.contexts[e];
561
562
  }
562
563
  }
563
- }), ge = {
564
+ }), ve = {
564
565
  key: 1,
565
566
  style: {
566
567
  cursor: "pointer",
567
568
  padding: "4px 16px"
568
569
  }
569
- }, _e = /* @__PURE__ */ t(/* @__PURE__ */ w({
570
+ }, ye = /* @__PURE__ */ t(/* @__PURE__ */ T({
570
571
  name: "actionBar",
571
572
  __name: "actionsBar",
572
573
  props: {
@@ -576,11 +577,11 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
576
577
  },
577
578
  emits: ["click", "update:action_width"],
578
579
  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) => {
580
+ let r = t, i = n, a = A(null), o = A({}), s = A({}), c = _(() => r.actions.filter((e) => !e.is_dropdown));
581
+ U(a, (e) => {
581
582
  i("update:action_width", e[0].contentRect.width);
582
583
  });
583
- let l = g(() => {
584
+ let l = _(() => {
584
585
  let e = {}, t = [];
585
586
  for (let n of r.actions) n.is_dropdown && (e[n.group_name] || (e[n.group_name] = {
586
587
  name: n.group_name,
@@ -588,11 +589,11 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
588
589
  }, t.push(e[n.group_name])), e[n.group_name].children.push(n));
589
590
  return t;
590
591
  }), d = () => {
591
- let e = I(o.value), t = I(s.value);
592
+ let e = R(o.value), t = R(s.value);
592
593
  for (let n of r.actions || []) e[n.action_code_id] = !0, t[n.action_code_id] = !1;
593
594
  o.value = e, s.value = t;
594
- }, f = L(async (t) => {
595
- let n = I(o.value), i = I(s.value);
595
+ }, f = z(async (t) => {
596
+ let n = R(o.value), i = R(s.value);
596
597
  for (let a of r.actions || []) {
597
598
  if (n[a.action_code_id] = !0, i[a.action_code_id] = !1, a.showCode?.enable && a.showCode?.code) try {
598
599
  n[a.action_code_id] = await e(a.showCode?.code, {
@@ -613,7 +614,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
613
614
  }
614
615
  o.value = n, s.value = i;
615
616
  }, 200);
616
- P(() => [r.params, (r.actions || []).map((e) => ({
617
+ I(() => [r.params, (r.actions || []).map((e) => ({
617
618
  action_code_id: e.action_code_id,
618
619
  action: e.action,
619
620
  code: e.code,
@@ -636,13 +637,13 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
636
637
  i("click", e);
637
638
  };
638
639
  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", {
640
+ let r = M("a-button"), i = M("debugCode"), d = M("a-menu-item"), f = M("a-menu"), m = M("DownOutlined"), h = M("a-dropdown");
641
+ return t.actions ? (O(), b("div", {
641
642
  key: 0,
642
643
  class: "actions",
643
644
  ref_key: "rowActionTestRef",
644
645
  ref: a
645
- }, [(E(!0), y(h, null, k(c.value, (e, t) => (E(), _(i, {
646
+ }, [(O(!0), b(g, null, j(c.value, (e, t) => (O(), v(i, {
646
647
  key: t,
647
648
  action_code_id: e.action_code_id,
648
649
  code: e.code,
@@ -653,10 +654,10 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
653
654
  "onUpdate:showCode": (t) => e.showCode = t,
654
655
  disableCode: e.disableCode,
655
656
  "onUpdate:disableCode": (t) => e.disableCode = t,
656
- options: N(u),
657
+ options: F(u),
657
658
  show: o.value[e.action_code_id]
658
659
  }, {
659
- default: F(() => [C(r, {
660
+ default: L(() => [w(r, {
660
661
  size: "small",
661
662
  type: e.type,
662
663
  danger: e.danger,
@@ -664,7 +665,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
664
665
  onClick: (t) => p(e),
665
666
  disabled: s.value[e.action_code_id]
666
667
  }, {
667
- default: F(() => [S(M(e.label), 1)]),
668
+ default: L(() => [C(P(e.label), 1)]),
668
669
  _: 2
669
670
  }, 1032, [
670
671
  "type",
@@ -686,9 +687,9 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
686
687
  "onUpdate:disableCode",
687
688
  "options",
688
689
  "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, {
690
+ ]))), 128)), (O(!0), b(g, null, j(l.value, (e) => (O(), v(h, null, {
691
+ overlay: L(() => [w(f, null, {
692
+ default: L(() => [(O(!0), b(g, null, j(e.children, (e, t) => (O(), v(i, {
692
693
  key: t,
693
694
  action_code_id: e.action_code_id,
694
695
  code: e.code,
@@ -699,14 +700,14 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
699
700
  "onUpdate:showCode": (t) => e.showCode = t,
700
701
  disableCode: e.disableCode,
701
702
  "onUpdate:disableCode": (t) => e.disableCode = t,
702
- options: N(u),
703
+ options: F(u),
703
704
  show: o.value[e.action_code_id]
704
705
  }, {
705
- default: F(() => [C(d, {
706
+ default: L(() => [w(d, {
706
707
  onClick: (t) => p(e),
707
708
  disabled: s.value[e.action_code_id]
708
709
  }, {
709
- default: F(() => [S(M(e.label), 1)]),
710
+ default: L(() => [C(P(e.label), 1)]),
710
711
  _: 2
711
712
  }, 1032, ["onClick", "disabled"])]),
712
713
  _: 2
@@ -725,18 +726,55 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
725
726
  ]))), 128))]),
726
727
  _: 2
727
728
  }, 1024)]),
728
- default: F(() => [e.name ? (E(), _(r, {
729
+ default: L(() => [e.name ? (O(), v(r, {
729
730
  key: 0,
730
731
  size: "small"
731
732
  }, {
732
- default: F(() => [S(M(e.name) + " ", 1), C(m)]),
733
+ default: L(() => [C(P(e.name) + " ", 1), w(m)]),
733
734
  _: 2
734
- }, 1024)) : (E(), y("div", ge, " · · · "))]),
735
+ }, 1024)) : (O(), b("div", ve, " · · · "))]),
735
736
  _: 2
736
- }, 1024))), 256))], 512)) : v("", !0);
737
+ }, 1024))), 256))], 512)) : y("", !0);
737
738
  };
738
739
  }
739
- }), [["__scopeId", "data-v-f6310668"]]), ve = 50, ye = w({
740
+ }), [["__scopeId", "data-v-f6310668"]]), be = /* @__PURE__ */ T({
741
+ __name: "TableSummary",
742
+ props: {
743
+ item: {
744
+ type: Object,
745
+ required: !0
746
+ },
747
+ summaryParams: {
748
+ type: Object,
749
+ required: !0
750
+ }
751
+ },
752
+ setup(e) {
753
+ let t = e, n = _(() => {
754
+ let e = 0;
755
+ for (let n of t.summaryParams.pageData) {
756
+ let a = n[t.summaryParams.column.dataIndex];
757
+ a = i(a), (isNaN(a) || a == null) && (a = 0), e = r(e, a);
758
+ }
759
+ return e;
760
+ });
761
+ function r(e, t) {
762
+ let n = Math.max((e.toString().split(".")[1] || "").length, (t.toString().split(".")[1] || "").length);
763
+ return parseFloat((e + t).toFixed(n));
764
+ }
765
+ let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
766
+ return (t, r) => e.item.cellSummaryComponent ? (O(), v(N("CellSummary_" + e.item.cellSummaryComponent), {
767
+ key: 0,
768
+ cmpObj: {
769
+ item: e.item,
770
+ total: n.value
771
+ }
772
+ }, null, 8, ["cmpObj"])) : (O(), b("span", {
773
+ key: 1,
774
+ style: D(e.item.total_color ? e.item.total_color(e.item) : null)
775
+ }, P(e.item.total_content ? e.item.total_content(e.item) : n.value), 5));
776
+ }
777
+ }), xe = 50, Se = T({
740
778
  name: "ApprovalTable",
741
779
  props: {
742
780
  config: {
@@ -766,7 +804,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
766
804
  },
767
805
  emits: ["selection-change"],
768
806
  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([
807
+ let r = _e(), i = A([]), a = A([]), o = A(!1), l = ie(), u = A([]), f = null, m = A(null), g = A(null), v = A(null), y = A(null), b = A(null), x = A(null), S = A(70), C = A({}), w = A([]), T = !1, E = !1, D = A([
770
808
  "10",
771
809
  "20",
772
810
  "50",
@@ -779,19 +817,19 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
779
817
  "50000",
780
818
  "60000",
781
819
  "70000"
782
- ]), k = D({
820
+ ]), O = k({
783
821
  current: 1,
784
- pageSize: ve,
822
+ pageSize: xe,
785
823
  total: 0
786
824
  });
787
- V(m, (e) => {
788
- h.value = e[0].contentRect.height;
789
- }), V(_, (e) => {
790
- v.value = e[0].contentRect.height;
791
- }), V(y, (e) => {
792
- b.value = e[0].contentRect.height;
825
+ U(m, (e) => {
826
+ g.value = e[0].contentRect.height;
827
+ }), U(v, (e) => {
828
+ y.value = e[0].contentRect.height;
829
+ }), U(b, (e) => {
830
+ x.value = e[0].contentRect.height;
793
831
  });
794
- let A = () => !1, j = (t) => {
832
+ let j = () => !1, M = (t) => {
795
833
  if (!t) return [];
796
834
  let n = s(e.modelType), i = r.contexts?.[e.modelType] || {}, a = {};
797
835
  for (let t of e.approvalConfig?.columns || []) if (t.type === "form") {
@@ -801,12 +839,12 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
801
839
  let o = (e) => {
802
840
  let t = e.value;
803
841
  if (e.value_type == "global") if (e.value?.length == 2) {
804
- w = !0;
842
+ T = !0;
805
843
  let n = i.globalData?.[e.value[0]]?.[e.value[1]];
806
844
  t = n ? [n] : null;
807
845
  } else t = null;
808
846
  else if (e.value_type == "form") if (e.value?.length == 2) {
809
- T = !0;
847
+ E = !0;
810
848
  let n = i.formModel?.[a[e.value[1]]];
811
849
  t = n ? [n] : null;
812
850
  } else t = null;
@@ -818,7 +856,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
818
856
  };
819
857
  };
820
858
  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 () => {
859
+ }, N = async () => {
822
860
  if (!e.config.list_url) return;
823
861
  let t = Symbol();
824
862
  f = t;
@@ -826,7 +864,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
826
864
  o.value = !0;
827
865
  let a = [];
828
866
  try {
829
- a = j(e.config.base_conditions);
867
+ a = M(e.config.base_conditions);
830
868
  } catch (e) {
831
869
  console.error(e), ne.error(e instanceof Error ? e.message : String(e));
832
870
  return;
@@ -840,40 +878,40 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
840
878
  children: a
841
879
  });
842
880
  let l = e.config.columns?.map((e) => e.dataIndex), p = [];
843
- for (let e of C.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
881
+ for (let e of w.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
844
882
  let m = await n({
845
883
  ...e.config.query_params || {},
846
- current: k.current,
847
- pageSize: k.pageSize,
884
+ current: O.current,
885
+ pageSize: O.pageSize,
848
886
  conditions: c,
849
887
  column_fields: l,
850
888
  sort_fields: p
851
889
  }, e.config.list_url);
852
890
  if (f !== t) 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;
891
+ i.value = m.data, e.modelType && r[se](e.modelType, e.config.id, i.value), O.current = m.current, O.total = m.total;
854
892
  } finally {
855
893
  if (f !== t) return;
856
894
  o.value = !1;
857
895
  }
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(() => ({
896
+ }, P = z(N, 500), F = (e, t) => {
897
+ O.current == e && O.pageSize == t || (O.current = e || 1, O.pageSize = t || xe, N());
898
+ }, L = _(() => e.config.rowKey ? e.config.rowKey : h(e.config.list_url) ? "_id" : "id"), V = _(() => ({
861
899
  type: e.rowSelectionType || e.config.rowSelectionType || "checkbox",
862
900
  onChange: (t) => {
863
- let n = i.value.filter((e) => t.includes(e.id));
864
- e.modelType && r[ae](e.modelType, e.config.id, t, n);
901
+ let n = i.value.filter((e) => t.includes(e[L.value]));
902
+ e.modelType && r[oe](e.modelType, e.config.id, t, n);
865
903
  }
866
904
  }));
867
- P(a, (e) => {
905
+ I(a, (e) => {
868
906
  t("selection-change", (e || []).length);
869
907
  }, {
870
908
  deep: !0,
871
909
  immediate: !0
872
910
  });
873
- let B = g(() => {
911
+ let H = _(() => {
874
912
  let t = {};
875
913
  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 || []);
914
+ let n = C.value || {}, r = R(e.config.columns || []);
877
915
  !r.some((e) => e.autoWidth) && r.length && (r[r.length - 1].autoWidth = !0);
878
916
  let i = r.map((e) => e.autoWidth ? {
879
917
  ...e,
@@ -893,13 +931,13 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
893
931
  return e.config.row_actions && e.config.row_actions.length > 0 && !e.hideAllButtons ? [...i, {
894
932
  title: "操作",
895
933
  dataIndex: "_action",
896
- width: x.value + 20,
934
+ width: S.value + 20,
897
935
  resizable: !0,
898
936
  fixed: "right"
899
937
  }] : i;
900
- }), H = () => {
901
- M();
902
- }, U = async (t, n) => {
938
+ }), W = () => {
939
+ N();
940
+ }, G = async (t, n) => {
903
941
  if (!t.action) {
904
942
  console.error("未定义action");
905
943
  return;
@@ -914,7 +952,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
914
952
  settings: t.settings
915
953
  }
916
954
  });
917
- }, W = (t, n) => {
955
+ }, K = (t, n) => {
918
956
  let r = e.config && e.config.row_actions || [];
919
957
  if (!r.length) return;
920
958
  let i = r.find((e) => e.label === t);
@@ -922,10 +960,10 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
922
960
  console.warn("cellComponent 触发的行按钮未找到:", t);
923
961
  return;
924
962
  }
925
- U(i, n);
926
- }, G = ({ title: e, record: t }) => {
927
- W(e, t);
928
- }, K = async (t) => {
963
+ G(i, n);
964
+ }, q = ({ title: e, record: t }) => {
965
+ K(e, t);
966
+ }, J = async (t) => {
929
967
  if (!t.action) {
930
968
  console.error("未定义action");
931
969
  return;
@@ -939,66 +977,67 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
939
977
  settings: t.settings
940
978
  }
941
979
  });
942
- }, q = g(() => {
943
- let e = h.value - v.value - b.value - 130;
944
- return Z.value.length > 0 && (e -= 40), e;
945
- }), J = async () => {
946
- await M();
980
+ }, Y = _(() => {
981
+ let e = g.value - y.value - x.value - 130;
982
+ return $.value.length > 0 && (e -= 40), e;
983
+ }), X = async () => {
984
+ await N();
947
985
  let t = r.contexts?.[e.modelType]?.tables?.[e.config.id]?.searchConditions;
948
986
  t && (u.value = t);
949
- }, Y = async () => {
950
- J();
951
- }, X = async () => {
952
- await M();
953
- }, Z = g(() => {
987
+ }, Z = async () => {
988
+ X();
989
+ }, Q = async () => {
990
+ await N();
991
+ }, $ = _(() => {
954
992
  let e = [], t = 0;
955
- for (let n of B.value) n.approve_summary && e.push({
993
+ for (let n of H.value) n.approve_summary && e.push({
956
994
  index: t + 1,
957
- cellSummaryComponent: n.cellSummaryComponent,
995
+ cellSummaryComponent: n.approve_cellSummaryComponent,
958
996
  column: n
959
997
  }), t++;
960
998
  return e;
961
999
  });
962
1000
  return ee(async () => {
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();
1001
+ l.on("refresh", W), e.eventBus && (e.eventBus.on("reinit", Z), e.eventBus.on("reload_table", Q), e.eventBus.on("cell_execute_row_action", q)), await X();
964
1002
  let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
965
1003
  t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
966
- for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
1004
+ for (let e of t) C.value[e.dataIndex] = e.defaultSortOrder, w.value.push({
967
1005
  key: e.dataIndex,
968
1006
  order: e.defaultSortOrder
969
1007
  });
970
1008
  }), te(() => {
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));
972
- }), e.modelType && (P(() => u.value, (t, n) => {
973
- R(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), N());
974
- }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.globalData), (e, t) => {
975
- !R(e, t) && w && N();
976
- }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.formModel), (e, t) => {
977
- !R(e, t) && T && N();
1009
+ l.off("refresh", W), e.eventBus && (e.eventBus.off("reinit", Z), e.eventBus.off("reload_table", Q), e.eventBus.off("cell_execute_row_action", q));
1010
+ }), e.modelType && (I(() => u.value, (t, n) => {
1011
+ B(d(t), d(n)) || (r[ae](e.modelType, e.config.id, t), P());
1012
+ }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.globalData), (e, t) => {
1013
+ !B(e, t) && T && P();
1014
+ }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.formModel), (e, t) => {
1015
+ !B(e, t) && E && P();
978
1016
  }, { deep: !0 })), {
979
1017
  dataSource: i,
980
1018
  selectedRowKeys: a,
981
1019
  loading: o,
982
- state: k,
1020
+ state: O,
983
1021
  handlePageChange: F,
984
- handleRowAction: U,
985
- callRowActionByTitle: W,
986
- pageSizeOptions: E,
987
- columns: B,
1022
+ handleRowAction: G,
1023
+ callRowActionByTitle: K,
1024
+ pageSizeOptions: D,
1025
+ columns: H,
988
1026
  searchConditions: u,
989
- delayGetDate: N,
1027
+ delayGetDate: P,
990
1028
  selfEventBus: l,
991
- row_selection: z,
992
- handleAction: K,
993
- searchRef: _,
994
- actionRef: y,
995
- searchHeight: v,
996
- actionHeight: b,
997
- tableHeight: q,
998
- rowActionWidth: x,
1029
+ row_selection: V,
1030
+ handleAction: J,
1031
+ searchRef: v,
1032
+ actionRef: b,
1033
+ searchHeight: y,
1034
+ actionHeight: x,
1035
+ tableHeight: Y,
1036
+ rowActionWidth: S,
999
1037
  context: r,
1000
- summaryColumns: Z,
1001
- preserveRow: A,
1038
+ summaryColumns: $,
1039
+ rowKeyField: L,
1040
+ preserveRow: j,
1002
1041
  handleChange: (e, t, n, r) => {
1003
1042
  if (r.action !== "paginate") {
1004
1043
  if (r.action === "filter") {
@@ -1014,7 +1053,7 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
1014
1053
  class_name: "str"
1015
1054
  };
1016
1055
  }
1017
- u.value = Object.values(e), M();
1056
+ u.value = Object.values(e), N();
1018
1057
  } else if (r.action === "sort") {
1019
1058
  let e = {}, t = [];
1020
1059
  if (!re(n)) e[n.columnKey] = n.order, t.push({
@@ -1025,35 +1064,36 @@ var Z = /* @__PURE__ */ t(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
1025
1064
  key: r.columnKey,
1026
1065
  order: r.order
1027
1066
  });
1028
- S.value = e, C.value = t, M();
1067
+ C.value = e, w.value = t, N();
1029
1068
  }
1030
1069
  }
1031
1070
  },
1032
- tableWraperHeight: h,
1071
+ tableWraperHeight: g,
1033
1072
  tableWraperRef: m
1034
1073
  };
1035
1074
  },
1036
1075
  components: {
1037
- Search: Z,
1038
- actionsBar: _e
1076
+ Search: $,
1077
+ actionsBar: ye,
1078
+ TableSummary: be
1039
1079
  }
1040
- }), be = {
1080
+ }), Ce = {
1041
1081
  class: "table-wraper",
1042
1082
  ref: "tableWraperRef"
1043
- }, xe = { ref: "searchRef" }, Se = { key: 1 }, Ce = {
1083
+ }, we = { ref: "searchRef" }, Te = {
1044
1084
  ref: "actionRef",
1045
1085
  class: "btn-wraper"
1046
- }, we = { style: {
1086
+ }, Ee = { style: {
1047
1087
  position: "fixed",
1048
1088
  width: "0",
1049
1089
  height: "0",
1050
1090
  display: "block",
1051
1091
  overflow: "hidden"
1052
1092
  } };
1053
- function Te(e, t, n, r, i, a) {
1054
- let o = A("Search"), s = A("actions-bar"), c = A("s-table-summary-cell"), l = A("s-table-summary-row"), u = A("s-table");
1055
- return E(), y("div", be, [
1056
- b("div", xe, [e.config.search_config ? (E(), _(o, {
1093
+ function De(e, t, n, r, i, a) {
1094
+ 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");
1095
+ return O(), b("div", Ce, [
1096
+ x("div", we, [e.config.search_config ? (O(), v(o, {
1057
1097
  key: 0,
1058
1098
  searchConfig: e.config.search_config,
1059
1099
  searchConditions: e.searchConditions,
@@ -1063,8 +1103,8 @@ function Te(e, t, n, r, i, a) {
1063
1103
  "searchConfig",
1064
1104
  "searchConditions",
1065
1105
  "event-bus"
1066
- ])) : v("", !0)], 512),
1067
- C(u, {
1106
+ ])) : y("", !0)], 512),
1107
+ w(d, {
1068
1108
  columns: e.columns,
1069
1109
  selectedRowKeys: e.selectedRowKeys,
1070
1110
  "onUpdate:selectedRowKeys": t[1] ||= (t) => e.selectedRowKeys = t,
@@ -1084,7 +1124,7 @@ function Te(e, t, n, r, i, a) {
1084
1124
  showSizeChanger: !0,
1085
1125
  pageSizeOptions: e.pageSizeOptions
1086
1126
  },
1087
- rowKey: "id",
1127
+ rowKey: e.rowKeyField,
1088
1128
  rowSelection: e.row_selection,
1089
1129
  virtual: !0,
1090
1130
  wrapText: !0,
@@ -1094,8 +1134,8 @@ function Te(e, t, n, r, i, a) {
1094
1134
  "table-layout": "auto",
1095
1135
  preserveRow: e.preserveRow,
1096
1136
  onChange: e.handleChange
1097
- }, x({
1098
- 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, {
1137
+ }, S({
1138
+ bodyCell: L(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (O(), b(g, { key: 0 }, [C(P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (O(), v(s, {
1099
1139
  key: 1,
1100
1140
  actions: e.config.row_actions,
1101
1141
  onClick: (t) => e.handleRowAction(t, i),
@@ -1108,7 +1148,7 @@ function Te(e, t, n, r, i, a) {
1108
1148
  "actions",
1109
1149
  "onClick",
1110
1150
  "params"
1111
- ])) : t.cellComponent ? (E(), _(j("Cell_" + t.cellComponent), {
1151
+ ])) : t.cellComponent ? (O(), v(N("Cell_" + t.cellComponent), {
1112
1152
  key: 2,
1113
1153
  cmpObj: {
1114
1154
  column: t || {},
@@ -1121,25 +1161,25 @@ function Te(e, t, n, r, i, a) {
1121
1161
  eventBus: e.eventBus,
1122
1162
  call_cell_row_action: (t) => e.callRowActionByTitle(t, i)
1123
1163
  }
1124
- }, null, 8, ["cmpObj"])) : (E(), y(h, { key: 3 }, [S(M(r), 1)], 64))]),
1164
+ }, null, 8, ["cmpObj"])) : (O(), b(g, { key: 3 }, [C(P(r), 1)], 64))]),
1125
1165
  _: 2
1126
1166
  }, [e.summaryColumns.length > 0 ? {
1127
1167
  name: "summary",
1128
- fn: F(() => [C(l, null, {
1129
- default: F(() => [C(c, { index: 0 }, {
1130
- default: F(() => [...t[3] ||= [S("合计", -1)]]),
1168
+ fn: L(() => [w(u, null, {
1169
+ default: L(() => [w(c, { index: 0 }, {
1170
+ default: L(() => [...t[3] ||= [C("合计", -1)]]),
1131
1171
  _: 1
1132
- }), (E(!0), y(h, null, k(e.summaryColumns, (e) => (E(), _(c, {
1133
- key: e.index,
1134
- index: e.index
1172
+ }), (O(!0), b(g, null, j(e.summaryColumns, (t) => (O(), v(c, {
1173
+ key: t.index,
1174
+ index: t.index
1135
1175
  }, {
1136
- default: F(({ total: t }) => [e.cellSummaryComponent ? (E(), _(j("CellSummary_" + e.cellSummaryComponent), {
1137
- key: 0,
1138
- cmpObj: {
1139
- item: e,
1140
- total: t
1176
+ default: L(() => [w(l, {
1177
+ item: t,
1178
+ summaryParams: {
1179
+ pageData: e.dataSource,
1180
+ column: t.column
1141
1181
  }
1142
- }, null, 8, ["cmpObj"])) : (E(), y("span", Se, M(e.total_content ? e.total_content(t) : t), 1))]),
1182
+ }, null, 8, ["item", "summaryParams"])]),
1143
1183
  _: 2
1144
1184
  }, 1032, ["index"]))), 128))]),
1145
1185
  _: 1
@@ -1152,11 +1192,12 @@ function Te(e, t, n, r, i, a) {
1152
1192
  "scroll",
1153
1193
  "loading",
1154
1194
  "pagination",
1195
+ "rowKey",
1155
1196
  "rowSelection",
1156
1197
  "preserveRow",
1157
1198
  "onChange"
1158
1199
  ]),
1159
- b("div", Ce, [e.hideAllButtons ? v("", !0) : (E(), _(s, {
1200
+ x("div", Te, [e.hideAllButtons ? y("", !0) : (O(), v(s, {
1160
1201
  key: 0,
1161
1202
  actions: e.config.actions,
1162
1203
  onClick: e.handleAction,
@@ -1169,14 +1210,14 @@ function Te(e, t, n, r, i, a) {
1169
1210
  "onClick",
1170
1211
  "params"
1171
1212
  ]))], 512),
1172
- b("div", we, [C(s, {
1213
+ x("div", Ee, [w(s, {
1173
1214
  actions: e.config.row_actions,
1174
1215
  action_width: e.rowActionWidth,
1175
1216
  "onUpdate:action_width": t[2] ||= (t) => e.rowActionWidth = t
1176
1217
  }, null, 8, ["actions", "action_width"])])
1177
1218
  ], 512);
1178
1219
  }
1179
- var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]]), De = w({
1220
+ var Oe = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-299c96f5"]]), ke = T({
1180
1221
  name: "ApprovalColumnTables",
1181
1222
  props: {
1182
1223
  columnConfig: {
@@ -1215,25 +1256,25 @@ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]
1215
1256
  },
1216
1257
  emits: ["selected-counts-change"],
1217
1258
  setup(e, { emit: t }) {
1218
- let n = O([]);
1259
+ let n = A([]);
1219
1260
  ee(() => {
1220
1261
  n.value = e.columnConfig.tables?.map((e, t) => t);
1221
1262
  });
1222
- let r = g(() => {
1263
+ let r = _(() => {
1223
1264
  let t = e.filterTables.map((e) => e.id);
1224
1265
  return e.columnConfig.tables.filter((n) => t && t.length > 0 ? t.includes(n.id) : e.groupTitle ? (n.group_title || "未命名") === e.groupTitle : !0);
1225
- }), a = g(() => {
1266
+ }), a = _(() => {
1226
1267
  let t = {};
1227
1268
  for (let n of e.filterTables) t[n.id] = n.isMul ? "checkbox" : "radio";
1228
1269
  return t;
1229
- }), s = g(() => {
1270
+ }), s = _(() => {
1230
1271
  let t = {};
1231
1272
  for (let n of e.filterTables || []) {
1232
1273
  let e = o(n);
1233
1274
  e && (t[n.id] = e);
1234
1275
  }
1235
1276
  return t;
1236
- }), c = D({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1277
+ }), c = k({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1237
1278
  return {
1238
1279
  activeKey: n,
1239
1280
  filterTables: r,
@@ -1247,17 +1288,17 @@ var Ee = /* @__PURE__ */ t(ye, [["render", Te], ["__scopeId", "data-v-0103b8d0"]
1247
1288
  }
1248
1289
  };
1249
1290
  },
1250
- components: { ApprovalTable: Ee }
1251
- }), Oe = { class: "approval-column-tables" }, ke = { class: "title" }, Ae = { class: "title-text" };
1252
- function je(e, t, n, r, i, a) {
1253
- let o = A("ApprovalTable");
1254
- return E(), y("div", Oe, [(E(!0), y(h, null, k(e.filterTables, (t, n) => (E(), y("div", {
1291
+ components: { ApprovalTable: Oe }
1292
+ }), Ae = { class: "approval-column-tables" }, je = { class: "title" }, Me = { class: "title-text" };
1293
+ function Ne(e, t, n, r, i, a) {
1294
+ let o = M("ApprovalTable");
1295
+ return O(), b("div", Ae, [(O(!0), b(g, null, j(e.filterTables, (t, n) => (O(), b("div", {
1255
1296
  key: n,
1256
1297
  class: "table-item"
1257
- }, [b("div", ke, [b("span", Ae, M(t.title), 1), e.getSelectLimit(t.id) ? (E(), y("span", {
1298
+ }, [x("div", je, [x("span", Me, P(t.title), 1), e.getSelectLimit(t.id) ? (O(), b("span", {
1258
1299
  key: 0,
1259
- class: T(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
1260
- }, " (" + M(e.getSelectLimitText(t.id)) + " · 已选 " + M(e.getSelectedCount(t.id)) + " 条) ", 3)) : v("", !0)]), C(o, {
1300
+ class: E(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
1301
+ }, " (" + P(e.getSelectLimitText(t.id)) + " · 已选 " + P(e.getSelectedCount(t.id)) + " 条) ", 3)) : y("", !0)]), w(o, {
1261
1302
  config: t,
1262
1303
  modelType: e.modelType,
1263
1304
  eventBus: e.eventBus,
@@ -1275,6 +1316,6 @@ function je(e, t, n, r, i, a) {
1275
1316
  "onSelectionChange"
1276
1317
  ])]))), 128))]);
1277
1318
  }
1278
- var Me = /* @__PURE__ */ t(De, [["render", je], ["__scopeId", "data-v-3e52fe46"]]);
1319
+ var Pe = /* @__PURE__ */ t(ke, [["render", Ne], ["__scopeId", "data-v-3e52fe46"]]);
1279
1320
  //#endregion
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 };
1321
+ export { me as a, ce as c, he as d, de as f, fe as i, ge as l, Oe as n, ue as o, _e as p, ye as r, pe as s, Pe as t, le as u };