super-page-runtime 2.3.13-sit4 → 2.3.14-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  2. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/runtime/utils/events/standard-event.d.ts +4 -0
  4. package/dist/es/components/runtime/utils/events/standard-event.js +343 -296
  5. package/dist/es/components/runtime/utils/events/validator-util.js +76 -71
  6. package/dist/es/components/runtime/utils/page-init-util.js +107 -87
  7. package/dist/es/components/runtime/utils/page-permission-util.js +12 -12
  8. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +15 -14
  9. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -11
  10. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
  11. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +38 -27
  12. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
  13. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
  14. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +37 -0
  15. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +12 -12
  17. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
  18. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  19. package/dist/es/components/runtime/views/super-page.vue2.js +184 -180
  20. package/dist/es/i18n/langs/cn.js +1 -1
  21. package/dist/es/i18n/langs/en.js +1 -1
  22. package/dist/es/style.css +82 -79
  23. package/package.json +2 -2
@@ -2,29 +2,29 @@ import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, ge
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
- import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
5
+ import { getCurrentUser as d, getToken as m, getSessionCache as f, getRunCurrentRole as g, setSessionCache as C } from "agilebuilder-ui/src/utils/auth";
6
6
  import { getComponentRef as b } from "../global-refs.js";
7
- import C from "../eventBus.js";
7
+ import T from "../eventBus.js";
8
8
  import w from "axios";
9
- import { handleEvent as T, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
- import { setStoreInfo as k } from "../store-util.js";
11
- import { getPermissionCodes as P, getDefaultValue as R, getModelFields as S } from "../page-init-util.js";
12
- import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
9
+ import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
+ import { setStoreInfo as P } from "../store-util.js";
11
+ import { getPermissionCodes as S, getDefaultValue as R, getModelFields as I } from "../page-init-util.js";
12
+ import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as x } from "../page-helper-util.js";
13
13
  import A from "./print-label.js";
