super-page-runtime 2.2.77-sit8 → 2.2.78

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/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  5. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  6. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/charts/chart-util.js +9 -7
  8. package/dist/es/components/runtime/utils/events/event-util.js +113 -113
  9. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  10. package/dist/es/components/runtime/utils/events/standard-event.js +523 -508
  11. package/dist/es/components/runtime/utils/events/validator-util.js +62 -72
  12. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  13. package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
  14. package/dist/es/components/runtime/utils/page-init-util.js +50 -47
  15. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  16. package/dist/es/components/runtime/utils/page-store.js +1 -1
  17. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +13 -16
  19. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -4
  20. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +11 -15
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  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.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  27. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  28. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  29. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  30. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +122 -131
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +57 -90
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  33. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  34. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  38. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +35 -38
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  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 +94 -92
  44. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +124 -123
  45. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +14 -16
  46. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -80
  48. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  49. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -34
  50. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +41 -39
  51. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
  52. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +51 -50
  53. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  54. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  55. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  56. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  57. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  58. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +4 -5
  59. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -4
  60. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  61. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  62. package/dist/es/components/runtime/views/super-page-dialog.vue.js +10 -9
  63. package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog.vue2.js} +0 -1
  64. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  65. package/dist/es/components/runtime/views/super-page.vue2.js +126 -126
  66. package/dist/es/index.js +0 -1
  67. package/dist/es/style.css +99 -225
  68. package/package.json +2 -2
@@ -5,9 +5,9 @@ import { getDefaultValue as i } from "../page-init-util.js";
5
5
  import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
6
6
  import { appendDefaultMethods as f } from "../events/event-util.js";
7
7
  var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
