super-page-runtime 2.3.18 → 2.3.19-sit2

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 (113) hide show
  1. package/dist/es/assets/chart-themes/bar-theme.d.ts +6 -0
  2. package/dist/es/assets/chart-themes/bar-theme.js +4 -0
  3. package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
  4. package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
  5. package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
  6. package/dist/es/assets/chart-themes/pie-theme.js +4 -0
  7. package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
  8. package/dist/es/assets/chart-themes/radar-theme.js +4 -0
  9. package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
  10. package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
  11. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
  12. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  13. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
  14. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
  15. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
  16. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
  17. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
  18. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
  19. package/dist/es/components/runtime/utils/charts/chart-util.js +129 -119
  20. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  21. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  22. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  23. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  24. package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
  25. package/dist/es/components/runtime/utils/events/standard-event.js +577 -512
  26. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  27. package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
  28. package/dist/es/components/runtime/utils/page-init-util.js +87 -68
  29. package/dist/es/components/runtime/utils/page-store.js +10 -10
  30. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  42. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  45. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
  46. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
  47. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  48. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
  49. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  50. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  56. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +37 -25
  62. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  63. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
  64. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  66. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  69. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +55 -54
  70. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  71. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  72. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  73. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  74. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  75. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  76. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  78. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +43 -27
  80. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  81. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  82. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  83. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  84. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  85. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
  86. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
  87. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
  88. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
  89. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
  90. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  91. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
  92. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  93. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
  94. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  95. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  96. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  97. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  99. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  100. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  101. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  102. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  103. package/dist/es/components/runtime/views/super-page.vue2.js +180 -168
  104. package/dist/es/i18n/langs/cn.js +1 -1
  105. package/dist/es/i18n/langs/en.js +1 -1
  106. package/dist/es/style.css +134 -86
  107. package/package.json +2 -2
  108. package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
  109. package/dist/es/assets/chart-themes/theme1.js +0 -4
  110. package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
  111. package/dist/es/assets/chart-themes/theme2.js +0 -4
  112. package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
  113. package/dist/es/assets/chart-themes/theme3.js +0 -4
@@ -1,65 +1,69 @@
1
- import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
1
+ import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as s, isWorkflowPage as n, isArrayFn as o, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
- import { getCurrentUser as d, getToken as m, getSessionCache as f, getRunCurrentRole as g, setSessionCache as C } from "agilebuilder-ui/src/utils/auth";
5
+ import { getCurrentUser as d, getToken as m, getSessionCache as f, setSessionCache as g, getRunCurrentRole as C } from "agilebuilder-ui/src/utils/auth";
6
6
  import { getComponentRef as b } from "../global-refs.js";
7
- import T from "../eventBus.js";
8
- import w from "axios";
9
- import { handleEvent as k, getTableUuid as h, doAfterClickEvent as y } from "./event-util.js";
7
+ import w from "../eventBus.js";
8
+ import T from "axios";
9
+ import { handleEvent as y, getTableUuid as k, doAfterClickEvent as h } from "./event-util.js";
10
10
  import { setStoreInfo as P } from "../store-util.js";
