super-page-runtime 2.2.77-sit1 → 2.2.77-sit8

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.
@@ -1,66 +1,65 @@
1
1
  import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
- import u from "agilebuilder-ui/src/store";
4
- import { getI18n as l } from "agilebuilder-ui/src/utils/util";
5
- import { ElMessage as p, ElMessageBox as d } from "element-plus";
6
- import { getToken as m, getSessionCache as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
7
- import { getComponentRef as b } from "../global-refs.js";
8
- import C from "../eventBus.js";
3
+ import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
+ import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
+ import { getToken as d, getSessionCache as m, setSessionCache as f } from "agilebuilder-ui/src/utils/auth";
6
+ import { getComponentRef as g } from "../global-refs.js";
7
+ import b from "../eventBus.js";
9
8
  import "axios";
10
- import { handleEvent as y, getTableUuid as T, doAfterClickEvent as P } from "./event-util.js";
11
- import { setStoreInfo as h } from "../store-util.js";
12
- import { getPermissionCodes as w, getDefaultValue as k, getModelFields as R } from "../page-init-util.js";
13
- import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as S } from "../page-helper-util.js";
14
- import I from "./print-label.js";
15
- import { getTableNameByTableUuid as x } from "../table-utils.js";
16
- import { getWorkflowRules as A, packageCustomRules as O } from "./validator-util.js";
9
+ import { handleEvent as C, getTableUuid as T, doAfterClickEvent as y } from "./event-util.js";
10
+ import { setStoreInfo as P } from "../store-util.js";
11
+ import { getPermissionCodes as h, getDefaultValue as w, getModelFields as k } from "../page-init-util.js";
12
+ import { updateChartDatasources as R, caculateShowCondition as M, getVariableValue as N, setVariableValue as v } from "../page-helper-util.js";
13
+ import S from "./print-label.js";
14
+ import { getTableNameByTableUuid as I } from "../table-utils.js";
15
+ import { getWorkflowRules as x, packageCustomRules as A } from "./validator-util.js";
17
16
  import { functions as U } from "../api/page-expose-util.js";