8
- const d = { theme1: t, theme2: e, theme3: n };
9
- function p(t2) {
10
- return d[t2];
8
+ const p = { theme1: t, theme2: e, theme3: n };
9
+ function d(t2) {
10
+ return p[t2];
11
11
  }
12
12
  function h() {
13
13
  return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
@@ -16,7 +16,7 @@ function m(t2, e2, n2, i2, s2) {
16
16
  return function(o2) {
17
17
  let r2 = o2.value;
18
18
  if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
19
- if (Array.isArray(r2)) return r2;
19
+ if (Array.isArray(r2)) return console.log("numformatter is array", r2), r2;
20
20
  if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
21
21
  if (t2.indexOf("precision") > -1) {
22
22
  let t3 = parseInt(e2);
@@ -51,7 +51,9 @@ function x(t2, e2, n2) {
51
51
  if (!(n2 && e2 && e2.clickSet && t2)) return;
52
52
  const i2 = e2.clickSet;
53
53
  n2.on("click", function(s2) {
54
- let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
54
+ let o2 = e2.highlightInfos ? e2.highlightInfos : [];
55
+ console.log("highlightInfos", o2, s2);
56
+ let r2 = -1;
55
57
  if (o2) {
56
58
  const t3 = [];
57
59
  for (let l2 = 0; l2 < o2.length; l2++) {
@@ -177,7 +179,7 @@ function y(t2, e2, n2) {
177
179
  else if (t4.startsWith("${avg.")) i2[t4] = A(e2, t4.substring(6, t4.length - 1));
178
180
  else if (t4.startsWith("${add.")) {
179
181
  const e3 = t4.substring(6, t4.length - 1);
180
- n2.add(e3);
182
+ n2.push(e3);
181
183
  }
182
184
  }
183
185
  }
@@ -258,7 +260,7 @@ export {
258
260
  k as executeChartFormula,
259
261
  M as exportCommonChart,
260
262
  A as getAvgValue,
261
- p as getCustomTheme,
263
+ d as getCustomTheme,
262
264
  h as getCustomThemeOptions,
263
265
  F as getMaxValue,
264
266
  S as getMinValue,
@@ -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";
@@ -32,7 +32,7 @@ function x(e2, n2) {
32
32
  for (const t3 in n3) {
33
33
  j(n3[t3], e3);
34
34
  }
35
- }(n2, t2), n2.customEvents = t2;
35
+ }(n2, t2), console.log("initPage customEvents", t2), n2.customEvents = t2;
36
36
  }
37
37
  }
38
38
  function k(e2, n2) {
@@ -70,153 +70,153 @@ function O(e2) {
70
70
  });
71
71
  }
72
72
  }
73
- function h(e2, n2, t2, i2, o2) {
74
- return N(e2, n2, t2, i2, true, o2, false);
73
+ function h(e2, n2, t2, o2, i2) {
74
+ return N(e2, n2, t2, o2, true, i2, false);
75
75
  }
76
- function E(e2, n2, t2, i2, o2) {
76
+ function E(e2, n2, t2, o2, i2) {
77
77
  var _a, _b;
78
- if (i2 && "change" === i2) {
78
+ if (o2 && "change" === o2) {
79
79
  const e3 = n2.subTableWatchProps;
80
80
  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 && m.$emit("_refreshSubTable_" + n3, { propName: o3 });
81
+ const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
82
+ o3 && o3.indexOf(i3) >= 0 && m.$emit("_refreshSubTable_" + n3, { propName: i3 });
83
83
  }
84
84
  }
85
- return N(e2, n2, t2, i2, true, o2, true);
85
+ return N(e2, n2, t2, o2, true, i2, true);
86
86
  }
87
- function y(e2, n2, t2, i2) {
88
- return E(e2, n2, t2, "afterInit", i2);
87
+ function y(e2, n2, t2, o2) {
88
+ return E(e2, n2, t2, "afterInit", o2);
89
89
  }
90
- function w(e2, n2, t2, i2, o2) {
91
- return N(e2, n2, t2, i2, false, o2, false);
90
+ function w(e2, n2, t2, o2, i2) {
91
+ return N(e2, n2, t2, o2, false, i2, false);
92
92
  }
93
- function N(e2, t2, i2, r2, u2, c2, l2) {
94
- const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
93
+ function N(e2, t2, o2, r2, u2, c2, l2) {
94
+ const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
95
95
  let s2;
96
96
  if (l2 || !/* @__PURE__ */ function(e3) {
97
97
  return e3 && ("click" === e3 || "suffixClick" === e3 || "prefixClick" === e3);
98
98
  }(r2)) {
99
99
  if (s2 = I(t2, a2, r2), u2) {
100
- return z(t2, i2, s2, P(t2, i2, e2, c2));
100
+ return z(t2, o2, s2, P(t2, o2, e2, c2));
101
101
  }
102
102
  return s2;
103
103
  }
104
- !function(e3, t3, i3) {
105
- const r3 = o(t3, i3.ids);
104
+ !function(e3, t3, o3) {
105
+ const r3 = i(t3, o3.ids);
106
106
  if (!r3) return;
107
- if (void 0 !== e3.canClick && false === e3.canClick) return;
108
- H(i3).then((o2) => {
109
- if (true === o2.canExecute) {
107
+ if (void 0 !== e3.canClick && false === e3.canClick) return void console.log("不能重复点击");
108
+ H(o3).then((i2) => {
109
+ if (true === i2.canExecute) {
110
110
  e3.clickUuid = t3.uuid, e3.canClick = false;
111
- const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = I(e3, o3, "beforeValidateForm");
111
+ const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = I(e3, i3, "beforeValidateForm");
112
112
  let u3;
113
- if (r4 && (u3 = z(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
113
+ if (r4 && (u3 = z(e3, t3, r4, o3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
114
114
  n(u3) ? u3.then((n2) => {
115
- n2 && true === n2 ? R(e3, t3, i3) : e3.canClick = true;
115
+ n2 && true === n2 ? R(e3, t3, o3) : e3.canClick = true;
116
116
  }).catch((n2) => {
117
- e3.canClick = true;
118
- }) : R(e3, t3, i3);
117
+ console.log(n2), e3.canClick = true;
118
+ }) : R(e3, t3, o3);
119
119
  }
120
120
  });
121
- }(t2, i2, T(e2, t2, i2, c2));
121
+ }(t2, o2, T(e2, t2, o2, c2));
122
122
  }
123
123
  function S(e2, n2) {
124
124
  return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
125
125
  }
126
- function P(e2, n2, t2, i2) {
127
- const o2 = {};
128
- if (i2) for (const e3 in i2) o2[e3] = i2[e3];
129
- return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
126
+ function P(e2, n2, t2, o2) {
127
+ const i2 = {};
128
+ if (o2) for (const e3 in o2) i2[e3] = o2[e3];
129
+ return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
130
130
  }
131
- function R(e2, t2, i2) {
132
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
131
+ function R(e2, t2, o2) {
132
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
133
133
  let r2 = true;
134
- (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
135
- const c2 = $(e2, o2, "click");
134
+ console.log("doValidateForm---eventParams=", o2), (o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
135
+ const c2 = $(e2, i2, "click");
136
136
  if (c2) {
137
137
  const e3 = function(e4, n2) {
138
138
  return e4 && v.includes(n2.eventName);
139
139
  }(c2.isStandard, c2.event);
140
140
  e3 && (r2 = false);
141
141
  }
142
- u(e2, t2, r2).then((o3) => {
143
- if (!o3) return void (e2.canClick = true);
144
- const r3 = U(e2, t2, i2);
142
+ u(e2, t2, r2).then((i3) => {
143
+ if (!i3) return void (e2.canClick = true);
144
+ const r3 = U(e2, t2, o2);
145
145
  r3 ? n(r3) ? r3.then((n2) => {
146
- n2 ? q(e2, t2, c2, i2) : e2.canClick = true;
146
+ n2 ? q(e2, t2, c2, o2) : e2.canClick = true;
147
147
  }).catch((n2) => {
148
- e2.canClick = true;
149
- }) : q(e2, t2, c2, i2) : e2.canClick = true;
148
+ console.error(n2), e2.canClick = true;
149
+ }) : q(e2, t2, c2, o2) : e2.canClick = true;
150
150
  }).catch((n2) => {
151
- e2.canClick = true;
151
+ console.error(n2), e2.canClick = true;
152
152
  });
153
153
  }
154
- function F(e2, n2, t2, i2, o2) {
155
- const r2 = T(e2, n2, t2, o2);
156
- q(n2, t2, $(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
154
+ function F(e2, n2, t2, o2, i2) {
155
+ const r2 = T(e2, n2, t2, i2);
156
+ q(n2, t2, $(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
157
157
  }
158
- function T(e2, n2, t2, i2) {
159
- const o2 = n2.code, r2 = n2.version, u2 = S(n2, t2);
158
+ function T(e2, n2, t2, o2) {
159
+ const i2 = n2.code, r2 = n2.version, u2 = S(n2, t2);
160
160
  if (u2) {
161
161
  const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
162
- i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
163
- L(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
162
+ o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
163
+ L(n2) && (o2.selections = t3, o2.id = l2 && l2.length > 0 ? l2[0] : null, o2.ids = l2);
164
164
  const a2 = e3 ? e3.getTableConfigure() : null;
165
- i2.tableConfigure = a2;
165
+ o2.tableConfigure = a2;
166
166
  }
167
- return P(n2, t2, e2, i2);
167
+ return P(n2, t2, e2, o2);
168
168
  }
169
169
  function U(e2, n2, t2) {
170
- const i2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
171
- let o2;
172
- return i2 && (o2 = z(e2, n2, i2, null, t2)), void 0 === o2 || o2;
170
+ const o2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
171
+ let i2;
172
+ return o2 && (i2 = z(e2, n2, o2, null, t2)), void 0 === i2 || i2;
173
173
  }
174
174
  function D(e2, n2, t2) {
175
- const i2 = e2.code + "_";
176
- m.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
175
+ const o2 = e2.code + "_";
176
+ m.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
177
177
  }
178
178
  function L(e2, n2) {
179
179
  return !(!e2.pageType || "list" !== e2.pageType);
180
180
  }
181
- function _(e2, t2, i2) {
182
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = I(e2, o2, "afterClick");
181
+ function _(e2, t2, o2) {
182
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = I(e2, i2, "afterClick");
183
183
  if (r2) {
184
- const o3 = z(e2, t2, r2, null, i2);
185
- n(o3) ? o3.finally(() => {
184
+ const i3 = z(e2, t2, r2, null, o2);
185
+ n(i3) ? i3.finally(() => {
186
186
  e2.canClick = true;
187
187
  }) : e2.canClick = true;
188
188
  } else e2.canClick = true;
189
189
  }
190
- function V(e2, n2, t2, i2, o2, u2) {
191
- i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
190
+ function V(e2, n2, t2, o2, i2, u2) {
191
+ o2 ? (e2.result = i2, e2.canClick = true) : r(e2, n2, i2, "", u2);
192
192
  const c2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
193
193
  c2 && z(e2, n2, c2, t2);
194
194
  }
195
- function q(e2, t2, i2, o2) {
195
+ function q(e2, t2, o2, i2) {
196
196
  let r2 = t2, u2 = t2.props.linkPage;
197
197
  if (u2 && u2 instanceof Array) {
198
198
  const n2 = function(e3) {
199
199
  let n3 = e3 ? e3.row : null;
200
200
  n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
201
201
  return n3;
202
- }(o2), i3 = d(e2, t2, u2, n2);
202
+ }(i2), o3 = d(e2, t2, u2, n2);
203
203
  let c2, l2 = false;
204
- i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
204
+ o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
205
205
  }
206
- u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, o2)) : function(e3, t3, i3, o3) {
207
- const r3 = i3;
206
+ u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, i2)) : function(e3, t3, o3, i3) {
207
+ const r3 = o3;
208
208
  if (r3) {
209
- const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = z(e3, t3, i4, o3), a2 = L(e3);
209
+ const o4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = z(e3, t3, o4, i3), a2 = L(e3);
210
210
  if (function(e4, n2) {
211
211
  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);
212
212
  }(u3, c2)) return void (e3.canClick = true);
213
213
  n(l2) ? l2.then((n2) => {
214
- n2 ? V(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
214
+ n2 ? V(e3, t3, i3, u3, n2, a2) : e3.canClick = true;
215
215
  }).catch((n2) => {
216
- e3.canClick = true;
217
- }) : V(e3, t3, o3, u3, l2, a2);
216
+ console.error(n2), e3.canClick = true;
217
+ }) : V(e3, t3, i3, u3, l2, a2);
218
218
  } else e3.canClick = true;
219
- }(e2, t2, i2, o2);
219
+ }(e2, t2, o2, i2);
220
220
  }
221
221
  function A(e2, n2) {
222
222
  const t2 = e2.customEvents;
@@ -227,10 +227,10 @@ function A(e2, n2) {
227
227
  }
228
228
  function I(e2, n2, t2) {
229
229
  if (n2 && t2) {
230
- const o2 = n2.filter((e3) => e3.name === t2);
231
- if (o2 && o2.length > 0) {
232
- const n3 = o2[0];
233
- return n3.isStandard ? i[n3.eventName] : A(e2, n3);
230
+ const i2 = n2.filter((e3) => e3.name === t2);
231
+ if (i2 && i2.length > 0) {
232
+ const n3 = i2[0];
233
+ return n3.isStandard ? o[n3.eventName] : A(e2, n3);
234
234
  }
235
235
  }
236
236
  }
@@ -244,38 +244,38 @@ function B(e2, n2) {
244
244
  }
245
245
  function $(e2, n2, t2) {
246
246
  if (n2 && t2) {
247
- const o2 = n2.filter((e3) => e3.name === t2);
248
- if (o2 && o2.length > 0) {
249
- const n3 = o2[0];
250
- return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: A(e2, n3), isStandard: false, event: n3 };
247
+ const i2 = n2.filter((e3) => e3.name === t2);
248
+ if (i2 && i2.length > 0) {
249
+ const n3 = i2[0];
250
+ return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: A(e2, n3), isStandard: false, event: n3 };
251
251
  }
252
252
  }
253
253
  }
254
- function z(e2, n2, t2, i2, o2) {
254
+ function z(e2, n2, t2, o2, i2) {
255
255
  if (t2) {
256
- if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
257
- return t2.apply(t2, [i2]);
256
+ if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
257
+ return t2.apply(t2, [o2]);
258
258
  }
259
259
  }
260
260
  function H(e2) {
261
- const n2 = e2.pageContext, i2 = e2.configureObj, o2 = L(n2);
261
+ const n2 = e2.pageContext, o2 = e2.configureObj, i2 = L(n2);
262
262
  let r2 = [];
263
- if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
263
+ if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
264
264
  else {
265
265
  const e3 = n2.entity.data;
266
266
  r2.push(e3);
267
267
  }
268
- const u2 = i2.props.base.condition;
269
- return new Promise((e3, i3) => {
268
+ const u2 = o2.props.base.condition;
269
+ return new Promise((e3, o3) => {
270
270
  if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length) e3({ canExecute: true });
271
271
  else {
272
- const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
272
+ const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
273
273
  let f2, g2, m2 = true;
274
274
  for (let e4 = 0; e4 < r2.length; e4++) {
275
275
  const t2 = r2[e4];
276
276
  for (let e5 = 0; e5 < u2.length; e5++) {
277
277
  const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
278
- if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
278
+ if (!s(p2, t2, i3, o4, c2, l2, null, n2)) {
279
279
  m2 = false, f2 = a2, g2 = t2;
280
280
  break;
281
281
  }
@@ -285,33 +285,33 @@ function H(e2) {
285
285
  }
286
286
  });
287
287
  }
288
- function Q(e2, n2, t2, i2) {
289
- var o2;
290
- n2 && (W("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), W("beforeRequest", function(e3) {
288
+ function Q(e2, n2, t2, o2) {
289
+ var i2;
290
+ n2 && (W("loadBeforeSend", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), W("beforeRequest", function(e3) {
291
291
  return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
292
- }({ pageContext: t2, configureObj: i2 }), e2), W("gridDataLoaded", function(e3) {
292
+ }({ pageContext: t2, configureObj: o2 }), e2), W("gridDataLoaded", function(e3) {
293
293
  return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
294
- }({ pageContext: t2, configureObj: i2 }), e2), W("gridComplete", function(e3) {
294
+ }({ pageContext: t2, configureObj: o2 }), e2), W("gridComplete", function(e3) {
295
295
  return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
296
- }({ pageContext: t2, configureObj: i2 }), e2), W("resizeHeight", function(e3) {
296
+ }({ pageContext: t2, configureObj: o2 }), e2), W("resizeHeight", function(e3) {
297
297
  return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
298
- }({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), W("beforeInsertRow", function(e3) {
298
+ }({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), W("beforeInsertRow", function(e3) {
299
299
  return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
300
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterInsertRow", function(e3) {
300
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("afterInsertRow", function(e3) {
301
301
  return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
302
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeDelete", function(e3) {
302
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("beforeDelete", function(e3) {
303
303
  return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
304
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterDelete", function(e3) {
304
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("afterDelete", function(e3) {
305
305
  return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
306
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeEdit", function(e3) {
306
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("beforeEdit", function(e3) {
307
307
  return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
308
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestore", function(e3) {
308
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("beforeRestore", function(e3) {
309
309
  return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
310
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestoreValidate", function(e3) {
310
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), W("beforeRestoreValidate", function(e3) {
311
311
  return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
312
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
312
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
313
313
  n3 && (t3[e3] = n3);
314
- }("filterDataEvent", w(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
314
+ }("filterDataEvent", w(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
315
315
  }
316
316
  function W(e2, n2, t2) {
317
317
  n2 && (t2[e2] = n2);
@@ -354,19 +354,19 @@ function te(n2) {
354
354
  }
355
355
  return t2;
356
356
  }
357
- function ie(e2, n2, t2, i2, o2) {
358
- return z(e2, n2, I(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
357
+ function oe(e2, n2, t2, o2, i2) {
358
+ return z(e2, n2, I(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
359
359
  }
360
- function oe(n2, t2) {
361
- let i2 = true;
360
+ function ie(n2, t2) {
361
+ let o2 = true;
362
362
  if (e()) {
363
363
  const e2 = $(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
364
364
  if (e2) {
365
- const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
366
- n3 && o2 && (o2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
365
+ const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
366
+ n3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (o2 = false) : C.includes(t3.eventName) && (o2 = false));
367
367
  }
368
368
  }
369
- return i2;
369
+ return o2;
370
370
  }
371
371
  export {
372
372
  j as appendDefaultMethods,
@@ -388,13 +388,13 @@ export {
388
388
  G as gridSelectRecord,
389
389
  K as gridSelectionChange,
390
390
  y as handleAfterInitEvent,
391
- ie as handleChartEvent,
391
+ oe as handleChartEvent,
392
392
  h as handleEvent,
393
393
  E as handleFormEvent,
394
394
  ee as headerClick,
395
395
  x as initPageEvents,
396
396
  te as isShowComponent,
397
- oe as isShowMobileEvent,
397
+ ie as isShowMobileEvent,
398
398
  O as removeCustomFuncFromWindow,
399
399
  Y as rowClick,
400
400
  Z as rowDblClick,
@@ -1,77 +1,78 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
- function a(n2, a2) {
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 = [];
7
- a3.panels.forEach((e3) => {
4
+ function s(n2, s2) {
5
+ e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [s2]).then((e2) => {
6
+ const s3 = JSON.parse(e2[0].template), r2 = [];
7
+ s3.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 l = new t.PrintTemplate({ template: s3 }), i = { callback: () => {
13
+ console.log("浏览器打印窗口已打开");
13
14
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
14
- n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2) {
15
+ n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, s4, a2) {
15
16
  if (t2.length > 0) {
16
- const i3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
17
+ const r3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
17
18
  t2.forEach((e4) => {
18
- i3.push(function(e5, t3) {
19
- return new Promise((n4, a5) => {
20
- const s3 = e5.field.split("."), i4 = [];
21
- s3.length < 2 && n4([]);
19
+ r3.push(function(e5, t3) {
20
+ return new Promise((n4, s5) => {
21
+ const a3 = e5.field.split("."), r4 = [];
22
+ a3.length < 2 && n4([]);
22
23
  try {
23
- p(s3[1]).then((e6) => {
24
+ p(a3[1]).then((e6) => {
24
25
  t3.forEach((t4, n5) => {
25
- const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
26
- a6.value = o(JSON.parse(e6.barcodeModelItems), t4), i4.push(a6);
27
- }), n4(i4);
26
+ const s6 = { type: a3[0], name: a3[1], value: null, index: n5 };
27
+ s6.value = o(JSON.parse(e6.barcodeModelItems), t4), r4.push(s6);
28
+ }), n4(r4);
28
29
  });
29
30
  } catch (e6) {
30
- n4([]);
31
+ console.error("获取条码规则失败:", e6), n4([]);
31
32
  }
32
33
  });
33
34
  }(e4, l2));
34
- }), Promise.all(i3).then((e4) => {
35
+ }), Promise.all(r3).then((e4) => {
35
36
  e4.forEach((e5) => {
36
37
  e5.forEach((e6) => {
37
38
  const t3 = e6.index, n4 = l2[t3];
38
39
  n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
39
40
  });
40
- }), n3.print(l2, a4, s2);
41
+ }), n3.print(l2, s4, a2);
41
42
  });
42
- } else n3.print(e3.selections, a4, s2);
43
- }(n2, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
43
+ } else n3.print(e3.selections, s4, a2);
44
+ }(n2, r2, l, c, i) : "form" === n2.pageContext.pageType && a(n2, r2, l, c, i) : a(n2, r2, l, c, i);
44
45
  });
45
46
  }
46
- function s(e2, t2, n2, a2, s2) {
47
+ function a(e2, t2, n2, s2, a2) {
47
48
  if (t2.length > 0) {
48
- const i2 = [];
49
+ const r2 = [];
49
50
  t2.forEach((t3) => {
50
- i2.push(function(e3, t4) {
51
- return new Promise((n3, a3) => {
52
- const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
53
- s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
51
+ r2.push(function(e3, t4) {
52
+ return new Promise((n3, s3) => {
53
+ const a3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
54
+ a3.length < 2 && n3(r3), r3.type = a3[0], r3.name = a3[1];
54
55
  try {
55
- p(i3.name).then((t5) => {
56
- const a4 = JSON.parse(t5.barcodeModelItems);
57
- i3.value = o(a4, e3.entity.data), n3(i3);
56
+ p(r3.name).then((t5) => {
57
+ const s4 = JSON.parse(t5.barcodeModelItems);
58
+ r3.value = o(s4, e3.entity.data), n3(r3);
58
59
  });
59
60
  } catch (e4) {
60
- n3(i3);
61
+ console.error("获取条码规则失败:", e4), n3(r3);
61
62
  }
62
63
  });
63
64
  }(e2.pageContext, t3));
64
- }), Promise.all(i2).then((t3) => {
65
+ }), Promise.all(r2).then((t3) => {
65
66
  const o2 = {};
66
67
  t3.forEach((e3) => {
67
68
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
68
69
  });
69
70
  const p2 = {};
70
- Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, a2, s2);
71
+ Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, s2, a2);
71
72
  });
72
73
  } else {
73
74
  const t3 = {};
74
- Object.assign(t3, e2.pageContext.entity), n2.print(t3, a2, s2);
75
+ Object.assign(t3, e2.pageContext.entity), n2.print(t3, s2, a2);
75
76
  }
76
77
  }
77
78
  function p(t2) {
@@ -79,8 +80,8 @@ function p(t2) {
79
80
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
80
81
  }
81
82
  n();
82
- const i = { printLabel: a };
83
+ const r = { printLabel: s };
83
84
  export {
84
- i as default,
85
- a as printLabel
85
+ r as default,
86
+ s as printLabel
86
87
  };