super-page-runtime 2.3.13-sit3 → 2.3.13

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 (69) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +26 -25
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +186 -157
  6. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  7. package/dist/es/components/runtime/utils/page-init-util.js +5 -2
  8. package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
  9. package/dist/es/components/runtime/utils/page-store.js +10 -10
  10. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  11. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  12. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  15. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  25. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  26. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  27. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  32. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
  38. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
  39. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  48. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +38 -37
  50. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
  51. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
  52. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  56. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  58. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
  63. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  64. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  65. package/dist/es/components/runtime/views/super-page.vue2.js +25 -24
  66. package/dist/es/i18n/langs/cn.js +1 -1
  67. package/dist/es/i18n/langs/en.js +1 -1
  68. package/dist/es/style.css +3 -3
  69. package/package.json +2 -2
@@ -6,12 +6,12 @@ import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSession
6
6
  import { getComponentRef as b } from "../global-refs.js";
7
7
  import C from "../eventBus.js";
8
8
  import T from "axios";
9
- import { handleEvent as y, getTableUuid as w, doAfterClickEvent as h } from "./event-util.js";
9
+ import { handleEvent as w, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
10
  import { setStoreInfo as k } from "../store-util.js";
11
11
  import { getPermissionCodes as P, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
12
- import { updateChartDatasources as N, caculateShowCondition as S, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
13
- import x from "./print-label.js";
14
- import { getTableNameByTableUuid as A } from "../table-utils.js";
12
+ import { updateChartDatasources as S, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
13
+ import A from "./print-label.js";
14
+ import { getTableNameByTableUuid as x } from "../table-utils.js";
15
15
  import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
16
16
  import { functions as E } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as _ } from "../page-store.js";
@@ -47,17 +47,17 @@ const j = { save: function(e2) {
47
47
  if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
48
  p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
49
  var _a;
50
- const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
50
+ const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
51
51
  let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
52
  g2 = o(g2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = P(u2, r2), w2 = { ids: i2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
- r2.beanName && (w2.beanName = r2.beanName);
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = P(u2, r2), y2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
+ r2.beanName && (y2.beanName = r2.beanName);
55
55
  const h2 = u2.props.deleteLogicSetting;
56
- h2 && ("object" == typeof h2 ? w2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (w2.deleteLogicSetting = h2));
56
+ h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
57
57
  const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
- k2 && (w2.logSettingText = k2.join(""));
58
+ k2 && (y2.logSettingText = k2.join(""));
59
59
  const R2 = u2.props.base.isSafeDelete;
60
- R2 && (w2.isSafeDelete = R2), c.delete(g2, { data: w2 }).then((e4) => {
60
+ R2 && (y2.isSafeDelete = R2), c.delete(g2, { data: y2 }).then((e4) => {
61
61
  const t2 = b(r2, m2);
62
62
  t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
63
  }).catch((e4) => {
@@ -90,8 +90,8 @@ const j = { save: function(e2) {
90
90
  t2.version && (f2 += "&pageVersion=" + t2.version);
91
91
  const T2 = d();
92
92
  T2 && (f2 += "&JWT=" + T2);
93
- const y2 = "_RUN_CURRENT_ROLE", w2 = m(y2);
94
- w2 && (f2 += "&" + y2 + "=" + w2);
93
+ const w2 = "_RUN_CURRENT_ROLE", y2 = m(w2);
94
+ y2 && (f2 += "&" + w2 + "=" + y2);
95
95
  if (o2) {
96
96
  f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
97
  }
@@ -137,6 +137,22 @@ const j = { save: function(e2) {
137
137
  });
138
138
  });
139
139
  }(e2);
140
+ }, workflowStart: function(e2) {
141
+ return C.$emit("clearTableAllStartEditing"), async function(e3) {
142
+ return new Promise((t2, s2) => {
143
+ const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
144
+ let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
145
+ if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
146
+ const m2 = ee(e3);
147
+ let f2;
148
+ i2.workflow_id || i2.WORKFLOW_ID ? (d2 = n(p2, a2.isTest) + "/dsc/workflow-commons", d2 = o(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), f2.then((s3) => {
149
+ let n2 = true;
150
+ s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), C.$emit("clearTableAllEndEditing"), t2(true);
151
+ }).catch((e4) => {
152
+ s2(e4);
153
+ });
154
+ });
155
+ }(e2);
140
156
  }, submitProcess: function(e2) {
141
157
  return C.$emit("clearTableAllStartEditing"), function(e3) {
142
158
  return new Promise((t2, s2) => {
@@ -184,22 +200,22 @@ const j = { save: function(e2) {
184
200
  }, drawTask: function(e2) {
185
201
  return function(e3) {
186
202
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
187
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
203
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
188
204
  }(e2);
189
205
  }, abandonReceive: function(e2) {
190
206
  return function(e3) {
191
207
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
192
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
208
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
193
209
  }(e2);
194
210
  }, returnToPreviousTask: function(e2) {
195
211
  return function(e3) {
196
212
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = ee(e3);
197
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
213
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
198
214
  }(e2);
199
215
  }, endInstance: function(e2) {
200
216
  return function(e3) {
201
217
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
202
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
218
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
203
219
  }(e2);
204
220
  }, returnTaskTo: function(e2) {
205
221
  return function(e3) {
@@ -214,7 +230,7 @@ const j = { save: function(e2) {
214
230
  }, retrieveTask: function(e2) {
215
231
  return function(e3) {
216
232
  const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
217
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
233
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
218
234
  }(e2);
219
235
  }, viewDetail: function(e2) {
220
236
  }, lineEditCreate: function(e2) {
@@ -227,9 +243,10 @@ const j = { save: function(e2) {
227
243
  let t2 = null;
228
244
  try {
229
245
  if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
230
- } catch (e4) {
246
+ } catch (t3) {
247
+ console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
231
248
  }
232
- x.printLabel(e3, t2);
249
+ A.printLabel(e3, t2);
233
250
  }(e2);
234
251
  }, queryCharts: function(e2) {
235
252
  D(e2);
@@ -259,7 +276,7 @@ const j = { save: function(e2) {
259
276
  let c2, u2 = t2.label;
260
277
  u2 || (u2 = t2.code);
261
278
  c2 = u2;
262
- const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ae(t2);
279
+ const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ie(t2);
263
280
  l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
264
281
  const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
265
282
  W();
@@ -283,7 +300,7 @@ function D(e2) {
283
300
  let o2 = null;
284
301
  n2 && n2.runtime && (o2 = n2.runtime.props);
285
302
  const a2 = o2 ? o2.state : void 0;
286
- o2 && (o2.state = "disabled"), N(t2, s2, void 0, e2.isInitChart).then(() => {
303
+ o2 && (o2.state = "disabled"), S(t2, s2, void 0, e2.isInitChart).then(() => {
287
304
  o2 && (o2.state = a2);
288
305
  }).catch(() => {
289
306
  o2 && (o2.state = a2);
@@ -294,9 +311,9 @@ function L(e2, s2, o2, a2) {
294
311
  e2.clickUuid = s2.uuid;
295
312
  const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
296
313
  u2 && (C2.logSettingText = u2.join(""));
297
- const y2 = ae(e2);
298
- let w2;
299
- C2.additionalParamMap = y2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", w2 = a2 ? function(e3, t2, s3, o3) {
314
+ const w2 = ie(e2);
315
+ let y2;
316
+ C2.additionalParamMap = w2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", y2 = a2 ? function(e3, t2, s3, o3) {
300
317
  return new Promise((a3, i3) => {
301
318
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
302
319
  W();
@@ -321,7 +338,7 @@ function L(e2, s2, o2, a2) {
321
338
  i3(e4);
322
339
  });
323
340
  });
324
- }(r2, f2, C2, e2.isTest), w2 && w2.then(() => {
341
+ }(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
325
342
  h(e2, s2);
326
343
  }).catch((e3) => {
327
344
  });
@@ -356,14 +373,14 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
356
373
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
357
374
  const g2 = n2.props.base.conversionCodes;
358
375
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
359
- const b2 = Ce(n2);
376
+ const b2 = Te(n2);
360
377
  b2 && (f2.autoSetValueData = b2);
361
378
  const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
362
379
  C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
363
380
  const T2 = e2.beanName;
364
381
  T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
365
- const y2 = ae(e2);
366
- return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
382
+ const w2 = ie(e2);
383
+ return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
367
384
  }
368
385
  function F(e2, t2, s2, a2, i2, r2, u2, l2) {
369
386
  const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
@@ -381,13 +398,12 @@ function q(t2, s2, n2, o2, a2) {
381
398
  const i2 = H(t2, s2, a2);
382
399
  if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
383
400
  let a3 = s3.props.base.successOperation;
384
- const i3 = s3.props.base.isNeedValueMapping, r2 = w(t3, s3);
401
+ const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
385
402
  a3 || z.includes(s3.name) || (a3 = "refresh");
386
- if ("refresh" === a3) {
387
- if (r2) {
388
- b(t3, r2).refresh();
389
- }
390
- } else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
403
+ if ("refresh" === a3) if (r2) {
404
+ b(t3, r2).refresh();
405
+ } else console.error("tableUuid is empty");
406
+ else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
391
407
  const o4 = e(t3.entity.page);
392
408
  let a4 = n3;
393
409
  a4 || (a4 = {}), Object.assign(o4, a4), J(t3, s3, o4, i3);
@@ -421,7 +437,7 @@ function G(e2, t2, s2) {
421
437
  const n2 = t2.props.base.successOperation;
422
438
  if (!n2 || null === n2) return;
423
439
  const o2 = t2.props.base.isNeedValueMapping;
424
- "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? fe(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
440
+ "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? ge(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
425
441
  }
426
442
  function J(e2, t2, s2, n2) {
427
443
  const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
@@ -445,7 +461,7 @@ function Y(e2, t2, s2, n2, o2) {
445
461
  I(s3.entity, r2, a3);
446
462
  });
447
463
  }
448
- }(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
464
+ }(s2, o2, e2), w(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
449
465
  }
450
466
  const z = ["dropdown"];
451
467
  function K(e2, t2, s2, n2) {
@@ -456,13 +472,13 @@ function K(e2, t2, s2, n2) {
456
472
  const a2 = H(e2, t2);
457
473
  if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
458
474
  if (a2 && "list" === a2) {
459
- const s3 = w(e2, t2);
475
+ const s3 = y(e2, t2);
460
476
  if (s3) {
461
477
  b(e2, s3).refresh();
462
- }
478
+ } else console.error("tableUuid is empty");
463
479
  } else if (a2 && "form" === a2) {
464
480
  const t3 = e2.entity.data;
465
- fe(e2, t3.ID ? t3.ID : t3.id);
481
+ ge(e2, t3.ID ? t3.ID : t3.id);
466
482
  }
467
483
  }
468
484
  }
@@ -471,12 +487,12 @@ function Q(e2, t2, s2, a2) {
471
487
  const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
472
488
  let T2 = false;
473
489
  C2 && "noOperation" === C2 && (T2 = true);
474
- let y2 = d2.tableName;
490
+ let w2 = d2.tableName;
475
491
  if (t2) {
476
492
  const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
477
- y2 = A(d2, t3);
493
+ w2 = x(d2, t3);
478
494
  }
479
- const w2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
495
+ const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
480
496
  return new Promise((g3, b3) => {
481
497
  const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
482
498
  p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
@@ -492,8 +508,8 @@ function Q(e2, t2, s2, a2) {
492
508
  b3("点击了取消按钮");
493
509
  });
494
510
  });
495
- }(d2, m2, a2, T2, f2, g2, s2, b2, y2);
496
- w2 ? w2.then((e3) => {
511
+ }(d2, m2, a2, T2, f2, g2, s2, b2, w2);
512
+ y2 ? y2.then((e3) => {
497
513
  q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
498
514
  }).catch((e3) => {
499
515
  l2(e3);
@@ -502,34 +518,34 @@ function Q(e2, t2, s2, a2) {
502
518
  }
503
519
  function X(e2, s2) {
504
520
  var _a;
505
- const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = A(a2, d2), f2 = new FormData();
521
+ const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), f2 = new FormData();
506
522
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
507
523
  const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
508
524
  g2 && f2.append("importDuplicateRule", g2);
509
525
  const b2 = a2.judgeHeavyList;
510
526
  b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
511
- const C2 = Ce(i2);
527
+ const C2 = Te(i2);
512
528
  C2 && f2.append("autoSetValueData", C2);
513
529
  const T2 = a2.formNoRuleCode;
514
530
  T2 && f2.append("formNoRuleCode", T2);
515
- const y2 = e2.listCode;
516
- y2 && f2.append("listCode", y2);
517
- let w2 = false;
518
- w2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", w2 + ""), f2.append("pageCode", a2.code);
531
+ const w2 = e2.listCode;
532
+ w2 && f2.append("listCode", w2);
533
+ let y2 = false;
534
+ y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
519
535
  const k2 = t(a2);
520
536
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
521
537
  const R2 = P(i2, a2);
522
538
  R2 && f2.append("functionCode", R2);
523
- const M2 = ae(a2);
539
+ const M2 = ie(a2);
524
540
  f2.append("additionalParamMapStr", JSON.stringify(M2));
525
- const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
526
- f2.append("isPermission", N2 + "");
527
- const S2 = a2.systemCode;
528
- S2 && f2.append("systemCode", S2);
541
+ const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
542
+ f2.append("isPermission", S2 + "");
543
+ const N2 = a2.systemCode;
544
+ N2 && f2.append("systemCode", N2);
529
545
  const v2 = a2.backendUrl;
530
546
  let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
531
- I2 = o(I2, S2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
532
- if (w2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
547
+ I2 = o(I2, N2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
548
+ if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
533
549
  else {
534
550
  let t2 = false;
535
551
  e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
@@ -555,12 +571,12 @@ function ee(e2) {
555
571
  t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
556
572
  const u2 = n2.props.base.conversionCodes;
557
573
  u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
558
- const l2 = Ce(n2);
574
+ const l2 = Te(n2);
559
575
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
560
576
  const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
561
577
  p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
562
- const d2 = ae(t2);
563
- c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids && (c2.ids = [d2.ids]));
578
+ const d2 = ie(t2);
579
+ c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
564
580
  const m2 = n2.props.base.successOperation;
565
581
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
566
582
  }
@@ -569,7 +585,7 @@ function te(e2, t2, s2, n2, o2) {
569
585
  let r2;
570
586
  if (e2) {
571
587
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
572
- const s3 = ae(t3);
588
+ const s3 = ie(t3);
573
589
  e3 && s3 && g(s3._t_ + "_id", e3);
574
590
  }(e2.entity.id || e2.entity.ID, s2));
575
591
  const o3 = e2.completeTaskResult;
@@ -582,31 +598,14 @@ function te(e2, t2, s2, n2, o2) {
582
598
  }
583
599
  if (e2.completeTaskParam) {
584
600
  const t3 = e2.completeTaskParam;
585
- r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
601
+ r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3, s2.completeTaskParam.opinion = null;
586
602
  }
587
603
  s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
588
604
  }
589
605
  return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
590
606
  }
591
607
  async function se(e2, t2) {
592
- const s2 = await function(e3) {
593
- return new Promise((t3, s3) => {
594
- var _a, _b, _c, _d;
595
- const n2 = e3.configureObj;
596
- if (n2) {
597
- let s4 = false;
598
- if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
599
- const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
600
- s4 = S(t4, n2, o2);
601
- }
602
- true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
603
- t3(e4);
604
- }).catch(() => {
605
- t3(false);
606
- }) : t3(true);
607
- } else t3(true);
608
- });
609
- }(e2);
608
+ const s2 = await ne(e2);
610
609
  return new Promise((a2, i2) => {
611
610
  var _a;
612
611
  if (s2) {
@@ -624,19 +623,37 @@ async function se(e2, t2) {
624
623
  } else a2(true);
625
624
  });
626
625
  }
627
- function ne(e2, t2) {
626
+ function ne(e2) {
627
+ return new Promise((t2, s2) => {
628
+ var _a, _b, _c, _d;
629
+ const n2 = e2.configureObj;
630
+ if (n2) {
631
+ let s3 = false;
632
+ if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
633
+ const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
634
+ s3 = N(t3, o2);
635
+ }
636
+ true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
637
+ t2(e3);
638
+ }).catch(() => {
639
+ t2(false);
640
+ }) : t2(true);
641
+ } else t2(true);
642
+ });
643
+ }
644
+ function oe(e2, t2) {
628
645
  if (t2) {
629
646
  const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
630
- c2.assigneeId = r2, ce(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
647
+ c2.assigneeId = r2, ue(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
631
648
  h(s2, o2);
632
649
  });
633
650
  }
634
651
  }
635
- function oe(e2) {
636
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ae(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
652
+ function ae(e2) {
653
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ie(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
637
654
  return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
638
655
  }
639
- function ae(t2) {
656
+ function ie(t2) {
640
657
  if (t2.entity) {
641
658
  let s2 = e(t2.entity.page);
642
659
  s2 || (s2 = {});
@@ -644,12 +661,12 @@ function ae(t2) {
644
661
  return n2 && Object.assign(s2, n2), s2;
645
662
  }
646
663
  }
647
- function ie(e2, t2) {
664
+ function re(e2, t2) {
648
665
  if (t2) {
649
666
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
650
667
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
651
668
  if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
652
- const d2 = oe(e2);
669
+ const d2 = ae(e2);
653
670
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
654
671
  const m2 = c.post(p2, d2);
655
672
  m2 && m2.then((e3) => {
@@ -657,7 +674,7 @@ function ie(e2, t2) {
657
674
  });
658
675
  }
659
676
  }
660
- async function re(e2, t2) {
677
+ async function ce(e2, t2) {
661
678
  if (t2) {
662
679
  const s2 = await function(e3) {
663
680
  return new Promise((t3, s3) => {
@@ -665,9 +682,10 @@ async function re(e2, t2) {
665
682
  const n2 = e3.configureObj;
666
683
  if (n2) {
667
684
  let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
668
- if (true === s4) {
685
+ if (void 0 === s4 || true === s4) {
686
+ s4 = true;
669
687
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
670
- s4 = S(t4, n2, o2);
688
+ s4 = N(t4, o2);
671
689
  }
672
690
  true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
673
691
  t3(e4);
@@ -681,7 +699,7 @@ async function re(e2, t2) {
681
699
  const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
682
700
  let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
683
701
  if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
684
- const m2 = oe(e2);
702
+ const m2 = ae(e2);
685
703
  m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
686
704
  const f2 = c.post(d2, m2);
687
705
  f2 && f2.then((e3) => {
@@ -690,40 +708,48 @@ async function re(e2, t2) {
690
708
  }
691
709
  }
692
710
  }
693
- function ce(e2, t2, s2, n2) {
694
- return new Promise((a2, i2) => {
695
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
696
- if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
697
- const m2 = c.post(s2, t2);
698
- m2 && m2.then((t3) => {
699
- let s3 = true;
700
- t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), a2(true);
701
- }).catch((e3) => {
702
- i2(e3);
703
- });
711
+ async function ue(e2, t2, s2, n2) {
712
+ const a2 = await ne(e2);
713
+ return new Promise((i2, r2) => {
714
+ var _a;
715
+ if (a2) {
716
+ const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
717
+ if (p2.completeTaskParam) {
718
+ const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
719
+ t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
720
+ }
721
+ if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
722
+ const f2 = c.post(s2, t2);
723
+ f2 && f2.then((t3) => {
724
+ let s3 = true;
725
+ t3 && (s3 = te(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
726
+ }).catch((e3) => {
727
+ r2(e3);
728
+ });
729
+ } else i2(true);
704
730
  });
705
731
  }
706
- function ue(e2) {
732
+ function le(e2) {
707
733
  const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
708
734
  let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
709
735
  if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
710
- const p2 = t2.code, d2 = ae(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
736
+ const p2 = t2.code, d2 = ie(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
711
737
  return c.post(r2, m2);
712
738
  }
713
- function le(e2, t2) {
739
+ function pe(e2, t2) {
714
740
  const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
715
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
741
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ue(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
716
742
  h(s2, o2);
717
743
  });
718
744
  }
719
- function pe(e2) {
745
+ function de(e2) {
720
746
  const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
721
747
  let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
722
748
  const r2 = ee(e2);
723
749
  if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
724
750
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
725
751
  }
726
- function de(e2, t2) {
752
+ function me(e2, t2) {
727
753
  if (t2) {
728
754
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
729
755
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
@@ -736,45 +762,48 @@ function de(e2, t2) {
736
762
  });
737
763
  }
738
764
  }
739
- function me(e2, t2, s2, n2) {
740
- let o2 = false;
741
- return e2 && t2 && ("workflowSave" === e2 ? o2 = function(e3) {
765
+ function fe(e2, t2, s2, n2, o2) {
766
+ let a2 = false;
767
+ return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
742
768
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
743
769
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
744
770
  return false;
745
- }(t2) : "submitProcess" === e2 ? o2 = function(e3) {
771
+ }(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
772
+ if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
773
+ return false;
774
+ }(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
746
775
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
747
776
  return false;
748
- }(t2) : "submitTask" === e2 ? o2 = function(e3) {
777
+ }(t2) : "submitTask" === e2 ? a2 = function(e3) {
749
778
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
750
779
  return false;
751
- }(t2) : "drawTask" === e2 ? o2 = function(e3) {
780
+ }(t2) : "drawTask" === e2 ? a2 = function(e3) {
752
781
  if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
753
782
  return false;
754
- }(t2) : "abandonReceive" === e2 ? o2 = function(e3) {
783
+ }(t2) : "abandonReceive" === e2 ? a2 = function(e3) {
755
784
  if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
756
785
  return false;
757
- }(t2) : "approve" === e2 || "refuse" === e2 ? o2 = function(e3) {
786
+ }(t2) : "approve" === e2 || "refuse" === e2 ? a2 = function(e3) {
758
787
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
759
788
  return false;
760
- }(t2) : "readed" === e2 ? o2 = function(e3) {
789
+ }(t2) : "readed" === e2 ? a2 = function(e3) {
761
790
  if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
762
791
  return false;
763
- }(t2) : "assign" === e2 ? o2 = function(e3) {
792
+ }(t2) : "assign" === e2 ? a2 = function(e3) {
764
793
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
765
794
  return false;
766
- }(t2) : "copyTask" === e2 ? o2 = function(e3, t3) {
795
+ }(t2) : "copyTask" === e2 ? a2 = function(e3, t3) {
767
796
  let s3 = false;
768
797
  e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
769
798
  t3 && (t3.props.base.state = s3 ? "" : "hidden");
770
799
  return true;
771
- }(t2, n2) : "addSigner" === e2 ? o2 = function(e3) {
800
+ }(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
772
801
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
773
802
  return false;
774
- }(t2) : "removeSigner" === e2 ? o2 = function(e3) {
803
+ }(t2) : "removeSigner" === e2 ? a2 = function(e3) {
775
804
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
776
805
  return false;
777
- }(t2) : "retrieveTask" === e2 ? o2 = function(e3) {
806
+ }(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
778
807
  if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
779
808
  if ("COMPLETED" !== e4.active) return false;
780
809
  if ("TYPE_READ" === e4.processingMode) return false;
@@ -782,10 +811,10 @@ function me(e2, t2, s2, n2) {
782
811
  return true;
783
812
  }(e3)) return true;
784
813
  return false;
785
- }(t2) : "agreement" === e2 || "oppose" === e2 ? o2 = function(e3) {
814
+ }(t2) : "agreement" === e2 || "oppose" === e2 ? a2 = function(e3) {
786
815
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
787
816
  return false;
788
- }(t2) : "kiken" === e2 ? o2 = function(e3) {
817
+ }(t2) : "kiken" === e2 ? a2 = function(e3) {
789
818
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
790
819
  return false;
791
820
  }(t2) : function(e3, t3) {
@@ -795,36 +824,36 @@ function me(e2, t2, s2, n2) {
795
824
  t4 && (s3 = t4.taskComplete);
796
825
  return s3;
797
826
  }(t3);
798
- }(t2, s2) && (o2 = "returnToPreviousTask" !== e2 || function(e3) {
827
+ }(t2, s2) && (a2 = "returnToPreviousTask" !== e2 || function(e3) {
799
828
  if (e3.rebuttable) return true;
800
829
  return false;
801
- }(t2))), o2;
830
+ }(t2))), a2;
802
831
  }
803
- function fe(e2, t2) {
804
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ge(e2, t2).then((t3) => {
832
+ function ge(e2, t2) {
833
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, be(e2, t2).then((t3) => {
805
834
  e2.isRefresh = true;
806
835
  });
807
836
  }
808
- function ge(e2, s2, o2) {
837
+ function be(e2, s2, o2) {
809
838
  const a2 = e2.pageType;
810
839
  if (a2 && "form" === a2) {
811
840
  e2.canClick = false;
812
841
  return t(e2) ? function(e3, t2, s3) {
813
842
  return new Promise((o3, a3) => {
814
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
843
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
815
844
  let d2 = t2 || null, f2 = t2 ? [t2] : null;
816
845
  void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
817
846
  const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
818
- if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
847
+ if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
819
848
  const t3 = {};
820
849
  e3.tableUuids.forEach((e4) => {
821
850
  const s4 = r(u2, l2, e4);
822
851
  t3[s4] = s4;
823
852
  }), C2.listCodesMap = t3;
824
853
  }
825
- f2 && (C2.ids = be(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
826
- const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = _();
827
- w2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
854
+ f2 && (C2.ids = Ce(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
855
+ const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
856
+ y2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
828
857
  e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
829
858
  const s4 = e3.pageType;
830
859
  s4 && "form" === s4 && function(e4) {
@@ -857,18 +886,18 @@ function ge(e2, s2, o2) {
857
886
  }
858
887
  e5.actionPermissionMap = s5;
859
888
  }(e4);
860
- }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
889
+ }(e3), e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
861
890
  }).catch((t3) => {
862
891
  e3.canClick = true, a3(t3);
863
892
  });
864
893
  });
865
894
  }(e2, s2, o2) : function(e3, t2, s3) {
866
895
  return new Promise((o3, a3) => {
867
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
896
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
868
897
  let d2 = t2 || null, f2 = t2 ? [t2] : null;
869
898
  void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
870
899
  const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
871
- if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
900
+ if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = Ce(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
872
901
  const t3 = {};
873
902
  e3.tableUuids.forEach((e4) => {
874
903
  const s4 = r(u2, l2, e4);
@@ -876,11 +905,11 @@ function ge(e2, s2, o2) {
876
905
  }), T2.listCodesMap = t3;
877
906
  }
878
907
  e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
879
- const w2 = C2 + "/dsc/commons/gets", h2 = _();
880
- h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
908
+ const y2 = C2 + "/dsc/commons/gets", h2 = _();
909
+ h2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
881
910
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
882
911
  const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
883
- e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
912
+ e3.rules = a4, e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
884
913
  }).catch((t3) => {
885
914
  e3.canClick = true, a3(t3);
886
915
  });
@@ -891,10 +920,10 @@ function ge(e2, s2, o2) {
891
920
  e3(true);
892
921
  });
893
922
  }
894
- function be(e2) {
923
+ function Ce(e2) {
895
924
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
896
925
  }
897
- function Ce(e2) {
926
+ function Te(e2) {
898
927
  const t2 = e2.props.setValueList;
899
928
  if (t2) {
900
929
  if (s(t2) && t2.length > 0) return JSON.stringify(t2);
@@ -902,7 +931,7 @@ function Ce(e2) {
902
931
  }
903
932
  return null;
904
933
  }
905
- function Te(e2, t2) {
934
+ function we(e2, t2) {
906
935
  const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
907
936
  return c.post(a2, o2);
908
937
  }
@@ -910,33 +939,33 @@ function ye(e2) {
910
939
  const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
911
940
  return c.get(s2);
912
941
  }
913
- function we(e2) {
942
+ function he(e2) {
914
943
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
915
944
  return c.delete(t2);
916
945
  }
917
946
  export {
918
947
  q as dealAfterOperate,
919
948
  te as dealCompleteTaskParam,
920
- we as deleteChartCondition,
921
- ie as doAddSigner,
922
- ne as doAssign,
923
- re as doCreateCopyTask,
949
+ he as deleteChartCondition,
950
+ re as doAddSigner,
951
+ oe as doAssign,
952
+ ce as doCreateCopyTask,
924
953
  X as doImportFinally,
925
- de as doRemoveSigners,
926
- le as doReturnTaskTo,
954
+ me as doRemoveSigners,
955
+ pe as doReturnTaskTo,
927
956
  L as exportFormReport,
928
- ae as getAdditionalParamMap,
929
- ge as getFormData,
930
- pe as getRemoveSigner,
957
+ ie as getAdditionalParamMap,
958
+ be as getFormData,
959
+ de as getRemoveSigner,
931
960
  $ as getSaveFormRequest,
932
961
  F as getSaveFormRequestWithRow,
933
- ue as getTaskInformitions,
934
- me as isVisibleWorkflowButton,
962
+ le as getTaskInformitions,
963
+ fe as isVisibleWorkflowButton,
935
964
  Z as judgeDataNumber,
936
965
  ye as listChartConditions,
937
966
  K as refreshFormOrListPage,
938
- fe as refreshPage,
939
- Te as saveChartConditionBase,
967
+ ge as refreshPage,
968
+ we as saveChartConditionBase,
940
969
  j as standardEvents,
941
970
  Y as updateValuesWhenCloseDialog
942
971
  };