18
- import { usePageContextStore as E } from "../page-store.js";
19
- const _ = { save: function(e2) {
20
- return L(e2, false);
17
+ import { usePageContextStore as O } from "../page-store.js";
18
+ const E = { save: function(e2) {
19
+ return D(e2, false);
21
20
  }, saveList: function(e2) {
22
- return L(e2, true);
21
+ return D(e2, true);
23
22
  }, exportForm: function(e2) {
24
23
  const t2 = e2.pageContext.code + "_";
25
- C.$emit(t2 + "export-form-report", e2);
24
+ b.$emit(t2 + "export-form-report", e2);
26
25
  }, exportPDF: function(e2) {
27
26
  const t2 = e2.pageContext.code + "_";
28
- C.$emit(t2 + "export-pdf-report", e2);
27
+ b.$emit(t2 + "export-pdf-report", e2);
29
28
  }, submit: function(e2) {
30
- return J(e2, false, "submit", "/dsc/commons/submits");
29
+ return G(e2, false, "submit", "/dsc/commons/submits");
31
30
  }, submitList: function(e2) {
32
- return J(e2, true, "submit", "/dsc/commons/batch-submits");
31
+ return G(e2, true, "submit", "/dsc/commons/batch-submits");
33
32
  }, agree: function(e2) {
34
- return J(e2, false, "agree", "/dsc/commons/approves");
33
+ return G(e2, false, "agree", "/dsc/commons/approves");
35
34
  }, agreeList: function(e2) {
36
- return J(e2, true, "agree", "/dsc/commons/batch-approves");
35
+ return G(e2, true, "agree", "/dsc/commons/batch-approves");
37
36
  }, disagree: function(e2) {
38
- return J(e2, false, "disagree", "/dsc/commons/refuses");
37
+ return G(e2, false, "disagree", "/dsc/commons/refuses");
39
38
  }, disagreeList: function(e2) {
40
- return J(e2, true, "disagree", "/dsc/commons/batch-refuses");
39
+ return G(e2, true, "disagree", "/dsc/commons/batch-refuses");
41
40
  }, back: function(e2) {
42
41
  const t2 = e2.pageContext;
43
- H(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
42
+ $(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
44
43
  }, delete: function(e2) {
45
44
  return function(e3) {
46
45
  return new Promise((s2, i2) => {
47
46
  const a2 = e3.ids;
48
- if (!a2 || 0 === a2.length) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
49
- d.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
47
+ if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
+ p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
50
49
  var _a;
51
- const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
52
- let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
53
- g2 = o(g2, p2, d2, r2.isTest);
54
- const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = w(u2, r2), P2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
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 = I(r2, m2);
51
+ let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
+ b2 = o(b2, p2, d2, r2.isTest);
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = h(u2, r2), P2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
55
54
  r2.beanName && (P2.beanName = r2.beanName);
56
- const h2 = u2.props.deleteLogicSetting;
57
- h2 && ("object" == typeof h2 ? P2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (P2.deleteLogicSetting = h2));
55
+ const w2 = u2.props.deleteLogicSetting;
56
+ w2 && ("object" == typeof w2 ? P2.deleteLogicSetting = JSON.stringify(w2) : "string" == typeof w2 && (P2.deleteLogicSetting = w2));
58
57
  const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
59
58
  k2 && (P2.logSettingText = k2.join(""));
60
59
  const R2 = u2.props.base.isSafeDelete;
61
- R2 && (P2.isSafeDelete = R2), c.delete(g2, { data: P2 }).then((e4) => {
62
- const t2 = b(r2, m2);
63
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), F(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
60
+ R2 && (P2.isSafeDelete = R2), c.delete(b2, { data: P2 }).then((e4) => {
61
+ const t2 = g(r2, m2);
62
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), V(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
64
63
  }).catch((e4) => {
65
64
  i2(e4);
66
65
  });
@@ -76,32 +75,32 @@ const _ = { save: function(e2) {
76
75
  let r2, c2;
77
76
  a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
78
77
  const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
79
- let d2 = "?1=1";
80
- 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");
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");
81
80
  const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
82
- g2 && (d2 += "&logSettingText=" + g2.join(""));
83
- u2 && (d2 += "&systemCode=" + u2);
81
+ g2 && (f2 += "&logSettingText=" + g2.join(""));
82
+ u2 && (f2 += "&systemCode=" + u2);
84
83
  const b2 = e3.listCode;
85
- b2 && (d2 += "&listCode=" + b2);
86
- t2.beanName && (d2 += "&beanName=" + t2.beanName);
87
- const C2 = w(s2, t2);
88
- C2 && (d2 += "&functionCode=" + C2);
89
- t2.tableName && (d2 += "&tableName=" + t2.tableName);
90
- t2.code && (d2 += "&pageCode=" + t2.code);
91
- t2.version && (d2 += "&pageVersion=" + t2.version);
92
- const y2 = m();
93
- y2 && (d2 += "&JWT=" + y2);
94
- const T2 = "_RUN_CURRENT_ROLE", P2 = f(T2);
95
- P2 && (d2 += "&" + T2 + "=" + P2);
84
+ b2 && (f2 += "&listCode=" + b2);
85
+ t2.beanName && (f2 += "&beanName=" + t2.beanName);
86
+ const C2 = h(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 T2 = d();
92
+ T2 && (f2 += "&JWT=" + T2);
93
+ const y2 = "_RUN_CURRENT_ROLE", P2 = m(y2);
94
+ P2 && (f2 += "&" + y2 + "=" + P2);
96
95
  if (o2) {
97
- d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
96
+ f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
98
97
  }
99
- const h2 = n(l2, t2.isTest);
100
- window.open(h2 + "/dsc/commons/download-files" + d2);
98
+ const w2 = n(l2, t2.isTest);
99
+ window.open(w2 + "/dsc/commons/download-files" + f2);
101
100
  }(e2);
102
101
  }, import: function(e2) {
103
102
  const t2 = e2.pageContext.code + "_";
104
- C.$emit(t2 + "import-file", e2);
103
+ b.$emit(t2 + "import-file", e2);
105
104
  }, export: function(e2) {
106
105
  return function(e3) {
107
106
  return new Promise((t2, s2) => {
@@ -111,118 +110,117 @@ const _ = { save: function(e2) {
111
110
  c2 || (c2 = n2.code);
112
111
  let u2 = false;
113
112
  u2 = void 0 !== o2.isAsync && null !== o2.isAsync && o2.isAsync;
114
- const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = w(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
113
+ const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = h(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
115
114
  window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, i2, p2, null, m2, u2, n2.code, l2);
116
115
  });
117
116
  }(e2);
118
117
  }, search: function(e2) {
119
118
  const t2 = e2.pageContext, s2 = e2.tableUuid;
120
- b(t2, s2).refresh();
119
+ g(t2, s2).refresh();
121
120
  }, showSearch: function(e2) {
122
121
  const t2 = e2.pageContext, s2 = e2.tableUuid;
123
- b(t2, s2).showMobileSearch();
122
+ g(t2, s2).showMobileSearch();
124
123
  }, workflowSave: function(e2) {
125
- var _a, _b;
126
- return (_b = (_a = u) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing"), async function(e3) {
124
+ return b.$emit("clearTableAllStartEditing"), async function(e3) {
127
125
  return new Promise((t2, s2) => {
128
- const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, u2 = i2.backendUrl;
129
- let d2 = n(u2, i2.isTest) + "/dsc/workflow-commons";
130
- if (d2 = o(d2, r2, u2, i2.isTest), !d2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
131
- const m2 = K(e3);
126
+ const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
127
+ let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
128
+ if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
129
+ const m2 = z(e3);
132
130
  let f2;
133
131
  f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
134
132
  let n2 = true;
135
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), t2(true);
133
+ s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), b.$emit("clearTableAllEndEditing"), t2(true);
136
134
  }).catch((e4) => {
137
135
  s2(e4);
138
136
  });
139
137
  });
140
138
  }(e2);
141
139
  }, submitProcess: function(e2) {
142
- var _a, _b;
143
- return (_b = (_a = u) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing"), function(e3) {
140
+ var _a;
141
+ return b.$emit("clearTableAllStartEditing"), (_a = $agilebuilderUIStore == null ? void 0 : $agilebuilderUIStore.dispatch) == null ? void 0 : _a.call($agilebuilderUIStore, "clearAllEditing"), function(e3) {
144
142
  return new Promise((t2, s2) => {
145
143
  const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
146
- let u2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
147
- if (u2 = o(u2, a2, r2, i2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
148
- const d2 = K(e3), m2 = c.post(u2, d2);
144
+ let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
145
+ if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
146
+ const d2 = z(e3), m2 = c.post(p2, d2);
149
147
  m2 && m2.then((s3) => {
150
148
  let n2 = true;
151
- s3 && (n2 = Q(s3, false, i2, e3, null)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
149
+ s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), b.$emit("clearTableAllEndEditing"), t2(true);
152
150
  }).catch((e4) => {
153
151
  s2(e4);
154
152
  });
155
153
  });
156
154
  }(e2);
157
155
  }, submitTask: function(e2) {
158
- return X(e2, "SUBMIT");
156
+ return Q(e2, "SUBMIT");
159
157
  }, approve: function(e2) {
160
- return X(e2, "APPROVE");
158
+ return Q(e2, "APPROVE");
161
159
  }, refuse: function(e2) {
162
- return X(e2, "REFUSE");
160
+ return Q(e2, "REFUSE");
163
161
  }, readed: function(e2) {
164
- return X(e2, "READED");
162
+ return Q(e2, "READED");
165
163
  }, agreement: function(e2) {
166
- return X(e2, "AGREEMENT");
164
+ return Q(e2, "AGREEMENT");
167
165
  }, oppose: function(e2) {
168
- return X(e2, "OPPOSE");
166
+ return Q(e2, "OPPOSE");
169
167
  }, kiken: function(e2) {
170
- return X(e2, "KIKEN");
168
+ return Q(e2, "KIKEN");
171
169
  }, assign: function(e2) {
172
170
  return function(e3) {
173
171
  const t2 = e3.pageContext, s2 = t2.code + "_";
174
- C.$emit(s2 + "assign-task", e3);
172
+ b.$emit(s2 + "assign-task", e3);
175
173
  }(e2);
176
174
  }, copyTask: function(e2) {
177
175
  return function(e3) {
178
176
  const t2 = e3.pageContext, s2 = t2.code + "_";
179
- C.$emit(s2 + "copy-task", e3);
177
+ b.$emit(s2 + "copy-task", e3);
180
178
  }(e2);
181
179
  }, addSigner: function(e2) {
182
180
  return function(e3) {
183
181
  const t2 = e3.pageContext, s2 = t2.code + "_";
184
- C.$emit(s2 + "add-signer", e3);
182
+ b.$emit(s2 + "add-signer", e3);
185
183
  }(e2);
186
184
  }, drawTask: function(e2) {
187
185
  return function(e3) {
188
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = K(e3);
189
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
186
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = z(e3);
187
+ return ne(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
190
188
  }(e2);
191
189
  }, abandonReceive: function(e2) {
192
190
  return function(e3) {
193
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = K(e3);
194
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
191
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = z(e3);
192
+ return ne(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
195
193
  }(e2);
196
194
  }, returnToPreviousTask: function(e2) {
197
195
  return function(e3) {
198
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = K(e3);
199
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
196
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = z(e3);
197
+ return ne(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
200
198
  }(e2);
201
199
  }, endInstance: function(e2) {
202
200
  return function(e3) {
203
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = K(e3);
204
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
201
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = z(e3);
202
+ return ne(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
205
203
  }(e2);
206
204
  }, returnTaskTo: function(e2) {
207
205
  return function(e3) {
208
206
  const t2 = e3.pageContext, s2 = t2.code + "_";
209
- C.$emit(s2 + "choose-return-node", e3);
207
+ b.$emit(s2 + "choose-return-node", e3);
210
208
  }(e2);
211
209
  }, removeSigner: function(e2) {
212
210
  return function(e3) {
213
211
  const t2 = e3.pageContext, s2 = t2.code + "_";
214
- C.$emit(s2 + "remove-signer", e3);
212
+ b.$emit(s2 + "remove-signer", e3);
215
213
  }(e2);
216
214
  }, retrieveTask: function(e2) {
217
215
  return function(e3) {
218
- const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = K(e3);
219
- return oe(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
216
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = z(e3);
217
+ return ne(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
220
218
  }(e2);
221
219
  }, viewDetail: function(e2) {
222
220
  }, lineEditCreate: function(e2) {
223
221
  return function(e3) {
224
- const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
225
- n2 && (e3.getDefaultValueFunc = k, n2.createRow(e3.listCode, {}, e3));
222
+ const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = g(t2, s2);
223
+ n2 && (e3.getDefaultValueFunc = w, n2.createRow(e3.listCode, {}, e3));
226
224
  }(e2);
227
225
  }, printLabel: function(e2) {
228
226
  return function(e3) {
@@ -231,14 +229,14 @@ const _ = { save: function(e2) {
231
229
  if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
232
230
  } catch (e4) {
233
231
  }
234
- I.printLabel(e3, t2);
232
+ S.printLabel(e3, t2);
235
233
  }(e2);
236
234
  }, queryCharts: function(e2) {
237
- j(e2);
235
+ _(e2);
238
236
  }, resetCharts: function(t2) {
239
237
  var _a, _b;
240
238
  const s2 = t2.pageContext;
241
- s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, j(t2);
239
+ s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, _(t2);
242
240
  }, exportCharts: function(e2) {
243
241
  !function(e3) {
244
242
  const t2 = e3.pageContext, s2 = t2.allChartUuids;
@@ -250,7 +248,7 @@ const _ = { save: function(e2) {
250
248
  i2 && (i2.state = "disabled");
251
249
  const r2 = [];
252
250
  for (let e4 = 0; e4 < s2.length; e4++) {
253
- const n2 = s2[e4], o3 = b(t2, n2);
251
+ const n2 = s2[e4], o3 = g(t2, n2);
254
252
  if (o3) {
255
253
  const e5 = o3.getConfigure();
256
254
  e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
@@ -271,29 +269,29 @@ const _ = { save: function(e2) {
271
269
  }, saveQueryCharts: function(e2) {
272
270
  !function(e3) {
273
271
  const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
274
- C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
272
+ b.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
275
273
  }(e2);
276
274
  } };
277
- function j(e2) {
275
+ function _(e2) {
278
276
  const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
279
277
  if (!s2 || 0 == s2.length) return;
280
278
  const n2 = e2.configureObj;
281
279
  let o2 = null;
282
280
  n2 && n2.runtime && (o2 = n2.runtime.props);
283
281
  const i2 = o2 ? o2.state : void 0;
284
- o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
282
+ o2 && (o2.state = "disabled"), R(t2, s2, void 0, e2.isInitChart).then(() => {
285
283
  o2 && (o2.state = i2);
286
284
  }).catch(() => {
287
285
  o2 && (o2.state = i2);
288
286
  });
289
287
  }
290
- function D(e2, s2, o2, i2) {
288
+ function j(e2, s2, o2, i2) {
291
289
  var _a;
292
- const a2 = o2.templateUuid, r2 = o2.templateName, u2 = e2.systemCode, l2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, p2 = t(e2), d2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = U.getFormViewData(e2), C2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, y2 = { entity: b2, fileName: a2, showName: r2, beanName: d2, isWorkflowForm: p2, functionCode: w(s2, e2), tableName: f2, isPermission: C2 + "", systemCode: u2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
293
- l2 && (y2.logSettingText = l2.join(""));
294
- const T2 = te(e2);
295
- let h2;
296
- y2.additionalParamMap = T2, h2 = i2 ? function(e3, t2, s3, o3) {
290
+ const a2 = o2.templateUuid, r2 = o2.templateName, u2 = e2.systemCode, l2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, p2 = t(e2), d2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = U.getFormViewData(e2), C2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: b2, fileName: a2, showName: r2, beanName: d2, isWorkflowForm: p2, functionCode: h(s2, e2), tableName: f2, isPermission: C2 + "", systemCode: u2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
291
+ l2 && (T2.logSettingText = l2.join(""));
292
+ const P2 = ee(e2);
293
+ let w2;
294
+ T2.additionalParamMap = P2, w2 = i2 ? function(e3, t2, s3, o3) {
297
295
  return new Promise((i3, a3) => {
298
296
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
299
297
  c.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
@@ -303,7 +301,7 @@ function D(e2, s2, o2, i2) {
303
301
  a3(e4);
304
302
  });
305
303
  });
306
- }(r2, g2, y2, e2.isTest) : function(e3, t2, s3, o3) {
304
+ }(r2, g2, T2, e2.isTest) : function(e3, t2, s3, o3) {
307
305
  return new Promise((i3, a3) => {
308
306
  const r3 = n(t2, o3) + "/dsc/commons/export-reports";
309
307
  c.post(r3, s3, { responseType: "blob" }).then((t3) => {
@@ -316,43 +314,43 @@ function D(e2, s2, o2, i2) {
316
314
  a3(e4);
317
315
  });
318
316
  });
319
- }(r2, g2, y2, e2.isTest), h2 && h2.then(() => {
320
- P(e2, s2);
317
+ }(r2, g2, T2, e2.isTest), w2 && w2.then(() => {
318
+ y(e2, s2);
321
319
  });
322
320
  }
323
- function L(e2, t2) {
321
+ function D(e2, t2) {
324
322
  return new Promise((s2, n2) => {
325
323
  const o2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
326
324
  let u2 = false;
327
325
  c2 && "noOperation" === c2 && (u2 = true);
328
- const l2 = V(o2, i2, "/dsc/commons", u2, a2, r2);
326
+ const l2 = W(o2, i2, "/dsc/commons", u2, a2, r2);
329
327
  l2 ? l2.then((e3) => {
330
- F(o2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
328
+ V(o2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
331
329
  }).catch((e3) => {
332
330
  n2(e3);
333
331
  }) : n2("保存时request不存在");
334
332
  });
335
333
  }
336
- function B(e2, n2, o2, i2, a2, r2, c2) {
334
+ function L(e2, n2, o2, i2, a2, r2, c2) {
337
335
  var _a;
338
- const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = w(n2, e2);
336
+ const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = h(n2, e2);
339
337
  let m2 = c2;
340
338
  m2 || (m2 = e2.entity.data);
341
339
  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 };
342
340
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
343
341
  const g2 = n2.props.base.conversionCodes;
344
342
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
345
- const b2 = me(n2);
343
+ const b2 = de(n2);
346
344
  b2 && (f2.autoSetValueData = b2);
347
345
  const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
348
346
  C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
349
- const y2 = e2.beanName;
350
- y2 && (f2.beanName = y2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
351
- const T2 = te(e2);
352
- return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
347
+ const T2 = e2.beanName;
348
+ T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
349
+ const y2 = ee(e2);
350
+ return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
353
351
  }
354
- function W(e2, t2, s2, i2, a2, r2, u2, l2) {
355
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
352
+ function B(e2, t2, s2, i2, a2, r2, u2, l2) {
353
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = L(e2, t2, i2, a2, r2, null, u2);
356
354
  return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
357
355
  const u3 = n(t3, r3);
358
356
  let l3, p3 = u3 + i3;
@@ -360,25 +358,25 @@ function W(e2, t2, s2, i2, a2, r2, u2, l2) {
360
358
  return l3;
361
359
  }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
362
360
  }
363
- function V(e2, t2, s2, n2, o2, i2) {
364
- return W(e2, t2, s2, n2, o2, i2, null, null);
361
+ function W(e2, t2, s2, n2, o2, i2) {
362
+ return B(e2, t2, s2, n2, o2, i2, null, null);
365
363
  }
366
- function F(t2, s2, n2, o2, i2) {
367
- const a2 = q(t2, s2, i2);
364
+ function V(t2, s2, n2, o2, i2) {
365
+ const a2 = F(t2, s2, i2);
368
366
  a2 && "list" === a2 ? (!function(t3, s3, n3, o3) {
369
367
  let i3 = s3.props.base.successOperation;
370
368
  const a3 = s3.props.base.isNeedValueMapping, r2 = T(t3, s3);
371
369
  i3 || (i3 = "refresh");
372
370
  if ("refresh" === i3) {
373
371
  if (r2) {
374
- b(t3, r2).refresh();
372
+ g(t3, r2).refresh();
375
373
  }
376
374
  } else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
377
375
  const s4 = e(t3.entity.page);
378
376
  let o4 = n3;
379
- o4 || (o4 = {}), Object.assign(s4, o4), H(t3, s4, a3);
377
+ o4 || (o4 = {}), Object.assign(s4, o4), $(t3, s4, a3);
380
378
  }
381
- o3 && p({ message: l().t(o3), type: "success", showClose: true });
379
+ o3 && l({ message: u().t(o3), type: "success", showClose: true });
382
380
  }(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
383
381
  if (s3) {
384
382
  const n4 = s3;
@@ -388,25 +386,25 @@ function F(t2, s2, n2, o2, i2) {
388
386
  const n5 = t4.props.base.successOperation;
389
387
  if (!n5 || null === n5) return;
390
388
  const o4 = t4.props.base.isNeedValueMapping;
391
- "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (H(e3, s4, o4), e3.canClick = true);
389
+ "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? ue(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || ($(e3, s4, o4), e3.canClick = true);
392
390
  }(e2, t3, { ...o3, ...e2.entity.page });
393
391
  } else e2.canClick = true;
394
- n3 && p({ message: l().t(n3), type: "success", showClose: true });
392
+ n3 && l({ message: u().t(n3), type: "success", showClose: true });
395
393
  }(t2, s2, n2, o2) : t2.canClick = true;
396
394
  }
397
- function q(e2, t2, s2) {
395
+ function F(e2, t2, s2) {
398
396
  let n2;
399
397
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
400
398
  }
401
- function H(e2, t2, s2) {
399
+ function $(e2, t2, s2) {
402
400
  const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
403
401
  if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
404
402
  else {
405
403
  const o2 = e2.tableName, i2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, a2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
406
- C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
404
+ b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
407
405
  }
408
406
  }
409
- function $(e2, t2, s2, n2, o2) {
407
+ function q(e2, t2, s2, n2, o2) {
410
408
  var _a;
411
409
  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);
412
410
  const i2 = e2.tableName;
@@ -416,48 +414,48 @@ function $(e2, t2, s2, n2, o2) {
416
414
  Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
417
415
  const t4 = e4.source;
418
416
  if (!t4) return;
419
- const o3 = t4.split("."), i3 = v(n3, o3), a2 = e4.target, r2 = R(null, a2);
420
- S(s3.entity, r2, i3);
417
+ const o3 = t4.split("."), i3 = N(n3, o3), a2 = e4.target, r2 = k(null, a2);
418
+ v(s3.entity, r2, i3);
421
419
  });
422
420
  }
423
- }(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
421
+ }(s2, o2, e2), C(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
424
422
  }
425
- function G(e2, t2, s2, n2) {
423
+ function H(e2, t2, s2, n2) {
426
424
  var _a;
427
425
  t2 && !t2.props.base && (t2.props.base = {});
428
426
  let o2 = n2;
429
427
  o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
430
- const i2 = q(e2, t2);
428
+ const i2 = F(e2, t2);
431
429
  if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
432
430
  if (i2 && "list" === i2) {
433
431
  const s3 = T(e2, t2);
434
432
  if (s3) {
435
- b(e2, s3).refresh();
433
+ g(e2, s3).refresh();
436
434
  }
437
435
  } else if (i2 && "form" === i2) {
438
436
  const t3 = e2.entity.data;
439
- le(e2, t3.ID ? t3.ID : t3.id);
437
+ ue(e2, t3.ID ? t3.ID : t3.id);
440
438
  }
441
439
  }
442
440
  }
443
- function J(e2, t2, s2, i2) {
444
- return new Promise((r2, u2) => {
445
- const p2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
446
- let y2 = false;
447
- C2 && "noOperation" === C2 && (y2 = true);
448
- let T2 = p2.tableName;
441
+ function G(e2, t2, s2, i2) {
442
+ return new Promise((r2, l2) => {
443
+ const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
444
+ let T2 = false;
445
+ C2 && "noOperation" === C2 && (T2 = true);
446
+ let y2 = d2.tableName;
449
447
  if (t2) {
450
448
  const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
451
- T2 = x(p2, t3);
449
+ y2 = I(d2, t3);
452
450
  }
453
- const P2 = function(e3, t3, s3, i3, r3, u3, p3, m3, f3) {
451
+ const P2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
454
452
  return new Promise((g3, b3) => {
455
- const C3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(p3);
456
- d.confirm(l().t(y3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
457
- const a2 = e3.systemCode, l2 = e3.backendUrl, p4 = B(e3, t3, i3, r3, u3, m3, null);
458
- p4.tableName = f3;
459
- let d2 = n(l2, e3.isTest) + s3;
460
- d2 = o(d2, a2, l2, e3.isTest), c.post(d2, p4).then((e4) => {
453
+ const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
454
+ p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
455
+ const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = L(e3, t3, i3, r3, l3, m3, null);
456
+ p2.tableName = f3;
457
+ let d4 = n(u2, e3.isTest) + s3;
458
+ d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
461
459
  g3(e4);
462
460
  }).catch((e4) => {
463
461
  b3(e4);
@@ -466,103 +464,103 @@ function J(e2, t2, s2, i2) {
466
464
  b3("点击了取消按钮");
467
465
  });
468
466
  });
469
- }(p2, m2, i2, y2, f2, g2, s2, b2, T2);
467
+ }(d2, m2, i2, T2, f2, g2, s2, b2, y2);
470
468
  P2 ? P2.then((e3) => {
471
- F(p2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
469
+ V(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
472
470
  }).catch((e3) => {
473
- u2(e3);
474
- }) : u2("request不存在");
471
+ l2(e3);
472
+ }) : l2("request不存在");
475
473
  });
476
474
  }
477
- function Y(e2, s2) {
475
+ function J(e2, s2) {
478
476
  var _a;
479
- const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, u2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = x(i2, d2), f2 = new FormData();
477
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = I(i2, d2), f2 = new FormData();
480
478
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
481
479
  const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
482
480
  g2 && f2.append("importDuplicateRule", g2);
483
481
  const b2 = i2.judgeHeavyList;
484
482
  b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
485
- const C2 = me(a2);
483
+ const C2 = de(a2);
486
484
  C2 && f2.append("autoSetValueData", C2);
487
- const y2 = i2.formNoRuleCode;
488
- y2 && f2.append("formNoRuleCode", y2);
489
- const T2 = e2.listCode;
490
- T2 && f2.append("listCode", T2);
491
- let h2 = false;
492
- h2 = void 0 !== u2.isAsync && null !== u2.isAsync && u2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
485
+ const T2 = i2.formNoRuleCode;
486
+ T2 && f2.append("formNoRuleCode", T2);
487
+ const P2 = e2.listCode;
488
+ P2 && f2.append("listCode", P2);
489
+ let w2 = false;
490
+ w2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", w2 + ""), f2.append("pageCode", i2.code);
493
491
  const k2 = t(i2);
494
492
  null != k2 && f2.append("isWorkflowEntity", k2 + "");
495
- const R2 = w(a2, i2);
493
+ const R2 = h(a2, i2);
496
494
  R2 && f2.append("functionCode", R2);
497
- const M2 = te(i2);
495
+ const M2 = ee(i2);
498
496
  f2.append("additionalParamMapStr", JSON.stringify(M2));
499
- const N2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission;
497
+ const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
500
498
  f2.append("isPermission", N2 + "");
501
499
  const v2 = i2.systemCode;
502
500
  v2 && f2.append("systemCode", v2);
503
501
  const S2 = i2.backendUrl;
504
- let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
505
- I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
506
- if (h2) p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") });
502
+ let x2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
503
+ x2 = o(x2, v2, S2, i2.isTest), c.post(x2, f2).then((e3) => {
504
+ if (w2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
507
505
  else {
508
506
  let t2 = false;
509
- e3 ? (t2 = false, p({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
507
+ e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), V(i2, a2, e3, null, true), i2.result = t2, y(i2, a2);
510
508
  }
511
509
  }).catch((e3) => {
512
510
  });
513
511
  }
514
- function z(e2, t2) {
512
+ function Y(e2, t2) {
515
513
  const s2 = e2.props.base;
516
514
  if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
517
515
  if ("one" === s2.conditionsForExecution) {
518
- if (!t2 || 1 !== t2.length) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
519
- } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
516
+ if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
517
+ } 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;
520
518
  }
521
519
  return true;
522
520
  }
523
- function K(e2) {
521
+ function z(e2) {
524
522
  var _a;
525
523
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
526
- let r2 = w(n2, t2);
524
+ let r2 = h(n2, t2);
527
525
  r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
528
526
  const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
529
527
  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);
530
528
  const u2 = n2.props.base.conversionCodes;
531
529
  u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
532
- const l2 = me(n2);
530
+ const l2 = de(n2);
533
531
  l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
534
532
  const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
535
533
  p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
536
- const d2 = te(t2);
534
+ const d2 = ee(t2);
537
535
  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]));
538
536
  const m2 = n2.props.base.successOperation;
539
537
  return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
540
538
  }
541
- function Q(e2, t2, s2, n2, o2) {
539
+ function K(e2, t2, s2, n2, o2) {
542
540
  const i2 = s2.code, a2 = s2.version;
543
541
  let r2;
544
542
  if (e2) {
545
543
  t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
546
- const s3 = te(t3);
547
- e3 && s3 && g(s3._t_ + "_id", e3);
544
+ const s3 = ee(t3);
545
+ e3 && s3 && f(s3._t_ + "_id", e3);
548
546
  }(e2.entity.id || e2.entity.ID, s2));
549
547
  const o3 = e2.completeTaskResult;
550
548
  if (o3) {
551
549
  const e3 = o3.completeTaskTipType;
552
550
  if (e3 && "MESSAGE" === e3) {
553
551
  const e4 = o3.content;
554
- return p({ showClose: true, type: "warning", message: e4 }), false;
552
+ return l({ showClose: true, type: "warning", message: e4 }), false;
555
553
  }
556
554
  }
557
555
  if (e2.completeTaskParam) {
558
556
  const t3 = e2.completeTaskParam;
559
- r2 = t3.taskId, n2 && (n2.taskId = r2), h(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
557
+ r2 = t3.taskId, n2 && (n2.taskId = r2), P(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
560
558
  }
561
- s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, h(i2, a2, "_currentActivityName", e2.taskName);
559
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(i2, a2, "_currentActivityName", e2.taskName);
562
560
  }
563
- return n2 && (n2.operationResult = o2), t2 || F(s2, n2.configureObj, e2, null, false), true;
561
+ return n2 && (n2.operationResult = o2), t2 || V(s2, n2.configureObj, e2, null, false), true;
564
562
  }
565
- async function X(e2, t2) {
563
+ async function Q(e2, t2) {
566
564
  const s2 = await function(e3) {
567
565
  return new Promise((t3, s3) => {
568
566
  var _a, _b, _c, _d;
@@ -571,9 +569,9 @@ async function X(e2, t2) {
571
569
  let s4 = false;
572
570
  if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
573
571
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
574
- s4 = N(t4, n2, o2);
572
+ s4 = M(t4, n2, o2);
575
573
  }
576
- true === s4 ? d.prompt(l().t("superPageRuntimeMessage.pleaseInputOpinion"), l().t("superPageRuntimeMessage.opinion"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
574
+ 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 }) => {
577
575
  t3(e4);
578
576
  }).catch(() => {
579
577
  t3(false);
@@ -584,33 +582,33 @@ async function X(e2, t2) {
584
582
  return new Promise((i2, a2) => {
585
583
  var _a;
586
584
  if (s2) {
587
- const r2 = e2.pageContext, u2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
585
+ const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
588
586
  let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
589
- if (f2 = o(f2, u2, d2, r2.isTest), !f2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
590
- const g2 = K(e2);
587
+ if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
588
+ const g2 = z(e2);
591
589
  g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
592
590
  c.post(f2, g2).then((s3) => {
593
591
  let n2 = true;
594
- s3 && (n2 = Q(s3, false, r2, e2, t2)), true === n2 && p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
592
+ s3 && (n2 = K(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
595
593
  }).catch((e3) => {
596
594
  a2(e3);
597
595
  });
598
596
  } else i2(true);
599
597
  });
600
598
  }
601
- function Z(e2, t2) {
599
+ function X(e2, t2) {
602
600
  if (t2) {
603
- const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = K(e2);
604
- c2.assigneeId = r2, oe(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
605
- P(s2, o2);
601
+ const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = z(e2);
602
+ c2.assigneeId = r2, ne(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
603
+ y(s2, o2);
606
604
  });
607
605
  }
608
606
  }
609
- function ee(e2) {
610
- const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = te(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
607
+ function Z(e2) {
608
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = ee(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
611
609
  return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
612
610
  }
613
- function te(t2) {
611
+ function ee(t2) {
614
612
  if (t2.entity) {
615
613
  let s2 = e(t2.entity.page);
616
614
  s2 || (s2 = {});
@@ -618,20 +616,20 @@ function te(t2) {
618
616
  return n2 && Object.assign(s2, n2), s2;
619
617
  }
620
618
  }
621
- function se(e2, t2) {
619
+ function te(e2, t2) {
622
620
  if (t2) {
623
621
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
624
- let u2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
625
- if (u2 = o(u2, a2, r2, s2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
626
- const d2 = ee(e2);
622
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
623
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
624
+ const d2 = Z(e2);
627
625
  d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
628
- const m2 = c.post(u2, d2);
626
+ const m2 = c.post(p2, d2);
629
627
  m2 && m2.then((e3) => {
630
- p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && F(s2, i2, e3, null, false), P(s2, i2);
628
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && V(s2, i2, e3, null, false), y(s2, i2);
631
629
  });
632
630
  }
633
631
  }
634
- async function ne(e2, t2) {
632
+ async function se(e2, t2) {
635
633
  if (t2) {
636
634
  const s2 = await function(e3) {
637
635
  return new Promise((t3, s3) => {
@@ -641,9 +639,9 @@ async function ne(e2, t2) {
641
639
  let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
642
640
  if (true === s4) {
643
641
  const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
644
- s4 = N(t4, n2, o2);
642
+ s4 = M(t4, n2, o2);
645
643
  }
646
- true === s4 ? d.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 }) => {
644
+ 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 }) => {
647
645
  t3(e4);
648
646
  }).catch(() => {
649
647
  t3(false);
@@ -652,65 +650,65 @@ async function ne(e2, t2) {
652
650
  });
653
651
  }(e2);
654
652
  if (s2) {
655
- const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, u2 = i2.backendUrl;
656
- let d2 = n(u2, i2.isTest) + "/dsc/workflow-commons/copies";
657
- if (d2 = o(d2, r2, u2, i2.isTest), !d2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
658
- const m2 = ee(e2);
653
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
654
+ let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
655
+ if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
656
+ const m2 = Z(e2);
659
657
  m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
660
658
  const f2 = c.post(d2, m2);
661
659
  f2 && f2.then((e3) => {
662
- p({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
660
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), y(i2, a2);
663
661
  });
664
662
  }
665
663
  }
666
664
  }
667
- function oe(e2, t2, s2, n2) {
665
+ function ne(e2, t2, s2, n2) {
668
666
  return new Promise((i2, a2) => {
669
- const r2 = e2.pageContext, u2 = r2.systemCode, d2 = r2.backendUrl;
670
- if (!(s2 = o(s2, u2, d2, r2.isTest))) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
667
+ const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
668
+ if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
671
669
  const m2 = c.post(s2, t2);
672
670
  m2 && m2.then((t3) => {
673
671
  let s3 = true;
674
- t3 && (s3 = Q(t3, false, r2, e2, null)), true === s3 && p({ showClose: true, type: "success", message: l().t(n2) }), i2(true);
672
+ t3 && (s3 = K(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
675
673
  }).catch((e3) => {
676
674
  a2(e3);
677
675
  });
678
676
  });
679
677
  }
680
- function ie(e2) {
678
+ function oe(e2) {
681
679
  const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
682
680
  let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
683
- if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
684
- const u2 = t2.code, d2 = te(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: u2 + ".xxx" };
681
+ if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
682
+ const p2 = t2.code, d2 = ee(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
685
683
  return c.post(r2, m2);
686
684
  }
687
- function ae(e2, t2) {
688
- const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = K(e2);
689
- t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
690
- P(s2, o2);
685
+ function ie(e2, t2) {
686
+ const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = z(e2);
687
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ne(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
688
+ y(s2, o2);
691
689
  });
692
690
  }
693
- function re(e2) {
691
+ function ae(e2) {
694
692
  const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
695
693
  let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
696
- const r2 = K(e2);
694
+ const r2 = z(e2);
697
695
  if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
698
- p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
696
+ l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
699
697
  }
700
- function ce(e2, t2) {
698
+ function re(e2, t2) {
701
699
  if (t2) {
702
700
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
703
- let u2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
704
- if (u2 = o(u2, a2, r2, s2.isTest), !u2) return void p({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
705
- const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = K(e2);
701
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
702
+ if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
703
+ const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = z(e2);
706
704
  m2.ids = d2;
707
- const f2 = c.post(u2, m2);
705
+ const f2 = c.post(p2, m2);
708
706
  f2 && f2.then((e3) => {
709
- F(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
707
+ V(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, i2);
710
708
  });
711
709
  }
712
710
  }
713
- function ue(e2, t2, s2) {
711
+ function ce(e2, t2, s2) {
714
712
  let n2 = false;
715
713
  return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
716
714
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
@@ -772,32 +770,32 @@ function ue(e2, t2, s2) {
772
770
  return false;
773
771
  }(t2))), n2;
774
772
  }
775
- function le(e2, t2) {
776
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, pe(e2, t2).then((t3) => {
773
+ function ue(e2, t2) {
774
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, le(e2, t2).then((t3) => {
777
775
  e2.isRefresh = true;
778
776
  });
779
777
  }
780
- function pe(e2, s2, o2) {
778
+ function le(e2, s2, o2) {
781
779
  const i2 = e2.pageType;
782
780
  if (i2 && "form" === i2) {
783
781
  e2.canClick = false;
784
782
  return t(e2) ? function(e3, t2, s3) {
785
783
  return new Promise((o3, i3) => {
786
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
787
- let d2 = t2 || null, m2 = t2 ? [t2] : null;
788
- 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);
789
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
784
+ const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
785
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
786
+ 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);
787
+ const g2 = p2 ? p2.taskId : null, b2 = u2, T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
790
788
  if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
791
789
  const t3 = {};
792
790
  e3.tableUuids.forEach((e4) => {
793
791
  const s4 = r(u2, l2, e4);
794
792
  t3[s4] = s4;
795
- }), C2.listCodesMap = t3;
793
+ }), T2.listCodesMap = t3;
796
794
  }
797
- m2 && (C2.ids = de(m2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (C2.id = f(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);
798
- const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", P2 = E();
799
- P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
800
- e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = A(e3);
795
+ f2 && (T2.ids = pe(f2)), g2 ? T2.taskId = g2 : d2 ? T2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
796
+ const y2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", P2 = O();
797
+ P2.restorePageLoadState(), C(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
798
+ e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, K(t3, true, e3), e3.workflowRules = x(e3);
801
799
  const s4 = e3.pageType;
802
800
  s4 && "form" === s4 && function(e4) {
803
801
  (function(e5) {
@@ -829,30 +827,30 @@ function pe(e2, s2, o2) {
829
827
  }
830
828
  e5.actionPermissionMap = s5;
831
829
  }(e4);
832
- }(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
830
+ }(e3), e3.canClick = true, C(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
833
831
  }).catch((t3) => {
834
832
  e3.canClick = true, i3(t3);
835
833
  });
836
834
  });
837
835
  }(e2, s2, o2) : function(e3, t2, s3) {
838
836
  return new Promise((o3, i3) => {
839
- const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = te(e3);
840
- let d2 = t2 || null, m2 = t2 ? [t2] : null;
841
- 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);
842
- const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
843
- if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = de(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) {
837
+ const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
838
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
839
+ 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);
840
+ const g2 = p2 ? p2.taskId : null, b2 = u2, T2 = n(e3.backendUrl, e3.isTest), y2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
841
+ if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), f2 && (y2.ids = pe(f2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), g2 && (y2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
844
842
  const t3 = {};
845
843
  e3.tableUuids.forEach((e4) => {
846
844
  const s4 = r(u2, l2, e4);
847
845
  t3[s4] = s4;
848
- }), T2.listCodesMap = t3;
846
+ }), y2.listCodesMap = t3;
849
847
  }
850
- e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
851
- const P2 = C2 + "/dsc/commons/gets", h2 = E();
852
- h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(P2, T2).then((t3) => {
848
+ e3.refercePropMap && (y2.refercePropMap = e3.refercePropMap);
849
+ const P2 = T2 + "/dsc/commons/gets", h2 = O();
850
+ h2.restorePageLoadState(), C(null, e3, e3, "beforeFormLoadData"), c.post(P2, y2).then((t3) => {
853
851
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
854
- const s4 = e3.customRules, n2 = e3.rules, i4 = O(s4, n2);
855
- e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
852
+ const s4 = e3.customRules, n2 = e3.rules, i4 = A(s4, n2);
853
+ e3.rules = i4, e3.canClick = true, C(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
856
854
  }).catch((t3) => {
857
855
  e3.canClick = true, i3(t3);
858
856
  });
@@ -863,10 +861,10 @@ function pe(e2, s2, o2) {
863
861
  e3(true);
864
862
  });
865
863
  }
866
- function de(e2) {
864
+ function pe(e2) {
867
865
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
868
866
  }
869
- function me(e2) {
867
+ function de(e2) {
870
868
  const t2 = e2.props.setValueList;
871
869
  if (t2) {
872
870
  if (s(t2) && t2.length > 0) return JSON.stringify(t2);
@@ -874,41 +872,41 @@ function me(e2) {
874
872
  }
875
873
  return null;
876
874
  }
877
- function fe(e2, t2) {
875
+ function me(e2, t2) {
878
876
  const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
879
877
  return c.post(i2, o2);
880
878
  }
881
- function ge(e2) {
879
+ function fe(e2) {
882
880
  const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
883
881
  return c.get(s2);
884
882
  }
885
- function be(e2) {
883
+ function ge(e2) {
886
884
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
887
885
  return c.delete(t2);
888
886
  }
889
887
  export {
890
- F as dealAfterOperate,
891
- Q as dealCompleteTaskParam,
892
- be as deleteChartCondition,
893
- se as doAddSigner,
894
- Z as doAssign,
895
- ne as doCreateCopyTask,
896
- Y as doImportFinally,
897
- ce as doRemoveSigners,
898
- ae as doReturnTaskTo,
899
- D as exportFormReport,
900
- te as getAdditionalParamMap,
901
- pe as getFormData,
902
- re as getRemoveSigner,
903
- V as getSaveFormRequest,
904
- W as getSaveFormRequestWithRow,
905
- ie as getTaskInformitions,
906
- ue as isVisibleWorkflowButton,
907
- z as judgeDataNumber,
908
- ge as listChartConditions,
909
- G as refreshFormOrListPage,
910
- le as refreshPage,
911
- fe as saveChartConditionBase,
912
- _ as standardEvents,
913
- $ as updateValuesWhenCloseDialog
888
+ V as dealAfterOperate,
889
+ K as dealCompleteTaskParam,
890
+ ge as deleteChartCondition,
891
+ te as doAddSigner,
892
+ X as doAssign,
893
+ se as doCreateCopyTask,
894
+ J as doImportFinally,
895
+ re as doRemoveSigners,
896
+ ie as doReturnTaskTo,
897
+ j as exportFormReport,
898
+ ee as getAdditionalParamMap,
899
+ le as getFormData,
900
+ ae as getRemoveSigner,
901
+ W as getSaveFormRequest,
902
+ B as getSaveFormRequestWithRow,
903
+ oe as getTaskInformitions,
904
+ ce as isVisibleWorkflowButton,
905
+ Y as judgeDataNumber,
906
+ fe as listChartConditions,
907
+ H as refreshFormOrListPage,
908
+ ue as refreshPage,
909
+ me as saveChartConditionBase,
910
+ E as standardEvents,
911
+ q as updateValuesWhenCloseDialog
914
912
  };