super-page-runtime 2.2.26 → 2.2.29-tmp1

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 (42) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +4 -2
  6. package/dist/es/components/runtime/utils/events/event-util.js +113 -113
  7. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  8. package/dist/es/components/runtime/utils/events/standard-event.js +443 -431
  9. package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
  10. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  11. package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
  12. package/dist/es/components/runtime/utils/page-init-util.js +46 -42
  13. package/dist/es/components/runtime/utils/page-store.js +1 -1
  14. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  15. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -7
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  25. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
  26. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  27. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +114 -111
  28. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
  29. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
  32. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +39 -38
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
  40. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -12
  41. package/dist/es/components/runtime/views/super-page.vue.js +134 -132
  42. package/package.json +2 -2
@@ -1,444 +1,453 @@
1
- import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
1
+ import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as o, getRealRestApiPath as n, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
- import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
- import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
- import { getToken as d, getSessionCache as m, setSessionCache as f } from "agilebuilder-ui/src/utils/auth";
6
- import { getComponentRef as g } from "../global-refs.js";
3
+ import { getI18n as l } from "agilebuilder-ui/src/utils/util";
4
+ import { ElMessage as u, ElMessageBox as p } from "element-plus";
5
+ import { getToken as d, getSessionCache as m, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
6
+ import { getComponentRef as f } from "../global-refs.js";
7
7
  import b from "../eventBus.js";
8
8
  import C from "axios";
9
9
  import { handleEvent as T, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
10
  import { setStoreInfo as P } from "../store-util.js";
11
- import { getPermissionCodes as w, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
12
- import { updateChartDatasources as M, caculateShowCondition as R, getVariableValue as v, setVariableValue as S } from "../page-helper-util.js";
11
+ import { getPermissionCodes as w, getDefaultValue as k, getModelFields as v } from "../page-init-util.js";
12
+ import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as R, setVariableValue as S } from "../page-helper-util.js";
13
13
  import I from "./print-label.js";
14
14
  import { getTableNameByTableUuid as x } from "../table-utils.js";
15
- import { getWorkflowRules as A, packageCustomRules as U } from "./validator-util.js";
16
- import { functions as O } from "../api/page-expose-util.js";
15
+ import { getWorkflowRules as A, packageCustomRules as O } from "./validator-util.js";
16
+ import { functions as U } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as E } from "../page-store.js";
18
18
  const _ = { save: function(e2) {
19
- return L(e2, false);
19
+ return console.log("表单标准事件保存save--params=", e2), L(e2, false);
20
20
  }, saveList: function(e2) {
21
- return L(e2, true);
21
+ return console.log("列表标准事件保存saveList--params=", e2), L(e2, true);
22
22
  }, exportForm: function(e2) {
23
+ console.log("表单标准事件导出报告exportForm--params=", e2);
23
24
  const t2 = e2.pageContext.code + "_";
24
25
  b.$emit(t2 + "export-form-report", e2);
25
26
  }, exportPDF: function(e2) {
27
+ console.log("表单标准事件导出报告exportPDF--params=", e2);
26
28
  const t2 = e2.pageContext.code + "_";
27
29
  b.$emit(t2 + "export-pdf-report", e2);
28
30
  }, submit: function(e2) {
29
- return J(e2, false, "submit", "/dsc/commons/submits");
31
+ return console.log("表单标准事件提交submit--params=", e2), J(e2, false, "submit", "/dsc/commons/submits");
30
32
  }, submitList: function(e2) {
31
- return J(e2, true, "submit", "/dsc/commons/batch-submits");
33
+ return console.log("列表标准事件提交submitList--params=", e2), J(e2, true, "submit", "/dsc/commons/batch-submits");
32
34
  }, agree: function(e2) {
33
- return J(e2, false, "agree", "/dsc/commons/approves");
35
+ return console.log("表单标准事件同意agree--params=", e2), J(e2, false, "agree", "/dsc/commons/approves");
34
36
  }, agreeList: function(e2) {
35
- return J(e2, true, "agree", "/dsc/commons/batch-approves");
37
+ return console.log("列表标准事件同意agreeList--params=", e2), J(e2, true, "agree", "/dsc/commons/batch-approves");
36
38
  }, disagree: function(e2) {
37
- return J(e2, false, "disagree", "/dsc/commons/refuses");
39
+ return console.log("表单标准事件不同意disagree--params=", e2), J(e2, false, "disagree", "/dsc/commons/refuses");
38
40
  }, disagreeList: function(e2) {
39
- return J(e2, true, "disagree", "/dsc/commons/batch-refuses");
41
+ return console.log("列表标准事件不同意disagreeList--params=", e2), J(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
42
  }, back: function(e2) {
43
+ console.log("表单标准事件返回back--params=", e2);
41
44
  const t2 = e2.pageContext;
42
45
  H(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
43
46
  }, delete: function(e2) {
44
- return function(e3) {
45
- return new Promise((s2, i2) => {
46
- const a2 = e3.ids;
47
- if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
- p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
47
+ return console.log("列表标准事件删除delete--params=", e2), function(e3) {
48
+ return new Promise((s2, a2) => {
49
+ const i2 = e3.ids;
50
+ if (!i2 || 0 === i2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
51
+ p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
52
  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 = x(r2, m2);
51
- let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
- b2 = o(b2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = w(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
53
+ const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, g2 = x(r2, m2);
54
+ let b2 = o(d2, r2.isTest) + "/dsc/commons/" + g2;
55
+ b2 = n(b2, p2, d2, r2.isTest);
56
+ const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, T2 = t(r2), y2 = w(l2, r2), h2 = { ids: i2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
57
  r2.beanName && (h2.beanName = r2.beanName);
55
- const P2 = u2.props.deleteLogicSetting;
58
+ const P2 = l2.props.deleteLogicSetting;
56
59
  P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
57
- const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
60
+ const k2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
58
61
  k2 && (h2.logSettingText = k2.join(""));
59
- const N2 = u2.props.base.isSafeDelete;
60
- N2 && (h2.isSafeDelete = N2), c.delete(b2, { data: h2 }).then((e4) => {
61
- const t2 = g(r2, m2);
62
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), F(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
62
+ const v2 = l2.props.base.isSafeDelete;
63
+ v2 && (h2.isSafeDelete = v2), c.delete(b2, { data: h2 }).then((e4) => {
64
+ const t2 = f(r2, m2);
65
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), V(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
66
  }).catch((e4) => {
64
- i2(e4);
67
+ a2(e4);
65
68
  });
66
69
  }).catch(() => {
67
- i2();
70
+ a2();
68
71
  });
69
72
  });
70
73
  }(e2);
71
74
  }, downloadTemplate: function(e2) {
72
- !function(e3) {
75
+ console.log("列表标准事件下载导入模板downloadTemplate--params=", e2), function(e3) {
73
76
  var _a;
74
- const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles);
77
+ const t2 = e3.pageContext, s2 = e3.configureObj, n2 = s2.props.base, i2 = a(n2.templateFiles);
75
78
  let r2, c2;
76
- a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
77
- const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
78
- let f2 = "?1=1";
79
- r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? f2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? f2 += "&showName=" + encodeURI(p2) : t2.label && (f2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
80
- const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
81
- g2 && (f2 += "&logSettingText=" + g2.join(""));
82
- u2 && (f2 += "&systemCode=" + u2);
79
+ i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
80
+ const l2 = t2.systemCode, u2 = t2.backendUrl, p2 = c2;
81
+ let g2 = "?1=1";
82
+ r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? g2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? g2 += "&showName=" + encodeURI(p2) : t2.label && (g2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
83
+ const f2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
84
+ f2 && (g2 += "&logSettingText=" + f2.join(""));
85
+ l2 && (g2 += "&systemCode=" + l2);
83
86
  const b2 = e3.listCode;
84
- b2 && (f2 += "&listCode=" + b2);
85
- t2.beanName && (f2 += "&beanName=" + t2.beanName);
87
+ b2 && (g2 += "&listCode=" + b2);
88
+ t2.beanName && (g2 += "&beanName=" + t2.beanName);
86
89
  const C2 = w(s2, t2);
87
- C2 && (f2 += "&functionCode=" + C2);
88
- t2.tableName && (f2 += "&tableName=" + t2.tableName);
89
- t2.code && (f2 += "&pageCode=" + t2.code);
90
- t2.version && (f2 += "&pageVersion=" + t2.version);
90
+ C2 && (g2 += "&functionCode=" + C2);
91
+ t2.tableName && (g2 += "&tableName=" + t2.tableName);
92
+ t2.code && (g2 += "&pageCode=" + t2.code);
93
+ t2.version && (g2 += "&pageVersion=" + t2.version);
91
94
  const T2 = d();
92
- T2 && (f2 += "&JWT=" + T2);
95
+ T2 && (g2 += "&JWT=" + T2);
93
96
  const y2 = "_RUN_CURRENT_ROLE", h2 = m(y2);
94
- h2 && (f2 += "&" + y2 + "=" + h2);
95
- if (o2) {
96
- f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
+ h2 && (g2 += "&" + y2 + "=" + h2);
98
+ if (n2) {
99
+ g2 += "&isPermission=" + (void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission);
97
100
  }
98
- const P2 = n(l2, t2.isTest);
99
- window.open(P2 + "/dsc/commons/download-files" + f2);
101
+ const P2 = o(u2, t2.isTest);
102
+ window.open(P2 + "/dsc/commons/download-files" + g2);
100
103
  }(e2);
101
104
  }, import: function(e2) {
105
+ console.log("列表标准事件 导入import--params=", e2);
102
106
  const t2 = e2.pageContext.code + "_";
103
107
  b.$emit(t2 + "import-file", e2);
104
108
  }, export: function(e2) {
105
- return function(e3) {
109
+ return console.log("列表标准事件 导出export--params=", e2), function(e3) {
106
110
  return new Promise((t2, s2) => {
107
- const n2 = e3.pageContext, o2 = e3.configureObj.props.base, i2 = e3.listCode, a2 = e3.selections, r2 = {};
108
- a2 && a2.length > 0 && (r2.data = a2);
109
- let c2 = n2.label;
110
- c2 || (c2 = n2.code);
111
- let u2 = false;
112
- u2 = void 0 !== o2.isAsync && null !== o2.isAsync && o2.isAsync;
113
- const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = w(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
114
- window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, i2, p2, null, m2, u2, n2.code, l2);
111
+ const o2 = e3.pageContext, n2 = e3.configureObj.props.base, a2 = e3.listCode, i2 = e3.selections, r2 = {};
112
+ i2 && i2.length > 0 && (r2.data = i2);
113
+ let c2 = o2.label;
114
+ c2 || (c2 = o2.code);
115
+ let l2 = false;
116
+ l2 = void 0 !== n2.isAsync && null !== n2.isAsync && n2.isAsync;
117
+ const u2 = void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission, p2 = w(e3.configureObj, o2), d2 = c2, m2 = { backendUrl: o2.backendUrl, pageContext: o2 };
118
+ console.log("exportFunc======exportOptions=", m2), window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, a2, p2, null, m2, l2, o2.code, u2);
115
119
  });
116
120
  }(e2);
117
121
  }, search: function(e2) {
122
+ console.log("列表标准事件 刷新列表 search--params=", e2);
118
123
  const t2 = e2.pageContext, s2 = e2.tableUuid;
119
- g(t2, s2).refresh();
124
+ f(t2, s2).refresh();
120
125
  }, showSearch: function(e2) {
126
+ console.log("列表标准事件 显示查询区域 showSearch--params=", e2);
121
127
  const t2 = e2.pageContext, s2 = e2.tableUuid;
122
- g(t2, s2).showMobileSearch();
128
+ f(t2, s2).showMobileSearch();
123
129
  }, workflowSave: function(e2) {
124
- return async function(e3) {
130
+ return console.log("流程表单标准事件 暂存workflowSave--params=", e2), async function(e3) {
125
131
  return new Promise((t2, s2) => {
126
- const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
127
- let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
128
- if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
132
+ const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
133
+ let d2 = o(p2, a2.isTest) + "/dsc/workflow-commons";
134
+ if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
129
135
  const m2 = K(e3);
130
- let f2;
131
- f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
132
- let n2 = true;
133
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), t2(true);
136
+ let g2;
137
+ g2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), g2.then((s3) => {
138
+ let o2 = true;
139
+ s3 && (o2 = Q(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), t2(true);
134
140
  }).catch((e4) => {
135
141
  s2(e4);
136
142
  });
137
143
  });
138
144
  }(e2);
139
145
  }, submitProcess: function(e2) {
140
- return function(e3) {
146
+ return console.log("流程表单标准事件 提交流程submitProcess--params=", e2), function(e3) {
141
147
  return new Promise((t2, s2) => {
142
- const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
143
- let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
144
- if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
148
+ const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
149
+ let p2 = o(r2, a2.isTest) + "/dsc/workflow-commons/submit";
150
+ if (p2 = n(p2, i2, r2, a2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
145
151
  const d2 = K(e3), m2 = c.post(p2, d2);
146
152
  m2 && m2.then((s3) => {
147
- let n2 = true;
148
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
153
+ let o2 = true;
154
+ s3 && (o2 = Q(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
149
155
  }).catch((e4) => {
150
156
  s2(e4);
151
157
  });
152
158
  });
153
159
  }(e2);
154
160
  }, submitTask: function(e2) {
155
- return X(e2, "SUBMIT");
161
+ return console.log("流程表单标准事件 提交任务submitTask--params=", e2), X(e2, "SUBMIT");
156
162
  }, approve: function(e2) {
157
- return X(e2, "APPROVE");
163
+ return console.log("流程表单标准事件 同意approve--params=", e2), X(e2, "APPROVE");
158
164
  }, refuse: function(e2) {
159
- return X(e2, "REFUSE");
165
+ return console.log("流程表单标准事件 不同意refuse--params=", e2), X(e2, "REFUSE");
160
166
  }, readed: function(e2) {
161
- return X(e2, "READED");
167
+ return console.log("流程表单标准事件 已阅readed--params=", e2), X(e2, "READED");
162
168
  }, agreement: function(e2) {
163
- return X(e2, "AGREEMENT");
169
+ return console.log("流程表单标准事件 赞成agreement--params=", e2), X(e2, "AGREEMENT");
164
170
  }, oppose: function(e2) {
165
- return X(e2, "OPPOSE");
171
+ return console.log("流程表单标准事件 反对oppose--params=", e2), X(e2, "OPPOSE");
166
172
  }, kiken: function(e2) {
167
- return X(e2, "KIKEN");
173
+ return console.log("流程表单标准事件 弃权kiken--params=", e2), X(e2, "KIKEN");
168
174
  }, assign: function(e2) {
169
- return function(e3) {
175
+ return console.log("流程表单标准事件 指派assign--params=", e2), function(e3) {
170
176
  const t2 = e3.pageContext, s2 = t2.code + "_";
171
177
  b.$emit(s2 + "assign-task", e3);
172
178
  }(e2);
173
179
  }, copyTask: function(e2) {
174
- return function(e3) {
180
+ return console.log("流程表单标准事件 抄送copyTask--params=", e2), function(e3) {
175
181
  const t2 = e3.pageContext, s2 = t2.code + "_";
176
182
  b.$emit(s2 + "copy-task", e3);
177
183
  }(e2);
178
184
  }, addSigner: function(e2) {
179
- return function(e3) {
185
+ return console.log("流程表单标准事件 加签addSigner--params=", e2), function(e3) {
180
186
  const t2 = e3.pageContext, s2 = t2.code + "_";
181
187
  b.$emit(s2 + "add-signer", e3);
182
188
  }(e2);
183
189
  }, drawTask: function(e2) {
184
- return function(e3) {
185
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = K(e3);
186
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
190
+ return console.log("流程表单标准事件 领取drawTask--params=", e2), function(e3) {
191
+ const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = K(e3);
192
+ return ne(e3, a2, n2, "superPageRuntimeMessage.successfulDrawTask");
187
193
  }(e2);
188
194
  }, abandonReceive: function(e2) {
189
- return function(e3) {
190
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = K(e3);
191
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
195
+ return console.log("流程表单标准事件 放弃领取abandonReceive--params=", e2), function(e3) {
196
+ const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = K(e3);
197
+ return ne(e3, a2, n2, "superPageRuntimeMessage.successfulAbandonReceive");
192
198
  }(e2);
193
199
  }, returnToPreviousTask: function(e2) {
194
- return function(e3) {
195
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = K(e3);
196
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
200
+ return console.log("流程表单标准事件 驳回returnToPreviousTask--params=", e2), function(e3) {
201
+ const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = K(e3);
202
+ return ne(e3, a2, n2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
197
203
  }(e2);
198
204
  }, endInstance: function(e2) {
199
- return function(e3) {
200
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = K(e3);
201
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
205
+ return console.log("流程表单标准事件 强制结束endInstance--params=", e2), function(e3) {
206
+ const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = K(e3);
207
+ return ne(e3, a2, n2, "superPageRuntimeMessage.successfulEndInstance");
202
208
  }(e2);
203
209
  }, returnTaskTo: function(e2) {
204
- return function(e3) {
210
+ return console.log("流程表单标准事件 退回returnTaskTo--params=", e2), function(e3) {
205
211
  const t2 = e3.pageContext, s2 = t2.code + "_";
206
212
  b.$emit(s2 + "choose-return-node", e3);
207
213
  }(e2);
208
214
  }, removeSigner: function(e2) {
209
- return function(e3) {
215
+ return console.log("流程表单标准事件 减签removeSigner--params=", e2), function(e3) {
210
216
  const t2 = e3.pageContext, s2 = t2.code + "_";
211
217
  b.$emit(s2 + "remove-signer", e3);
212
218
  }(e2);
213
219
  }, retrieveTask: function(e2) {
214
- return function(e3) {
215
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = K(e3);
216
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
220
+ return console.log("流程表单标准事件 取回retrieveTask--params=", e2), function(e3) {
221
+ const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = K(e3);
222
+ return ne(e3, a2, n2, "superPageRuntimeMessage.successfulRetrieve");
217
223
  }(e2);
218
224
  }, viewDetail: function(e2) {
219
225
  }, lineEditCreate: function(e2) {
220
- return function(e3) {
221
- const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = g(t2, s2);
222
- n2 && (e3.getDefaultValueFunc = k, n2.createRow(e3.listCode, {}, e3));
226
+ return console.log("列表行编辑 新建lineEditCreate--params=", e2), function(e3) {
227
+ const t2 = e3.pageContext, s2 = e3.tableUuid, o2 = f(t2, s2);
228
+ o2 && (e3.getDefaultValueFunc = k, o2.createRow(e3.listCode, {}, e3));
223
229
  }(e2);
224
230
  }, printLabel: function(e2) {
225
- return function(e3) {
231
+ return console.log("打印标签 打印标签事件--params=", e2), function(e3) {
226
232
  let t2 = null;
227
233
  try {
228
234
  if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
229
- } catch (e4) {
235
+ } catch (t3) {
236
+ console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
230
237
  }
231
238
  I.printLabel(e3, t2);
232
239
  }(e2);
233
240
  }, queryCharts: function(e2) {
234
- j(e2);
241
+ console.log("查询统计图--params=", e2), j(e2);
235
242
  }, resetCharts: function(t2) {
236
243
  var _a, _b;
244
+ console.log("重置统计图--params=", t2);
237
245
  const s2 = t2.pageContext;
238
246
  s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, j(t2);
239
247
  }, exportCharts: function(e2) {
240
- !function(e3) {
248
+ console.log("导出统计图--params=", e2), function(e3) {
241
249
  const t2 = e3.pageContext, s2 = t2.allChartUuids;
242
- if (!s2 || 0 == s2.length) return;
243
- const o2 = e3.configureObj;
244
- let i2 = null;
245
- o2 && o2.runtime && (i2 = o2.runtime.props);
246
- const a2 = i2 ? i2.state : void 0;
247
- i2 && (i2.state = "disabled");
250
+ if (!s2 || 0 == s2.length) return void console.log("无需要导出的统计图数据");
251
+ const n2 = e3.configureObj;
252
+ let a2 = null;
253
+ n2 && n2.runtime && (a2 = n2.runtime.props);
254
+ const i2 = a2 ? a2.state : void 0;
255
+ a2 && (a2.state = "disabled");
248
256
  const r2 = [];
249
257
  for (let e4 = 0; e4 < s2.length; e4++) {
250
- const n2 = s2[e4], o3 = g(t2, n2);
251
- if (o3) {
252
- const e5 = o3.getConfigure();
253
- e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
258
+ const o2 = s2[e4], n3 = f(t2, o2);
259
+ if (n3) {
260
+ const e5 = n3.getConfigure();
261
+ e5 && e5.exportable && e5._dynamicShowFlag && n3.exportChart && r2.push(n3.exportChart());
254
262
  }
255
263
  }
256
- if (!r2 || 0 == r2.length) return;
257
- let c2, u2 = t2.label;
258
- u2 || (u2 = t2.code);
259
- c2 = u2;
260
- const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl;
264
+ if (!r2 || 0 == r2.length) return void console.log("无需要导出的统计图数据");
265
+ let c2, l2 = t2.label;
266
+ l2 || (l2 = t2.code);
267
+ c2 = l2;
268
+ const u2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl;
261
269
  let m2;
262
- const f2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
263
- C.defaults.headers.common.Authorization = d(), m2 = C.post(f2, l2, { responseType: "blob" }), m2.then((e4) => {
270
+ const g2 = o(p2, t2.isTest) + "/dsc/commons/exportChart";
271
+ C.defaults.headers.common.Authorization = d(), m2 = C.post(g2, u2, { responseType: "blob" }), m2.then((e4) => {
264
272
  const t3 = document.createElement("a");
265
273
  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);
266
274
  }).finally(() => {
267
- i2 && (i2.state = a2);
275
+ a2 && (a2.state = i2);
268
276
  });
269
277
  }(e2);
270
278
  } };
271
279
  function j(e2) {
272
280
  const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
273
- if (!s2 || 0 == s2.length) return;
274
- const n2 = e2.configureObj;
275
- let o2 = null;
276
- n2 && n2.runtime && (o2 = n2.runtime.props);
277
- const i2 = o2 ? o2.state : void 0;
278
- o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
279
- o2 && (o2.state = i2);
281
+ if (!s2 || 0 == s2.length) return void console.log("无需要查询的统计图数据");
282
+ const o2 = e2.configureObj;
283
+ let n2 = null;
284
+ o2 && o2.runtime && (n2 = o2.runtime.props);
285
+ const a2 = n2 ? n2.state : void 0;
286
+ n2 && (n2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
287
+ n2 && (n2.state = a2);
280
288
  }).catch(() => {
281
- o2 && (o2.state = i2);
289
+ n2 && (n2.state = a2);
282
290
  });
283
291
  }
284
- function D(e2, s2, o2, i2) {
292
+ function D(e2, s2, n2, a2) {
285
293
  var _a;
286
- const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
287
- u2 && (y2.logSettingText = u2.join(""));
294
+ const i2 = n2.templateUuid, r2 = n2.templateName, c2 = e2.systemCode, l2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, u2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, g2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, b2 = U.getFormViewData(e2);
295
+ console.log("exportFormReport----viewModels=", b2);
296
+ const T2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: w(s2, e2), tableName: g2, isPermission: T2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
297
+ l2 && (y2.logSettingText = l2.join(""));
288
298
  const P2 = te(e2);
289
299
  let k2;
290
- y2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
291
- return new Promise((i3, a3) => {
292
- const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
300
+ y2.additionalParamMap = P2, k2 = a2 ? function(e3, t2, s3, n3) {
301
+ return new Promise((a3, i3) => {
302
+ const r3 = o(t2, n3) + "/dsc/commons/export-pdf";
293
303
  C.defaults.headers.common.Authorization = d();
294
304
  C.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
295
- const s4 = new Blob([t3.data]), n2 = document.createElement("a");
296
- 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), i3(true);
305
+ const s4 = new Blob([t3.data]), o2 = document.createElement("a");
306
+ o2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o2.style.display = "none", o2.target = "_blank", o2.href = URL.createObjectURL(s4), document.body.appendChild(o2), o2.click(), URL.revokeObjectURL(o2.href), document.body.removeChild(o2), a3(true);
297
307
  }).catch((e4) => {
298
- a3(e4);
308
+ i3(e4);
299
309
  });
300
310
  });
301
- }(r2, g2, y2, e2.isTest) : function(e3, t2, s3, o3) {
302
- return new Promise((i3, a3) => {
303
- const r3 = n(t2, o3) + "/dsc/commons/export-reports";
311
+ }(r2, f2, y2, e2.isTest) : function(e3, t2, s3, n3) {
312
+ return new Promise((a3, i3) => {
313
+ const r3 = o(t2, n3) + "/dsc/commons/export-reports";
304
314
  C.defaults.headers.common.Authorization = d();
305
315
  C.post(r3, s3, { responseType: "blob" }).then((t3) => {
306
316
  const s4 = new Blob([t3.data]);
307
- let n2 = "报告.xlsx";
308
- e3 && (n2 = e3);
309
- const o4 = document.createElement("a");
310
- 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), i3(true);
317
+ let o2 = "报告.xlsx";
318
+ e3 && (o2 = e3);
319
+ const n4 = document.createElement("a");
320
+ n4.download = o2, n4.style.display = "none", n4.target = "_blank", n4.href = URL.createObjectURL(s4), document.body.appendChild(n4), n4.click(), URL.revokeObjectURL(n4.href), document.body.removeChild(n4), a3(true);
311
321
  }).catch((e4) => {
312
- a3(e4);
322
+ i3(e4);
313
323
  });
314
324
  });
315
- }(r2, g2, y2, e2.isTest), k2 && k2.then(() => {
325
+ }(r2, f2, y2, e2.isTest), k2 && k2.then(() => {
316
326
  h(e2, s2);
317
327
  });
318
328
  }
319
329
  function L(e2, t2) {
320
- return new Promise((s2, n2) => {
321
- const o2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
322
- let u2 = false;
323
- c2 && "noOperation" === c2 && (u2 = true);
324
- const l2 = V(o2, i2, "/dsc/commons", u2, a2, r2);
325
- l2 ? l2.then((e3) => {
326
- F(o2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
330
+ return new Promise((s2, o2) => {
331
+ const n2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
332
+ let l2 = false;
333
+ c2 && "noOperation" === c2 && (l2 = true);
334
+ const u2 = F(n2, a2, "/dsc/commons", l2, i2, r2);
335
+ u2 ? u2.then((e3) => {
336
+ V(n2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
327
337
  }).catch((e3) => {
328
- n2(e3);
329
- }) : n2("保存时request不存在");
338
+ o2(e3);
339
+ }) : o2("保存时request不存在");
330
340
  });
331
341
  }
332
- function B(e2, n2, o2, i2, a2, r2, c2) {
342
+ function B(e2, o2, n2, a2, i2, r2, c2) {
333
343
  var _a;
334
- const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = w(n2, e2);
344
+ const l2 = t(e2), u2 = e2.systemCode, p2 = void 0 === o2.props.base.isPermission || "true" === o2.props.base.isPermission || o2.props.base.isPermission, d2 = w(o2, e2);
335
345
  let m2 = c2;
336
346
  m2 || (m2 = e2.entity.data);
337
- 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 };
338
- r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
339
- const g2 = n2.props.base.conversionCodes;
340
- g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
341
- const b2 = me(n2);
342
- b2 && (f2.autoSetValueData = b2);
343
- const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
344
- C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
347
+ const g2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
348
+ r2 && (g2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? g2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : g2.judgeHeavyList = e2.judgeHeavyList);
349
+ const f2 = o2.props.base.conversionCodes;
350
+ f2 && (s(f2) ? g2.dataConversionRule = f2.join(",") : "string" == typeof f2 && (g2.dataConversionRule = f2)), console.log("getCommonFormRequestParam--------configureObj----", o2);
351
+ const b2 = me(o2);
352
+ b2 && (g2.autoSetValueData = b2);
353
+ const C2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
354
+ C2 && (g2.logSettingText = C2.join("")), g2.systemCode || (g2.systemCode = u2);
345
355
  const T2 = e2.beanName;
346
- T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
356
+ T2 && (g2.beanName = T2), i2 && (g2.dynamicColumnInfo = i2), a2 && (g2.mainDefaultValueColumns = a2);
347
357
  const y2 = te(e2);
348
- return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
349
- }
350
- function W(e2, t2, s2, i2, a2, r2, u2, l2) {
351
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
352
- return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
353
- const u3 = n(t3, r3);
354
- let l3, p3 = u3 + i3;
355
- p3 = o(p3, e3, t3, r3), l3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
356
- return l3;
358
+ return g2.additionalParamMap = y2, void 0 !== n2 && (g2.unControlVersion = n2), g2;
359
+ }
360
+ function W(e2, t2, s2, a2, i2, r2, l2, u2) {
361
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, a2, i2, r2, null, l2);
362
+ return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, t3, s3, a3, i3, r3) {
363
+ const l3 = o(t3, r3);
364
+ let u3, p3 = l3 + a3;
365
+ p3 = n(p3, e3, t3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
366
+ return u3;
357
367
  }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
358
368
  }
359
- function V(e2, t2, s2, n2, o2, i2) {
360
- return W(e2, t2, s2, n2, o2, i2, null, null);
361
- }
362
- function F(t2, s2, n2, o2, i2) {
363
- const a2 = q(t2, s2, i2);
364
- a2 && "list" === a2 ? (!function(t3, s3, n3, o3) {
365
- let i3 = s3.props.base.successOperation;
366
- const a3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
367
- i3 || (i3 = "refresh");
368
- if ("refresh" === i3) {
369
- if (r2) {
370
- g(t3, r2).refresh();
371
- }
372
- } else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
369
+ function F(e2, t2, s2, o2, n2, a2) {
370
+ return W(e2, t2, s2, o2, n2, a2, null, null);
371
+ }
372
+ function V(t2, s2, o2, n2, a2) {
373
+ const i2 = q(t2, s2, a2);
374
+ i2 && "list" === i2 ? (!function(t3, s3, o3, n3) {
375
+ let a3 = s3.props.base.successOperation;
376
+ const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
377
+ a3 || (a3 = "refresh");
378
+ if ("refresh" === a3) if (r2) {
379
+ f(t3, r2).refresh();
380
+ } else console.error("tableUuid is empty");
381
+ else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
373
382
  const s4 = e(t3.entity.page);
374
- let o4 = n3;
375
- o4 || (o4 = {}), Object.assign(s4, o4), H(t3, s4, a3);
383
+ let n4 = o3;
384
+ n4 || (n4 = {}), Object.assign(s4, n4), H(t3, s4, i3);
376
385
  }
377
- o3 && l({ message: u().t(o3), type: "success", showClose: true });
378
- }(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
386
+ n3 && u({ message: l().t(n3), type: "success", showClose: true });
387
+ }(t2, s2, o2, n2), t2.canClick = true) : i2 && "form" === i2 ? function(e2, t3, s3, o3) {
379
388
  if (s3) {
380
- const n4 = s3;
381
- let o3;
382
- n4.entity && (o3 = n4.entity), n4.formNo && (e2.initFormNo = n4.formNo);
389
+ const o4 = s3;
390
+ let n3;
391
+ o4.entity && (n3 = o4.entity), o4.formNo && (e2.initFormNo = o4.formNo);
383
392
  !function(e3, t4, s4) {
384
- const n5 = t4.props.base.successOperation;
385
- if (!n5 || null === n5) return;
386
- const o4 = t4.props.base.isNeedValueMapping;
387
- "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
388
- }(e2, t3, { ...o3, ...e2.entity.page });
393
+ const o5 = t4.props.base.successOperation;
394
+ if (!o5 || null === o5) return;
395
+ const n4 = t4.props.base.isNeedValueMapping;
396
+ "noOperation" === o5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === o5 ? s4 && (s4.id || s4.ID) ? ue(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== o5 && "closeWindowAndRefresh" !== o5 || (H(e3, s4, n4), e3.canClick = true, console.log("afterSuccessOperateInForm--successOperation=--", o5));
397
+ }(e2, t3, { ...n3, ...e2.entity.page });
389
398
  } else e2.canClick = true;
390
- n3 && l({ message: u().t(n3), type: "success", showClose: true });
391
- }(t2, s2, n2, o2) : t2.canClick = true;
399
+ o3 && u({ message: l().t(o3), type: "success", showClose: true });
400
+ }(t2, s2, o2, n2) : t2.canClick = true;
392
401
  }
393
402
  function q(e2, t2, s2) {
394
- let n2;
395
- return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
403
+ let o2;
404
+ return void 0 === s2 ? o2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (o2 = "form"), o2 || (o2 = e2.pageType), o2;
396
405
  }
397
406
  function H(e2, t2, s2) {
398
- const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
399
- if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
407
+ const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
408
+ if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
400
409
  else {
401
- const o2 = e2.tableName, i2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, a2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
402
- b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
410
+ const n2 = e2.tableName, a2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, i2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
411
+ b.$emit(i2 + "close-dialog", { isNeedValueMapping: a2, dataModel: t2, sourceTableName: n2, jumpMode: o2 });
403
412
  }
404
413
  }
405
- function G(e2, t2, s2, n2, o2) {
414
+ function G(e2, t2, s2, o2, n2) {
406
415
  var _a;
407
- 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);
408
- const i2 = e2.tableName;
409
- !function(e3, t3, s3) {
416
+ n2 || (n2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (n2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
417
+ const a2 = e2.tableName;
418
+ console.log("update-value66-", s2, o2), function(e3, t3, s3) {
410
419
  if (e3 && null !== e3 && t3) {
411
- let n3 = e3;
412
- Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
420
+ let o3 = e3;
421
+ Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
413
422
  const t4 = e4.source;
414
423
  if (!t4) return;
415
- const o3 = t4.split("."), i3 = v(n3, o3), a2 = e4.target, r2 = N(null, a2);
416
- S(s3.entity, r2, i3);
424
+ const n3 = t4.split("."), a3 = R(o3, n3), i2 = e4.target, r2 = v(null, i2);
425
+ S(s3.entity, r2, a3);
417
426
  });
418
427
  }
419
- }(s2, o2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
428
+ }(s2, n2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
420
429
  }
421
- function $(e2, t2, s2, n2) {
430
+ function $(e2, t2, s2, o2) {
422
431
  var _a;
423
432
  t2 && !t2.props.base && (t2.props.base = {});
424
- let o2 = n2;
425
- o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
426
- const i2 = q(e2, t2);
427
- if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
428
- if (i2 && "list" === i2) {
433
+ let n2 = o2;
434
+ n2 || (n2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation), console.log("refreshFormOrListPage22=====successOperation=", n2, "isRefreshWhenClosePopup=", s2);
435
+ const a2 = q(e2, t2);
436
+ if (console.log("refreshFormOrListPage22=====buttonForPageType=", a2), a2 && "list" === a2 && !n2 && (n2 = "refresh"), console.log("refreshFormOrListPage33=====successOperation=", n2), "refresh" === n2) {
437
+ if (a2 && "list" === a2) {
429
438
  const s3 = y(e2, t2);
430
439
  if (s3) {
431
- g(e2, s3).refresh();
432
- }
433
- } else if (i2 && "form" === i2) {
440
+ f(e2, s3).refresh();
441
+ } else console.error("tableUuid is empty");
442
+ } else if (a2 && "form" === a2) {
434
443
  const t3 = e2.entity.data;
435
- le(e2, t3.ID ? t3.ID : t3.id);
444
+ ue(e2, t3.ID ? t3.ID : t3.id);
436
445
  }
437
446
  }
438
447
  }
439
- function J(e2, t2, s2, i2) {
440
- return new Promise((r2, l2) => {
441
- const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
448
+ function J(e2, t2, s2, a2) {
449
+ return new Promise((r2, u2) => {
450
+ const d2 = e2.pageContext, m2 = e2.configureObj, g2 = e2.mainDefaultValueColumns, f2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
442
451
  let T2 = false;
443
452
  C2 && "noOperation" === C2 && (T2 = true);
444
453
  let y2 = d2.tableName;
@@ -446,15 +455,15 @@ function J(e2, t2, s2, i2) {
446
455
  const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
447
456
  y2 = x(d2, t3);
448
457
  }
449
- const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
450
- return new Promise((g3, b3) => {
451
- const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
452
- p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
453
- const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
454
- p2.tableName = f3;
455
- let d4 = n(u2, e3.isTest) + s3;
456
- d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
457
- g3(e4);
458
+ const h2 = function(e3, t3, s3, a3, r3, u3, d3, m3, g3) {
459
+ return new Promise((f3, b3) => {
460
+ const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
461
+ p.confirm(l().t(T3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
462
+ const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = B(e3, t3, a3, r3, u3, m3, null);
463
+ p2.tableName = g3;
464
+ let d4 = o(l2, e3.isTest) + s3;
465
+ d4 = n(d4, i2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
466
+ f3(e4);
458
467
  }).catch((e4) => {
459
468
  b3(e4);
460
469
  });
@@ -462,114 +471,115 @@ function J(e2, t2, s2, i2) {
462
471
  b3("点击了取消按钮");
463
472
  });
464
473
  });
465
- }(d2, m2, i2, T2, f2, g2, s2, b2, y2);
474
+ }(d2, m2, a2, T2, g2, f2, s2, b2, y2);
466
475
  h2 ? h2.then((e3) => {
467
- F(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
476
+ V(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
468
477
  }).catch((e3) => {
469
- l2(e3);
470
- }) : l2("request不存在");
478
+ u2(e3);
479
+ }) : u2("request不存在");
471
480
  });
472
481
  }
473
482
  function z(e2, s2) {
474
483
  var _a;
475
- 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 = x(i2, d2), f2 = new FormData();
476
- f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
477
- const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
478
- g2 && f2.append("importDuplicateRule", g2);
479
- const b2 = i2.judgeHeavyList;
480
- b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
481
- const C2 = me(a2);
482
- C2 && f2.append("autoSetValueData", C2);
483
- const T2 = i2.formNoRuleCode;
484
- T2 && f2.append("formNoRuleCode", T2);
484
+ const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), g2 = new FormData();
485
+ g2.append("multipartFile", s2), m2 && g2.append("tableName", m2), a2.importBeanName && g2.append("importBeanName", a2.importBeanName), a2.beanName && g2.append("beanName", a2.beanName);
486
+ const f2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
487
+ f2 && g2.append("importDuplicateRule", f2);
488
+ const b2 = a2.judgeHeavyList;
489
+ b2 && g2.append("judgeHeavyList", JSON.stringify(b2));
490
+ const C2 = me(i2);
491
+ C2 && g2.append("autoSetValueData", C2);
492
+ const T2 = a2.formNoRuleCode;
493
+ T2 && g2.append("formNoRuleCode", T2);
485
494
  const y2 = e2.listCode;
486
- y2 && f2.append("listCode", y2);
495
+ y2 && g2.append("listCode", y2);
487
496
  let P2 = false;
488
- P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", P2 + ""), f2.append("pageCode", i2.code);
489
- const k2 = t(i2);
490
- null != k2 && f2.append("isWorkflowEntity", k2 + "");
491
- const N2 = w(a2, i2);
492
- N2 && f2.append("functionCode", N2);
493
- const M2 = te(i2);
494
- f2.append("additionalParamMapStr", JSON.stringify(M2));
495
- const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
496
- f2.append("isPermission", R2 + "");
497
- const v2 = i2.systemCode;
498
- v2 && f2.append("systemCode", v2);
499
- const S2 = i2.backendUrl;
500
- let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
501
- I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
502
- if (P2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
497
+ P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, g2.append("isAsync", P2 + ""), g2.append("pageCode", a2.code);
498
+ const k2 = t(a2);
499
+ null != k2 && g2.append("isWorkflowEntity", k2 + "");
500
+ const v2 = w(i2, a2);
501
+ v2 && g2.append("functionCode", v2);
502
+ const M2 = te(a2);
503
+ g2.append("additionalParamMapStr", JSON.stringify(M2));
504
+ const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
505
+ g2.append("isPermission", N2 + "");
506
+ const R2 = a2.systemCode;
507
+ R2 && g2.append("systemCode", R2);
508
+ const S2 = a2.backendUrl;
509
+ let I2 = o(S2, a2.isTest) + "/dsc/commons/import-data";
510
+ I2 = n(I2, R2, S2, a2.isTest), c.post(I2, g2).then((e3) => {
511
+ if (P2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") });
503
512
  else {
504
513
  let t2 = false;
505
- e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(i2, a2, e3, null, true), i2.result = t2, h(i2, a2);
514
+ e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), V(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
506
515
  }
507
516
  }).catch((e3) => {
517
+ console.log("error==", e3);
508
518
  });
509
519
  }
510
520
  function Y(e2, t2) {
511
521
  const s2 = e2.props.base;
512
522
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
513
523
  if ("one" === s2.conditionsForExecution) {
514
- if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
515
- } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
524
+ if (!t2 || 1 !== t2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
525
+ } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
516
526
  }
517
527
  return true;
518
528
  }
519
529
  function K(e2) {
520
530
  var _a;
521
- const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
522
- let r2 = w(n2, t2);
523
- r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
524
- const c2 = { entity: o2, 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 };
531
+ const t2 = e2.pageContext, o2 = e2.configureObj, n2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
532
+ let r2 = w(o2, t2);
533
+ r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.PAGE_CODE = t2.code, n2.PAGE_VERSION = t2.version);
534
+ const c2 = { entity: n2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
525
535
  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);
526
- const u2 = n2.props.base.conversionCodes;
527
- u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
528
- const l2 = me(n2);
529
- l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
530
- const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
531
- p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
536
+ const l2 = o2.props.base.conversionCodes;
537
+ l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2)), console.log("getWorkflowSaveParams----configureObj=", o2);
538
+ const u2 = me(o2);
539
+ u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
540
+ const p2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
541
+ p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
532
542
  const d2 = te(t2);
533
- 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]));
534
- const m2 = n2.props.base.successOperation;
543
+ 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参数类型错误"));
544
+ const m2 = o2.props.base.successOperation;
535
545
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
536
546
  }
537
- function Q(e2, t2, s2, n2, o2) {
538
- const i2 = s2.code, a2 = s2.version;
547
+ function Q(e2, t2, s2, o2, n2) {
548
+ const a2 = s2.code, i2 = s2.version;
539
549
  let r2;
540
550
  if (e2) {
541
551
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
542
552
  const s3 = te(t3);
543
- e3 && s3 && f(s3._t_ + "_id", e3);
553
+ e3 && s3 && g(s3._t_ + "_id", e3);
544
554
  }(e2.entity.id || e2.entity.ID, s2));
545
- const o3 = e2.completeTaskResult;
546
- if (o3) {
547
- const e3 = o3.completeTaskTipType;
555
+ const n3 = e2.completeTaskResult;
556
+ if (n3) {
557
+ const e3 = n3.completeTaskTipType;
548
558
  if (e3 && "MESSAGE" === e3) {
549
- const e4 = o3.content;
550
- return l({ showClose: true, type: "warning", message: e4 }), false;
559
+ const e4 = n3.content;
560
+ return u({ showClose: true, type: "warning", message: e4 }), false;
551
561
  }
552
562
  }
553
563
  if (e2.completeTaskParam) {
554
564
  const t3 = e2.completeTaskParam;
555
- 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;
565
+ r2 = t3.taskId, o2 && (o2.taskId = r2), P(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
556
566
  }
557
- s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(i2, a2, "_currentActivityName", e2.taskName);
567
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
558
568
  }
559
- return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
569
+ return o2 && (o2.operationResult = n2), t2 || V(s2, o2.configureObj, e2, null, false), true;
560
570
  }
561
571
  async function X(e2, t2) {
562
572
  const s2 = await function(e3) {
563
573
  return new Promise((t3, s3) => {
564
574
  var _a, _b, _c, _d;
565
- const n2 = e3.configureObj;
566
- if (n2) {
575
+ const o2 = e3.configureObj;
576
+ if (o2) {
567
577
  let s4 = false;
568
- if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
569
- const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
570
- s4 = R(t4, n2, o2);
578
+ if (((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
579
+ const t4 = e3.pageContext, n2 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
580
+ s4 = N(t4, o2, n2);
571
581
  }
572
- true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
582
+ true === s4 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputOpinion"), l().t("superPageRuntimeMessage.opinion"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
573
583
  t3(e4);
574
584
  }).catch(() => {
575
585
  t3(false);
@@ -577,152 +587,152 @@ async function X(e2, t2) {
577
587
  } else t3(true);
578
588
  });
579
589
  }(e2);
580
- return new Promise((i2, a2) => {
590
+ return new Promise((a2, i2) => {
581
591
  var _a;
582
592
  if (s2) {
583
593
  const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
584
- let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
585
- if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
586
- const g2 = K(e2);
587
- g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
588
- c.post(f2, g2).then((s3) => {
589
- let n2 = true;
590
- s3 && (n2 = Q(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
594
+ let g2 = o(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
595
+ if (g2 = n(g2, p2, d2, r2.isTest), !g2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
596
+ const f2 = K(e2);
597
+ f2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
598
+ c.post(g2, f2).then((s3) => {
599
+ let o2 = true;
600
+ s3 && (o2 = Q(s3, false, r2, e2, t2)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
591
601
  }).catch((e3) => {
592
- a2(e3);
602
+ i2(e3);
593
603
  });
594
- } else i2(true);
604
+ } else a2(true);
595
605
  });
596
606
  }
597
607
  function Z(e2, t2) {
598
608
  if (t2) {
599
- const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
600
- c2.assigneeId = r2, oe(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
601
- h(s2, o2);
609
+ const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
610
+ c2.assigneeId = r2, ne(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
611
+ h(s2, n2);
602
612
  });
603
613
  }
604
614
  }
605
615
  function ee(e2) {
606
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = te(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
607
- return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
616
+ const t2 = e2.pageContext, s2 = t2.entity.data, o2 = t2.systemCode, n2 = t2.code, a2 = te(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: n2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
617
+ return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, r2;
608
618
  }
609
619
  function te(t2) {
610
620
  if (t2.entity) {
611
621
  let s2 = e(t2.entity.page);
612
622
  s2 || (s2 = {});
613
- const n2 = t2.entity.request;
614
- return n2 && Object.assign(s2, n2), s2;
623
+ const o2 = t2.entity.request;
624
+ return o2 && Object.assign(s2, o2), s2;
615
625
  }
616
626
  }
617
627
  function se(e2, t2) {
618
628
  if (t2) {
619
- const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
620
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
621
- if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
629
+ const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
630
+ let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
631
+ if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
622
632
  const d2 = ee(e2);
623
633
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
624
634
  const m2 = c.post(p2, d2);
625
635
  m2 && m2.then((e3) => {
626
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && F(s2, i2, e3, null, false), h(s2, i2);
636
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && V(s2, a2, e3, null, false), h(s2, a2);
627
637
  });
628
638
  }
629
639
  }
630
- function ne(e2, t2) {
640
+ function oe(e2, t2) {
631
641
  if (t2) {
632
- const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
633
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
634
- if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
642
+ const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
643
+ let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
644
+ if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
635
645
  const d2 = ee(e2);
636
646
  d2.completeTaskParam.transactors = t2.userIds.join(",").split(",");
637
647
  const m2 = c.post(p2, d2);
638
648
  m2 && m2.then((e3) => {
639
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(s2, i2);
649
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), h(s2, a2);
640
650
  });
641
651
  }
642
652
  }
643
- function oe(e2, t2, s2, n2) {
644
- return new Promise((i2, a2) => {
653
+ function ne(e2, t2, s2, o2) {
654
+ return new Promise((a2, i2) => {
645
655
  const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
646
- if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
656
+ if (!(s2 = n(s2, p2, d2, r2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
647
657
  const m2 = c.post(s2, t2);
648
658
  m2 && m2.then((t3) => {
649
659
  let s3 = true;
650
- t3 && (s3 = Q(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
660
+ t3 && (s3 = Q(t3, false, r2, e2, null)), true === s3 && u({ showClose: true, type: "success", message: l().t(o2) }), a2(true);
651
661
  }).catch((e3) => {
652
- a2(e3);
662
+ i2(e3);
653
663
  });
654
664
  });
655
665
  }
656
- function ie(e2) {
657
- const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
658
- let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
659
- if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
666
+ function ae(e2) {
667
+ const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
668
+ let r2 = o(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
669
+ if (r2 = n(r2, s2, a2, t2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
660
670
  const p2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
661
671
  return c.post(r2, m2);
662
672
  }
663
- function ae(e2, t2) {
664
- const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
665
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
666
- h(s2, o2);
673
+ function ie(e2, t2) {
674
+ const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
675
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ne(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
676
+ h(s2, n2);
667
677
  });
668
678
  }
669
679
  function re(e2) {
670
- const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
671
- let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
680
+ const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
681
+ let i2 = o(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
672
682
  const r2 = K(e2);
673
- if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
674
- l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
683
+ if (i2 = n(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
684
+ u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
675
685
  }
676
686
  function ce(e2, t2) {
677
687
  if (t2) {
678
- const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
679
- let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
680
- if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
688
+ const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
689
+ let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
690
+ if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
681
691
  const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = K(e2);
682
692
  m2.ids = d2;
683
- const f2 = c.post(p2, m2);
684
- f2 && f2.then((e3) => {
685
- F(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, i2);
693
+ const g2 = c.post(p2, m2);
694
+ g2 && g2.then((e3) => {
695
+ V(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
686
696
  });
687
697
  }
688
698
  }
689
- function ue(e2, t2, s2) {
690
- let n2 = false;
691
- return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
699
+ function le(e2, t2, s2) {
700
+ let o2 = false;
701
+ return e2 && t2 && ("workflowSave" === e2 ? o2 = function(e3) {
692
702
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
693
703
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
694
704
  return false;
695
- }(t2) : "submitProcess" === e2 ? n2 = function(e3) {
705
+ }(t2) : "submitProcess" === e2 ? o2 = function(e3) {
696
706
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
697
707
  return false;
698
- }(t2) : "submitTask" === e2 ? n2 = function(e3) {
708
+ }(t2) : "submitTask" === e2 ? o2 = function(e3) {
699
709
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
700
710
  return false;
701
- }(t2) : "drawTask" === e2 ? n2 = function(e3) {
711
+ }(t2) : "drawTask" === e2 ? o2 = function(e3) {
702
712
  if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
703
713
  return false;
704
- }(t2) : "abandonReceive" === e2 ? n2 = function(e3) {
714
+ }(t2) : "abandonReceive" === e2 ? o2 = function(e3) {
705
715
  if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
706
716
  return false;
707
- }(t2) : "approve" === e2 || "refuse" === e2 ? n2 = function(e3) {
717
+ }(t2) : "approve" === e2 || "refuse" === e2 ? o2 = function(e3) {
708
718
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
709
719
  return false;
710
- }(t2) : "readed" === e2 ? n2 = function(e3) {
720
+ }(t2) : "readed" === e2 ? o2 = function(e3) {
711
721
  if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
712
722
  return false;
713
- }(t2) : "assign" === e2 ? n2 = function(e3) {
723
+ }(t2) : "assign" === e2 ? o2 = function(e3) {
714
724
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
715
725
  return false;
716
- }(t2) : "copyTask" === e2 ? n2 = function(e3) {
726
+ }(t2) : "copyTask" === e2 ? o2 = function(e3) {
717
727
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy) return true;
718
728
  return false;
719
- }(t2) : "addSigner" === e2 ? n2 = function(e3) {
729
+ }(t2) : "addSigner" === e2 ? o2 = function(e3) {
720
730
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
721
731
  return false;
722
- }(t2) : "removeSigner" === e2 ? n2 = function(e3) {
732
+ }(t2) : "removeSigner" === e2 ? o2 = function(e3) {
723
733
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
724
734
  return false;
725
- }(t2) : "retrieveTask" === e2 ? n2 = function(e3) {
735
+ }(t2) : "retrieveTask" === e2 ? o2 = function(e3) {
726
736
  if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
727
737
  if ("COMPLETED" !== e4.active) return false;
728
738
  if ("TYPE_READ" === e4.processingMode) return false;
@@ -730,10 +740,10 @@ function ue(e2, t2, s2) {
730
740
  return true;
731
741
  }(e3)) return true;
732
742
  return false;
733
- }(t2) : "agreement" === e2 || "oppose" === e2 ? n2 = function(e3) {
743
+ }(t2) : "agreement" === e2 || "oppose" === e2 ? o2 = function(e3) {
734
744
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
735
745
  return false;
736
- }(t2) : "kiken" === e2 ? n2 = function(e3) {
746
+ }(t2) : "kiken" === e2 ? o2 = function(e3) {
737
747
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
738
748
  return false;
739
749
  }(t2) : function(e3, t3) {
@@ -743,35 +753,35 @@ function ue(e2, t2, s2) {
743
753
  t4 && (s3 = t4.taskComplete);
744
754
  return s3;
745
755
  }(t3);
746
- }(t2, s2) && (n2 = "returnToPreviousTask" !== e2 || function(e3) {
756
+ }(t2, s2) && (o2 = "returnToPreviousTask" !== e2 || function(e3) {
747
757
  if (e3.rebuttable) return true;
748
758
  return false;
749
- }(t2))), n2;
759
+ }(t2))), o2;
750
760
  }
751
- function le(e2, t2) {
761
+ function ue(e2, t2) {
752
762
  e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, pe(e2, t2).then((t3) => {
753
763
  e2.isRefresh = true;
754
764
  });
755
765
  }
756
- function pe(e2, s2, o2) {
757
- const i2 = e2.pageType;
758
- if (i2 && "form" === i2) {
759
- e2.canClick = false;
766
+ function pe(e2, s2, n2) {
767
+ const a2 = e2.pageType;
768
+ if (a2 && "form" === a2) {
769
+ console.log("获取表单数据getData--pageContext=", e2), e2.canClick = false;
760
770
  return t(e2) ? function(e3, t2, s3) {
761
- return new Promise((o3, i3) => {
762
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
763
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
764
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
765
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
766
- if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
771
+ return new Promise((n3, a3) => {
772
+ const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = te(e3);
773
+ let d2 = t2 || null, g2 = t2 ? [t2] : null;
774
+ void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), g2 || (g2 = p2 ? p2.ids : null)) : (d2 = null, g2 = null, p2._id = p2.id, p2.id = null);
775
+ const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
776
+ if (console.log("getWorkflowFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
767
777
  const t3 = {};
768
778
  e3.tableUuids.forEach((e4) => {
769
- const s4 = r(u2, l2, e4);
779
+ const s4 = r(l2, u2, e4);
770
780
  t3[s4] = s4;
771
781
  }), C2.listCodesMap = t3;
772
782
  }
773
- f2 && (C2.ids = de(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
774
- const y2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
783
+ g2 && (C2.ids = de(g2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
784
+ const y2 = o(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
775
785
  h2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(y2, C2).then((t3) => {
776
786
  e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = A(e3);
777
787
  const s4 = e3.pageType;
@@ -779,47 +789,49 @@ function pe(e2, s2, o2) {
779
789
  (function(e5) {
780
790
  const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
781
791
  if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
782
- const n2 = s5[e6].name;
783
- if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
784
- const o4 = s5[e6], i4 = JSON.parse(JSON.stringify(o4)), a3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
785
- if (i4.name = r2, i4 && "all_fields" === i4.name) false === i4.canEdit ? i4.rowIndexes ? t4.set(a3, [{ name: "all_fields", canEdit: false, rowIndexes: i4.rowIndexes }]) : t4.set(a3, [{ name: "all_fields", canEdit: false }]) : i4.rowIndexes ? t4.set(a3, [{ name: "all_fields", canEdit: true, rowIndexes: i4.rowIndexes }]) : t4.set(a3, [{ name: "all_fields", canEdit: true }]);
792
+ const o2 = s5[e6].name;
793
+ if (o2) if (0 === o2.indexOf("$") && o2.indexOf(".") > 0) {
794
+ const n4 = s5[e6], a4 = JSON.parse(JSON.stringify(n4)), i3 = o2.substring(1, o2.indexOf(".")), r2 = o2.substring(o2.indexOf(".") + 1);
795
+ 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 }]);
786
796
  else {
787
- let e7 = t4.get(a3);
788
- e7 || (e7 = []), e7.push(i4), t4.set(a3, e7);
797
+ let e7 = t4.get(i3);
798
+ e7 || (e7 = []), e7.push(a4), t4.set(i3, e7);
789
799
  }
790
- } else t4.set(n2, s5[e6]);
800
+ } else t4.set(o2, s5[e6]);
791
801
  }
792
802
  e5.fieldPermissionMap = t4;
793
803
  })(e4), function(e5) {
794
- const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
795
- if (null != n2) {
796
- Object.keys(n2).forEach((e6) => {
797
- const o4 = n2[e6], i4 = t4.get(e6);
798
- if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
804
+ const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), o2 = e5.actionPermissions;
805
+ if (null != o2) {
806
+ Object.keys(o2).forEach((e6) => {
807
+ const n4 = o2[e6], a4 = t4.get(e6);
808
+ if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) n4.canUpdate = false, n4.canAdd = false;
799
809
  else {
800
- const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
801
- void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
810
+ const s6 = n4.canUpdate, o3 = n4.updateRowIndexes;
811
+ void 0 !== s6 && false === s6 && null != o3 && o3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: o3 }]);
802
812
  }
803
- s5.set(e6, o4);
813
+ s5.set(e6, n4);
804
814
  });
805
815
  }
806
816
  e5.actionPermissionMap = s5;
807
817
  }(e4);
808
- }(e3), e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
818
+ }(e3), e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), n3(t3);
809
819
  }).catch((t3) => {
810
- e3.canClick = true, i3(t3);
820
+ e3.canClick = true, a3(t3);
811
821
  });
812
822
  });
813
- }(e2, s2, o2) : function(e3, t2, s3) {
814
- return new Promise((o3, i3) => {
815
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
816
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
817
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
818
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), y2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
819
- if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), f2 && (y2.ids = de(f2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), g2 && (y2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
823
+ }(e2, s2, n2) : function(e3, t2, s3) {
824
+ return new Promise((n3, a3) => {
825
+ const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = te(e3);
826
+ let d2 = t2 || null, g2 = t2 ? [t2] : null;
827
+ void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), g2 || (g2 = p2 ? p2.ids : null)) : (d2 = null, g2 = null, p2._id = p2.id, p2.id = null);
828
+ const f2 = p2 ? p2.taskId : null, b2 = l2;
829
+ console.log("getCommonFormData-----pageContext=", e3);
830
+ const C2 = o(e3.backendUrl, e3.isTest), y2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
831
+ if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), g2 && (y2.ids = de(g2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), f2 && (y2.taskId = f2), console.log("getCommonFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
820
832
  const t3 = {};
821
833
  e3.tableUuids.forEach((e4) => {
822
- const s4 = r(u2, l2, e4);
834
+ const s4 = r(l2, u2, e4);
823
835
  t3[s4] = s4;
824
836
  }), y2.listCodesMap = t3;
825
837
  }
@@ -827,13 +839,13 @@ function pe(e2, s2, o2) {
827
839
  const h2 = C2 + "/dsc/commons/gets", P2 = E();
828
840
  P2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(h2, y2).then((t3) => {
829
841
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
830
- const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
831
- e3.rules = i4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
842
+ const s4 = e3.customRules, o2 = e3.rules, a4 = O(s4, o2);
843
+ e3.rules = a4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), n3(t3);
832
844
  }).catch((t3) => {
833
- e3.canClick = true, i3(t3);
845
+ e3.canClick = true, a3(t3);
834
846
  });
835
847
  });
836
- }(e2, s2, o2);
848
+ }(e2, s2, n2);
837
849
  }
838
850
  return new Promise((e3, t2) => {
839
851
  e3(true);
@@ -851,25 +863,25 @@ function me(e2) {
851
863
  return null;
852
864
  }
853
865
  export {
854
- F as dealAfterOperate,
866
+ V as dealAfterOperate,
855
867
  Q as dealCompleteTaskParam,
856
868
  se as doAddSigner,
857
869
  Z as doAssign,
858
- ne as doCreateCopyTask,
870
+ oe as doCreateCopyTask,
859
871
  z as doImportFinally,
860
872
  ce as doRemoveSigners,
861
- ae as doReturnTaskTo,
873
+ ie as doReturnTaskTo,
862
874
  D as exportFormReport,
863
875
  te as getAdditionalParamMap,
864
876
  pe as getFormData,
865
877
  re as getRemoveSigner,
866
- V as getSaveFormRequest,
878
+ F as getSaveFormRequest,
867
879
  W as getSaveFormRequestWithRow,
868
- ie as getTaskInformitions,
869
- ue as isVisibleWorkflowButton,
880
+ ae as getTaskInformitions,
881
+ le as isVisibleWorkflowButton,
870
882
  Y as judgeDataNumber,
871
883
  $ as refreshFormOrListPage,
872
- le as refreshPage,
884
+ ue as refreshPage,
873
885
  _ as standardEvents,
874
886
  G as updateValuesWhenCloseDialog
875
887
  };