14
- import { getTableNameByTableUuid as x } from "../table-utils.js";
15
- import { getWorkflowRules as O, packageCustomRules as E } from "./validator-util.js";
16
- import { functions as U } from "../api/page-expose-util.js";
17
- import { usePageContextStore as _ } from "../page-store.js";
18
- const j = { save: function(e2) {
19
- return B(e2, false);
14
+ import { getTableNameByTableUuid as E } from "../table-utils.js";
15
+ import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
16
+ import { functions as _ } from "../api/page-expose-util.js";
17
+ import { usePageContextStore as j } from "../page-store.js";
18
+ const D = { save: function(e2) {
19
+ return F(e2, false);
20
20
  }, saveList: function(e2) {
21
- return B(e2, true);
21
+ return F(e2, true);
22
22
  }, exportForm: function(e2) {
23
23
  const t2 = e2.pageContext.code + "_";
24
- C.$emit(t2 + "export-form-report", e2);
24
+ T.$emit(t2 + "export-form-report", e2);
25
25
  }, exportPDF: function(e2) {
26
26
  const t2 = e2.pageContext.code + "_";
27
- C.$emit(t2 + "export-pdf-report", e2);
27
+ T.$emit(t2 + "export-pdf-report", e2);
28
28
  }, submit: function(e2) {
29
29
  return Q(e2, false, "submit", "/dsc/commons/submits");
30
30
  }, submitList: function(e2) {
@@ -39,7 +39,7 @@ const j = { save: function(e2) {
39
39
  return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
40
  }, back: function(e2) {
41
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
- J(t2, e2.configureObj, s2, n2);
42
+ Y(t2, e2.configureObj, s2, n2);
43
43
  }, delete: function(e2) {
44
44
  return function(e3) {
45
45
  return new Promise((s2, a2) => {
@@ -47,19 +47,19 @@ const j = { save: function(e2) {
47
47
  if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
48
  p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
49
  var _a;
50
- const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
50
+ const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = E(r2, m2);
51
51
  let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
52
  g2 = o(g2, p2, d2, r2.isTest);
53
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = t(r2), T2 = P(u2, r2), y2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
- r2.beanName && (y2.beanName = r2.beanName);
55
- const h2 = u2.props.deleteLogicSetting;
56
- h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
57
- const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
- k2 && (y2.logSettingText = k2.join(""));
59
- const R2 = u2.props.base.isSafeDelete;
60
- R2 && (y2.isSafeDelete = R2), c.delete(g2, { data: y2 }).then((e4) => {
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = S(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 y2 = u2.props.deleteLogicSetting;
56
+ y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
57
+ const h2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
+ h2 && (k2.logSettingText = h2.join(""));
59
+ const P2 = u2.props.base.isSafeDelete;
60
+ P2 && (k2.isSafeDelete = P2), c.delete(g2, { data: k2 }).then((e4) => {
61
61
  const t2 = b(r2, m2);
62
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
62
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), H(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
63
  }).catch((e4) => {
64
64
  a2(e4);
65
65
  });
@@ -75,32 +75,32 @@ const j = { save: function(e2) {
75
75
  let r2, c2;
76
76
  i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
77
77
  const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
78
- let f2 = "?1=1";
79
- r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? f2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? f2 += "&showName=" + encodeURI(p2) : t2.label && (f2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
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
80
  const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
81
- g2 && (f2 += "&logSettingText=" + g2.join(""));
82
- u2 && (f2 += "&systemCode=" + u2);
83
- const b2 = e3.listCode;
84
- b2 && (f2 += "&listCode=" + b2);
85
- t2.beanName && (f2 += "&beanName=" + t2.beanName);
86
- const C2 = P(s2, t2);
87
- C2 && (f2 += "&functionCode=" + C2);
88
- t2.tableName && (f2 += "&tableName=" + t2.tableName);
89
- t2.code && (f2 += "&pageCode=" + t2.code);
90
- t2.version && (f2 += "&pageVersion=" + t2.version);
91
- const w2 = d();
92
- w2 && (f2 += "&JWT=" + w2);
93
- const T2 = "_RUN_CURRENT_ROLE", y2 = m(T2);
94
- y2 && (f2 += "&" + T2 + "=" + y2);
81
+ g2 && (d2 += "&logSettingText=" + g2.join(""));
82
+ u2 && (d2 += "&systemCode=" + u2);
83
+ const C2 = e3.listCode;
84
+ C2 && (d2 += "&listCode=" + C2);
85
+ t2.beanName && (d2 += "&beanName=" + t2.beanName);
86
+ const b2 = S(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
95
  if (o2) {
96
- f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
96
+ d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
97
  }
98
- const h2 = n(l2, t2.isTest);
99
- window.open(h2 + "/dsc/commons/download-files" + f2);
98
+ const y2 = n(l2, t2.isTest);
99
+ window.open(y2 + "/dsc/commons/download-files" + d2);
100
100
  }(e2);
101
101
  }, import: function(e2) {
102
102
  const t2 = e2.pageContext.code + "_";
103
- C.$emit(t2 + "import-file", e2);
103
+ T.$emit(t2 + "import-file", e2);
104
104
  }, export: function(e2) {
105
105
  return function(e3) {
106
106
  return new Promise((t2, s2) => {
@@ -111,7 +111,7 @@ const j = { save: function(e2) {
111
111
  u2 || (u2 = n2.code);
112
112
  let l2 = false;
113
113
  l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
114
- const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
114
+ const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = S(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
115
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);
116
116
  });
117
117
  }(e2);
@@ -122,115 +122,136 @@ const j = { save: function(e2) {
122
122
  const t2 = e2.pageContext, s2 = e2.tableUuid;
123
123
  b(t2, s2).showMobileSearch();
124
124
  }, workflowSave: function(e2) {
125
- return C.$emit("clearTableAllStartEditing"), async function(e3) {
125
+ return T.$emit("clearTableAllStartEditing"), async function(e3) {
126
126
  return new Promise((t2, s2) => {
127
127
  const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
128
128
  let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons";
129
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 = ee(e3);
130
+ const m2 = te(e3);
131
131
  let f2;
132
132
  f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
133
133
  let n2 = true;
134
- s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(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);
135
135
  }).catch((e4) => {
136
136
  s2(e4);
137
137
  });
138
138
  });
139
139
  }(e2);
140
140
  }, workflowStart: function(e2) {
141
- return C.$emit("clearTableAllStartEditing"), async function(e3) {
141
+ return T.$emit("clearTableAllStartEditing"), async function(e3) {
142
142
  return new Promise((t2, s2) => {
143
143
  const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
144
144
  let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
145
145
  if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
146
- const m2 = ee(e3);
146
+ const m2 = te(e3);
147
147
  let f2;
148
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
149
  let n2 = true;
150
- s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), C.$emit("clearTableAllEndEditing"), t2(true);
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);
151
151
  }).catch((e4) => {
152
152
  s2(e4);
153
153
  });
154
154
  });
155
155
  }(e2);
156
156
  }, submitProcess: function(e2) {
157
- return C.$emit("clearTableAllStartEditing"), function(e3) {
157
+ return T.$emit("clearTableAllStartEditing"), function(e3) {
158
158
  return new Promise((t2, s2) => {
159
159
  const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
160
160
  let p2 = n(r2, a2.isTest) + "/dsc/workflow-commons/submit";
161
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 = ee(e3), m2 = c.post(p2, d2);
162
+ const d2 = te(e3), m2 = c.post(p2, d2);
163
163
  m2 && m2.then((s3) => {
164
164
  let n2 = true;
165
- s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(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);
166
166
  }).catch((e4) => {
167
167
  s2(e4);
168
168
  });
169
169
  });
170
170
  }(e2);
171
171
  }, submitTask: function(e2) {
172
- return se(e2, "SUBMIT");
172
+ return ne(e2, "SUBMIT");
173
173
  }, approve: function(e2) {
174
- return se(e2, "APPROVE");
174
+ return ne(e2, "APPROVE");
175
175
  }, refuse: function(e2) {
176
- return se(e2, "REFUSE");
176
+ return ne(e2, "REFUSE");
177
177
  }, readed: function(e2) {
178
- return se(e2, "READED");
178
+ return ne(e2, "READED");
179
179
  }, agreement: function(e2) {
180
- return se(e2, "AGREEMENT");
180
+ return ne(e2, "AGREEMENT");
181
181
  }, oppose: function(e2) {
182
- return se(e2, "OPPOSE");
182
+ return ne(e2, "OPPOSE");
183
183
  }, kiken: function(e2) {
184
- return se(e2, "KIKEN");
184
+ return ne(e2, "KIKEN");
185
185
  }, assign: function(e2) {
186
186
  return function(e3) {
187
187
  const t2 = e3.pageContext, s2 = t2.code + "_";
188
- C.$emit(s2 + "assign-task", e3);
188
+ T.$emit(s2 + "assign-task", e3);
189
189
  }(e2);
190
190
  }, copyTask: function(e2) {
191
191
  return function(e3) {
192
192
  const t2 = e3.pageContext, s2 = t2.code + "_";
193
- C.$emit(s2 + "copy-task", e3);
193
+ T.$emit(s2 + "copy-task", e3);
194
194
  }(e2);
195
195
  }, addSigner: function(e2) {
196
196
  return function(e3) {
197
197
  const t2 = e3.pageContext, s2 = t2.code + "_";
198
- C.$emit(s2 + "add-signer", e3);
198
+ T.$emit(s2 + "add-signer", e3);
199
199
  }(e2);
200
200
  }, drawTask: function(e2) {
201
201
  return function(e3) {
202
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
203
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
202
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
203
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
204
204
  }(e2);
205
205
  }, abandonReceive: function(e2) {
206
206
  return function(e3) {
207
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
208
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
207
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
208
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
209
209
  }(e2);
210
210
  }, returnToPreviousTask: function(e2) {
211
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 = ee(e3);
213
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
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 le(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
214
214
  }(e2);
215
215
  }, endInstance: function(e2) {
216
216
  return function(e3) {
217
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
218
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
217
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
218
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
219
219
  }(e2);
220
220
  }, returnTaskTo: function(e2) {
221
221
  return function(e3) {
222
222
  const t2 = e3.pageContext, s2 = t2.code + "_";
223
- C.$emit(s2 + "choose-return-node", e3);
223
+ T.$emit(s2 + "choose-return-node", e3);
224
224
  }(e2);
225
225
  }, removeSigner: function(e2) {
226
226
  return function(e3) {
227
227
  const t2 = e3.pageContext, s2 = t2.code + "_";
228
- C.$emit(s2 + "remove-signer", e3);
228
+ T.$emit(s2 + "remove-signer", e3);
229
229
  }(e2);
230
230
  }, retrieveTask: function(e2) {
231
231
  return function(e3) {
232
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
233
- return ce(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
232
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
233
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
234
+ }(e2);
235
+ }, extractWorkflow: function(e2) {
236
+ return function(e3) {
237
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract", a2 = te(e3);
238
+ t2.completeTaskParam && (a2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: [e3._value.loginName] });
239
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulInitiateExtract");
240
+ }(e2);
241
+ }, cancelExtractWorkflow: function(e2) {
242
+ return function(e3) {
243
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
244
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
245
+ }(e2);
246
+ }, approveExtractWorkflow: function(e2) {
247
+ return function(e3) {
248
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
249
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
250
+ }(e2);
251
+ }, refuseExtractWorkflow: function(e2) {
252
+ return function(e3) {
253
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
254
+ return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
234
255
  }(e2);
235
256
  }, viewDetail: function(e2) {
236
257
  }, lineEditCreate: function(e2) {
@@ -248,11 +269,11 @@ const j = { save: function(e2) {
248
269
  A.printLabel(e3, t2);
249
270
  }(e2);
250
271
  }, queryCharts: function(e2) {
251
- D(e2);
272
+ W(e2);
252
273
  }, resetCharts: function(t2) {
253
274
  var _a, _b;
254
275
  const s2 = t2.pageContext;
255
- 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, D(t2);
276
+ 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);
256
277
  }, exportCharts: function(e2) {
257
278
  !function(e3) {
258
279
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
@@ -275,10 +296,10 @@ const j = { save: function(e2) {
275
296
  let c2, u2 = t2.label;
276
297
  u2 || (u2 = t2.code);
277
298
  c2 = u2;
278
- const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ae(t2);
299
+ const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = re(t2);
279
300
  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("-~") : "";
280
301
  const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
281
- W();
302
+ B();
282
303
  w.post(m2, l2, { responseType: "blob" }).then((e4) => {
283
304
  const t3 = document.createElement("a");
284
305
  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);
@@ -289,10 +310,10 @@ const j = { save: function(e2) {
289
310
  }, saveQueryCharts: function(e2) {
290
311
  !function(e3) {
291
312
  const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
292
- C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
313
+ T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
293
314
  }(e2);
294
315
  } };
295
- function D(e2) {
316
+ function W(e2) {
296
317
  const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
297
318
  if (!s2 || 0 == s2.length) return;
298
319
  const n2 = e2.configureObj;
@@ -308,14 +329,14 @@ function D(e2) {
308
329
  function L(e2, s2, o2, a2) {
309
330
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
310
331
  e2.clickUuid = s2.uuid;
311
- 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 = U.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
312
- u2 && (C2.logSettingText = u2.join(""));
313
- const T2 = ae(e2);
314
- let y2;
315
- C2.additionalParamMap = T2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", y2 = a2 ? function(e3, t2, s3, o3) {
332
+ 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: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
333
+ u2 && (b2.logSettingText = u2.join(""));
334
+ const T2 = re(e2);
335
+ let k2;
336
+ 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) {
316
337
  return new Promise((a3, i3) => {
317
338
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
318
- W();
339
+ B();
319
340
  w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
320
341
  const s4 = new Blob([t3.data]), n2 = document.createElement("a");
321
342
  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);
@@ -323,10 +344,10 @@ function L(e2, s2, o2, a2) {
323
344
  i3(e4);
324
345
  });
325
346
  });
326
- }(r2, f2, C2, e2.isTest) : function(e3, t2, s3, o3) {
347
+ }(r2, f2, b2, e2.isTest) : function(e3, t2, s3, o3) {
327
348
  return new Promise((a3, i3) => {
328
349
  const r3 = n(t2, o3) + "/dsc/commons/export-reports";
329
- W();
350
+ B();
330
351
  w.post(r3, s3, { responseType: "blob" }).then((t3) => {
331
352
  const s4 = new Blob([t3.data]);
332
353
  let n2 = "报告.xlsx";
@@ -337,27 +358,27 @@ function L(e2, s2, o2, a2) {
337
358
  i3(e4);
338
359
  });
339
360
  });
340
- }(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
361
+ }(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
341
362
  h(e2, s2);
342
363
  }).catch((e3) => {
343
364
  });
344
365
  }
345
- function W() {
346
- w.defaults.headers.common.Authorization = d();
347
- const e2 = f();
366
+ function B() {
367
+ w.defaults.headers.common.Authorization = m();
368
+ const e2 = g();
348
369
  if (e2) {
349
370
  const t2 = "_RUN_CURRENT_ROLE";
350
371
  w.defaults.headers.common[t2] = e2;
351
372
  }
352
373
  }
353
- function B(e2, t2) {
374
+ function F(e2, t2) {
354
375
  return new Promise((s2, n2) => {
355
376
  const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
356
377
  let u2 = false;
357
378
  c2 && "noOperation" === c2 && (u2 = true);
358
- const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
379
+ const l2 = q(o2, a2, "/dsc/commons", u2, i2, r2);
359
380
  l2 ? l2.then((e3) => {
360
- q(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
381
+ H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
361
382
  }).catch((e3) => {
362
383
  n2(e3);
363
384
  }) : n2("保存时request不存在");
@@ -365,23 +386,23 @@ function B(e2, t2) {
365
386
  }
366
387
  function V(e2, n2, o2, a2, i2, r2, c2) {
367
388
  var _a;
368
- const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
389
+ const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = S(n2, e2);
369
390
  let m2 = c2;
370
391
  m2 || (m2 = e2.entity.data);
371
- 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 };
392
+ 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 };
372
393
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
373
394
  const g2 = n2.props.base.conversionCodes;
374
395
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
375
- const b2 = Ce(n2);
376
- b2 && (f2.autoSetValueData = b2);
377
- const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
378
- C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
379
- const w2 = e2.beanName;
380
- w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
381
- const T2 = ae(e2);
382
- return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
383
- }
384
- function F(e2, t2, s2, a2, i2, r2, u2, l2) {
396
+ const C2 = ke(n2);
397
+ C2 && (f2.autoSetValueData = C2);
398
+ const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
399
+ b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
400
+ const T2 = e2.beanName;
401
+ T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
402
+ const w2 = re(e2);
403
+ return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
404
+ }
405
+ function $(e2, t2, s2, a2, i2, r2, u2, l2) {
385
406
  const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
386
407
  return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
387
408
  const u3 = n(t3, r3);
@@ -390,15 +411,15 @@ function F(e2, t2, s2, a2, i2, r2, u2, l2) {
390
411
  return l3;
391
412
  }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
392
413
  }
393
- function $(e2, t2, s2, n2, o2, a2) {
394
- return F(e2, t2, s2, n2, o2, a2, null, null);
414
+ function q(e2, t2, s2, n2, o2, a2) {
415
+ return $(e2, t2, s2, n2, o2, a2, null, null);
395
416
  }
396
- function q(t2, s2, n2, o2, a2) {
397
- const i2 = H(t2, s2, a2);
417
+ function H(t2, s2, n2, o2, a2) {
418
+ const i2 = G(t2, s2, a2);
398
419
  if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
399
420
  let a3 = s3.props.base.successOperation;
400
421
  const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
401
- a3 || z.includes(s3.name) || (a3 = "refresh");
422
+ a3 || K.includes(s3.name) || (a3 = "refresh");
402
423
  if ("refresh" === a3) {
403
424
  if (r2) {
404
425
  b(t3, r2).refresh();
@@ -406,7 +427,7 @@ function q(t2, s2, n2, o2, a2) {
406
427
  } else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
407
428
  const o4 = e(t3.entity.page);
408
429
  let a4 = n3;
409
- a4 || (a4 = {}), Object.assign(o4, a4), J(t3, s3, o4, i3);
430
+ a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
410
431
  }
411
432
  o3 && l({ message: u().t(o3), type: "success", showClose: true });
412
433
  }(t2, s2, n2, o2), t2.canClick = true;
@@ -415,39 +436,39 @@ function q(t2, s2, n2, o2, a2) {
415
436
  const n4 = s3;
416
437
  let o3;
417
438
  o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
418
- G(e2, t3, { ...o3, ...e2.entity.page });
439
+ J(e2, t3, { ...o3, ...e2.entity.page });
419
440
  } else {
420
441
  const s4 = t3.props.base.successOperation;
421
442
  if (s4 && null !== s4) {
422
- G(e2, t3, { ...e2.entity.page });
443
+ J(e2, t3, { ...e2.entity.page });
423
444
  } else e2.canClick = true;
424
445
  }
425
446
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
426
447
  }(t2, s2, n2, o2);
427
448
  else {
428
449
  const e2 = s2.props.base.successOperation;
429
- e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
450
+ e2 && null !== e2 ? J(t2, s2, null) : t2.canClick = true;
430
451
  }
431
452
  }
432
- function H(e2, t2, s2) {
453
+ function G(e2, t2, s2) {
433
454
  let n2;
434
455
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
435
456
  }
436
- function G(e2, t2, s2) {
457
+ function J(e2, t2, s2) {
437
458
  const n2 = t2.props.base.successOperation;
438
459
  if (!n2 || null === n2) return;
439
460
  const o2 = t2.props.base.isNeedValueMapping;
440
- "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? fe(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
461
+ "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? be(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
441
462
  }
442
- function J(e2, t2, s2, n2) {
463
+ function Y(e2, t2, s2, n2) {
443
464
  const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
444
465
  if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
445
466
  else {
446
467
  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) + "_";
447
- C.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
468
+ T.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
448
469
  }
449
470
  }
450
- function Y(e2, t2, s2, n2, o2) {
471
+ function z(e2, t2, s2, n2, o2) {
451
472
  var _a;
452
473
  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);
453
474
  const a2 = e2.tableName;
@@ -457,19 +478,19 @@ function Y(e2, t2, s2, n2, o2) {
457
478
  Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
458
479
  const t4 = e4.source;
459
480
  if (!t4) return;
460
- const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = S(null, i2);
461
- I(s3.entity, r2, a3);
481
+ const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = I(null, i2);
482
+ x(s3.entity, r2, a3);
462
483
  });
463
484
  }
464
- }(s2, o2, e2), T(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
485
+ }(s2, o2, e2), k(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
465
486
  }
466
- const z = ["dropdown"];
467
- function K(e2, t2, s2, n2) {
487
+ const K = ["dropdown"];
488
+ function X(e2, t2, s2, n2) {
468
489
  var _a;
469
490
  t2 && !t2.props.base && (t2.props.base = {});
470
491
  let o2 = n2;
471
492
  o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
472
- const a2 = H(e2, t2);
493
+ const a2 = G(e2, t2);
473
494
  if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
474
495
  if (a2 && "list" === a2) {
475
496
  const s3 = y(e2, t2);
@@ -478,82 +499,82 @@ function K(e2, t2, s2, n2) {
478
499
  }
479
500
  } else if (a2 && "form" === a2) {
480
501
  const t3 = e2.entity.data;
481
- fe(e2, t3.ID ? t3.ID : t3.id);
502
+ be(e2, t3.ID ? t3.ID : t3.id);
482
503
  }
483
504
  }
484
505
  }
485
506
  function Q(e2, t2, s2, a2) {
486
507
  return new Promise((r2, l2) => {
487
- const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
488
- let w2 = false;
489
- C2 && "noOperation" === C2 && (w2 = true);
490
- let T2 = d2.tableName;
508
+ const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
509
+ let T2 = false;
510
+ b2 && "noOperation" === b2 && (T2 = true);
511
+ let w2 = d2.tableName;
491
512
  if (t2) {
492
513
  const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
493
- T2 = x(d2, t3);
514
+ w2 = E(d2, t3);
494
515
  }
495
- const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
496
- return new Promise((g3, b3) => {
497
- const C3 = t3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
498
- p.confirm(u().t(w3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
516
+ const k2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
517
+ return new Promise((g3, C3) => {
518
+ const b3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
519
+ p.confirm(u().t(T3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
499
520
  const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
500
521
  p2.tableName = f3;
501
522
  let d4 = n(u2, e3.isTest) + s3;
502
523
  d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
503
524
  g3(e4);
504
525
  }).catch((e4) => {
505
- b3(e4);
526
+ C3(e4);
506
527
  });
507
528
  }).catch(() => {
508
- b3("点击了取消按钮");
529
+ C3("点击了取消按钮");
509
530
  });
510
531
  });
511
- }(d2, m2, a2, w2, f2, g2, s2, b2, T2);
512
- y2 ? y2.then((e3) => {
513
- q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
532
+ }(d2, m2, a2, T2, f2, g2, s2, C2, w2);
533
+ k2 ? k2.then((e3) => {
534
+ H(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
514
535
  }).catch((e3) => {
515
536
  l2(e3);
516
537
  }) : l2("request不存在");
517
538
  });
518
539
  }
519
- function X(e2, s2) {
540
+ function Z(e2, s2) {
520
541
  var _a;
521
- const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), f2 = new FormData();
542
+ 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();
522
543
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
523
544
  const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
524
545
  g2 && f2.append("importDuplicateRule", g2);
525
- const b2 = a2.judgeHeavyList;
526
- b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
527
- const C2 = Ce(i2);
528
- C2 && f2.append("autoSetValueData", C2);
529
- const w2 = a2.formNoRuleCode;
530
- w2 && f2.append("formNoRuleCode", w2);
531
- const T2 = e2.listCode;
532
- T2 && f2.append("listCode", T2);
533
- let y2 = false;
534
- y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
535
- const k2 = t(a2);
536
- null != k2 && f2.append("isWorkflowEntity", k2 + "");
537
- const R2 = P(i2, a2);
538
- R2 && f2.append("functionCode", R2);
539
- const S2 = ae(a2);
540
- f2.append("additionalParamMapStr", JSON.stringify(S2));
541
- const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
542
- f2.append("isPermission", M2 + "");
543
- const N2 = a2.systemCode;
544
- N2 && f2.append("systemCode", N2);
545
- const v2 = a2.backendUrl;
546
- let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
547
- I2 = o(I2, N2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
548
- if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
546
+ const C2 = a2.judgeHeavyList;
547
+ C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
548
+ const b2 = ke(i2);
549
+ b2 && f2.append("autoSetValueData", b2);
550
+ const T2 = a2.formNoRuleCode;
551
+ T2 && f2.append("formNoRuleCode", T2);
552
+ const w2 = e2.listCode;
553
+ w2 && f2.append("listCode", w2);
554
+ let k2 = false;
555
+ k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
556
+ const y2 = t(a2);
557
+ null != y2 && f2.append("isWorkflowEntity", y2 + "");
558
+ const P2 = S(i2, a2);
559
+ P2 && f2.append("functionCode", P2);
560
+ const R2 = re(a2);
561
+ f2.append("additionalParamMapStr", JSON.stringify(R2));
562
+ const I2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
563
+ f2.append("isPermission", I2 + "");
564
+ const M2 = a2.systemCode;
565
+ M2 && f2.append("systemCode", M2);
566
+ const N2 = a2.backendUrl;
567
+ let v2 = n(N2, a2.isTest) + "/dsc/commons/import-data";
568
+ v2 = o(v2, M2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
569
+ if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
549
570
  else {
550
571
  let t2 = false;
551
- e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
572
+ 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, h(a2, i2);
552
573
  }
553
574
  }).catch((e3) => {
554
575
  });
555
576
  }
556
- function Z(e2, t2) {
577
+ function ee(e2, t2) {
557
578
  const s2 = e2.props.base;
558
579
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
559
580
  if ("one" === s2.conditionsForExecution) {
@@ -562,31 +583,31 @@ function Z(e2, t2) {
562
583
  }
563
584
  return true;
564
585
  }
565
- function ee(e2) {
586
+ function te(e2) {
566
587
  var _a;
567
588
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
568
- let r2 = P(n2, t2);
589
+ let r2 = S(n2, t2);
569
590
  r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
570
- 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 };
591
+ 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 };
571
592
  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);
572
593
  const u2 = n2.props.base.conversionCodes;
573
594
  u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
574
- const l2 = Ce(n2);
595
+ const l2 = ke(n2);
575
596
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
576
597
  const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
577
598
  p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
578
- const d2 = ae(t2);
599
+ const d2 = re(t2);
579
600
  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]));
580
601
  const m2 = n2.props.base.successOperation;
581
602
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
582
603
  }
583
- function te(e2, t2, s2, n2, o2) {
604
+ function se(e2, t2, s2, n2, o2) {
584
605
  const a2 = s2.code, i2 = s2.version;
585
606
  let r2;
586
607
  if (e2) {
587
608
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
588
- const s3 = ae(t3);
589
- e3 && s3 && g(s3._t_ + "_id", e3);
609
+ const s3 = re(t3);
610
+ e3 && s3 && C(s3._t_ + "_id", e3);
590
611
  }(e2.entity.id || e2.entity.ID, s2));
591
612
  const o3 = e2.completeTaskResult;
592
613
  if (o3) {
@@ -598,61 +619,62 @@ function te(e2, t2, s2, n2, o2) {
598
619
  }
599
620
  if (e2.completeTaskParam) {
600
621
  const t3 = e2.completeTaskParam;
601
- r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
622
+ 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;
602
623
  }
603
- s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
624
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
604
625
  }
605
- return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
606
- }
607
- async function se(e2, t2) {
608
- const s2 = await function(e3) {
609
- return new Promise((t3, s3) => {
610
- var _a, _b, _c, _d;
611
- const n2 = e3.configureObj;
612
- if (n2) {
613
- let s4 = false;
614
- if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
615
- const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
616
- s4 = N(t4, n2, o2);
617
- }
618
- true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
619
- t3(e4);
620
- }).catch(() => {
621
- t3(false);
622
- }) : t3(true);
623
- } else t3(true);
624
- });
625
- }(e2);
626
+ return n2 && (n2.operationResult = o2), t2 || H(s2, n2.configureObj, e2, null, false), true;
627
+ }
628
+ async function ne(e2, t2) {
629
+ const s2 = await oe(e2);
626
630
  return new Promise((a2, i2) => {
627
631
  var _a;
628
632
  if (s2) {
629
633
  const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
630
634
  let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
631
635
  if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
632
- const g2 = ee(e2);
636
+ const g2 = te(e2);
633
637
  g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
634
638
  c.post(f2, g2).then((s3) => {
635
639
  let n2 = true;
636
- s3 && (n2 = te(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
640
+ s3 && (n2 = se(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
637
641
  }).catch((e3) => {
638
642
  i2(e3);
639
643
  });
640
644
  } else a2(true);
641
645
  });
642
646
  }
643
- function ne(e2, t2) {
647
+ function oe(e2) {
648
+ return new Promise((t2, s2) => {
649
+ var _a, _b, _c, _d;
650
+ const n2 = e2.configureObj;
651
+ if (n2) {
652
+ let s3 = false;
653
+ if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
654
+ const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
655
+ s3 = N(t3, o2);
656
+ }
657
+ 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 }) => {
658
+ t2(e3);
659
+ }).catch(() => {
660
+ t2(false);
661
+ }) : t2(true);
662
+ } else t2(true);
663
+ });
664
+ }
665
+ function ae(e2, t2) {
644
666
  if (t2) {
645
- const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
646
- c2.assigneeId = r2, ce(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
667
+ 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);
668
+ c2.assigneeId = r2, le(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
647
669
  h(s2, o2);
648
670
  });
649
671
  }
650
672
  }
651
- function oe(e2) {
652
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ae(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
673
+ function ie(e2) {
674
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = re(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 };
653
675
  return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
654
676
  }
655
- function ae(t2) {
677
+ function re(t2) {
656
678
  if (t2.entity) {
657
679
  let s2 = e(t2.entity.page);
658
680
  s2 || (s2 = {});
@@ -660,20 +682,20 @@ function ae(t2) {
660
682
  return n2 && Object.assign(s2, n2), s2;
661
683
  }
662
684
  }
663
- function ie(e2, t2) {
685
+ function ce(e2, t2) {
664
686
  if (t2) {
665
687
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
666
688
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
667
689
  if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
668
- const d2 = oe(e2);
690
+ const d2 = ie(e2);
669
691
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
670
692
  const m2 = c.post(p2, d2);
671
693
  m2 && m2.then((e3) => {
672
- l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2, a2, e3, null, false), h(s2, a2);
694
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), h(s2, a2);
673
695
  });
674
696
  }
675
697
  }
676
- async function re(e2, t2) {
698
+ async function ue(e2, t2) {
677
699
  if (t2) {
678
700
  const s2 = await function(e3) {
679
701
  return new Promise((t3, s3) => {
@@ -681,9 +703,10 @@ async function re(e2, t2) {
681
703
  const n2 = e3.configureObj;
682
704
  if (n2) {
683
705
  let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
684
- if (true === s4) {
706
+ if (void 0 === s4 || true === s4) {
707
+ s4 = true;
685
708
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
686
- s4 = N(t4, n2, o2);
709
+ s4 = N(t4, o2);
687
710
  }
688
711
  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 }) => {
689
712
  t3(e4);
@@ -697,7 +720,7 @@ async function re(e2, t2) {
697
720
  const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
698
721
  let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
699
722
  if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
700
- const m2 = oe(e2);
723
+ const m2 = ie(e2);
701
724
  m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
702
725
  const f2 = c.post(d2, m2);
703
726
  f2 && f2.then((e3) => {
@@ -706,53 +729,61 @@ async function re(e2, t2) {
706
729
  }
707
730
  }
708
731
  }
709
- function ce(e2, t2, s2, n2) {
710
- return new Promise((a2, i2) => {
711
- const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
712
- if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
713
- const m2 = c.post(s2, t2);
714
- m2 && m2.then((t3) => {
715
- let s3 = true;
716
- t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), a2(true);
717
- }).catch((e3) => {
718
- i2(e3);
719
- });
732
+ async function le(e2, t2, s2, n2) {
733
+ const a2 = await oe(e2);
734
+ return new Promise((i2, r2) => {
735
+ var _a;
736
+ if (a2) {
737
+ const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
738
+ if (p2.completeTaskParam) {
739
+ const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
740
+ t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
741
+ }
742
+ if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
743
+ const f2 = c.post(s2, t2);
744
+ f2 && f2.then((t3) => {
745
+ let s3 = true;
746
+ t3 && (s3 = se(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
747
+ }).catch((e3) => {
748
+ r2(e3);
749
+ });
750
+ } else i2(true);
720
751
  });
721
752
  }
722
- function ue(e2) {
753
+ function pe(e2) {
723
754
  const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
724
755
  let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
725
756
  if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
726
- const p2 = t2.code, d2 = ae(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
757
+ const p2 = t2.code, d2 = re(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
727
758
  return c.post(r2, m2);
728
759
  }
729
- function le(e2, t2) {
730
- const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
731
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
760
+ function de(e2, t2) {
761
+ const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
762
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), le(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
732
763
  h(s2, o2);
733
764
  });
734
765
  }
735
- function pe(e2) {
766
+ function me(e2) {
736
767
  const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
737
768
  let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
738
- const r2 = ee(e2);
769
+ const r2 = te(e2);
739
770
  if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
740
771
  l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
741
772
  }
742
- function de(e2, t2) {
773
+ function fe(e2, t2) {
743
774
  if (t2) {
744
775
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
745
776
  let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
746
777
  if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
747
- const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ee(e2);
778
+ const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = te(e2);
748
779
  m2.ids = d2;
749
780
  const f2 = c.post(p2, m2);
750
781
  f2 && f2.then((e3) => {
751
- q(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
782
+ H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
752
783
  });
753
784
  }
754
785
  }
755
- function me(e2, t2, s2, n2, o2) {
786
+ function ge(e2, t2, s2, n2, o2) {
756
787
  let a2 = false;
757
788
  return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
758
789
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
@@ -807,7 +838,19 @@ function me(e2, t2, s2, n2, o2) {
807
838
  }(t2) : "kiken" === e2 ? a2 = function(e3) {
808
839
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
809
840
  return false;
810
- }(t2) : function(e3, t3) {
841
+ }(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
842
+ var _a;
843
+ const n3 = d(), o3 = n3 ? n3.loginName : null;
844
+ if (e3 == null ? void 0 : e3.processState) {
845
+ if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
846
+ if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
847
+ }
848
+ return false;
849
+ }(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
850
+ const n3 = d(), o3 = n3 ? n3.loginName : null;
851
+ if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
852
+ return false;
853
+ }(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = Ce(t2) : function(e3, t3) {
811
854
  return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
812
855
  const t4 = e4;
813
856
  let s3 = true;
@@ -819,32 +862,35 @@ function me(e2, t2, s2, n2, o2) {
819
862
  return false;
820
863
  }(t2))), a2;
821
864
  }
822
- function fe(e2, t2) {
823
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ge(e2, t2).then((t3) => {
865
+ function Ce(e2, t2, s2) {
866
+ return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
867
+ }
868
+ function be(e2, t2) {
869
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Te(e2, t2).then((t3) => {
824
870
  e2.isRefresh = true;
825
871
  });
826
872
  }
827
- function ge(e2, s2, o2) {
873
+ function Te(e2, s2, o2) {
828
874
  const a2 = e2.pageType;
829
875
  if (a2 && "form" === a2) {
830
876
  e2.canClick = false;
831
877
  return t(e2) ? function(e3, t2, s3) {
832
878
  return new Promise((o3, a3) => {
833
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
834
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
835
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
836
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
879
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
880
+ let d2 = t2 || null, m2 = t2 ? [t2] : null;
881
+ 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);
882
+ 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 };
837
883
  if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
838
884
  const t3 = {};
839
885
  e3.tableUuids.forEach((e4) => {
840
886
  const s4 = r(u2, l2, e4);
841
887
  t3[s4] = s4;
842
- }), C2.listCodesMap = t3;
888
+ }), b2.listCodesMap = t3;
843
889
  }
844
- f2 && (C2.ids = be(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
845
- const w2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
846
- y2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(w2, C2).then((t3) => {
847
- e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
890
+ m2 && (b2.ids = we(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);
891
+ const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
892
+ w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
893
+ e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
848
894
  const s4 = e3.pageType;
849
895
  s4 && "form" === s4 && function(e4) {
850
896
  (function(e5) {
@@ -868,6 +914,7 @@ function ge(e2, s2, o2) {
868
914
  const o4 = n2[e6], a4 = t4.get(e6);
869
915
  if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
870
916
  else {
917
+ o4 && 0 !== Object.keys(o4.deleteCondition).length || (o4.deleteCondition = null), o4 && 0 !== Object.keys(o4.updateCondition).length || (o4.updateCondition = null);
871
918
  const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
872
919
  void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
873
920
  }
@@ -876,30 +923,30 @@ function ge(e2, s2, o2) {
876
923
  }
877
924
  e5.actionPermissionMap = s5;
878
925
  }(e4);
879
- }(e3), e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
926
+ }(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
880
927
  }).catch((t3) => {
881
928
  e3.canClick = true, a3(t3);
882
929
  });
883
930
  });
884
931
  }(e2, s2, o2) : function(e3, t2, s3) {
885
932
  return new Promise((o3, a3) => {
886
- const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ae(e3);
887
- let d2 = t2 || null, f2 = t2 ? [t2] : null;
888
- void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
889
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), w2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
890
- if (!w2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (w2.id = m(p2._t_ + "_id")), f2 && (w2.ids = be(f2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), g2 && (w2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
933
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
934
+ let d2 = t2 || null, m2 = t2 ? [t2] : null;
935
+ 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);
936
+ 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 };
937
+ if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = we(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 || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
891
938
  const t3 = {};
892
939
  e3.tableUuids.forEach((e4) => {
893
940
  const s4 = r(u2, l2, e4);
894
941
  t3[s4] = s4;
895
- }), w2.listCodesMap = t3;
942
+ }), T2.listCodesMap = t3;
896
943
  }
897
- e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
898
- const y2 = C2 + "/dsc/commons/gets", h2 = _();
899
- h2.restorePageLoadState(), T(null, e3, e3, "beforeFormLoadData"), c.post(y2, w2).then((t3) => {
944
+ e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
945
+ const w2 = b2 + "/dsc/commons/gets", y2 = j();
946
+ y2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
900
947
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
901
- const s4 = e3.customRules, n2 = e3.rules, a4 = E(s4, n2);
902
- e3.rules = a4, e3.canClick = true, T(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
948
+ const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
949
+ e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
903
950
  }).catch((t3) => {
904
951
  e3.canClick = true, a3(t3);
905
952
  });
@@ -910,10 +957,10 @@ function ge(e2, s2, o2) {
910
957
  e3(true);
911
958
  });
912
959
  }
913
- function be(e2) {
960
+ function we(e2) {
914
961
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
915
962
  }
916
- function Ce(e2) {
963
+ function ke(e2) {
917
964
  const t2 = e2.props.setValueList;
918
965
  if (t2) {
919
966
  if (s(t2) && t2.length > 0) return JSON.stringify(t2);
@@ -921,41 +968,41 @@ function Ce(e2) {
921
968
  }
922
969
  return null;
923
970
  }
924
- function we(e2, t2) {
971
+ function ye(e2, t2) {
925
972
  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";
926
973
  return c.post(a2, o2);
927
974
  }
928
- function Te(e2) {
975
+ function he(e2) {
929
976
  const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
930
977
  return c.get(s2);
931
978
  }
932
- function ye(e2) {
979
+ function Pe(e2) {
933
980
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
934
981
  return c.delete(t2);
935
982
  }
936
983
  export {
937
- q as dealAfterOperate,
938
- te as dealCompleteTaskParam,
939
- ye as deleteChartCondition,
940
- ie as doAddSigner,
941
- ne as doAssign,
942
- re as doCreateCopyTask,
943
- X as doImportFinally,
944
- de as doRemoveSigners,
945
- le as doReturnTaskTo,
984
+ H as dealAfterOperate,
985
+ se as dealCompleteTaskParam,
986
+ Pe as deleteChartCondition,
987
+ ce as doAddSigner,
988
+ ae as doAssign,
989
+ ue as doCreateCopyTask,
990
+ Z as doImportFinally,
991
+ fe as doRemoveSigners,
992
+ de as doReturnTaskTo,
946
993
  L as exportFormReport,
947
- ae as getAdditionalParamMap,
948
- ge as getFormData,
949
- pe as getRemoveSigner,
950
- $ as getSaveFormRequest,
951
- F as getSaveFormRequestWithRow,
952
- ue as getTaskInformitions,
953
- me as isVisibleWorkflowButton,
954
- Z as judgeDataNumber,
955
- Te as listChartConditions,
956
- K as refreshFormOrListPage,
957
- fe as refreshPage,
958
- we as saveChartConditionBase,
959
- j as standardEvents,
960
- Y as updateValuesWhenCloseDialog
994
+ re as getAdditionalParamMap,
995
+ Te as getFormData,
996
+ me as getRemoveSigner,
997
+ q as getSaveFormRequest,
998
+ $ as getSaveFormRequestWithRow,
999
+ pe as getTaskInformitions,
1000
+ ge as isVisibleWorkflowButton,
1001
+ ee as judgeDataNumber,
1002
+ he as listChartConditions,
1003
+ X as refreshFormOrListPage,
1004
+ be as refreshPage,
1005
+ ye as saveChartConditionBase,
1006
+ D as standardEvents,
1007
+ z as updateValuesWhenCloseDialog
961
1008
  };