super-page-runtime 2.3.33-sit1 → 2.3.33

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 (80) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
  6. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  7. package/dist/es/components/runtime/utils/events/event-util.js +140 -128
  8. package/dist/es/components/runtime/utils/events/print-label.js +27 -25
  9. package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
  10. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  11. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  12. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  13. package/dist/es/components/runtime/utils/page-init-util.js +130 -125
  14. package/dist/es/components/runtime/utils/page-store.js +21 -21
  15. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  16. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  18. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  26. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  27. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  28. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  29. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
  31. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
  33. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  37. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
  38. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  41. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  42. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  43. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +29 -26
  44. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
  45. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  46. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
  47. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
  48. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
  50. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  51. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
  54. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
  56. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
  57. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
  58. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
  59. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
  60. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +53 -46
  62. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  63. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  65. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  66. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
  68. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  72. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +32 -27
  73. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  74. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  75. package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
  76. package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
  77. package/dist/es/i18n/langs/cn.js +1 -1
  78. package/dist/es/i18n/langs/en.js +1 -1
  79. package/dist/es/style.css +15 -3
  80. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
2
- import { getAdditionalParamMap as t, standardEvents as i, judgeDataNumber as o, dealAfterOperate as r } from "./standard-event.js";
2
+ import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, dealAfterOperate as r } from "./standard-event.js";
3
3
  import { validateDataModelFunc as u } from "./validator-util.js";
4
4
  import { getComponentRef as c, getComponentRefByCode as l } from "../global-refs.js";
5
5
  import { ElMessage as a } from "element-plus";
@@ -16,14 +16,25 @@ function x(e2, n2) {
16
16
  return e3.forEach((e4) => {
17
17
  if (!e4.isStandard && e4.jsContent) if ("customFunc" === e4.name) {
18
18
  let t3 = null;
19
- if (e4.funcParam) {
20
- const n4 = e4.funcParam.split(",");
21
- t3 = new Function(n4, e4.jsContent);
22
- } else t3 = new Function(e4.jsContent);
23
- n3[e4.eventName] = t3;
19
+ try {
20
+ if (e4.funcParam) {
21
+ const n4 = e4.funcParam.split(",");
22
+ t3 = new Function(n4, e4.jsContent);
23
+ } else t3 = new Function(e4.jsContent);
24
+ n3[e4.eventName] = t3;
25
+ } catch (n4) {
26
+ const t4 = `自定义方法${e4.eventName}解析失败,请检查函数体是否正确`;
27
+ console.error(t4, n4), a.error(t4);
28
+ }
24
29
  } else {
25
30
  let t3 = e4.componentUuid + "_";
26
- t3 += e4.name, n3[t3] = new Function("params", e4.jsContent);
31
+ t3 += e4.name;
32
+ try {
33
+ n3[t3] = new Function("params", e4.jsContent);
34
+ } catch (n4) {
35
+ let t4 = "";
36
+ e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", a.error(t4), console.error(t4, n4);
37
+ }
27
38
  }
28
39
  }), n3;
29
40
  }(e2.customEvents);
@@ -32,7 +43,7 @@ function x(e2, n2) {
32
43
  for (const t3 in n3) {
33
44
  j(n3[t3], e3);
34
45
  }
35
- }(n2, t2), n2.customEvents = t2;
46
+ }(n2, t2), console.log("initPage customEvents", t2), n2.customEvents = t2;
36
47
  }
37
48
  }
38
49
  function k(e2, n2) {
@@ -70,154 +81,154 @@ function O(e2) {
70
81
  });
71
82
  }
72
83
  }