11
- import { getPermissionCodes as R, getDefaultValue as S, getModelFields as v } from "../page-init-util.js";
12
- import { updateChartDatasources as M, caculateShowCondition as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
13
- import A from "./print-label.js";
14
- import { getTableNameByTableUuid as E } from "../table-utils.js";
15
- import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
11
+ import { getPermissionCodes as S, getDefaultValue as R, getModelFields as v } from "../page-init-util.js";
12
+ import { caculateShowCondition as M, updateChartDatasources as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
13
+ import O from "./print-label.js";
14
+ import { getTableNameByTableUuid as A } from "../table-utils.js";
15
+ import { getWorkflowRules as E, packageCustomRules as U } from "./validator-util.js";
16
16
  import { functions as _ } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as j } from "../page-store.js";
18
- const D = { save: function(e2) {
19
- return F(e2, false);
18
+ import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
19
+ import { cacheBackfillData as W, removeCacheFillData as L, hasBackfillData as B, getRealFillData as F, removeCacheFillDataById as V } from "./data-backfill-util.js";
20
+ const $ = { save: function(e2) {
21
+ return J(e2, false);
20
22
  }, saveList: function(e2) {
21
- return F(e2, true);
23
+ return J(e2, true);
22
24
  }, exportForm: function(e2) {
23
25
  const t2 = e2.pageContext.code + "_";
24
- T.$emit(t2 + "export-form-report", e2);
26
+ w.$emit(t2 + "export-form-report", e2);
25
27
  }, exportPDF: function(e2) {
26
28
  const t2 = e2.pageContext.code + "_";
27
- T.$emit(t2 + "export-pdf-report", e2);
29
+ w.$emit(t2 + "export-pdf-report", e2);
28
30
  }, submit: function(e2) {
29
- return Q(e2, false, "submit", "/dsc/commons/submits");
31
+ return oe(e2, false, "submit", "/dsc/commons/submits");
30
32
  }, submitList: function(e2) {
31
- return Q(e2, true, "submit", "/dsc/commons/batch-submits");
33
+ return oe(e2, true, "submit", "/dsc/commons/batch-submits");
32
34
  }, agree: function(e2) {
33
- return Q(e2, false, "agree", "/dsc/commons/approves");
35
+ return oe(e2, false, "agree", "/dsc/commons/approves");
34
36
  }, agreeList: function(e2) {
35
- return Q(e2, true, "agree", "/dsc/commons/batch-approves");
37
+ return oe(e2, true, "agree", "/dsc/commons/batch-approves");
36
38
  }, disagree: function(e2) {
37
- return Q(e2, false, "disagree", "/dsc/commons/refuses");
39
+ return oe(e2, false, "disagree", "/dsc/commons/refuses");
38
40
  }, disagreeList: function(e2) {
39
- return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
41
+ return oe(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
42
  }, back: function(e2) {
41
43
  const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
42
- Y(t2, e2.configureObj, s2, n2);
44
+ ee(t2, e2.configureObj, s2, n2);
43
45
  }, delete: function(e2) {
44
46
  return function(e3) {
45
- return new Promise((s2, a2) => {
47
+ return new Promise((o2, a2) => {
46
48
  const i2 = e3.ids;
47
- if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
49
+ if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void o2(true);
48
50
  p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
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 = E(r2, m2);
51
- let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
- g2 = o(g2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = R(u2, r2), k2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
- r2.beanName && (k2.beanName = r2.beanName);
55
- const h2 = u2.props.deleteLogicSetting;
56
- h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
57
- const y2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
- y2 && (k2.logSettingText = y2.join(""));
51
+ var _a, _b, _c;
52
+ 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);
53
+ let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
54
+ g2 = s(g2, p2, d2, r2.isTest);
55
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = n(r2), T2 = S(u2, r2), y2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
56
+ r2.beanName && (y2.beanName = r2.beanName);
57
+ const k2 = u2.props.deleteLogicSetting;
58
+ k2 && ("object" == typeof k2 ? y2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (y2.deleteLogicSetting = k2));
59
+ const h2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
60
+ h2 && (y2.logSettingText = h2.join(""));
59
61
  const P2 = u2.props.base.isSafeDelete;
60
- P2 && (k2.isSafeDelete = P2), c.delete(g2, { data: k2 }).then((e4) => {
62
+ P2 && (y2.isSafeDelete = P2);
63
+ const R2 = (_c = (_b = u2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
64
+ R2 && (y2.currentOperation = R2), y2.isMobile = D(), c.delete(g2, { data: y2 }).then((e4) => {
61
65
  const t2 = b(r2, m2);
62
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), H(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
66
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), X(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), o2(true);
63
67
  }).catch((e4) => {
64
68
  a2(e4);
65
69
  });
@@ -70,49 +74,52 @@ const D = { save: function(e2) {
70
74
  }(e2);
71
75
  }, downloadTemplate: function(e2) {
72
76
  !function(e3) {
73
- var _a;
74
- const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, i2 = a(o2.templateFiles, t2, s2);
77
+ var _a, _b, _c;
78
+ const s2 = e3.pageContext, n2 = e3.configureObj, o2 = n2.props.base, i2 = a(o2.templateFiles, s2, n2);
75
79
  let r2, c2;
76
80
  i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
77
- const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
81
+ const u2 = s2.systemCode, l2 = s2.backendUrl, p2 = c2;
78
82
  let d2 = "?1=1";
79
- r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : t2.label && (d2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
80
- const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
83
+ r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : s2.label && (d2 += "&showName=" + encodeURI(s2.label) + ".xlsx");
84
+ const g2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
81
85
  g2 && (d2 += "&logSettingText=" + g2.join(""));
82
86
  u2 && (d2 += "&systemCode=" + u2);
83
87
  const C2 = e3.listCode;
84
88
  C2 && (d2 += "&listCode=" + C2);
85
- t2.beanName && (d2 += "&beanName=" + t2.beanName);
86
- const b2 = R(s2, t2);
89
+ s2.beanName && (d2 += "&beanName=" + s2.beanName);
90
+ const b2 = S(n2, s2);
87
91
  b2 && (d2 += "&functionCode=" + b2);
88
- t2.tableName && (d2 += "&tableName=" + t2.tableName);
89
- t2.code && (d2 += "&pageCode=" + t2.code);
90
- t2.version && (d2 += "&pageVersion=" + t2.version);
91
- const T2 = m();
92
- T2 && (d2 += "&JWT=" + T2);
93
- const w2 = "_RUN_CURRENT_ROLE", k2 = f(w2);
94
- k2 && (d2 += "&" + w2 + "=" + k2);
92
+ s2.tableName && (d2 += "&tableName=" + s2.tableName);
93
+ s2.code && (d2 += "&pageCode=" + s2.code);
94
+ s2.version && (d2 += "&pageVersion=" + s2.version);
95
+ const w2 = m();
96
+ w2 && (d2 += "&JWT=" + w2);
97
+ const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
98
+ T2 && (d2 += "&currentOperation=" + encodeURI(T2));
99
+ d2 += "&isMobile=" + D();
100
+ const y2 = "_RUN_CURRENT_ROLE", k2 = f(y2);
101
+ k2 && (d2 += "&" + y2 + "=" + k2);
95
102
  if (o2) {
96
103
  d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
104
  }
98
- const h2 = n(l2, t2.isTest);
105
+ const h2 = t(l2, s2.isTest);
99
106
  window.open(h2 + "/dsc/commons/download-files" + d2);
100
107
  }(e2);
101
108
  }, import: function(e2) {
102
109
  const t2 = e2.pageContext.code + "_";
103
- T.$emit(t2 + "import-file", e2);
110
+ w.$emit(t2 + "import-file", e2);
104
111
  }, export: function(e2) {
105
112
  return function(e3) {
106
113
  return new Promise((t2, s2) => {
107
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
114
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
108
115
  const n2 = e3.pageContext, o2 = e3.configureObj, a2 = o2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
109
116
  r2 && r2.length > 0 && (c2.data = r2);
110
117
  let u2 = n2.label;
111
118
  u2 || (u2 = n2.code);
112
119
  let l2 = false;
113
120
  l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
114
- const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = R(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
115
- f2.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) + "", f2.watermarkContent = ((_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("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
121
+ const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = S(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 }, g2 = (_b = (_a = o2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
122
+ g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = o2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = o2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
116
123
  });
117
124
  }(e2);
118
125
  }, search: function(e2) {
@@ -122,203 +129,199 @@ const D = { save: function(e2) {
122
129
  const t2 = e2.pageContext, s2 = e2.tableUuid;
123
130
  b(t2, s2).showMobileSearch();
124
131
  }, workflowSave: function(e2) {
125
- return T.$emit("clearTableAllStartEditing"), async function(e3) {
126
- return new Promise((t2, s2) => {
132
+ return w.$emit("clearTableAllStartEditing"), async function(e3) {
133
+ return new Promise((n2, o2) => {
127
134
  const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
128
- let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons";
129
- if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
130
- const m2 = te(e3);
135
+ let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
136
+ if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
137
+ const m2 = re(e3);
131
138
  let f2;
132
- f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
133
- let n2 = true;
134
- s3 && (n2 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), t2(true);
139
+ f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), W(a2.code, i2), f2.then((t2) => {
140
+ let s2 = true;
141
+ t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), w.$emit("clearTableAllEndEditing"), n2(true);
135
142
  }).catch((e4) => {
136
- s2(e4);
143
+ o2(e4);
144
+ }).finally(() => {
145
+ L(a2.code, i2);
137
146
  });
138
147
  });
139
148
  }(e2);
140
149
  }, workflowStart: function(e2) {
141
- return T.$emit("clearTableAllStartEditing"), async function(e3) {
142
- return new Promise((t2, s2) => {
150
+ return w.$emit("clearTableAllStartEditing"), async function(e3) {
151
+ return new Promise((n2, o2) => {
143
152
  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 = te(e3);
153
+ let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
154
+ if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
155
+ const m2 = re(e3);
147
156
  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 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), t2(true);
157
+ i2.workflow_id || i2.WORKFLOW_ID ? (d2 = t(p2, a2.isTest) + "/dsc/workflow-commons", d2 = s(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), W(a2.code, i2), f2.then((t2) => {
158
+ let s2 = true;
159
+ t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), w.$emit("clearTableAllEndEditing"), n2(true);
151
160
  }).catch((e4) => {
152
- s2(e4);
161
+ o2(e4);
162
+ }).finally(() => {
163
+ L(a2.code, i2);
153
164
  });
154
165
  });
155
166
  }(e2);
156
167
  }, submitProcess: function(e2) {
157
- return T.$emit("clearTableAllStartEditing"), function(e3) {
158
- return new Promise((t2, s2) => {
168
+ return w.$emit("clearTableAllStartEditing"), function(e3) {
169
+ return new Promise((n2, o2) => {
159
170
  const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
160
- let p2 = n(r2, a2.isTest) + "/dsc/workflow-commons/submit";
161
- if (p2 = o(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
162
- const d2 = te(e3), m2 = c.post(p2, d2);
163
- m2 && m2.then((s3) => {
164
- let n2 = true;
165
- s3 && (n2 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), t2(true);
171
+ let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
172
+ if (p2 = s(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
173
+ const d2 = re(e3);
174
+ W(a2.code, a2.entity.data);
175
+ const m2 = c.post(p2, d2);
176
+ m2 ? m2.then((t2) => {
177
+ let s2 = true;
178
+ t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), w.$emit("clearTableAllEndEditing"), n2(true);
166
179
  }).catch((e4) => {
167
- s2(e4);
168
- });
180
+ o2(e4);
181
+ }).finally(() => {
182
+ L(a2.code, a2.entity.data);
183
+ }) : L(a2.code, a2.entity.data);
169
184
  });
170
185
  }(e2);
171
186
  }, submitTask: function(e2) {
172
- return ne(e2, "SUBMIT");
187
+ return ue(e2, "SUBMIT");
173
188
  }, approve: function(e2) {
174
- return ne(e2, "APPROVE");
189
+ return ue(e2, "APPROVE");
175
190
  }, refuse: function(e2) {
176
- return ne(e2, "REFUSE");
191
+ return ue(e2, "REFUSE");
177
192
  }, readed: function(e2) {
178
- return ne(e2, "READED");
193
+ return ue(e2, "READED");
179
194
  }, agreement: function(e2) {
180
- return ne(e2, "AGREEMENT");
195
+ return ue(e2, "AGREEMENT");
181
196
  }, oppose: function(e2) {
182
- return ne(e2, "OPPOSE");
197
+ return ue(e2, "OPPOSE");
183
198
  }, kiken: function(e2) {
184
- return ne(e2, "KIKEN");
199
+ return ue(e2, "KIKEN");
185
200
  }, assign: function(e2) {
186
201
  return function(e3) {
187
202
  const t2 = e3.pageContext, s2 = t2.code + "_";
188
- T.$emit(s2 + "assign-task", e3);
203
+ w.$emit(s2 + "assign-task", e3);
189
204
  }(e2);
190
205
  }, copyTask: function(e2) {
191
206
  return function(e3) {
192
207
  const t2 = e3.pageContext, s2 = t2.code + "_";
193
- T.$emit(s2 + "copy-task", e3);
208
+ w.$emit(s2 + "copy-task", e3);
194
209
  }(e2);
195
210
  }, addSigner: function(e2) {
196
211
  return function(e3) {
197
212
  const t2 = e3.pageContext, s2 = t2.code + "_";
198
- T.$emit(s2 + "add-signer", e3);
213
+ w.$emit(s2 + "add-signer", e3);
199
214
  }(e2);
200
215
  }, drawTask: function(e2) {
201
216
  return function(e3) {
202
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
203
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
217
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = re(e3);
218
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
204
219
  }(e2);
205
220
  }, abandonReceive: function(e2) {
206
221
  return function(e3) {
207
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
208
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
222
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = re(e3);
223
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
209
224
  }(e2);
210
225
  }, returnToPreviousTask: function(e2) {
211
226
  return function(e3) {
212
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = te(e3);
213
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
227
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = re(e3);
228
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
214
229
  }(e2);
215
230
  }, endInstance: function(e2) {
216
231
  return function(e3) {
217
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
218
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
232
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/end-instance", a2 = re(e3);
233
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
219
234
  }(e2);
220
235
  }, returnTaskTo: function(e2) {
221
236
  return function(e3) {
222
237
  const t2 = e3.pageContext, s2 = t2.code + "_";
223
- T.$emit(s2 + "choose-return-node", e3);
238
+ w.$emit(s2 + "choose-return-node", e3);
224
239
  }(e2);
225
240
  }, removeSigner: function(e2) {
226
241
  return function(e3) {
227
242
  const t2 = e3.pageContext, s2 = t2.code + "_";
228
- T.$emit(s2 + "remove-signer", e3);
243
+ w.$emit(s2 + "remove-signer", e3);
229
244
  }(e2);
230
245
  }, retrieveTask: function(e2) {
231
246
  return function(e3) {
232
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
233
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
247
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/retrieves", a2 = re(e3);
248
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
234
249
  }(e2);
235
250
  }, extractWorkflow: function(e2) {
251
+ return Re(e2);
252
+ }, extractWorkflowEvent: function(e2) {
236
253
  return function(e3) {
237
- const t2 = e3.pageContext, s2 = t2.backendUrl;
238
- let a2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract";
239
- const i2 = te(e3);
240
- if (t2.completeTaskParam) {
241
- const s3 = [];
242
- e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3, customTaskTitle: re(e3) };
243
- }
244
- return new Promise((t3, s3) => {
245
- const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
246
- if (a2 = o(a2, r2, p2, n2.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
247
- const d2 = c.post(a2, i2);
248
- d2 && d2.then((s4) => {
249
- let o2 = true;
250
- s4 && (o2 = se(s4, false, n2, e3, null)), true === o2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t3(true);
251
- }).catch((e4) => {
252
- s3(e4);
253
- });
254
- });
254
+ const t2 = e3.pageContext;
255
+ w.$emit(t2.code + "_event-call-component", { componentName: "extract-workflow-dialog", componentProps: { pageContext: e3.pageContext, configure: e3.configureObj } });
255
256
  }(e2);
256
257
  }, cancelExtractWorkflow: function(e2) {
257
258
  return function(e3) {
258
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
259
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
259
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = re(e3);
260
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
260
261
  }(e2);
261
262
  }, approveExtractWorkflow: function(e2) {
262
263
  return function(e3) {
263
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
264
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
264
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = re(e3);
265
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
265
266
  }(e2);
266
267
  }, refuseExtractWorkflow: function(e2) {
267
268
  return function(e3) {
268
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
269
- return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
269
+ const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = re(e3);
270
+ return we(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
270
271
  }(e2);
271
272
  }, viewDetail: function(e2) {
272
273
  }, lineEditCreate: function(e2) {
273
274
  return function(e3) {
274
275
  const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
275
- n2 && (e3.getDefaultValueFunc = S, n2.createRow(e3.listCode, {}, e3));
276
+ n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
276
277
  }(e2);
277
278
  }, printLabel: function(e2) {
278
279
  return function(e3) {
279
280
  let t2 = null;
280
281
  try {
281
282
  if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
282
- } catch (t3) {
283
- console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
283
+ } catch (e4) {
284
284
  }
285
- A.printLabel(e3, t2);
285
+ O.printLabel(e3, t2);
286
286
  }(e2);
287
287
  }, queryCharts: function(e2) {
288
- W(e2);
288
+ q(e2);
289
289
  }, resetCharts: function(t2) {
290
290
  var _a, _b;
291
291
  const s2 = t2.pageContext;
292
- Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, W(t2);
292
+ Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, q(t2);
293
293
  }, exportCharts: function(e2) {
294
294
  !function(e3) {
295
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
296
- const t2 = e3.pageContext, s2 = t2.allChartUuids;
297
- if (!s2 || 0 == s2.length) return;
295
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
296
+ const s2 = e3.pageContext, n2 = s2.allChartUuids;
297
+ if (!n2 || 0 == n2.length) return;
298
298
  const o2 = e3.configureObj;
299
299
  let a2 = null;
300
300
  o2 && o2.runtime && (a2 = o2.runtime.props);
301
301
  const i2 = a2 ? a2.state : void 0;
302
302
  a2 && (a2.state = "disabled");
303
303
  const r2 = [];
304
- for (let e4 = 0; e4 < s2.length; e4++) {
305
- const n2 = s2[e4], o3 = b(t2, n2);
304
+ for (let e4 = 0; e4 < n2.length; e4++) {
305
+ const t2 = n2[e4], o3 = b(s2, t2);
306
306
  if (o3) {
307
307
  const e5 = o3.getConfigure();
308
308
  e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
309
309
  }
310
310
  }
311
311
  if (!r2 || 0 == r2.length) return;
312
- let c2, u2 = t2.label;
313
- u2 || (u2 = t2.code);
312
+ let c2, u2 = s2.label;
313
+ u2 || (u2 = s2.code);
314
314
  c2 = u2;
315
- const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ce(t2);
316
- 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("-~") : "";
317
- const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
318
- B();
319
- w.post(m2, l2, { responseType: "blob" }).then((e4) => {
320
- const t3 = document.createElement("a");
321
- t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
315
+ const l2 = { reportDataList: r2, beanName: s2.beanName, systemCode: s2.systemCode, pageCode: s2.code }, p2 = fe(s2);
316
+ l2.additionalParamMap = p2;
317
+ const d2 = (_b = (_a = o2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
318
+ d2 && (l2.currentOperation = d2);
319
+ l2.isMobile = D(), l2.isShowWatermark = void 0 === ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = o2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", l2.watermark = ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = o2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
320
+ const m2 = s2.backendUrl, f2 = t(m2, s2.isTest) + "/dsc/commons/exportChart";
321
+ G();
322
+ T.post(f2, l2, { responseType: "blob" }).then((e4) => {
323
+ const t2 = document.createElement("a");
324
+ t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
322
325
  }).finally(() => {
323
326
  a2 && (a2.state = i2);
324
327
  });
@@ -326,135 +329,142 @@ const D = { save: function(e2) {
326
329
  }, saveQueryCharts: function(e2) {
327
330
  !function(e3) {
328
331
  const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
329
- T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
332
+ w.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
330
333
  }(e2);
331
334
  }, addTransactor: function(e2) {
332
335
  return function(e3) {
333
336
  const t2 = e3.pageContext, s2 = t2.code + "_";
334
- T.$emit(s2 + "add-transactor", e3);
337
+ w.$emit(s2 + "add-transactor", e3);
335
338
  }(e2);
336
339
  }, removeTransactor: function(e2) {
337
340
  return function(e3) {
338
341
  const t2 = e3.pageContext, s2 = t2.code + "_";
339
- T.$emit(s2 + "remove-transactor", e3);
342
+ w.$emit(s2 + "remove-transactor", e3);
340
343
  }(e2);
341
344
  } };
342
- function W(e2) {
345
+ function q(e2) {
343
346
  const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
344
347
  if (!s2 || 0 == s2.length) return;
345
348
  const n2 = e2.configureObj;
346
349
  let o2 = null;
347
350
  n2 && n2.runtime && (o2 = n2.runtime.props);
348
351
  const a2 = o2 ? o2.state : void 0;
349
- o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
352
+ o2 && (o2.state = "disabled"), I(t2, s2, void 0, e2.isInitChart).then(() => {
350
353
  o2 && (o2.state = a2);
351
354
  }).catch(() => {
352
355
  o2 && (o2.state = a2);
353
356
  });
354
357
  }
355
- function L(e2, s2, o2, a2) {
356
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
358
+ function H(e2, s2, o2, a2) {
359
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
357
360
  e2.clickUuid = s2.uuid, e2.canClick = false;
358
- 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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: R(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
361
+ const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = n(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
359
362
  u2 && (b2.logSettingText = u2.join(""));
360
- const T2 = ce(e2);
363
+ const w2 = (_c = (_b = s2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
364
+ w2 && (b2.currentOperation = w2), b2.isMobile = D();
365
+ const y2 = fe(e2);
361
366
  let k2;
362
- b2.additionalParamMap = T2, b2.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) + "", b2.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("-~") : "", k2 = a2 ? function(e3, t2, s3, o3) {
367
+ b2.additionalParamMap = y2, b2.isShowWatermark = void 0 === ((_e2 = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = s2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", k2 = a2 ? function(e3, s3, n2, o3) {
363
368
  return new Promise((a3, i3) => {
364
- const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
365
- B();
366
- const c3 = w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" });
367
- window.$message.info("正在导出中..."), c3.then((t3) => {
368
- const s4 = new Blob([t3.data]), n2 = document.createElement("a");
369
- n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), a3(true);
369
+ const r3 = t(s3, o3) + "/dsc/commons/export-pdf";
370
+ G();
371
+ const c3 = T.post(r3, n2, { headers: { "content-type": "application/json" }, responseType: "blob" });
372
+ window.$message.info("正在导出中..."), c3.then((t2) => {
373
+ const s4 = new Blob([t2.data]), n3 = document.createElement("a");
374
+ n3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n3.style.display = "none", n3.target = "_blank", n3.href = URL.createObjectURL(s4), document.body.appendChild(n3), n3.click(), URL.revokeObjectURL(n3.href), document.body.removeChild(n3), a3(true);
370
375
  }).catch((e4) => {
371
376
  i3(e4);
372
377
  });
373
378
  });
374
- }(r2, f2, b2, e2.isTest) : function(e3, t2, s3, o3) {
379
+ }(r2, f2, b2, e2.isTest) : function(e3, s3, n2, o3) {
375
380
  return new Promise((a3, i3) => {
376
- const r3 = n(t2, o3) + "/dsc/commons/export-reports";
377
- B();
378
- w.post(r3, s3, { responseType: "blob" }).then((t3) => {
379
- const s4 = new Blob([t3.data]);
380
- let n2 = "报告.xlsx";
381
- e3 && (n2 = e3);
381
+ const r3 = t(s3, o3) + "/dsc/commons/export-reports";
382
+ G();
383
+ T.post(r3, n2, { responseType: "blob" }).then((t2) => {
384
+ const s4 = new Blob([t2.data]);
385
+ let n3 = "报告.xlsx";
386
+ e3 && (n3 = e3);
382
387
  const o4 = document.createElement("a");
383
- o4.download = n2, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4), a3(true);
388
+ o4.download = n3, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4), a3(true);
384
389
  }).catch((e4) => {
385
390
  i3(e4);
386
391
  });
387
392
  });
388
393
  }(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
389
- y(e2, s2);
394
+ h(e2, s2);
390
395
  }).catch((t2) => {
391
- window.$message.error("导出失败..."), y(e2, s2);
396
+ window.$message.error("导出失败..."), h(e2, s2);
392
397
  });
393
398
  }
394
- function B() {
395
- w.defaults.headers.common.Authorization = m();
396
- const e2 = g();
399
+ function G() {
400
+ T.defaults.headers.common.Authorization = m();
401
+ const e2 = C();
397
402
  if (e2) {
398
403
  const t2 = "_RUN_CURRENT_ROLE";
399
- w.defaults.headers.common[t2] = e2;
404
+ T.defaults.headers.common[t2] = e2;
400
405
  }
401
406
  }
402
- function F(e2, t2) {
407
+ function J(e2, t2) {
403
408
  return new Promise((s2, n2) => {
404
409
  const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
405
410
  let u2 = false;
406
- c2 && "noOperation" === c2 && (u2 = true);
407
- const l2 = q(o2, a2, "/dsc/commons", u2, i2, r2);
411
+ c2 && "noOperation" === c2 && (u2 = true), W(o2.code, o2.entity.data);
412
+ const l2 = K(o2, a2, "/dsc/commons", u2, i2, r2);
408
413
  l2 ? l2.then((e3) => {
409
- H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
414
+ X(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
410
415
  }).catch((e3) => {
411
416
  n2(e3);
412
- }) : n2("保存时request不存在");
417
+ }).finally(() => {
418
+ L(o2.code, o2.entity.data);
419
+ }) : (L(o2.code, o2.entity.data), n2("保存时request不存在"));
413
420
  });
414
421
  }
415
- function V(e2, n2, o2, a2, i2, r2, c2) {
416
- var _a;
417
- const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = R(n2, e2);
422
+ function Y(e2, t2, s2, a2, i2, r2, c2) {
423
+ var _a, _b, _c;
424
+ const u2 = n(e2), l2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = S(t2, e2);
418
425
  let m2 = c2;
419
426
  m2 || (m2 = e2.entity.data);
420
427
  const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
421
- r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
422
- const g2 = n2.props.base.conversionCodes;
423
- g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
424
- const C2 = Re(n2);
428
+ r2 && (f2.ids = r2), e2.judgeHeavyList && (o(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
429
+ const g2 = t2.props.base.conversionCodes;
430
+ g2 && (o(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
431
+ const C2 = Ae(t2);
425
432
  C2 && (f2.autoSetValueData = C2);
426
- const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
433
+ const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
427
434
  b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
428
- const T2 = e2.beanName;
429
- T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
430
- const w2 = ce(e2);
431
- return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
435
+ const w2 = e2.beanName;
436
+ w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
437
+ const T2 = fe(e2);
438
+ f2.additionalParamMap = T2, void 0 !== s2 && (f2.unControlVersion = s2);
439
+ const y2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
440
+ return y2 && (f2.currentOperation = y2), f2.isMobile = D(), f2;
432
441
  }
433
- function $(e2, t2, s2, a2, i2, r2, u2, l2) {
434
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
435
- return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
436
- const u3 = n(t3, r3);
442
+ function z(e2, n2, o2, a2, i2, r2, u2, l2) {
443
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Y(e2, n2, a2, i2, r2, null, u2);
444
+ return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, n3, o3, a3, i3, r3) {
445
+ const u3 = t(n3, r3);
437
446
  let l3, p3 = u3 + a3;
438
- p3 = o(p3, e3, t3, r3), l3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
447
+ p3 = s(p3, e3, n3, r3), l3 = i3 && (i3.id || i3.ID) ? c.put(p3, o3) : c.post(p3, o3);
439
448
  return l3;
440
- }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
449
+ }(p2, d2, m2, o2, e2.entity.data, e2.isTest);
441
450
  }
442
- function q(e2, t2, s2, n2, o2, a2) {
443
- return $(e2, t2, s2, n2, o2, a2, null, null);
451
+ function K(e2, t2, s2, n2, o2, a2) {
452
+ return z(e2, t2, s2, n2, o2, a2, null, null);
444
453
  }
445
- function H(t2, s2, n2, o2, a2) {
446
- const i2 = G(t2, s2, a2);
454
+ function X(t2, s2, n2, o2, a2) {
455
+ const i2 = Q(t2, s2, a2);
447
456
  if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
448
457
  let a3 = s3.props.base.successOperation;
449
- const i3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
450
- a3 || K.includes(s3.name) || (a3 = "refresh");
451
- if ("refresh" === a3) if (r2) {
452
- b(t3, r2).refresh();
453
- } else console.error("tableUuid is empty");
454
- else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
458
+ const i3 = s3.props.base.isNeedValueMapping, r2 = k(t3, s3);
459
+ a3 || se.includes(s3.name) || (a3 = "refresh");
460
+ if ("refresh" === a3) {
461
+ if (r2) {
462
+ b(t3, r2).refresh();
463
+ }
464
+ } else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
455
465
  const o4 = e(t3.entity.page);
456
466
  let a4 = n3;
457
- a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
467
+ a4 || (a4 = {}), Object.assign(o4, a4), ee(t3, s3, o4, i3);
458
468
  }
459
469
  o3 && l({ message: u().t(o3), type: "success", showClose: true });
460
470
  }(t2, s2, n2, o2), t2.canClick = true;
@@ -463,39 +473,39 @@ function H(t2, s2, n2, o2, a2) {
463
473
  const n4 = s3;
464
474
  let o3;
465
475
  o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
466
- J(e2, t3, { ...o3, ...e2.entity.page });
476
+ Z(e2, t3, { ...o3, ...e2.entity.page });
467
477
  } else {
468
478
  const s4 = t3.props.base.successOperation;
469
479
  if (s4 && null !== s4) {
470
- J(e2, t3, { ...e2.entity.page });
480
+ Z(e2, t3, { ...e2.entity.page });
471
481
  } else e2.canClick = true;
472
482
  }
473
483
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
474
484
  }(t2, s2, n2, o2);
475
485
  else {
476
486
  const e2 = s2.props.base.successOperation;
477
- e2 && null !== e2 ? J(t2, s2, null) : t2.canClick = true;
487
+ e2 && null !== e2 ? Z(t2, s2, null) : t2.canClick = true;
478
488
  }
479
489
  }
480
- function G(e2, t2, s2) {
490
+ function Q(e2, t2, s2) {
481
491
  let n2;
482
492
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
483
493
  }
484
- function J(e2, t2, s2) {
494
+ function Z(e2, t2, s2) {
485
495
  const n2 = t2.props.base.successOperation;
486
496
  if (!n2 || null === n2) return;
487
497
  const o2 = t2.props.base.isNeedValueMapping;
488
- "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? he(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
498
+ "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? Ie(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (ee(e2, t2, s2, o2), e2.canClick = true);
489
499
  }
490
- function Y(e2, t2, s2, n2) {
500
+ function ee(e2, t2, s2, n2) {
491
501
  const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
492
502
  if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
493
503
  else {
494
504
  const a2 = e2.tableName, i2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
495
- T.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
505
+ w.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
496
506
  }
497
507
  }
498
- function z(e2, t2, s2, n2, o2) {
508
+ function te(e2, t2, s2, n2, o2) {
499
509
  var _a;
500
510
  o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
501
511
  const a2 = e2.tableName;
@@ -509,45 +519,45 @@ function z(e2, t2, s2, n2, o2) {
509
519
  x(s3.entity, r2, a3);
510
520
  });
511
521
  }
512
- }(s2, o2, e2), k(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
522
+ }(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
513
523
  }
514
- const K = ["dropdown"];
515
- function X(e2, t2, s2, n2) {
524
+ const se = ["dropdown"];
525
+ function ne(e2, t2, s2, n2) {
516
526
  var _a;
517
527
  t2 && !t2.props.base && (t2.props.base = {});
518
528
  let o2 = n2;
519
529
  o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
520
- const a2 = G(e2, t2);
530
+ const a2 = Q(e2, t2);
521
531
  if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
522
532
  if (a2 && "list" === a2) {
523
- const s3 = h(e2, t2);
533
+ const s3 = k(e2, t2);
524
534
  if (s3) {
525
535
  b(e2, s3).refresh();
526
- } else console.error("tableUuid is empty");
536
+ }
527
537
  } else if (a2 && "form" === a2) {
528
538
  const t3 = e2.entity.data;
529
- he(e2, t3.ID ? t3.ID : t3.id);
539
+ Ie(e2, t3.ID ? t3.ID : t3.id);
530
540
  }
531
541
  }
532
542
  }
533
- function Q(e2, t2, s2, a2) {
543
+ function oe(e2, n2, o2, a2) {
534
544
  return new Promise((r2, l2) => {
535
545
  const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
536
- let T2 = false;
537
- b2 && "noOperation" === b2 && (T2 = true);
538
- let w2 = d2.tableName;
539
- if (t2) {
540
- const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
541
- w2 = E(d2, t3);
542
- }
543
- const k2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
546
+ let w2 = false;
547
+ b2 && "noOperation" === b2 && (w2 = true);
548
+ let T2 = d2.tableName;
549
+ if (n2) {
550
+ const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
551
+ T2 = A(d2, t2);
552
+ } else W(d2.code, d2.entity.data);
553
+ const y2 = function(e3, n3, o3, a3, r3, l3, d3, m3, f3) {
544
554
  return new Promise((g3, C3) => {
545
- const b3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
546
- p.confirm(u().t(T3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
547
- const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
555
+ const b3 = n3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
556
+ p.confirm(u().t(w3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
557
+ const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = Y(e3, n3, a3, r3, l3, m3, null);
548
558
  p2.tableName = f3;
549
- let d4 = n(u2, e3.isTest) + s3;
550
- d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
559
+ let d4 = t(u2, e3.isTest) + o3;
560
+ d4 = s(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
551
561
  g3(e4);
552
562
  }).catch((e4) => {
553
563
  C3(e4);
@@ -556,52 +566,56 @@ function Q(e2, t2, s2, a2) {
556
566
  C3("点击了取消按钮");
557
567
  });
558
568
  });
559
- }(d2, m2, a2, T2, f2, g2, s2, C2, w2);
560
- k2 ? k2.then((e3) => {
561
- H(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
569
+ }(d2, m2, a2, w2, f2, g2, o2, C2, T2);
570
+ y2 ? y2.then((e3) => {
571
+ X(d2, m2, e3, "superPageRuntimeMessage.successfulSave", n2), r2(e3);
562
572
  }).catch((e3) => {
563
573
  l2(e3);
564
- }) : l2("request不存在");
574
+ }).finally(() => {
575
+ n2 || L(d2.code, d2.entity.data);
576
+ }) : (n2 || L(d2.code, d2.entity.data), l2("request不存在"));
565
577
  });
566
578
  }
567
- function Z(e2, s2) {
568
- var _a;
569
- 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 = E(a2, d2), f2 = new FormData();
570
- f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
571
- const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
572
- g2 && f2.append("importDuplicateRule", g2);
573
- const C2 = a2.judgeHeavyList;
574
- C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
575
- const b2 = Re(i2);
576
- b2 && f2.append("autoSetValueData", b2);
579
+ function ae(e2, o2) {
580
+ var _a, _b, _c;
581
+ 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();
582
+ f2.append("multipartFile", o2), m2 && f2.append("tableName", m2);
583
+ const g2 = (_b = (_a = i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
584
+ g2 && f2.append("currentOperation", g2), f2.append("isMobile", D()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
585
+ const C2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
586
+ C2 && f2.append("importDuplicateRule", C2);
587
+ const b2 = a2.judgeHeavyList;
588
+ b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
589
+ const w2 = Ae(i2);
590
+ w2 && f2.append("autoSetValueData", w2);
577
591
  const T2 = a2.formNoRuleCode;
578
592
  T2 && f2.append("formNoRuleCode", T2);
579
- const w2 = e2.listCode;
580
- w2 && f2.append("listCode", w2);
593
+ const y2 = e2.listCode;
594
+ y2 && f2.append("listCode", y2);
581
595
  let k2 = false;
582
596
  k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
583
- const h2 = t(a2);
584
- null != h2 && f2.append("isWorkflowEntity", h2 + "");
585
- const P2 = R(i2, a2);
586
- P2 && f2.append("functionCode", P2);
587
- const S2 = ce(a2);
588
- f2.append("additionalParamMapStr", JSON.stringify(S2));
589
- const v2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
590
- f2.append("isPermission", v2 + "");
591
- const M2 = a2.systemCode;
592
- M2 && f2.append("systemCode", M2);
593
- const I2 = a2.backendUrl;
594
- let N2 = n(I2, a2.isTest) + "/dsc/commons/import-data";
595
- N2 = o(N2, M2, I2, a2.isTest), c.post(N2, f2).then((e3) => {
597
+ const P2 = n(a2);
598
+ null != P2 && f2.append("isWorkflowEntity", P2 + "");
599
+ const R2 = S(i2, a2);
600
+ R2 && f2.append("functionCode", R2);
601
+ const v2 = fe(a2);
602
+ f2.append("additionalParamMapStr", JSON.stringify(v2));
603
+ const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
604
+ f2.append("isPermission", M2 + "");
605
+ const I2 = a2.systemCode;
606
+ I2 && f2.append("systemCode", I2);
607
+ const N2 = a2.backendUrl;
608
+ let x2 = t(N2, a2.isTest) + "/dsc/commons/import-data";
609
+ x2 = s(x2, I2, N2, a2.isTest), c.post(x2, f2).then((e3) => {
596
610
  if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
597
611
  else {
598
612
  let t2 = false;
599
- e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2, y(a2, i2);
613
+ e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), X(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
600
614
  }
601
615
  }).catch((e3) => {
602
616
  });
603
617
  }
604
- function ee(e2, t2) {
618
+ function ie(e2, t2) {
605
619
  const s2 = e2.props.base;
606
620
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
607
621
  if ("one" === s2.conditionsForExecution) {
@@ -610,31 +624,33 @@ function ee(e2, t2) {
610
624
  }
611
625
  return true;
612
626
  }
613
- function te(e2) {
614
- var _a;
615
- const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
616
- let r2 = R(n2, t2);
617
- r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
618
- const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
619
- 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);
620
- const u2 = n2.props.base.conversionCodes;
621
- u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
622
- const l2 = Re(n2);
627
+ function re(e2) {
628
+ var _a, _b, _c;
629
+ const t2 = e2.pageContext, s2 = e2.configureObj, n2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
630
+ let r2 = S(s2, t2);
631
+ r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.PAGE_CODE = t2.code, n2.PAGE_VERSION = t2.version);
632
+ const c2 = { entity: n2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
633
+ t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (o(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
634
+ const u2 = s2.props.base.conversionCodes;
635
+ u2 && (o(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
636
+ const l2 = Ae(s2);
623
637
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
624
- const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
638
+ const p2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
625
639
  p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
626
- const d2 = ce(t2);
627
- 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参数类型错误"));
628
- const m2 = n2.props.base.successOperation;
629
- return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
640
+ const d2 = fe(t2);
641
+ 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]));
642
+ const m2 = s2.props.base.successOperation;
643
+ m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
644
+ const f2 = (_c = (_b = s2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
645
+ return f2 && (c2.currentOperation = f2), c2.isMobile = D(), c2;
630
646
  }
631
- function se(e2, t2, s2, n2, o2) {
647
+ function ce(e2, t2, s2, n2, o2) {
632
648
  const a2 = s2.code, i2 = s2.version;
633
649
  let r2;
634
650
  if (e2) {
635
651
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
636
- const s3 = ce(t3);
637
- e3 && s3 && C(s3._t_ + "_id", e3);
652
+ const s3 = fe(t3);
653
+ e3 && s3 && g(s3._t_ + "_id", e3);
638
654
  }(e2.entity.id || e2.entity.ID, s2));
639
655
  const o3 = e2.completeTaskResult;
640
656
  if (o3) {
@@ -650,58 +666,61 @@ function se(e2, t2, s2, n2, o2) {
650
666
  }
651
667
  s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
652
668
  }
653
- return n2 && (n2.operationResult = o2), t2 || H(s2, n2.configureObj, e2, null, false), true;
669
+ return n2 && (n2.operationResult = o2), t2 || X(s2, n2.configureObj, e2, null, false), true;
654
670
  }
655
- async function ne(e2, t2) {
656
- const s2 = await oe(e2);
671
+ async function ue(e2, n2) {
672
+ const o2 = await le(e2);
657
673
  return new Promise((a2, i2) => {
658
674
  var _a;
659
- if (s2) {
660
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
661
- let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
662
- if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
663
- const g2 = te(e2);
664
- g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
665
- c.post(f2, g2).then((s3) => {
666
- let n2 = true;
667
- s3 && (n2 = se(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
675
+ if (o2) {
676
+ const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === o2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : o2;
677
+ let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
678
+ if (f2 = s(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
679
+ const g2 = re(e2);
680
+ g2.completeTaskParam = { operationResult: n2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
681
+ const C2 = c.post(f2, g2);
682
+ W(r2.code, r2.entity.data), C2.then((t2) => {
683
+ let s2 = true;
684
+ t2 && (s2 = ce(t2, false, r2, e2, n2)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
668
685
  }).catch((e3) => {
669
686
  i2(e3);
687
+ }).finally(() => {
688
+ L(r2.code, r2.entity.data);
670
689
  });
671
690
  } else a2(true);
672
691
  });
673
692
  }
674
- function oe(e2) {
693
+ function le(e2) {
675
694
  return new Promise((t2, s2) => {
676
- var _a, _b, _c, _d;
695
+ var _a, _b, _c, _d, _e2;
677
696
  const n2 = e2.configureObj;
678
697
  if (n2) {
698
+ if ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.opinion) return void t2(e2.pageContext.workflowOpinion.opinion);
679
699
  let s3 = false;
680
- if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
681
- const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
682
- s3 = I(t3, o2);
700
+ if (((_c = (_b = n2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (s3 = true), true === s3) {
701
+ const t3 = e2.pageContext, o2 = (_e2 = (_d = n2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
702
+ s3 = M(t3, o2);
683
703
  }
684
- 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 }) => {
685
- t2(e3);
686
- }).catch(() => {
687
- t2(false);
688
- }) : t2(true);
704
+ true === s3 ? (l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
689
705
  } else t2(true);
690
706
  });
691
707
  }
692
- function ae(e2, t2) {
693
- if (t2) {
694
- 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 = te(e2);
695
- c2.assigneeId = r2, de(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
696
- y(s2, o2);
708
+ function pe(e2, s2) {
709
+ if (s2) {
710
+ const n2 = e2.pageContext, o2 = e2.configureObj, a2 = n2.backendUrl, i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/assigns", r2 = s2.id ? s2.id : s2.ID ? s2.ID : null, c2 = re(e2);
711
+ c2.assigneeId = r2, we(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
712
+ h(n2, o2);
697
713
  });
698
714
  }
699
715
  }
700
- function ie(e2) {
701
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ce(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, listCodesInitSearchForm: t2.listCodesInitSearchForm };
702
- return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2.completeTaskParam.customTaskTitle = re(e2), r2;
716
+ function de(e2) {
717
+ var _a, _b;
718
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = e2.configureObj, i2 = fe(t2), r2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, c2 = { beanName: t2.beanName, id: r2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
719
+ c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, c2.completeTaskParam.customTaskTitle = me(e2);
720
+ const u2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
721
+ return u2 && (c2.currentOperation = u2), c2.isMobile = D(), c2;
703
722
  }
704
- function re(e2) {
723
+ function me(e2) {
705
724
  var _a, _b, _c;
706
725
  let t2 = null;
707
726
  if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let s2 = 0; s2 < e2.configureObj.props.task.title.length; s2++) {
@@ -711,7 +730,7 @@ function re(e2) {
711
730
  t2 = n2.config;
712
731
  break;
713
732
  }
714
- if (I(e2.pageContext, n2.conditions)) {
733
+ if (M(e2.pageContext, n2.conditions)) {
715
734
  t2 = n2.config;
716
735
  break;
717
736
  }
@@ -719,7 +738,7 @@ function re(e2) {
719
738
  }
720
739
  return t2;
721
740
  }
722
- function ce(t2) {
741
+ function fe(t2) {
723
742
  if (t2.entity) {
724
743
  let s2 = e(t2.entity.page);
725
744
  s2 || (s2 = {});
@@ -727,68 +746,68 @@ function ce(t2) {
727
746
  return n2 && Object.assign(s2, n2), s2;
728
747
  }
729
748
  }
730
- function ue(e2, t2) {
731
- if (t2) {
732
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
733
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
734
- if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
735
- const d2 = ie(e2);
736
- d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
749
+ function ge(e2, n2) {
750
+ if (n2) {
751
+ const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
752
+ let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-signers";
753
+ if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
754
+ const d2 = de(e2);
755
+ d2.completeTaskParam.transactors = n2.loginNames.join(",").split(",");
737
756
  const m2 = c.post(p2, d2);
738
757
  m2 && m2.then((e3) => {
739
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
758
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && X(o2, a2, e3, null, false), h(o2, a2);
740
759
  });
741
760
  }
742
761
  }
743
- function le(e2, t2) {
744
- if (t2) {
745
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
746
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
747
- if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
748
- const d2 = ie(e2);
749
- d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
762
+ function Ce(e2, n2) {
763
+ if (n2) {
764
+ const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
765
+ let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-transactors";
766
+ if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
767
+ const d2 = de(e2);
768
+ d2.completeTaskParam.transactors = n2.loginNames.join(",").split(",");
750
769
  const m2 = c.post(p2, d2);
751
770
  m2 && m2.then((e3) => {
752
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
771
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && X(o2, a2, e3, null, false), h(o2, a2);
753
772
  });
754
773
  }
755
774
  }
756
- async function pe(e2, t2) {
757
- if (t2) {
758
- const s2 = await function(e3) {
759
- return new Promise((t3, s3) => {
775
+ async function be(e2, n2) {
776
+ if (n2) {
777
+ const o2 = await function(e3) {
778
+ return new Promise((t2, s2) => {
760
779
  var _a, _b, _c, _d;
761
- const n2 = e3.configureObj;
762
- if (n2) {
763
- let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
764
- if (void 0 === s4 || true === s4) {
765
- s4 = true;
766
- const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
767
- s4 = I(t4, o2);
780
+ const n3 = e3.configureObj;
781
+ if (n3) {
782
+ let s3 = (_b = (_a = n3.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
783
+ if (void 0 === s3 || true === s3) {
784
+ s3 = true;
785
+ const t3 = e3.pageContext, o3 = (_d = (_c = n3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
786
+ s3 = M(t3, o3);
768
787
  }
769
- 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 }) => {
770
- t3(e4);
788
+ true === s3 ? 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 }) => {
789
+ t2(e4);
771
790
  }).catch(() => {
772
- t3(false);
773
- }) : t3(true);
774
- } else t3(true);
791
+ t2(false);
792
+ }) : t2(true);
793
+ } else t2(true);
775
794
  });
776
795
  }(e2);
777
- if (s2) {
796
+ if (o2) {
778
797
  const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
779
- let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
780
- if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
781
- const m2 = ie(e2);
782
- m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
798
+ let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
799
+ if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
800
+ const m2 = de(e2);
801
+ m2.completeTaskParam.transactors = n2.loginNames.join(",").split(","), true !== o2 && (m2.completeTaskParam.remark = o2);
783
802
  const f2 = c.post(d2, m2);
784
803
  f2 && f2.then((e3) => {
785
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), y(a2, i2);
804
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(a2, i2);
786
805
  });
787
806
  }
788
807
  }
789
808
  }
790
- async function de(e2, t2, s2, n2) {
791
- const a2 = await oe(e2);
809
+ async function we(e2, t2, n2, o2) {
810
+ const a2 = await le(e2);
792
811
  return new Promise((i2, r2) => {
793
812
  var _a;
794
813
  if (a2) {
@@ -797,239 +816,277 @@ async function de(e2, t2, s2, n2) {
797
816
  const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
798
817
  t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
799
818
  }
800
- if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
801
- const f2 = c.post(s2, t2);
819
+ if (!(n2 = s(n2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
820
+ const f2 = c.post(n2, t2);
802
821
  f2 && f2.then((t3) => {
803
- let s3 = true;
804
- t3 && (s3 = se(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
822
+ let s2 = true;
823
+ t3 && (s2 = ce(t3, false, p2, e2, null)), true === s2 && l({ showClose: true, type: "success", message: u().t(o2) }), i2(true);
805
824
  }).catch((e3) => {
806
825
  r2(e3);
807
826
  });
808
827
  } else i2(true);
809
828
  });
810
829
  }
811
- function me(e2) {
812
- const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
813
- let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
814
- if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
815
- const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx", pageCode: t2.code };
830
+ function Te(e2) {
831
+ const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl, i2 = n2.completeTaskParam;
832
+ let r2 = t(a2, n2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
833
+ if (r2 = s(r2, o2, a2, n2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
834
+ const p2 = n2.code, d2 = fe(n2), m2 = { beanName: n2.beanName, additionalParamMap: d2, tableName: n2.tableName, functionCode: p2 + ".xxx", pageCode: n2.code };
816
835
  return c.post(r2, m2);
817
836
  }
818
- function fe(e2, t2) {
819
- const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
820
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), de(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
821
- y(s2, o2);
837
+ function ye(e2, s2) {
838
+ const n2 = e2.pageContext, o2 = e2.configureObj, a2 = n2.backendUrl, i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = re(e2);
839
+ s2.nodeName && (r2.returnToNodeName = s2.nodeName), s2.nodeId && (r2.returnToNodeId = s2.nodeId), we(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
840
+ h(n2, o2);
822
841
  });
823
842
  }
824
- function ge(e2) {
825
- const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
826
- let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
827
- const r2 = te(e2);
828
- if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
843
+ function ke(e2) {
844
+ const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl;
845
+ let i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/get-remove-signers";
846
+ const r2 = re(e2);
847
+ if (i2 = s(i2, o2, a2, n2.isTest), i2) return c.post(i2, r2);
829
848
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
830
849
  }
831
- function Ce(e2, t2) {
832
- if (t2) {
833
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
834
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
835
- if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
836
- const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = te(e2);
850
+ function he(e2, n2) {
851
+ if (n2) {
852
+ const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
853
+ let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/remove-signers";
854
+ if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
855
+ const d2 = n2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = re(e2);
837
856
  m2.ids = d2;
838
857
  const f2 = c.post(p2, m2);
839
858
  f2 && f2.then((e3) => {
840
- H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
859
+ X(o2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(o2, a2);
841
860
  });
842
861
  }
843
862
  }
844
- function be(e2) {
845
- const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
846
- let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
847
- const r2 = te(e2);
848
- if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
863
+ function Pe(e2) {
864
+ const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl;
865
+ let i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
866
+ const r2 = re(e2);
867
+ if (i2 = s(i2, o2, a2, n2.isTest), i2) return c.post(i2, r2);
849
868
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
850
869
  }
851
- function Te(e2, t2) {
852
- if (t2) {
853
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
854
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
855
- if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
856
- const d2 = t2.map((e3) => e3.taskId), m2 = te(e2);
870
+ function Se(e2, n2) {
871
+ if (n2) {
872
+ const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
873
+ let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/remove-transactors";
874
+ if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
875
+ const d2 = n2.map((e3) => e3.taskId), m2 = re(e2);
857
876
  m2.ids = d2;
858
877
  const f2 = c.post(p2, m2);
859
878
  f2 && f2.then((e3) => {
860
- H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
879
+ X(o2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(o2, a2);
861
880
  });
862
881
  }
863
882
  }
864
- function we(e2, t2, s2, n2, o2) {
865
- let a2 = false;
866
- return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
883
+ function Re(e2) {
884
+ const n2 = e2.pageContext, o2 = n2.backendUrl;
885
+ let a2 = t(o2, n2.isTest) + "/dsc/workflow-commons/initiate-extract";
886
+ const i2 = re(e2);
887
+ if (n2.completeTaskParam) {
888
+ const t2 = [];
889
+ e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: n2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: me(e2) };
890
+ }
891
+ return new Promise((t2, n3) => {
892
+ const o3 = e2.pageContext, r2 = o3.systemCode, p2 = o3.backendUrl;
893
+ if (a2 = s(a2, r2, p2, o3.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
894
+ const d2 = c.post(a2, i2);
895
+ d2 && d2.then((s2) => {
896
+ let n4 = true;
897
+ s2 && (n4 = ce(s2, false, o3, e2, null)), true === n4 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
898
+ }).catch((e3) => {
899
+ n3(e3);
900
+ });
901
+ });
902
+ }
903
+ function ve(e2, t2, s2, n2, o2, a2) {
904
+ var _a, _b, _c, _d;
905
+ let i2 = false;
906
+ if (n2 && n2.archival) return i2;
907
+ t2 && s2 && ("workflowSave" === t2 ? i2 = function(e3) {
867
908
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
868
909
  if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "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;
869
910
  return false;
870
- }(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
911
+ }(s2) : "workflowStart" === t2 ? i2 = function(e3, t3) {
871
912
  if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
872
913
  return false;
873
- }(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
914
+ }(s2, a2) : "submitProcess" === t2 ? i2 = function(e3) {
874
915
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
875
916
  return false;
876
- }(t2) : "submitTask" === e2 ? a2 = function(e3) {
917
+ }(s2) : "submitTask" === t2 ? i2 = function(e3) {
877
918
  if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
878
919
  return false;
879
- }(t2) : "drawTask" === e2 ? a2 = function(e3) {
920
+ }(s2) : "drawTask" === t2 ? i2 = function(e3) {
880
921
  if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
881
922
  return false;
882
- }(t2) : "abandonReceive" === e2 ? a2 = function(e3) {
923
+ }(s2) : "abandonReceive" === t2 ? i2 = function(e3) {
883
924
  if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
884
925
  return false;
885
- }(t2) : "approve" === e2 || "refuse" === e2 ? a2 = function(e3) {
926
+ }(s2) : "approve" === t2 || "refuse" === t2 ? i2 = function(e3) {
886
927
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
887
928
  return false;
888
- }(t2) : "readed" === e2 ? a2 = function(e3) {
929
+ }(s2) : "readed" === t2 ? i2 = function(e3) {
889
930
  if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
890
931
  return false;
891
- }(t2) : "assign" === e2 ? a2 = function(e3) {
932
+ }(s2) : "assign" === t2 ? i2 = function(e3) {
892
933
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
893
934
  return false;
894
- }(t2) : "copyTask" === e2 ? a2 = function(e3, t3) {
935
+ }(s2) : "copyTask" === t2 ? i2 = function(e3, t3) {
895
936
  let s3 = false;
896
937
  e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
897
938
  t3 && (t3.props.base.state = s3 ? "" : "hidden");
898
939
  return true;
899
- }(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
940
+ }(s2, o2) : "addSigner" === t2 ? i2 = function(e3) {
900
941
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
901
942
  return false;
902
- }(t2) : "removeSigner" === e2 ? a2 = function(e3) {
943
+ }(s2) : "removeSigner" === t2 ? i2 = function(e3) {
903
944
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
904
945
  return false;
905
- }(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
906
- if (e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
946
+ }(s2) : "retrieveTask" === t2 ? i2 = function(e3) {
947
+ if (e3.processState && "END" !== e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
907
948
  if ("COMPLETED" !== e4.active) return false;
908
949
  if ("TYPE_READ" === e4.processingMode) return false;
909
950
  if (!e4.showButtonGetBack) return false;
910
951
  return true;
911
952
  }(e3)) return true;
912
953
  return false;
913
- }(t2) : "agreement" === e2 || "oppose" === e2 ? a2 = function(e3) {
954
+ }(s2) : "agreement" === t2 || "oppose" === t2 ? i2 = function(e3) {
914
955
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
915
956
  return false;
916
- }(t2) : "kiken" === e2 ? a2 = function(e3) {
957
+ }(s2) : "kiken" === t2 ? i2 = function(e3) {
917
958
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
918
959
  return false;
919
- }(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
920
- var _a;
960
+ }(s2) : "extractWorkflow" === t2 ? i2 = function(e3, t3, s3) {
961
+ var _a2;
921
962
  const n3 = d(), o3 = n3 ? n3.loginName : null;
922
963
  if (e3 == null ? void 0 : e3.processState) {
923
- if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
964
+ if (((_a2 = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a2.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
924
965
  if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
925
966
  }
926
967
  return false;
927
- }(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
968
+ }(s2, n2, a2) : "cancelExtractWorkflow" === t2 ? i2 = function(e3, t3, s3) {
928
969
  const n3 = d(), o3 = n3 ? n3.loginName : null;
929
970
  if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
930
971
  return false;
931
- }(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = ke(t2) : "addTransactor" === e2 || "removeTransactor" === e2 ? a2 = function(e3) {
972
+ }(s2, 0, a2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? i2 = Me(s2) : "addTransactor" === t2 || "removeTransactor" === t2 ? i2 = function(e3) {
932
973
  if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
933
974
  return false;
934
- }(t2) : function(e3, t3) {
975
+ }(s2) : function(e3, t3) {
935
976
  return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
936
977
  const t4 = e4;
937
978
  let s3 = true;
938
979
  t4 && (s3 = t4.taskComplete);
939
980
  return s3;
940
981
  }(t3);
941
- }(t2, s2) && (a2 = "returnToPreviousTask" !== e2 || function(e3) {
982
+ }(s2, n2) && (i2 = "returnToPreviousTask" !== t2 || function(e3) {
942
983
  if (e3.rebuttable) return true;
943
984
  return false;
944
- }(t2))), a2;
985
+ }(s2)));
986
+ if (-1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask"].indexOf(t2) && i2 && e2) {
987
+ e2.workflowOpinion ? e2.workflowOpinion.showOpinionBox = true : e2.workflowOpinion = { showOpinionBox: true };
988
+ let t3 = false;
989
+ if ((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) {
990
+ if (t3 = true, true === t3) {
991
+ const s3 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
992
+ t3 = M(e2, s3);
993
+ }
994
+ e2.workflowOpinion.isRequired = t3;
995
+ }
996
+ }
997
+ return i2;
945
998
  }
946
- function ke(e2, t2, s2) {
999
+ function Me(e2, t2, s2) {
947
1000
  return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
948
1001
  }
949
- function he(e2, t2) {
950
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ye(e2, t2).then((t3) => {
1002
+ function Ie(e2, t2) {
1003
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Ne(e2, t2).then((t3) => {
951
1004
  e2.isRefresh = true;
952
1005
  });
953
1006
  }
954
- function ye(e2, s2, o2) {
1007
+ function Ne(e2, s2, o2) {
955
1008
  const a2 = e2.pageType;
956
1009
  if (a2 && "form" === a2) {
957
1010
  e2.canClick = false;
958
- return t(e2) ? function(e3, t2, s3) {
1011
+ return n(e2) ? function(e3, s3, n2) {
959
1012
  return new Promise((o3, a3) => {
960
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ce(e3);
961
- let d2 = t2 || null, m2 = t2 ? [t2] : null;
962
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1013
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = fe(e3);
1014
+ let d2 = s3 || null, m2 = s3 ? [s3] : null;
1015
+ void 0 === n2 || n2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
963
1016
  const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
964
- if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
965
- const t3 = {};
1017
+ if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1018
+ const t2 = {};
966
1019
  e3.tableUuids.forEach((e4) => {
967
1020
  const s4 = r(u2, l2, e4);
968
- t3[s4] = s4;
969
- }), b2.listCodesMap = t3;
1021
+ t2[s4] = s4;
1022
+ }), b2.listCodesMap = t2;
970
1023
  }
971
- m2 && (b2.ids = Pe(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
972
- const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
973
- w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
974
- e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
1024
+ m2 && (b2.ids = Oe(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
1025
+ const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = j();
1026
+ T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1027
+ const k2 = B(e3.code, b2.id);
1028
+ c.post(w2, b2).then(async (t2) => {
1029
+ k2 && await xe(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, ce(t2, true, e3), e3.workflowRules = E(e3);
975
1030
  const s4 = e3.pageType;
976
1031
  s4 && "form" === s4 && function(e4) {
977
1032
  (function(e5) {
978
- const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
1033
+ const t3 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
979
1034
  if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
980
- const n2 = s5[e6].name;
981
- if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
982
- const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
983
- if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: true }]);
1035
+ const n3 = s5[e6].name;
1036
+ if (n3) if (0 === n3.indexOf("$") && n3.indexOf(".") > 0) {
1037
+ const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 = n3.substring(1, n3.indexOf(".")), r2 = n3.substring(n3.indexOf(".") + 1);
1038
+ if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: true }]);
984
1039
  else {
985
- let e7 = t4.get(i3);
986
- e7 || (e7 = []), e7.push(a4), t4.set(i3, e7);
1040
+ let e7 = t3.get(i3);
1041
+ e7 || (e7 = []), e7.push(a4), t3.set(i3, e7);
987
1042
  }
988
- } else t4.set(n2, s5[e6]);
1043
+ } else t3.set(n3, s5[e6]);
989
1044
  }
990
- e5.fieldPermissionMap = t4;
1045
+ e5.fieldPermissionMap = t3;
991
1046
  })(e4), function(e5) {
992
- const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
993
- if (null != n2) {
994
- Object.keys(n2).forEach((e6) => {
995
- const o4 = n2[e6], a4 = t4.get(e6);
1047
+ const t3 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n3 = e5.actionPermissions;
1048
+ if (null != n3) {
1049
+ Object.keys(n3).forEach((e6) => {
1050
+ const o4 = n3[e6], a4 = t3.get(e6);
996
1051
  if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
997
1052
  else {
998
1053
  o4 && 0 !== Object.keys(o4.deleteCondition).length || (o4.deleteCondition = null), o4 && 0 !== Object.keys(o4.updateCondition).length || (o4.updateCondition = null);
999
- const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
1000
- void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
1054
+ const s6 = o4.canUpdate, n4 = o4.updateRowIndexes;
1055
+ void 0 !== s6 && false === s6 && null != n4 && n4.length > 0 && t3.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n4 }]);
1001
1056
  }
1002
1057
  s5.set(e6, o4);
1003
1058
  });
1004
1059
  }
1005
1060
  e5.actionPermissionMap = s5;
1006
1061
  }(e4);
1007
- }(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
1008
- }).catch((t3) => {
1009
- e3.canClick = true, a3(t3);
1062
+ }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), o3(t2);
1063
+ }).catch((t2) => {
1064
+ e3.canClick = true, a3(t2);
1010
1065
  });
1011
1066
  });
1012
- }(e2, s2, o2) : function(e3, t2, s3) {
1067
+ }(e2, s2, o2) : function(e3, s3, n2) {
1013
1068
  return new Promise((o3, a3) => {
1014
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ce(e3);
1015
- let d2 = t2 || null, m2 = t2 ? [t2] : null;
1016
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1017
- const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1018
- if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = Pe(m2)), 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) {
1019
- const t3 = {};
1069
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = fe(e3);
1070
+ let d2 = s3 || null, m2 = s3 ? [s3] : null;
1071
+ void 0 === n2 || n2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1072
+ const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1073
+ if (!w2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (w2.id = f(p2._t_ + "_id")), m2 && (w2.ids = Oe(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), g2 && (w2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1074
+ const t2 = {};
1020
1075
  e3.tableUuids.forEach((e4) => {
1021
1076
  const s4 = r(u2, l2, e4);
1022
- t3[s4] = s4;
1023
- }), T2.listCodesMap = t3;
1077
+ t2[s4] = s4;
1078
+ }), w2.listCodesMap = t2;
1024
1079
  }
1025
- e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
1026
- const w2 = b2 + "/dsc/commons/gets", h2 = j();
1027
- h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
1028
- t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
1029
- const s4 = e3.customRules, n2 = e3.rules, a4 = U(e3, s4, n2);
1030
- e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
1031
- }).catch((t3) => {
1032
- e3.canClick = true, a3(t3);
1080
+ e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
1081
+ const T2 = b2 + "/dsc/commons/gets", k2 = j();
1082
+ k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1083
+ const h2 = B(e3.code, w2.id);
1084
+ c.post(T2, w2).then(async (t2) => {
1085
+ t2 && (h2 && await xe(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1086
+ const s4 = e3.customRules, n3 = e3.rules, a4 = U(e3, s4, n3);
1087
+ e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), o3(t2);
1088
+ }).catch((t2) => {
1089
+ e3.canClick = true, a3(t2);
1033
1090
  });
1034
1091
  });
1035
1092
  }(e2, s2, o2);
@@ -1038,55 +1095,63 @@ function ye(e2, s2, o2) {
1038
1095
  e3(true);
1039
1096
  });
1040
1097
  }
1041
- function Pe(e2) {
1098
+ async function xe(e2, t2, s2) {
1099
+ try {
1100
+ await p.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), s2.entity = F(e2.code, t2, s2.entity);
1101
+ } catch (e3) {
1102
+ }
1103
+ V(e2.code, t2);
1104
+ }
1105
+ function Oe(e2) {
1042
1106
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
1043
1107
  }
1044
- function Re(e2) {
1108
+ function Ae(e2) {
1045
1109
  const t2 = e2.props.setValueList;
1046
1110
  if (t2) {
1047
- if (s(t2) && t2.length > 0) return JSON.stringify(t2);
1111
+ if (o(t2) && t2.length > 0) return JSON.stringify(t2);
1048
1112
  if ("string" == typeof t2 && "[]" !== t2) return t2;
1049
1113
  }
1050
1114
  return null;
1051
1115
  }
1052
- function Se(e2, t2) {
1116
+ function Ee(e2, t2) {
1053
1117
  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";
1054
1118
  return c.post(a2, o2);
1055
1119
  }
1056
- function ve(e2) {
1120
+ function Ue(e2) {
1057
1121
  const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
1058
1122
  return c.get(s2);
1059
1123
  }
1060
- function Me(e2) {
1124
+ function _e(e2) {
1061
1125
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
1062
1126
  return c.delete(t2);
1063
1127
  }
1064
1128
  export {
1065
- H as dealAfterOperate,
1066
- se as dealCompleteTaskParam,
1067
- Me as deleteChartCondition,
1068
- ue as doAddSigner,
1069
- le as doAddTransactor,
1070
- ae as doAssign,
1071
- pe as doCreateCopyTask,
1072
- Z as doImportFinally,
1073
- Ce as doRemoveSigners,
1074
- Te as doRemoveTransactors,
1075
- fe as doReturnTaskTo,
1076
- L as exportFormReport,
1077
- ce as getAdditionalParamMap,
1078
- ye as getFormData,
1079
- ge as getRemoveSigner,
1080
- be as getRemoveTransactor,
1081
- q as getSaveFormRequest,
1082
- $ as getSaveFormRequestWithRow,
1083
- me as getTaskInformitions,
1084
- we as isVisibleWorkflowButton,
1085
- ee as judgeDataNumber,
1086
- ve as listChartConditions,
1087
- X as refreshFormOrListPage,
1088
- he as refreshPage,
1089
- Se as saveChartConditionBase,
1090
- D as standardEvents,
1091
- z as updateValuesWhenCloseDialog
1129
+ X as dealAfterOperate,
1130
+ ce as dealCompleteTaskParam,
1131
+ _e as deleteChartCondition,
1132
+ ge as doAddSigner,
1133
+ Ce as doAddTransactor,
1134
+ pe as doAssign,
1135
+ be as doCreateCopyTask,
1136
+ ae as doImportFinally,
1137
+ he as doRemoveSigners,
1138
+ Se as doRemoveTransactors,
1139
+ ye as doReturnTaskTo,
1140
+ H as exportFormReport,
1141
+ Re as extractWorkflowFunc,
1142
+ fe as getAdditionalParamMap,
1143
+ Ne as getFormData,
1144
+ ke as getRemoveSigner,
1145
+ Pe as getRemoveTransactor,
1146
+ K as getSaveFormRequest,
1147
+ z as getSaveFormRequestWithRow,
1148
+ Te as getTaskInformitions,
1149
+ ve as isVisibleWorkflowButton,
1150
+ ie as judgeDataNumber,
1151
+ Ue as listChartConditions,
1152
+ ne as refreshFormOrListPage,
1153
+ Ie as refreshPage,
1154
+ Ee as saveChartConditionBase,
1155
+ $ as standardEvents,
1156
+ te as updateValuesWhenCloseDialog
1092
1157
  };