lyflowchart 1.0.137 → 1.0.152

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 (68) hide show
  1. package/dist/ActionsConfig-BrfcGMc2.js +521 -0
  2. package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-HuU6SRJe.js} +1 -1
  3. package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-DiMuUB1k.js} +22 -20
  4. package/dist/{MyProcess-FWGEwQcv.js → MyProcess-C6fgOFiw.js} +1 -1
  5. package/dist/{approval-BW2WjPxY.js → approval-1GfOMaS4.js} +3 -3
  6. package/dist/{approval-BaD4Bmw6.js → approval-BlbNEsGQ.js} +1 -1
  7. package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-D-5rRWNw.js} +1 -1
  8. package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-4VU81v-x.js} +13 -13
  9. package/dist/{columnTables-DLwtgcC7.js → columnTables-DFwoawLF.js} +76 -69
  10. package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
  11. package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
  12. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1210 -0
  13. package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
  14. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +605 -0
  15. package/dist/components/approval/core.vue.d.ts +2 -0
  16. package/dist/components/approval/typing.d.ts +1 -1
  17. package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
  18. package/dist/constants.d.ts +26 -0
  19. package/dist/{core-Cv0Erg9E.js → core-BkpI8NUK.js} +355 -314
  20. package/dist/{debugCode-Cm9-WiUG.js → debugCode-CQm5weGM.js} +1 -1
  21. package/dist/{default-VdDMlY4e.js → default-kv1XZD9P.js} +28 -21
  22. package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
  23. package/dist/index.js +18 -16
  24. package/dist/{leftColumn-CsPjufue.js → leftColumn-OrLOxcyw.js} +2 -2
  25. package/dist/lyflowchart.css +1 -1
  26. package/dist/{middleColumn-C7M6-eVo.js → middleColumn-DUBZPkDG.js} +2 -2
  27. package/dist/{recordActions-BgFlNsGU.js → recordActions-3vqHADOf.js} +1 -1
  28. package/dist/{tableConfig-uLXue-BS.js → tableConfig-W9yGeZs-.js} +41 -41
  29. package/dist/{tableModal-BcYfVL02.js → tableModal-H0SGP8PM.js} +2 -2
  30. package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-B82xPY8g.js} +63 -63
  31. package/dist/{utils-CLet2gLV.js → utils-B1lkML14.js} +5 -1
  32. package/dist/{viewer-Dv3kQsMf.js → viewer-C_OHXXRU.js} +915 -916
  33. package/package.json +1 -1
  34. package/dist/ActionsConfig-BuvSvRbv.js +0 -395
  35. package/dist/ActionsConfig-BuvSvRbv.js.map +0 -1
  36. package/dist/ApprovalEditorModal-19j5zbe2.js.map +0 -1
  37. package/dist/CancelModal-BUi3ieI8.js.map +0 -1
  38. package/dist/Cell_click_approve-BGDZUzTS.js.map +0 -1
  39. package/dist/JsonTags-BbWLqghI.js.map +0 -1
  40. package/dist/MyProcess-FWGEwQcv.js.map +0 -1
  41. package/dist/approval-BW2WjPxY.js.map +0 -1
  42. package/dist/approval-BaD4Bmw6.js.map +0 -1
  43. package/dist/approvalHistory-B2gpQbFC.js.map +0 -1
  44. package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +0 -1
  45. package/dist/approvalPageConfig-D0zPXOUf.js.map +0 -1
  46. package/dist/approveLeftConfig-BOU_UgHp.js.map +0 -1
  47. package/dist/codeHistoryViewModal-BfSjIbEU.js.map +0 -1
  48. package/dist/columnTables-DLwtgcC7.js.map +0 -1
  49. package/dist/core-Cv0Erg9E.js.map +0 -1
  50. package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +0 -1
  51. package/dist/debugCode-Cm9-WiUG.js.map +0 -1
  52. package/dist/debugCode-dD1YnQSD.js.map +0 -1
  53. package/dist/default-VdDMlY4e.js.map +0 -1
  54. package/dist/example_code-C_xF8RRG.js.map +0 -1
  55. package/dist/flowHistoryViewModal-D8DJP7Te.js.map +0 -1
  56. package/dist/index.js.map +0 -1
  57. package/dist/init-plugin-fQTSQzui.js.map +0 -1
  58. package/dist/leftColumn-CsPjufue.js.map +0 -1
  59. package/dist/middleColumn-C7M6-eVo.js.map +0 -1
  60. package/dist/recordActions-BgFlNsGU.js.map +0 -1
  61. package/dist/settingsState-CI81PG-i.js.map +0 -1
  62. package/dist/tableConfig-uLXue-BS.js.map +0 -1
  63. package/dist/tableModal-BcYfVL02.js.map +0 -1
  64. package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +0 -1
  65. package/dist/utils-CLet2gLV.js.map +0 -1
  66. package/dist/v0001-OaBeBCXI.js.map +0 -1
  67. package/dist/viewer-Dv3kQsMf.js.map +0 -1
  68. package/dist/vue-print-next-HRweUmNi.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { o as e, u as t } from "./init-plugin-fQTSQzui.js";