73
- function h(e2, n2, t2, i2, o2) {
74
- return w(e2, n2, t2, i2, true, o2, false);
84
+ function h(e2, n2, t2, o2, i2) {
85
+ return w(e2, n2, t2, o2, true, i2, false);
75
86
  }
76
- function E(e2, n2, t2, i2, o2) {
87
+ function y(e2, n2, t2, o2, i2) {
77
88
  var _a, _b;
78
- if (i2 && "change" === i2) {
89
+ if (o2 && "change" === o2) {
79
90
  const e3 = n2.subTableWatchProps;
80
91
  if (e3) for (const n3 in e3) {
81
- const i3 = e3[n3], o3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
82
- i3 && i3.indexOf(o3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: o3 });
92
+ const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
93
+ o3 && o3.indexOf(i3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: i3 });
83
94
  }
84
95
  }
85
- return w(e2, n2, t2, i2, true, o2, true);
96
+ return w(e2, n2, t2, o2, true, i2, true);
86
97
  }
87
- function y(e2, n2, t2, i2) {
88
- return E(e2, n2, t2, "afterInit", i2);
98
+ function E(e2, n2, t2, o2) {
99
+ return y(e2, n2, t2, "afterInit", o2);
89
100
  }
90
- function N(e2, n2, t2, i2, o2) {
91
- return w(e2, n2, t2, i2, false, o2, false);
101
+ function N(e2, n2, t2, o2, i2) {
102
+ return w(e2, n2, t2, o2, false, i2, false);
92
103
  }
93
- function w(e2, t2, i2, r2, u2, c2, l2) {
94
- const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
104
+ function w(e2, t2, o2, r2, u2, c2, l2) {
105
+ const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
95
106
  let s2;
96
107
  if (l2 || !function(e3) {
97
108
  return e3 && S.indexOf(e3) >= 0;
98
109
  }(r2)) {
99
- if (s2 = B(t2, a2, r2), u2) {
100
- return H(t2, i2, s2, R(t2, i2, e2, c2));
110
+ if (s2 = $(t2, a2, r2), u2) {
111
+ return H(t2, o2, s2, R(t2, o2, e2, c2));
101
112
  }
102
113
  return s2;
103
114
  }
104
- !function(e3, t3, i3) {
105
- const r3 = o(t3, i3.ids);
115
+ !function(e3, t3, o3) {
116
+ const r3 = i(t3, o3.ids);
106
117
  if (!r3) return;
107
- if (void 0 !== e3.canClick && false === e3.canClick) return;
108
- Q(i3).then((o2) => {
109
- if (true === o2.canExecute) {
118
+ if (void 0 !== e3.canClick && false === e3.canClick) return void console.log("不能重复点击");
119
+ Q(o3).then((i2) => {
120
+ if (true === i2.canExecute) {
110
121
  e3.clickUuid = t3.uuid, e3.canClick = false;
111
- const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = B(e3, o3, "beforeValidateForm");
122
+ const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = $(e3, i3, "beforeValidateForm");
112
123
  let u3;
113
- if (r4 && (u3 = H(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
124
+ if (r4 && (u3 = H(e3, t3, r4, o3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
114
125
  n(u3) ? u3.then((n2) => {
115
- n2 && true === n2 ? T(e3, t3, i3) : e3.canClick = true;
126
+ n2 && true === n2 ? T(e3, t3, o3) : e3.canClick = true;
116
127
  }).catch((n2) => {
117
- e3.canClick = true;
118
- }) : T(e3, t3, i3);
128
+ console.log(n2), e3.canClick = true;
129
+ }) : T(e3, t3, o3);
119
130
  }
120
131
  });
121
- }(t2, i2, U(e2, t2, i2, c2));
132
+ }(t2, o2, U(e2, t2, o2, c2));
122
133
  }
123
134
  const S = ["click", "suffixClick", "prefixClick", "menuClick"];
124
135
  function P(e2, n2) {
125
136
  return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
126
137
  }
127
- function R(e2, n2, t2, i2) {
128
- const o2 = {};
129
- if (i2) for (const e3 in i2) o2[e3] = i2[e3];
130
- return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
138
+ function R(e2, n2, t2, o2) {
139
+ const i2 = {};
140
+ if (o2) for (const e3 in o2) i2[e3] = o2[e3];
141
+ return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
131
142
  }
132
- function T(e2, t2, i2) {
133
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
143
+ function T(e2, t2, o2) {
144
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
134
145
  let r2 = true;
135
- (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
136
- const c2 = z(e2, o2, "click");
146
+ console.log("doValidateForm---eventParams=", o2), (o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
147
+ const c2 = z(e2, i2, "click");
137
148
  if (c2) {
138
149
  const e3 = function(e4, n2) {
139
150
  return e4 && v.includes(n2.eventName);
140
151
  }(c2.isStandard, c2.event);
141
152
  e3 && (r2 = false);
142
153
  }
143
- u(e2, t2, r2).then((o3) => {
144
- if (!o3) return void (e2.canClick = true);
145
- const r3 = D(e2, t2, i2);
154
+ u(e2, t2, r2).then((i3) => {
155
+ if (!i3) return void (e2.canClick = true);
156
+ const r3 = D(e2, t2, o2);
146
157
  r3 ? n(r3) ? r3.then((n2) => {
147
- n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
158
+ n2 ? A(e2, t2, c2, o2) : e2.canClick = true;
148
159
  }).catch((n2) => {
149
- e2.canClick = true;
150
- }) : A(e2, t2, c2, i2) : e2.canClick = true;
160
+ console.error(n2), e2.canClick = true;
161
+ }) : A(e2, t2, c2, o2) : e2.canClick = true;
151
162
  }).catch((n2) => {
152
- e2.canClick = true;
163
+ console.error(n2), e2.canClick = true;
153
164
  });
154
165
  }
155
- function F(e2, n2, t2, i2, o2) {
156
- const r2 = U(e2, n2, t2, o2);
157
- A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
166
+ function F(e2, n2, t2, o2, i2) {
167
+ const r2 = U(e2, n2, t2, i2);
168
+ A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
158
169
  }
159
- function U(e2, n2, t2, i2) {
160
- const o2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
170
+ function U(e2, n2, t2, o2) {
171
+ const i2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
161
172
  if (u2) {
162
173
  const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
163
- i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
164
- _(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
174
+ o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
175
+ _(n2) && (o2.selections = t3, o2.id = l2 && l2.length > 0 ? l2[0] : null, o2.ids = l2);
165
176
  const a2 = e3 ? e3.getTableConfigure() : null;
166
- i2.tableConfigure = a2;
177
+ o2.tableConfigure = a2;
167
178
  }
168
- return R(n2, t2, e2, i2);
179
+ return R(n2, t2, e2, o2);
169
180
  }
170
181
  function D(e2, n2, t2) {
171
- const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
172
- let o2;
173
- return i2 && (o2 = H(e2, n2, i2, null, t2)), void 0 === o2 || o2;
182
+ const o2 = $(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
183
+ let i2;
184
+ return o2 && (i2 = H(e2, n2, o2, null, t2)), void 0 === i2 || i2;
174
185
  }
175
186
  function L(e2, n2, t2) {
176
- const i2 = e2.code + "_";
177
- g.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
187
+ const o2 = e2.code + "_";
188
+ g.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
178
189
  }
179
190
  function _(e2, n2) {
180
191
  return !(!e2.pageType || "list" !== e2.pageType);
181
192
  }
182
- function V(e2, t2, i2) {
183
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
193
+ function V(e2, t2, o2) {
194
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = $(e2, i2, "afterClick");
184
195
  if (r2) {
185
- const o3 = H(e2, t2, r2, null, i2);
186
- n(o3) ? o3.finally(() => {
196
+ const i3 = H(e2, t2, r2, null, o2);
197
+ n(i3) ? i3.finally(() => {
187
198
  e2.canClick = true;
188
199
  }) : e2.canClick = true;
189
200
  } else e2.canClick = true;
190
201
  }
191
- function q(e2, n2, t2, i2, o2, u2) {
192
- i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
193
- const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
202
+ function q(e2, n2, t2, o2, i2, u2) {
203
+ o2 ? (e2.result = i2, e2.canClick = true) : r(e2, n2, i2, "", u2);
204
+ const c2 = $(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
194
205
  c2 && H(e2, n2, c2, t2);
195
206
  }
196
- function A(e2, t2, i2, o2) {
207
+ function A(e2, t2, o2, i2) {
197
208
  let r2 = t2, u2 = t2.props.linkPage;
198
209
  if (u2 && u2 instanceof Array) {
199
210
  const n2 = function(e3) {
200
211
  let n3 = e3 ? e3.row : null;
201
212
  n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
202
213
  return n3;
203
- }(o2), i3 = d(e2, t2, u2, n2);
214
+ }(i2), o3 = d(e2, t2, u2, n2);
204
215
  let c2, l2 = false;
205
- i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
216
+ o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
206
217
  }
207
- u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, o2)) : function(e3, t3, i3, o3) {
208
- const r3 = i3, u3 = _(e3);
218
+ u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, i2)) : function(e3, t3, o3, i3) {
219
+ const r3 = o3, u3 = _(e3);
209
220
  if (r3) {
210
- const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, i4, o3);
221
+ const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, o4, i3);
211
222
  if (function(e4, n2) {
212
223
  return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
213
224
  }(c2, l2)) return void (e3.canClick = true);
214
225
  n(a2) ? a2.then((n2) => {
215
- n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
226
+ n2 ? q(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
216
227
  }).catch((n2) => {
217
- e3.canClick = true;
218
- }) : q(e3, t3, o3, c2, a2, u3);
219
- } else q(e3, t3, o3, false, null, u3);
220
- }(e2, t2, i2, o2);
228
+ console.error(n2), e3.canClick = true;
229
+ }) : q(e3, t3, i3, c2, a2, u3);
230
+ } else q(e3, t3, i3, false, null, u3);
231
+ }(e2, t2, o2, i2);
221
232
  }
222
233
  function I(e2, n2) {
223
234
  const t2 = e2.customEvents;
@@ -226,16 +237,16 @@ function I(e2, n2) {
226
237
  return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
227
238
  }
228
239
  }
229
- function B(e2, n2, t2) {
240
+ function $(e2, n2, t2) {
230
241
  if (n2 && t2) {
231
- const o2 = n2.filter((e3) => e3.name === t2);
232
- if (o2 && o2.length > 0) {
233
- const n3 = o2[0];
234
- return n3.isStandard ? i[n3.eventName] : I(e2, n3);
242
+ const i2 = n2.filter((e3) => e3.name === t2);
243
+ if (i2 && i2.length > 0) {
244
+ const n3 = i2[0];
245
+ return n3.isStandard ? o[n3.eventName] : I(e2, n3);
235
246
  }
236
247
  }
237
248
  }
238
- function $(e2, n2) {
249
+ function B(e2, n2) {
239
250
  if (e2 && n2) {
240
251
  const t2 = e2.filter((e3) => e3.name === n2);
241
252
  if (t2 && t2.length > 0) {
@@ -245,38 +256,38 @@ function $(e2, n2) {
245
256
  }
246
257
  function z(e2, n2, t2) {
247
258
  if (n2 && t2) {
248
- const o2 = n2.filter((e3) => e3.name === t2);
249
- if (o2 && o2.length > 0) {
250
- const n3 = o2[0];
251
- return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
259
+ const i2 = n2.filter((e3) => e3.name === t2);
260
+ if (i2 && i2.length > 0) {
261
+ const n3 = i2[0];
262
+ return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
252
263
  }
253
264
  }
254
265
  }
255
- function H(e2, n2, t2, i2, o2) {
266
+ function H(e2, n2, t2, o2, i2) {
256
267
  if (t2) {
257
- if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
258
- return t2.apply(t2, [i2]);
268
+ if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
269
+ return t2.apply(t2, [o2]);
259
270
  }
260
271
  }
261
272
  function Q(e2) {
262
- const n2 = e2.pageContext, i2 = e2.configureObj, o2 = _(n2);
273
+ const n2 = e2.pageContext, o2 = e2.configureObj, i2 = _(n2);
263
274
  let r2 = [];
264
- if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
275
+ if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
265
276
  else {
266
277
  const e3 = n2.entity.data;
267
278
  r2.push(e3);
268
279
  }
269
- const u2 = i2.props.base.condition;
270
- return new Promise((e3, i3) => {
280
+ const u2 = o2.props.base.condition;
281
+ return new Promise((e3, o3) => {
271
282
  if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
272
283
  else {
273
- const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
284
+ const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
274
285
  let f2, m2, g2 = true;
275
286
  for (let e4 = 0; e4 < r2.length; e4++) {
276
287
  const t2 = r2[e4];
277
288
  for (let e5 = 0; e5 < u2.length; e5++) {
278
289
  const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
279
- if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
290
+ if (!s(p2, t2, i3, o4, c2, l2, null, n2)) {
280
291
  g2 = false, f2 = a2, m2 = t2;
281
292
  break;
282
293
  }
@@ -286,33 +297,33 @@ function Q(e2) {
286
297
  }
287
298
  });
288
299
  }
289
- function W(e2, n2, t2, i2) {
290
- var o2;
291
- n2 && (G("loadBeforeSend", N(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), G("beforeRequest", function(e3) {
300
+ function W(e2, n2, t2, o2) {
301
+ var i2;
302
+ n2 && (G("loadBeforeSend", N(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), G("beforeRequest", function(e3) {
292
303
  return N(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
293
- }({ pageContext: t2, configureObj: i2 }), e2), G("gridDataLoaded", function(e3) {
304
+ }({ pageContext: t2, configureObj: o2 }), e2), G("gridDataLoaded", function(e3) {
294
305
  return N(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
295
- }({ pageContext: t2, configureObj: i2 }), e2), G("gridComplete", function(e3) {
306
+ }({ pageContext: t2, configureObj: o2 }), e2), G("gridComplete", function(e3) {
296
307
  return N(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
297
- }({ pageContext: t2, configureObj: i2 }), e2), G("resizeHeight", function(e3) {
308
+ }({ pageContext: t2, configureObj: o2 }), e2), G("resizeHeight", function(e3) {
298
309
  return N(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
299
- }({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
310
+ }({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
300
311
  return N(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
301
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
312
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
302
313
  return N(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
303
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
314
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
304
315
  return N(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
305
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
316
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
306
317
  return N(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
307
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
318
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
308
319
  return N(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
309
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
320
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
310
321
  return N(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
311
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
322
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
312
323
  return N(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
313
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
324
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
314
325
  n3 && (t3[e3] = n3);
315
- }("filterDataEvent", N(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
326
+ }("filterDataEvent", N(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
316
327
  }
317
328
  function G(e2, n2, t2) {
318
329
  n2 && (t2[e2] = n2);
@@ -344,7 +355,7 @@ function ne(e2, n2, t2) {
344
355
  function te(e2) {
345
356
  return N(null, e2.pageContext, e2.configureObj, "before-upload", e2);
346
357
  }
347
- function ie(n2) {
358
+ function oe(n2) {
348
359
  let t2 = true;
349
360
  if (!e()) {
350
361
  const e2 = n2 && n2.events ? n2.events : [];
@@ -355,19 +366,19 @@ function ie(n2) {
355
366
  }
356
367
  return t2;
357
368
  }
358
- function oe(e2, n2, t2, i2, o2) {
359
- return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
369
+ function ie(e2, n2, t2, o2, i2) {
370
+ return H(e2, n2, $(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
360
371
  }
361
372
  function re(n2, t2) {
362
- let i2 = true;
373
+ let o2 = true;
363
374
  if (e()) {
364
375
  const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
365
376
  if (e2) {
366
- const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
367
- n3 && o2 && (o2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
377
+ const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
378
+ n3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (o2 = false) : C.includes(t3.eventName) && (o2 = false));
368
379
  }
369
380
  }
370
- return i2;
381
+ return o2;
371
382
  }
372
383
  export {
373
384
  j as appendDefaultMethods,
@@ -381,20 +392,21 @@ export {
381
392
  te as fileUploadBeforeUpload,
382
393
  z as getClickEventFuncByType,
383
394
  k as getCustomFunc,
384
- B as getEventFuncByType,
385
- $ as getEventNameByType,
395
+ U as getDefaultEventParams,
396
+ $ as getEventFuncByType,
397
+ B as getEventNameByType,
386
398
  N as getHandleEvent,
387
399
  P as getTableUuid,
388
400
  K as gridSelectAllRecords,
389
401
  J as gridSelectRecord,
390
402
  M as gridSelectionChange,
391
- y as handleAfterInitEvent,
392
- oe as handleChartEvent,
403
+ E as handleAfterInitEvent,
404
+ ie as handleChartEvent,
393
405
  h as handleEvent,
394
- E as handleFormEvent,
406
+ y as handleFormEvent,
395
407
  ne as headerClick,
396
408
  x as initPageEvents,
397
- ie as isShowComponent,
409
+ oe as isShowComponent,
398
410
  re as isShowMobileEvent,
399
411
  O as removeCustomFuncFromWindow,
400
412
  Z as rowClick,
@@ -3,26 +3,28 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
4
  function a(n2, a2) {
5
5
  e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
6
- const a3 = JSON.parse(e2[0].template), i2 = [];
6
+ const a3 = JSON.parse(e2[0].template), r2 = [];
7
7
  a3.panels.forEach((e3) => {
8
8
  e3.printElements.forEach((e4) => {
9
- "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
10
10
  });
11
11
  });
12
- const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
12
+ const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
13
+ console.log("浏览器打印窗口已打开");
13
14
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
14
15
  a3.panels[0].printElements.forEach((e3) => {
15
16
  if ("datetime" === e3.options.dataType && e3.options.field) {
16
17
  const t2 = e3.options.field.substring(6);
17
18
  f[t2] = e3.options.dateFormat;
18
19
  }
19
- }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
20
- const l2 = JSON.parse(JSON.stringify(e3.selections));
21
- if (l2.forEach((e4) => {
20
+ }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
21
+ const i2 = JSON.parse(JSON.stringify(e3.selections));
22
+ if (i2.forEach((e4) => {
22
23
  Object.keys(t2).forEach((t3) => {
23
24
  if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
25
  e4[t3] = new Date(e4[t3]);
25
26
  } catch (e5) {
27
+ console.error(`日期格式化失败: ${e5}`);
26
28
  }
27
29
  });
28
30
  }), n3.length > 0) {
@@ -30,51 +32,51 @@ function a(n2, a2) {
30
32
  n3.forEach((t3) => {
31
33
  e4.push(function(e5, t4) {
32
34
  return new Promise((n4, a5) => {
33
- const s3 = e5.field.split("."), i4 = [];
35
+ const s3 = e5.field.split("."), r4 = [];
34
36
  s3.length < 2 && n4([]);
35
37
  try {
36
38
  p(s3[1]).then((e6) => {
37
39
  t4.forEach((t5, n5) => {
38
40
  const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
39
- a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
40
- }), n4(i4);
41
+ a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
42
+ }), n4(r4);
41
43
  });
42
44
  } catch (e6) {
43
- n4([]);
45
+ console.error("获取条码规则失败:", e6), n4([]);
44
46
  }
45
47
  });
46
- }(t3, l2));
48
+ }(t3, i2));
47
49
  }), Promise.all(e4).then((e5) => {
48
50
  e5.forEach((e6) => {
49
51
  e6.forEach((e7) => {
50
- const t3 = e7.index, n4 = l2[t3];
52
+ const t3 = e7.index, n4 = i2[t3];
51
53
  n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
52
54
  });
53
- }), a4.print(l2, s2, i3);
55
+ }), a4.print(i2, s2, r3);
54
56
  });
55
- } else a4.print(l2, s2, i3);
56
- }(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
57
+ } else a4.print(i2, s2, r3);
58
+ }(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
57
59
  });
58
60
  }
59
61
  function s(e2, t2, n2, a2, s2) {
60
62
  if (t2.length > 0) {
61
- const i2 = [];
63
+ const r2 = [];
62
64
  t2.forEach((t3) => {
63
- i2.push(function(e3, t4) {
65
+ r2.push(function(e3, t4) {
64
66
  return new Promise((n3, a3) => {
65
- const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
66
- s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
67
+ const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
68
+ s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
67
69
  try {
68
- p(i3.name).then((t5) => {
70
+ p(r3.name).then((t5) => {
69
71
  const a4 = JSON.parse(t5.barcodeModelItems);
70
- i3.value = o(a4, e3.entity.data), n3(i3);
72
+ r3.value = o(a4, e3.entity.data), n3(r3);
71
73
  });
72
74
  } catch (e4) {
73
- n3(i3);
75
+ console.error("获取条码规则失败:", e4), n3(r3);
74
76
  }
75
77
  });
76
78
  }(e2.pageContext, t3));
77
- }), Promise.all(i2).then((t3) => {
79
+ }), Promise.all(r2).then((t3) => {
78
80
  const o2 = {};
79
81
  t3.forEach((e3) => {
80
82
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
@@ -92,8 +94,8 @@ function p(t2) {
92
94
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
93
95
  }
94
96
  n();
95
- const i = { printLabel: a };
97
+ const r = { printLabel: a };
96
98
  export {
97
- i as default,
99
+ r as default,
98
100
  a as printLabel
99
101
  };