super-page-runtime 2.3.18 → 2.3.19-sit1

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