2
- import { S as n, d as r } from "./utils-CLet2gLV.js";
2
+ import { C as n, d as r } from "./utils-B1lkML14.js";
3
3
  import { cloneDeep as i } from "lodash";
4
4
  var a = (async () => {
5
5
  let e = /* @__PURE__ */ Object.assign({ "./v0001.ts": () => import("./v0001-OaBeBCXI.js") }), t = Object.keys(e).map(async (t) => {
@@ -21,8 +21,8 @@ var a = (async () => {
21
21
  if (Object.keys(s).length > 0) return s[e] ? (await s[e]()).default : (await s.default()).default;
22
22
  let n = {
23
23
  .../* @__PURE__ */ Object.assign({
24
- "./configs/approval/default.ts": () => import("./default-VdDMlY4e.js"),
25
- "./configs/approval/recordActions.ts": () => import("./recordActions-BgFlNsGU.js").then((e) => e.i)
24
+ "./configs/approval/default.ts": () => import("./default-kv1XZD9P.js"),
25
+ "./configs/approval/recordActions.ts": () => import("./recordActions-3vqHADOf.js").then((e) => e.i)
26
26
  }),
27
27
  ...t()
28
28
  };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./core-Cv0Erg9E.js";
1
+ import { t as e } from "./core-BkpI8NUK.js";
2
2
  import { computed as t, createBlock as n, defineComponent as r, openBlock as i } from "vue";
3
3
  import { useRoute as a } from "vue-router";
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { _ as e, c as t, h as n, o as r, v as i } from "./init-plugin-fQTSQzui.js";
2
- import { S as a } from "./utils-CLet2gLV.js";
2
+ import { C as a } from "./utils-B1lkML14.js";
3
3
  import { t as o } from "./approveLeftConfig-BOU_UgHp.js";
4
4
  import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineAsyncComponent as m, defineComponent as h, normalizeStyle as g, onMounted as _, openBlock as v, reactive as y, ref as b, resolveComponent as x, toDisplayString as S, watch as C, withCtx as w } from "vue";
5
5
  import { Modal as T, message as E } from "ant-design-vue";
@@ -1,8 +1,8 @@
1
- import { t as e } from "./viewer-Dv3kQsMf.js";
2
- import { t } from "./MyProcess-FWGEwQcv.js";
1
+ import { t as e } from "./viewer-C_OHXXRU.js";
2
+ import { t } from "./MyProcess-C6fgOFiw.js";
3
3
  import { _ as n, g as r, o as i, v as a } from "./init-plugin-fQTSQzui.js";
4
- import { n as o, r as s, t as c } from "./approval-BW2WjPxY.js";
5
- import { D as l, S as u, d, v as f } from "./utils-CLet2gLV.js";
4
+ import { n as o, r as s, t as c } from "./approval-1GfOMaS4.js";
5
+ import { C as l, O as u, d, v as f } from "./utils-B1lkML14.js";
6
6
  import { n as p, t as m } from "./debugCode-dD1YnQSD.js";
7
7
  import { t as h } from "./approveLeftConfig-BOU_UgHp.js";
8
8
  import { t as g } from "./JsonTags-BbWLqghI.js";
@@ -684,7 +684,7 @@ var be = /* @__PURE__ */ a(_e, [["render", ye]]), xe = O({
684
684
  let n = b(() => e.value?.length ? e.value[0] : ""), r = (e) => {
685
685
  e?.length > 0 ? t("update:value", e) : t("update:value", null);
686
686
  }, i = (e) => {
687
- l(e) ? t("update:value", []) : t("update:value", [e]);
687
+ u(e) ? t("update:value", []) : t("update:value", [e]);
688
688
  };
689
689
  H(() => e.source_type, (e) => {
690
690
  e === "operation" && t("update:value", []);
@@ -2070,22 +2070,22 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
2070
2070
  height: {}
2071
2071
  },
2072
2072
  setup(e) {
2073
- let t = e, r = I(!1), a = se(), l = n(), f = I("tables"), g = I([]), v = I(null), y = I(null), O = I([]), k = I(!1), A = I(!1), N = I(!1), F = p(), z = I(null), V = b(() => t.height + 45), ae = [
2073
+ let t = e, r = I(!1), a = se(), u = n(), f = I("tables"), g = I([]), v = I(null), y = I(null), O = I([]), k = I(!1), A = I(!1), N = I(!1), F = p(), z = I(null), V = b(() => t.height + 45), ae = [
2074
2074
  {
2075
2075
  title: "左侧栏",
2076
2076
  key: "tables",
2077
- component: D(() => import("./leftColumn-CsPjufue.js"))
2077
+ component: D(() => import("./leftColumn-OrLOxcyw.js"))
2078
2078
  },
2079
2079
  {
2080
2080
  title: "中间栏",
2081
2081
  key: "form",
2082
- component: D(() => import("./middleColumn-C7M6-eVo.js"))
2082
+ component: D(() => import("./middleColumn-DUBZPkDG.js"))
2083
2083
  },
2084
2084
  {
2085
2085
  title: "右侧栏",
2086
2086
  key: "data_list",
2087
2087
  sectionType: "data_list",
2088
- component: D(() => import("./tableConfig-uLXue-BS.js").then((e) => e.n))
2088
+ component: D(() => import("./tableConfig-W9yGeZs-.js").then((e) => e.n))
2089
2089
  }
2090
2090
  ], oe = b(() => {
2091
2091
  let e = K("form");
@@ -2211,7 +2211,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
2211
2211
  allCodes: e
2212
2212
  }, "/approve/set_action_code_for_menu"), await i(t, "/approve/set_page_setting"), O.value.sort((e, t) => (e.order || 0) - (t.order || 0)), await i({
2213
2213
  menu_flag: z.value.state,
2214
- content: u(G(O.value))
2214
+ content: l(G(O.value))
2215
2215
  }, "/approve/set_data_store_setting"), y.value && await i({
2216
2216
  ...y.value,
2217
2217
  menu_flag: z.value.state
@@ -2230,7 +2230,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
2230
2230
  });
2231
2231
  let e = {
2232
2232
  dataSource: v.value,
2233
- dataSorteConfig: u(G(O.value))
2233
+ dataSorteConfig: l(G(O.value))
2234
2234
  }, t = JSON.stringify(e, null, 2), n = new Blob([t], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
2235
2235
  i.href = r, i.download = z.value ? `${z.value.name}_config.json` : "config.json", document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r), W.success("导出成功");
2236
2236
  }, ve = () => {
@@ -2247,7 +2247,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
2247
2247
  for (let t of n.dataSource.columns || []) e.push(t);
2248
2248
  n.dataSource.columns = e, v.value = n.dataSource;
2249
2249
  }
2250
- n.dataSorteConfig && (O.value = u(n.dataSorteConfig)), await $();
2250
+ n.dataSorteConfig && (O.value = l(n.dataSorteConfig)), await $();
2251
2251
  } catch (e) {
2252
2252
  console.error("Import failed", e), W.error("导入失败,请检查文件格式");
2253
2253
  }
@@ -2265,7 +2265,7 @@ var ft = /* @__PURE__ */ a(nt, [["render", dt], ["__scopeId", "data-v-29317781"]
2265
2265
  z.value = e;
2266
2266
  };
2267
2267
  return M(() => {
2268
- N.value = l.CHECK_AUTH("approve/debug_code", "开启代码调试"), de(), a.on("saveConfig", $);
2268
+ N.value = u.CHECK_AUTH("approve/debug_code", "开启代码调试"), de(), a.on("saveConfig", $);
2269
2269
  }), H(() => z.value, () => {
2270
2270
  de();
2271
2271
  }, { immediate: !0 }), (e, t) => {
@@ -1,5 +1,5 @@
1
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";
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
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;
@@ -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: {
@@ -759,7 +766,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
759
766
  },
760
767
  emits: ["selection-change"],
761
768
  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([
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
823
  let n = Symbol();
817
- d = n;
824
+ f = n;
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,10 +831,10 @@ 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
@@ -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 !== n) 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 !== n) 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,7 +864,7 @@ 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) => {
867
+ P(a, (e) => {
861
868
  n("selection-change", (e || []).length);
862
869
  }, {
863
870
  deep: !0,
@@ -952,7 +959,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
952
959
  return e;
953
960
  });
954
961
  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();
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();
956
963
  let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
957
964
  t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
958
965
  for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
@@ -960,17 +967,17 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
960
967
  order: e.defaultSortOrder
961
968
  });
962
969
  }), 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));
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));
964
971
  }), e.modelType && (P(() => u.value, (t, n) => {
965
- R(f(t), f(n)) || (r[Q](e.modelType, e.config.id, t), N());
972
+ R(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), N());
966
973
  }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.globalData), (e, t) => {
967
974
  !R(e, t) && w && N();
968
975
  }, { deep: !0 }), P(() => I(r.contexts[e.modelType]?.formModel), (e, t) => {
969
976
  !R(e, t) && T && N();
970
977
  }, { deep: !0 })), {
971
978
  dataSource: i,
972
- selectedRowKeys: o,
973
- loading: s,
979
+ selectedRowKeys: a,
980
+ loading: o,
974
981
  state: k,
975
982
  handlePageChange: F,
976
983
  handleRowAction: U,
@@ -979,7 +986,7 @@ var Z = /* @__PURE__ */ n(K, [["render", X], ["__scopeId", "data-v-6db64c14"]]),
979
986
  columns: B,
980
987
  searchConditions: u,
981
988
  delayGetDate: N,
982
- selfEventBus: c,
989
+ selfEventBus: l,
983
990
  row_selection: z,
984
991
  handleAction: K,
985
992
  searchRef: _,
@@ -1214,28 +1221,28 @@ var Ee = /* @__PURE__ */ n(ye, [["render", Te], ["__scopeId", "data-v-817da379"]
1214
1221
  let r = g(() => {
1215
1222
  let t = e.filterTables.map((e) => e.id);
1216
1223
  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(() => {
1224
+ }), a = g(() => {
1218
1225
  let t = {};
1219
1226
  for (let n of e.filterTables) t[n.id] = n.isMul ? "checkbox" : "radio";
1220
1227
  return t;
1221
- }), a = g(() => {
1228
+ }), s = g(() => {
1222
1229
  let t = {};
1223
1230
  for (let n of e.filterTables || []) {
1224
- let e = c(n);
1231
+ let e = o(n);
1225
1232
  e && (t[n.id] = e);
1226
1233
  }
1227
1234
  return t;
1228
- }), s = D({}), l = (e) => a.value[e] || null, u = (e) => o(l(e)), d = (e) => s[e] || 0;
1235
+ }), c = D({}), l = (e) => s.value[e] || null, u = (e) => i(l(e)), d = (e) => c[e] || 0;
1229
1236
  return {
1230
1237
  activeKey: n,
1231
1238
  filterTables: r,
1232
- rowSelectionTypeMap: i,
1239
+ rowSelectionTypeMap: a,
1233
1240
  getSelectLimit: l,
1234
1241
  getSelectLimitText: u,
1235
1242
  getSelectedCount: d,
1236
1243
  isSelectCountInvalid: (e) => m(l(e), d(e)),
1237
1244
  handleSelectionChange: (e, n) => {
1238
- s[e] = Number(n) || 0, t("selected-counts-change", { ...s });
1245
+ c[e] = Number(n) || 0, t("selected-counts-change", { ...c });
1239
1246
  }
1240
1247
  };
1241
1248
  },
@@ -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;