super-page-runtime 2.3.18-tmp2 → 2.3.18-tmp3

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