super-page-runtime 2.3.39-cdnTmp1 → 2.3.39-cdnTmp2

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,6 +1,6 @@
1
- import { deepCopy as de, getBaseUrl as I, getRealRestApiPath as F, isWorkflowPage as ue, isArrayFn as re, packageTemplateFiles as $e, upperFirstCase as qe, getListCode as Ie } from "../common-util.mjs";
2
- import { getCurrentUser as Re, getI18n as b, http as A, isMobileBrowser as q, getToken as Te, getSessionCache as ae, setSessionCache as He, getRunCurrentRole as Ge } from "agilebuilder-ui";
3
- import { ElMessage as k, ElMessageBox as me, ElNotification as Je } from "element-plus";
1
+ import { deepCopy as de, getBaseUrl as R, getRealRestApiPath as F, isWorkflowPage as ue, isArrayFn as re, packageTemplateFiles as $e, upperFirstCase as qe, getListCode as Ie } from "../common-util.mjs";
2
+ import { getCurrentUser as Re, getI18n as b, http as U, isMobileBrowser as q, getToken as Te, getSessionCache as ae, setSessionCache as He, getRunCurrentRole as Ge } from "agilebuilder-ui";
3
+ import { ElMessage as h, ElMessageBox as me, ElNotification as Je } from "element-plus";
4
4
  import { getComponentRef as z } from "../global-refs.mjs";
5
5
  import j from "../eventBus.mjs";
6
6
  import ce from "axios";
@@ -9,13 +9,13 @@ import { setStoreInfo as ve } from "../store-util.mjs";
9
9
  import { getPermissionCodes as Q, getDefaultValue as Ye, getModelFields as ze } from "../page-init-util.mjs";
10
10
  import { caculateShowCondition as le, updateChartDatasources as Ke, getVariableValue as Xe, setVariableValue as Qe } from "../page-helper-util.mjs";
11
11
  import Ze from "./print-label.mjs";
12
- import { getTableNameByTableUuid as ke, getCurrentUserFileTasks as et, setFileTaskRead as tt } from "../table-utils.mjs";
12
+ import { getTableNameByTableUuid as he, getCurrentUserFileTasks as et, setFileTaskRead as tt } from "../table-utils.mjs";
13
13
  import { getWorkflowRules as st, packageCustomRules as ot } from "./validator-util.mjs";
14
14
  import { functions as nt } from "../api/page-expose-util.mjs";
15
- import { usePageContextStore as xe } from "../page-store.mjs";
15
+ import { usePageContextStore as Se } from "../page-store.mjs";
16
16
  import { h as at } from "vue";
17
17
  import it from "../../views/assemblys/common/file-task-notice.vue.mjs";
18
- import { cacheBackfillData as te, removeCacheFillData as Y, hasBackfillData as Se, getRealFillData as rt, removeCacheFillDataById as ct } from "./data-backfill-util.mjs";
18
+ import { cacheBackfillData as te, removeCacheFillData as Y, hasBackfillData as xe, getRealFillData as rt, removeCacheFillDataById as ct } from "./data-backfill-util.mjs";
19
19
  const At = { save: function(e) {
20
20
  return Ne(e, !1);
21
21
  }, saveList: function(e) {
@@ -40,31 +40,31 @@ const At = { save: function(e) {
40
40
  return ee(e, !0, "disagree", "/dsc/commons/batch-refuses");
41
41
  }, back: function(e) {
42
42
  const t = e.pageContext, s = t.entity ? t.entity.data : {}, a = !(!e.configureObj.props || !e.configureObj.props.base) && e.configureObj.props.base.isNeedValueMapping;
43
- he(t, e.configureObj, s, a);
43
+ ke(t, e.configureObj, s, a);
44
44
  }, delete: function(e) {
45
45
  return function(t) {
46
46
  return new Promise((s, a) => {
47
47
  const o = t.ids;
48
- if (!o || o.length === 0) return k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s(!0);
48
+ if (!o || o.length === 0) return h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s(!0);
49
49
  me.confirm(b().t("superPageRuntimeMessage.whetherToConfirmDeletion"), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
50
- var O, P, R;
51
- const n = t.pageContext, r = t.configureObj, c = r.props.base, l = n.systemCode, m = n.backendUrl, u = r.props.base.tableUuid ? r.props.base.tableUuid : t.tableUuid, p = ke(n, u);
52
- let d = I(m, n.isTest) + "/dsc/commons/" + p;
50
+ var M, P, v;
51
+ const n = t.pageContext, r = t.configureObj, c = r.props.base, l = n.systemCode, m = n.backendUrl, u = r.props.base.tableUuid ? r.props.base.tableUuid : t.tableUuid, p = he(n, u);
52
+ let d = R(m, n.isTest) + "/dsc/commons/" + p;
53
53
  d = F(d, l, m, n.isTest);
54
54
  const C = c.isPermission === void 0 || c.isPermission === "true" || c.isPermission, T = ue(n), i = Q(r, n), f = { ids: o, functionCode: i, isPermission: C + "", systemCode: l, isWorkflowEntity: T, listCodesMap: n.listCodesMap, pageCode: n.code, pageVersion: n.version };
55
55
  n.beanName && (f.beanName = n.beanName);
56
56
  const g = r.props.deleteLogicSetting;
57
57
  g && (typeof g == "object" ? f.deleteLogicSetting = JSON.stringify(g) : typeof g == "string" && (f.deleteLogicSetting = g));
58
- const w = (O = r.props.base) == null ? void 0 : O.logSetting;
58
+ const w = (M = r.props.base) == null ? void 0 : M.logSetting;
59
59
  w && (f.logSettingText = w.join(""));
60
- const h = r.props.base.isSafeDelete;
61
- h && (f.isSafeDelete = h);
62
- const y = (R = (P = r.runtime) == null ? void 0 : P.props) == null ? void 0 : R.title;
63
- y && (f.currentOperation = y), f.isMobile = q(), A.delete(d, { data: f }).then((M) => {
64
- const x = z(n, u);
65
- x && (x.isDeleteChange(!0), x.clearSelections()), J(n, r, M, "superPageRuntimeMessage.successfulDelete", !0), s(!0);
66
- }).catch((M) => {
67
- a(M);
60
+ const k = r.props.base.isSafeDelete;
61
+ k && (f.isSafeDelete = k);
62
+ const y = (v = (P = r.runtime) == null ? void 0 : P.props) == null ? void 0 : v.title;
63
+ y && (f.currentOperation = y), f.isMobile = q(), U.delete(d, { data: f }).then((I) => {
64
+ const S = z(n, u);
65
+ S && (S.isDeleteChange(!0), S.clearSelections()), J(n, r, I, "superPageRuntimeMessage.successfulDelete", !0), s(!0);
66
+ }).catch((I) => {
67
+ a(I);
68
68
  });
69
69
  }).catch(() => {
70
70
  a();
@@ -73,7 +73,7 @@ const At = { save: function(e) {
73
73
  }(e);
74
74
  }, downloadTemplate: function(e) {
75
75
  (function(t) {
76
- var y, O, P;
76
+ var y, M, P;
77
77
  const s = t.pageContext, a = t.configureObj, o = a.props.base, n = $e(o.templateFiles, s, a);
78
78
  let r, c;
79
79
  n && n.length > 0 && (r = n[0].templateUuid, c = n[0].templateName);
@@ -88,15 +88,14 @@ const At = { save: function(e) {
88
88
  T && (p += "&functionCode=" + T), s.tableName && (p += "&tableName=" + s.tableName), s.code && (p += "&pageCode=" + s.code), s.version && (p += "&pageVersion=" + s.version);
89
89
  const i = Te();
90
90
  i && (p += "&JWT=" + i);
91
- const f = (P = (O = a.runtime) == null ? void 0 : O.props) == null ? void 0 : P.title;
91
+ const f = (P = (M = a.runtime) == null ? void 0 : M.props) == null ? void 0 : P.title;
92
92
  f && (p += "&currentOperation=" + encodeURI(f)), p += "&isMobile=" + q();
93
93
  const g = "_RUN_CURRENT_ROLE", w = ae(g);
94
94
  w && (p += "&" + g + "=" + w), o && (p += "&isPermission=" + (o.isPermission === void 0 || o.isPermission === "true" || o.isPermission));
95
- const h = I(m, s.isTest);
96
- A.get(h + "/dsc/commons/download-files" + p, { responseType: "blob" }).then((R) => {
97
- var U;
98
- const M = u || "template.xlsx", x = { xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xls: "application/vnd.ms-excel", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", doc: "application/msword", pdf: "application/pdf", csv: "text/csv" }[((U = M.split(".").pop()) == null ? void 0 : U.toLowerCase()) ?? "xlsx"] ?? "application/octet-stream", S = new Blob([R], { type: x }), N = URL.createObjectURL(S), v = document.createElement("a");
99
- v.style.display = "none", v.href = N, v.setAttribute("download", M), document.body.appendChild(v), v.click(), document.body.removeChild(v), URL.revokeObjectURL(N);
95
+ const k = R(m, s.isTest);
96
+ window.$http({ url: encodeURI(k + "/dsc/commons/download-files" + p), method: "get", responseType: "blob" }).then((v) => {
97
+ const I = document.createElement("a"), S = new Blob([v], { type: "application/vnd.ms-excel;charset=UTF-8" });
98
+ I.style.display = "none", I.remove("download"), I.href = URL.createObjectURL(S), I.setAttribute("download", u || "template.xlsx"), document.body.appendChild(I), I.click(), document.body.removeChild(I);
100
99
  });
101
100
  })(e);
102
101
  }, import: function(e) {
@@ -105,7 +104,7 @@ const At = { save: function(e) {
105
104
  }, export: function(e) {
106
105
  return function(t) {
107
106
  return new Promise((s, a) => {
108
- var g, w, h, y, O, P, R, M, x, S, N, v;
107
+ var g, w, k, y, M, P, v, I, S, x, N, O;
109
108
  const o = t.pageContext, n = t.configureObj, r = n.props.base, c = t.listCode, l = t.selections, m = {};
110
109
  l && l.length > 0 && (m.data = l);
111
110
  let u = o.label;
@@ -113,7 +112,7 @@ const At = { save: function(e) {
113
112
  let p = !1;
114
113
  p = r.isAsync !== void 0 && r.isAsync !== null && r.isAsync;
115
114
  const d = r.isPermission === void 0 || r.isPermission === "true" || r.isPermission, C = Q(n, o), T = u, i = { backendUrl: o.backendUrl, pageContext: o }, f = (w = (g = n.runtime) == null ? void 0 : g.props) == null ? void 0 : w.title;
116
- f && (i.currentOperation = f), i.isShowWatermark = ((y = (h = n.props) == null ? void 0 : h.watermark) == null ? void 0 : y.isShowWatermark) === void 0 ? "true" : ((P = (O = n.props) == null ? void 0 : O.watermark) == null ? void 0 : P.isShowWatermark) + "", i.watermarkContent = (M = (R = n.props) == null ? void 0 : R.watermark) != null && M.content && ((S = (x = n.props) == null ? void 0 : x.watermark) == null ? void 0 : S.content.length) > 0 ? (v = (N = n.props) == null ? void 0 : N.watermark) == null ? void 0 : v.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(m, T, c, C, null, i, p, o.code, d), p && setTimeout(() => {
115
+ f && (i.currentOperation = f), i.isShowWatermark = ((y = (k = n.props) == null ? void 0 : k.watermark) == null ? void 0 : y.isShowWatermark) === void 0 ? "true" : ((P = (M = n.props) == null ? void 0 : M.watermark) == null ? void 0 : P.isShowWatermark) + "", i.watermarkContent = (I = (v = n.props) == null ? void 0 : v.watermark) != null && I.content && ((x = (S = n.props) == null ? void 0 : S.watermark) == null ? void 0 : x.content.length) > 0 ? (O = (N = n.props) == null ? void 0 : N.watermark) == null ? void 0 : O.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(m, T, c, C, null, i, p, o.code, d), p && setTimeout(() => {
117
116
  Fe(o);
118
117
  }, 100);
119
118
  });
@@ -128,13 +127,13 @@ const At = { save: function(e) {
128
127
  return j.$emit("clearTableAllStartEditing"), async function(t) {
129
128
  return new Promise((s, a) => {
130
129
  const o = t.pageContext, n = o.entity.data, r = o.systemCode, c = o.backendUrl;
131
- let l = I(c, o.isTest) + "/dsc/workflow-commons";
132
- if (l = F(l, r, c, o.isTest), !l) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
130
+ let l = R(c, o.isTest) + "/dsc/workflow-commons";
131
+ if (l = F(l, r, c, o.isTest), !l) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
133
132
  const m = W(t);
134
133
  let u;
135
- u = n.id || n.ID ? A.put(l, m) : A.post(l, m), te(o.code, n), u.then((p) => {
134
+ u = n.id || n.ID ? U.put(l, m) : U.post(l, m), te(o.code, n), u.then((p) => {
136
135
  let d = !0;
137
- p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSave") }), j.$emit("clearTableAllEndEditing"), s(!0);
136
+ p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSave") }), j.$emit("clearTableAllEndEditing"), s(!0);
138
137
  }).catch((p) => {
139
138
  a(p);
140
139
  });
@@ -147,15 +146,15 @@ const At = { save: function(e) {
147
146
  if (o.fileuploadInfo && o.fileuploadInfo.length > 0) {
148
147
  const l = o.fileuploadInfo[0];
149
148
  let m;
150
- l.isTable && l.tableTitle && l.rowIndex !== void 0 ? (l.rowIndex, l.rowIndex, m = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: l.label, tableTitle: l.tableTitle, rowIndex: l.rowIndex + 1 })) : m = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: l.label }), k({ message: m, type: "warning", showClose: !0 }), s(!1);
149
+ l.isTable && l.tableTitle && l.rowIndex !== void 0 ? (l.rowIndex, l.rowIndex, m = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: l.label, tableTitle: l.tableTitle, rowIndex: l.rowIndex + 1 })) : m = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: l.label }), h({ message: m, type: "warning", showClose: !0 }), s(!1);
151
150
  } else {
152
- let l = I(c, o.isTest) + "/dsc/workflow-commons/start";
153
- if (l = F(l, r, c, o.isTest), !l) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
151
+ let l = R(c, o.isTest) + "/dsc/workflow-commons/start";
152
+ if (l = F(l, r, c, o.isTest), !l) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
154
153
  const m = W(t);
155
154
  let u;
156
- n.workflow_id || n.WORKFLOW_ID ? (l = I(c, o.isTest) + "/dsc/workflow-commons", l = F(l, r, c, o.isTest), u = A.put(l, m)) : u = A.post(l, m), te(o.code, n), u.then((p) => {
155
+ n.workflow_id || n.WORKFLOW_ID ? (l = R(c, o.isTest) + "/dsc/workflow-commons", l = F(l, r, c, o.isTest), u = U.put(l, m)) : u = U.post(l, m), te(o.code, n), u.then((p) => {
157
156
  let d = !0;
158
- p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulStart") }), j.$emit("clearTableAllEndEditing"), s(!0);
157
+ p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulStart") }), j.$emit("clearTableAllEndEditing"), s(!0);
159
158
  }).catch((p) => {
160
159
  a(p);
161
160
  });
@@ -169,17 +168,17 @@ const At = { save: function(e) {
169
168
  if (o.fileuploadInfo && o.fileuploadInfo.length > 0) {
170
169
  const n = o.fileuploadInfo[0];
171
170
  let r;
172
- n.isTable && n.tableTitle && n.rowIndex !== void 0 ? (n.rowIndex, n.rowIndex, r = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: n.label, tableTitle: n.tableTitle, rowIndex: n.rowIndex + 1 })) : r = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: n.label }), k({ message: r, type: "warning", showClose: !0 }), s(!1);
171
+ n.isTable && n.tableTitle && n.rowIndex !== void 0 ? (n.rowIndex, n.rowIndex, r = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: n.label, tableTitle: n.tableTitle, rowIndex: n.rowIndex + 1 })) : r = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: n.label }), h({ message: r, type: "warning", showClose: !0 }), s(!1);
173
172
  } else {
174
173
  const n = o.systemCode, r = o.backendUrl;
175
- let c = I(r, o.isTest) + "/dsc/workflow-commons/submit";
176
- if (c = F(c, n, r, o.isTest), !c) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
174
+ let c = R(r, o.isTest) + "/dsc/workflow-commons/submit";
175
+ if (c = F(c, n, r, o.isTest), !c) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
177
176
  const l = W(t);
178
177
  te(o.code, o.entity.data);
179
- const m = A.post(c, l);
178
+ const m = U.post(c, l);
180
179
  m ? m.then((u) => {
181
180
  let p = !0;
182
- u && (Y(o.code, o.entity.data), p = Z(u, !1, o, t, null)), p === !0 && k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSubmit") }), j.$emit("clearTableAllEndEditing"), s(!0);
181
+ u && (Y(o.code, o.entity.data), p = Z(u, !1, o, t, null)), p === !0 && h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSubmit") }), j.$emit("clearTableAllEndEditing"), s(!0);
183
182
  }).catch((u) => {
184
183
  a(u);
185
184
  }) : Y(o.code, o.entity.data);
@@ -217,22 +216,22 @@ const At = { save: function(e) {
217
216
  }(e);
218
217
  }, drawTask: function(e) {
219
218
  return function(t) {
220
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/draw-tasks", n = W(t);
219
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/draw-tasks", n = W(t);
221
220
  return $(t, n, o, "superPageRuntimeMessage.successfulDrawTask");
222
221
  }(e);
223
222
  }, abandonReceive: function(e) {
224
223
  return function(t) {
225
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/abandon-receives", n = W(t);
224
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/abandon-receives", n = W(t);
226
225
  return $(t, n, o, "superPageRuntimeMessage.successfulAbandonReceive");
227
226
  }(e);
228
227
  }, returnToPreviousTask: function(e) {
229
228
  return function(t) {
230
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", n = W(t);
229
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", n = W(t);
231
230
  return $(t, n, o, "superPageRuntimeMessage.successfulReturnToPreviousTask");
232
231
  }(e);
233
232
  }, endInstance: function(e) {
234
233
  return function(t) {
235
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/end-instance", n = W(t);
234
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/end-instance", n = W(t);
236
235
  return $(t, n, o, "superPageRuntimeMessage.successfulEndInstance");
237
236
  }(e);
238
237
  }, returnTaskTo: function(e) {
@@ -247,7 +246,7 @@ const At = { save: function(e) {
247
246
  }(e);
248
247
  }, retrieveTask: function(e) {
249
248
  return function(t) {
250
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/retrieves", n = W(t);
249
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/retrieves", n = W(t);
251
250
  return $(t, n, o, "superPageRuntimeMessage.successfulRetrieve");
252
251
  }(e);
253
252
  }, extractWorkflow: function(e) {
@@ -259,17 +258,17 @@ const At = { save: function(e) {
259
258
  }(e);
260
259
  }, cancelExtractWorkflow: function(e) {
261
260
  return function(t) {
262
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/cancel-extract", n = W(t);
261
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/cancel-extract", n = W(t);
263
262
  return $(t, n, o, "superPageRuntimeMessage.successfulCancelExtract");
264
263
  }(e);
265
264
  }, approveExtractWorkflow: function(e) {
266
265
  return function(t) {
267
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/approve-extract", n = W(t);
266
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/approve-extract", n = W(t);
268
267
  return $(t, n, o, "superPageRuntimeMessage.successfulOperation");
269
268
  }(e);
270
269
  }, refuseExtractWorkflow: function(e) {
271
270
  return function(t) {
272
- const s = t.pageContext, a = s.backendUrl, o = I(a, s.isTest) + "/dsc/workflow-commons/refuse-extract", n = W(t);
271
+ const s = t.pageContext, a = s.backendUrl, o = R(a, s.isTest) + "/dsc/workflow-commons/refuse-extract", n = W(t);
273
272
  return $(t, n, o, "superPageRuntimeMessage.successfulOperation");
274
273
  }(e);
275
274
  }, viewDetail: function(e) {
@@ -296,7 +295,7 @@ const At = { save: function(e) {
296
295
  Object.assign(t.entity.data, de((s = t.initChartData) == null ? void 0 : s.data)), Object.assign(t.entity.page, de((a = t.initChartData) == null ? void 0 : a.page)), e.isInitChart = !0, Me(e);
297
296
  }, exportCharts: function(e) {
298
297
  (function(t) {
299
- var i, f, g, w, h, y, O, P, R, M, x, S;
298
+ var i, f, g, w, k, y, M, P, v, I, S, x;
300
299
  const s = t.pageContext, a = s.allChartUuids;
301
300
  if (!a || a.length == 0) return;
302
301
  const o = t.configureObj;
@@ -306,10 +305,10 @@ const At = { save: function(e) {
306
305
  n && (n.state = "disabled");
307
306
  const c = [];
308
307
  for (let N = 0; N < a.length; N++) {
309
- const v = a[N], U = z(s, v);
310
- if (U) {
311
- const E = U.getConfigure();
312
- E && E.exportable && E._dynamicShowFlag && U.exportChart && c.push(U.exportChart());
308
+ const O = a[N], A = z(s, O);
309
+ if (A) {
310
+ const E = A.getConfigure();
311
+ E && E.exportable && E._dynamicShowFlag && A.exportChart && c.push(A.exportChart());
313
312
  }
314
313
  }
315
314
  if (!c || c.length == 0) return;
@@ -318,11 +317,11 @@ const At = { save: function(e) {
318
317
  const u = { reportDataList: c, beanName: s.beanName, systemCode: s.systemCode, pageCode: s.code }, p = G(s);
319
318
  u.additionalParamMap = p;
320
319
  const d = (f = (i = o.runtime) == null ? void 0 : i.props) == null ? void 0 : f.title;
321
- d && (u.currentOperation = d), u.isMobile = q(), u.isShowWatermark = ((w = (g = o.props) == null ? void 0 : g.watermark) == null ? void 0 : w.isShowWatermark) === void 0 ? "true" : ((y = (h = o.props) == null ? void 0 : h.watermark) == null ? void 0 : y.isShowWatermark) + "", u.watermark = (P = (O = o.props) == null ? void 0 : O.watermark) != null && P.content && ((M = (R = o.props) == null ? void 0 : R.watermark) == null ? void 0 : M.content.length) > 0 ? (S = (x = o.props) == null ? void 0 : x.watermark) == null ? void 0 : S.content.join("-~") : "";
322
- const C = s.backendUrl, T = I(C, s.isTest) + "/dsc/commons/exportChart";
320
+ d && (u.currentOperation = d), u.isMobile = q(), u.isShowWatermark = ((w = (g = o.props) == null ? void 0 : g.watermark) == null ? void 0 : w.isShowWatermark) === void 0 ? "true" : ((y = (k = o.props) == null ? void 0 : k.watermark) == null ? void 0 : y.isShowWatermark) + "", u.watermark = (P = (M = o.props) == null ? void 0 : M.watermark) != null && P.content && ((I = (v = o.props) == null ? void 0 : v.watermark) == null ? void 0 : I.content.length) > 0 ? (x = (S = o.props) == null ? void 0 : S.watermark) == null ? void 0 : x.content.join("-~") : "";
321
+ const C = s.backendUrl, T = R(C, s.isTest) + "/dsc/commons/exportChart";
323
322
  we(), ce.post(T, u, { responseType: "blob" }).then((N) => {
324
- const v = document.createElement("a");
325
- v.style.display = "none", v.href = URL.createObjectURL(N.data), v.setAttribute("download", l + ".xlsx"), document.body.appendChild(v), v.click(), document.body.removeChild(v);
323
+ const O = document.createElement("a");
324
+ O.style.display = "none", O.href = URL.createObjectURL(N.data), O.setAttribute("download", l + ".xlsx"), document.body.appendChild(O), O.click(), document.body.removeChild(O);
326
325
  }).finally(() => {
327
326
  n && (n.state = r);
328
327
  });
@@ -357,9 +356,9 @@ function Me(e) {
357
356
  });
358
357
  }
359
358
  function Et(e, t, s, a) {
360
- var h, y, O, P, R, M, x, S, N, v, U, E, D;
359
+ var k, y, M, P, v, I, S, x, N, O, A, E, D;
361
360
  e.clickUuid = t.uuid, e.canClick = !1;
362
- const o = s.templateUuid, n = s.templateName, r = e.systemCode, c = (h = t.props.base) == null ? void 0 : h.logSetting, l = ue(e), m = e.beanName, u = t.props.base, p = t.tableName ? t.tableName : e.tableName, d = e.backendUrl, C = nt.getFormViewData(e), T = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, i = { entity: C, fileName: o, showName: n, beanName: m, isWorkflowForm: l, functionCode: Q(t, e), tableName: p, isPermission: T + "", systemCode: r, listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
361
+ const o = s.templateUuid, n = s.templateName, r = e.systemCode, c = (k = t.props.base) == null ? void 0 : k.logSetting, l = ue(e), m = e.beanName, u = t.props.base, p = t.tableName ? t.tableName : e.tableName, d = e.backendUrl, C = nt.getFormViewData(e), T = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, i = { entity: C, fileName: o, showName: n, beanName: m, isWorkflowForm: l, functionCode: Q(t, e), tableName: p, isPermission: T + "", systemCode: r, listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
363
362
  if (e.tableUuids && e.tableUuids.length > 0) {
364
363
  const _ = {};
365
364
  e.tableUuids.forEach((V) => {
@@ -371,13 +370,13 @@ function Et(e, t, s, a) {
371
370
  }), i.subTableColumns = _;
372
371
  }
373
372
  c && (i.logSettingText = c.join(""));
374
- const f = (O = (y = t.runtime) == null ? void 0 : y.props) == null ? void 0 : O.title;
373
+ const f = (M = (y = t.runtime) == null ? void 0 : y.props) == null ? void 0 : M.title;
375
374
  f && (i.currentOperation = f), i.isMobile = q();
376
375
  const g = G(e);
377
376
  let w;
378
- i.additionalParamMap = g, i.isShowWatermark = ((R = (P = t.props) == null ? void 0 : P.watermark) == null ? void 0 : R.isShowWatermark) === void 0 ? "true" : ((x = (M = t.props) == null ? void 0 : M.watermark) == null ? void 0 : x.isShowWatermark) + "", i.watermark = (N = (S = t.props) == null ? void 0 : S.watermark) != null && N.content && ((U = (v = t.props) == null ? void 0 : v.watermark) == null ? void 0 : U.content.length) > 0 ? (D = (E = t.props) == null ? void 0 : E.watermark) == null ? void 0 : D.content.join("-~") : "", w = a ? function(_, V, L, se) {
377
+ i.additionalParamMap = g, i.isShowWatermark = ((v = (P = t.props) == null ? void 0 : P.watermark) == null ? void 0 : v.isShowWatermark) === void 0 ? "true" : ((S = (I = t.props) == null ? void 0 : I.watermark) == null ? void 0 : S.isShowWatermark) + "", i.watermark = (N = (x = t.props) == null ? void 0 : x.watermark) != null && N.content && ((A = (O = t.props) == null ? void 0 : O.watermark) == null ? void 0 : A.content.length) > 0 ? (D = (E = t.props) == null ? void 0 : E.watermark) == null ? void 0 : D.content.join("-~") : "", w = a ? function(_, V, L, se) {
379
378
  return new Promise((K, fe) => {
380
- const ge = I(V, se) + "/dsc/commons/export-pdf";
379
+ const ge = R(V, se) + "/dsc/commons/export-pdf";
381
380
  we();
382
381
  const oe = ce.post(ge, L, { headers: { "content-type": "application/json" }, responseType: "blob" });
383
382
  window.$message.info("正在导出中..."), oe.then((ne) => {
@@ -389,7 +388,7 @@ function Et(e, t, s, a) {
389
388
  });
390
389
  }(n, d, i, e.isTest) : function(_, V, L, se) {
391
390
  return new Promise((K, fe) => {
392
- const ge = I(V, se) + "/dsc/commons/export-reports";
391
+ const ge = R(V, se) + "/dsc/commons/export-reports";
393
392
  we(), ce.post(ge, L, { responseType: "blob" }).then((oe) => {
394
393
  const ne = new Blob([oe.data]);
395
394
  let pe = "报告.xlsx";
@@ -421,7 +420,7 @@ function Ne(e, t) {
421
420
  if (l && l === "noOperation" && (m = !0), o.fileuploadInfo && o.fileuploadInfo.length > 0) {
422
421
  const u = o.fileuploadInfo[0];
423
422
  let p;
424
- p = u.isTable && u.tableTitle && u.rowIndex !== void 0 ? b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: u.label, tableTitle: u.tableTitle, rowIndex: u.rowIndex + 1 }) : b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: u.label }), k({ message: p, type: "warning", showClose: !0 }), s(!1);
423
+ p = u.isTable && u.tableTitle && u.rowIndex !== void 0 ? b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: u.label, tableTitle: u.tableTitle, rowIndex: u.rowIndex + 1 }) : b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: u.label }), h({ message: p, type: "warning", showClose: !0 }), s(!1);
425
424
  } else {
426
425
  te(o.code, o.entity.data);
427
426
  const u = ut(o, n, "/dsc/commons", m, r, c);
@@ -434,7 +433,7 @@ function Ne(e, t) {
434
433
  });
435
434
  }
436
435
  function Ee(e, t, s, a, o, n, r) {
437
- var h, y, O;
436
+ var k, y, M;
438
437
  const c = ue(e), l = e.systemCode, m = t.props.base.isPermission === void 0 || t.props.base.isPermission === "true" || t.props.base.isPermission, u = Q(t, e);
439
438
  let p = r;
440
439
  p || (p = e.entity.data);
@@ -444,21 +443,21 @@ function Ee(e, t, s, a, o, n, r) {
444
443
  C && (re(C) ? d.dataConversionRule = C.join(",") : typeof C == "string" && (d.dataConversionRule = C));
445
444
  const T = Pe(t);
446
445
  T && (d.autoSetValueData = T);
447
- const i = (h = t.props.base) == null ? void 0 : h.logSetting;
446
+ const i = (k = t.props.base) == null ? void 0 : k.logSetting;
448
447
  i && (d.logSettingText = i.join("")), d.systemCode || (d.systemCode = l);
449
448
  const f = e.beanName;
450
449
  f && (d.beanName = f), o && (d.dynamicColumnInfo = o), a && (d.mainDefaultValueColumns = a);
451
450
  const g = G(e);
452
451
  d.additionalParamMap = g, s !== void 0 && (d.unControlVersion = s);
453
- const w = (O = (y = t.runtime) == null ? void 0 : y.props) == null ? void 0 : O.title;
452
+ const w = (M = (y = t.runtime) == null ? void 0 : y.props) == null ? void 0 : M.title;
454
453
  return w && (d.currentOperation = w), d.isMobile = q(), d;
455
454
  }
456
455
  function lt(e, t, s, a, o, n, r, c, l) {
457
456
  const m = e.systemCode, u = e.backendUrl, p = Ee(e, t, a, o, n, null, r);
458
457
  return c && c.tableName && (p.tableName = c.tableName), l && (p.isWorkflowEntity = !1), function(d, C, T, i, f, g) {
459
- const w = I(C, g);
460
- let h, y = w + i;
461
- return y = F(y, d, C, g), h = f && (f.id || f.ID) ? A.put(y, T) : A.post(y, T), h;
458
+ const w = R(C, g);
459
+ let k, y = w + i;
460
+ return y = F(y, d, C, g), k = f && (f.id || f.ID) ? U.put(y, T) : U.post(y, T), k;
462
461
  }(m, u, p, s, r, e.isTest);
463
462
  }
464
463
  function ut(e, t, s, a, o, n) {
@@ -473,9 +472,9 @@ function J(e, t, s, a, o) {
473
472
  else if (u === "closeWindow" || u === "closeWindowAndRefresh") {
474
473
  const C = de(r.entity.page);
475
474
  let T = l;
476
- T || (T = {}), Object.assign(C, T), he(r, c, C, p);
475
+ T || (T = {}), Object.assign(C, T), ke(r, c, C, p);
477
476
  }
478
- m && k({ message: b().t(m), type: "success", showClose: !0 });
477
+ m && h({ message: b().t(m), type: "success", showClose: !0 });
479
478
  })(e, t, s, a), e.canClick = !0;
480
479
  else if (n && n === "form") (function(r, c, l, m) {
481
480
  if (l) {
@@ -486,7 +485,7 @@ function J(e, t, s, a, o) {
486
485
  const u = c.props.base.successOperation;
487
486
  u && u !== null ? Ce(r, c, { ...r.entity.page }) : r.canClick = !0;
488
487
  }
489
- m && k({ message: b().t(m), type: "success", showClose: !0 });
488
+ m && h({ message: b().t(m), type: "success", showClose: !0 });
490
489
  })(e, t, s, a);
491
490
  else {
492
491
  const r = t.props.base.successOperation;
@@ -501,9 +500,9 @@ function Ce(e, t, s) {
501
500
  const a = t.props.base.successOperation;
502
501
  if (!a || a === null) return;
503
502
  const o = t.props.base.isNeedValueMapping;
504
- a === "noOperation" ? e.canClick = !0 : a === "refresh" ? s && (s.id || s.ID) ? We(e, s.ID ? s.ID : s.id) : e.canClick = !0 : a !== "closeWindow" && a !== "closeWindowAndRefresh" || (he(e, t, s, o), e.canClick = !0);
503
+ a === "noOperation" ? e.canClick = !0 : a === "refresh" ? s && (s.id || s.ID) ? We(e, s.ID ? s.ID : s.id) : e.canClick = !0 : a !== "closeWindow" && a !== "closeWindowAndRefresh" || (ke(e, t, s, o), e.canClick = !0);
505
504
  }
506
- function he(e, t, s, a) {
505
+ function ke(e, t, s, a) {
507
506
  const o = e.entity && e.entity.request ? e.entity.request.jumpMode : null;
508
507
  if (o === "openWindow" || o === "newTab") window.parent ? window.parent.close() : window.close();
509
508
  else {
@@ -550,7 +549,7 @@ function ee(e, t, s, a) {
550
549
  if (r.fileuploadInfo && r.fileuploadInfo.length > 0) {
551
550
  const l = r.fileuploadInfo[0];
552
551
  let m;
553
- l.isTable && l.tableTitle && l.rowIndex !== void 0 ? (l.rowIndex, l.rowIndex, m = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: l.label, tableTitle: l.tableTitle, rowIndex: l.rowIndex + 1 })) : m = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: l.label }), k({ message: m, type: "warning", showClose: !0 }), o(!1);
552
+ l.isTable && l.tableTitle && l.rowIndex !== void 0 ? (l.rowIndex, l.rowIndex, m = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: l.label, tableTitle: l.tableTitle, rowIndex: l.rowIndex + 1 })) : m = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: l.label }), h({ message: m, type: "warning", showClose: !0 }), o(!1);
554
553
  } else {
555
554
  const l = e.mainDefaultValueColumns, m = e.dynamicColumnInfo, u = e.ids, p = c.props.base.successOperation;
556
555
  let d = !1;
@@ -558,22 +557,22 @@ function ee(e, t, s, a) {
558
557
  let C = r.tableName;
559
558
  if (t) {
560
559
  const i = c.props.base.tableUuid ? c.props.base.tableUuid : e.tableUuid;
561
- C = ke(r, i);
560
+ C = he(r, i);
562
561
  } else te(r.code, r.entity.data);
563
- const T = function(i, f, g, w, h, y, O, P, R) {
564
- return new Promise((M, x) => {
565
- const S = f.props.base.title, N = "superPageRuntimeMessage.whetherToConfirm" + qe(O);
566
- me.confirm(b().t(N, { name: S }), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
567
- const v = i.systemCode, U = i.backendUrl, E = Ee(i, f, w, h, y, P, null);
568
- E.tableName = R;
569
- let D = I(U, i.isTest) + g;
570
- D = F(D, v, U, i.isTest), A.post(D, E).then((_) => {
571
- M(_);
562
+ const T = function(i, f, g, w, k, y, M, P, v) {
563
+ return new Promise((I, S) => {
564
+ const x = f.props.base.title, N = "superPageRuntimeMessage.whetherToConfirm" + qe(M);
565
+ me.confirm(b().t(N, { name: x }), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
566
+ const O = i.systemCode, A = i.backendUrl, E = Ee(i, f, w, k, y, P, null);
567
+ E.tableName = v;
568
+ let D = R(A, i.isTest) + g;
569
+ D = F(D, O, A, i.isTest), U.post(D, E).then((_) => {
570
+ I(_);
572
571
  }).catch((_) => {
573
- x(_);
572
+ S(_);
574
573
  });
575
574
  }).catch(() => {
576
- x("点击了取消按钮");
575
+ S("点击了取消按钮");
577
576
  });
578
577
  });
579
578
  }(r, c, a, d, l, m, s, u, C);
@@ -586,12 +585,12 @@ function ee(e, t, s, a) {
586
585
  });
587
586
  }
588
587
  function jt(e, t) {
589
- var R, M, x;
590
- const s = e.pageContext, a = e.configureObj, o = e.tableConfigure, n = a.props.base, r = a.props.base.tableUuid ? a.props.base.tableUuid : e.tableUuid, c = ke(s, r), l = new FormData();
588
+ var v, I, S;
589
+ const s = e.pageContext, a = e.configureObj, o = e.tableConfigure, n = a.props.base, r = a.props.base.tableUuid ? a.props.base.tableUuid : e.tableUuid, c = he(s, r), l = new FormData();
591
590
  l.append("multipartFile", t), c && l.append("tableName", c);
592
- const m = (M = (R = a.runtime) == null ? void 0 : R.props) == null ? void 0 : M.title;
591
+ const m = (I = (v = a.runtime) == null ? void 0 : v.props) == null ? void 0 : I.title;
593
592
  m && l.append("currentOperation", m), l.append("isMobile", q()), s.importBeanName && l.append("importBeanName", s.importBeanName), s.beanName && l.append("beanName", s.beanName);
594
- const u = (x = o.props.importSetting) == null ? void 0 : x.listViewImportDuplicate;
593
+ const u = (S = o.props.importSetting) == null ? void 0 : S.listViewImportDuplicate;
595
594
  u && l.append("importDuplicateRule", u);
596
595
  const p = s.judgeHeavyList;
597
596
  p && l.append("judgeHeavyList", JSON.stringify(p));
@@ -609,27 +608,27 @@ function jt(e, t) {
609
608
  g && l.append("functionCode", g);
610
609
  const w = G(s);
611
610
  l.append("additionalParamMapStr", JSON.stringify(w));
612
- const h = n.isPermission === void 0 || n.isPermission === "true" || n.isPermission;
613
- l.append("isPermission", h + "");
611
+ const k = n.isPermission === void 0 || n.isPermission === "true" || n.isPermission;
612
+ l.append("isPermission", k + "");
614
613
  const y = s.systemCode;
615
614
  y && l.append("systemCode", y);
616
- const O = s.backendUrl;
617
- let P = I(O, s.isTest) + "/dsc/commons/import-data";
618
- P = F(P, y, O, s.isTest), A.post(P, l).then((S) => {
619
- if (i) k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.asyncImport") }), Fe(s);
615
+ const M = s.backendUrl;
616
+ let P = R(M, s.isTest) + "/dsc/commons/import-data";
617
+ P = F(P, y, M, s.isTest), U.post(P, l).then((x) => {
618
+ if (i) h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.asyncImport") }), Fe(s);
620
619
  else {
621
620
  let N = !1;
622
- S ? (N = !1, k({ dangerouslyUseHTMLString: !0, showClose: !0, type: "warning", message: S })) : (k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulImport") }), N = !0), J(s, a, S, null, !0), s.result = N, H(s, a);
621
+ x ? (N = !1, h({ dangerouslyUseHTMLString: !0, showClose: !0, type: "warning", message: x })) : (h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulImport") }), N = !0), J(s, a, x, null, !0), s.result = N, H(s, a);
623
622
  }
624
- }).catch((S) => {
623
+ }).catch((x) => {
625
624
  });
626
625
  }
627
626
  function Wt(e, t) {
628
627
  const s = e.props.base;
629
628
  if (s.conditionsForExecution && s.conditionsForExecution !== "") {
630
629
  if (s.conditionsForExecution === "one") {
631
- if (!t || t.length !== 1) return k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), !1;
632
- } else if (s.conditionsForExecution === "more" && (!t || t.length <= 0)) return k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), !1;
630
+ if (!t || t.length !== 1) return h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), !1;
631
+ } else if (s.conditionsForExecution === "more" && (!t || t.length <= 0)) return h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), !1;
633
632
  }
634
633
  return !0;
635
634
  }
@@ -666,7 +665,7 @@ function Z(e, t, s, a, o) {
666
665
  const m = l.completeTaskTipType;
667
666
  if (m && m === "MESSAGE") {
668
667
  const u = l.content;
669
- return k({ showClose: !0, type: "warning", message: u }), !1;
668
+ return h({ showClose: !0, type: "warning", message: u }), !1;
670
669
  }
671
670
  }
672
671
  if (e.completeTaskParam) {
@@ -685,17 +684,17 @@ async function X(e, t) {
685
684
  if (n.fileuploadInfo && n.fileuploadInfo.length > 0) {
686
685
  const c = n.fileuploadInfo[0];
687
686
  let l;
688
- c.isTable && c.tableTitle && c.rowIndex !== void 0 ? (c.rowIndex, c.rowIndex, l = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: c.label, tableTitle: c.tableTitle, rowIndex: c.rowIndex + 1 })) : l = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: c.label }), k({ message: l, type: "warning", showClose: !0 }), a(!1);
687
+ c.isTable && c.tableTitle && c.rowIndex !== void 0 ? (c.rowIndex, c.rowIndex, l = b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: c.label, tableTitle: c.tableTitle, rowIndex: c.rowIndex + 1 })) : l = b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: c.label }), h({ message: l, type: "warning", showClose: !0 }), a(!1);
689
688
  } else if (s) {
690
689
  const c = n.systemCode, l = n.backendUrl, m = s === !0 ? (r = n.completeTaskParam) == null ? void 0 : r.opinion : s;
691
- let u = I(l, n.isTest) + "/dsc/workflow-commons/complete-tasks";
692
- if (u = F(u, c, l, n.isTest), !u) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
690
+ let u = R(l, n.isTest) + "/dsc/workflow-commons/complete-tasks";
691
+ if (u = F(u, c, l, n.isTest), !u) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
693
692
  const p = W(e);
694
693
  p.completeTaskParam = { operationResult: t, taskId: n.completeTaskParam ? n.completeTaskParam.taskId : null, opinion: m || null };
695
- const d = A.post(u, p);
694
+ const d = U.post(u, p);
696
695
  te(n.code, n.entity.data), d.then((C) => {
697
696
  let T = !0;
698
- C && (Y(n.code, n.entity.data), T = Z(C, !1, n, e, t)), T === !0 && k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulCompleteTask") }), a(!0);
697
+ C && (Y(n.code, n.entity.data), T = Z(C, !1, n, e, t)), T === !0 && h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulCompleteTask") }), a(!0);
699
698
  }).catch((C) => {
700
699
  o(C);
701
700
  });
@@ -713,13 +712,13 @@ function De(e) {
713
712
  const u = e.pageContext, p = (l = (c = a.props) == null ? void 0 : c.base) == null ? void 0 : l.mustOpinionConditions;
714
713
  m = le(u, p);
715
714
  }
716
- m === !0 ? (k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseInputOpinion") }), e.pageContext.workflowOpinion.focusOpinionInput = !0, t(!1)) : t(!0);
715
+ m === !0 ? (h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseInputOpinion") }), e.pageContext.workflowOpinion.focusOpinionInput = !0, t(!1)) : t(!0);
717
716
  } else t(!0);
718
717
  });
719
718
  }
720
719
  function Ft(e, t) {
721
720
  if (t) {
722
- const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = I(o, s.isTest) + "/dsc/workflow-commons/assigns", r = t.id ? t.id : t.ID ? t.ID : null, c = W(e);
721
+ const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = R(o, s.isTest) + "/dsc/workflow-commons/assigns", r = t.id ? t.id : t.ID ? t.ID : null, c = W(e);
723
722
  c.assigneeId = r, $(e, c, n, "superPageRuntimeMessage.successfulAssign").then((l) => {
724
723
  H(s, a);
725
724
  });
@@ -761,26 +760,26 @@ function G(e) {
761
760
  function Bt(e, t) {
762
761
  if (t) {
763
762
  const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
764
- let r = I(n, s.isTest) + "/dsc/workflow-commons/add-signers";
765
- if (r = F(r, o, n, s.isTest), !r) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
763
+ let r = R(n, s.isTest) + "/dsc/workflow-commons/add-signers";
764
+ if (r = F(r, o, n, s.isTest), !r) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
766
765
  const c = ye(e);
767
766
  c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
768
- const l = A.post(r, c);
767
+ const l = U.post(r, c);
769
768
  l && l.then((m) => {
770
- k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
769
+ h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
771
770
  });
772
771
  }
773
772
  }
774
773
  function Lt(e, t) {
775
774
  if (t) {
776
775
  const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
777
- let r = I(n, s.isTest) + "/dsc/workflow-commons/add-transactors";
778
- if (r = F(r, o, n, s.isTest), !r) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
776
+ let r = R(n, s.isTest) + "/dsc/workflow-commons/add-transactors";
777
+ if (r = F(r, o, n, s.isTest), !r) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
779
778
  const c = ye(e);
780
779
  c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
781
- const l = A.post(r, c);
780
+ const l = U.post(r, c);
782
781
  l && l.then((m) => {
783
- k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
782
+ h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
784
783
  });
785
784
  }
786
785
  }
@@ -807,14 +806,14 @@ async function Vt(e, t) {
807
806
  }(e);
808
807
  if (s) {
809
808
  const a = e.pageContext, o = e.configureObj, n = a.systemCode, r = a.backendUrl;
810
- let c = I(r, a.isTest) + "/dsc/workflow-commons/copies";
811
- if (c = F(c, n, r, a.isTest), !c) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
809
+ let c = R(r, a.isTest) + "/dsc/workflow-commons/copies";
810
+ if (c = F(c, n, r, a.isTest), !c) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
812
811
  const l = ye(e);
813
812
  l.completeTaskParam.transactors = t.loginNames.join(",").split(","), s !== !0 && (l.completeTaskParam.remark = s);
814
- const m = A.post(c, l);
813
+ const m = U.post(c, l);
815
814
  m && m.then((u) => {
816
815
  var p;
817
- k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), J(a, o, { entity: (p = a.entity) == null ? void 0 : p.data }, null), H(a, o);
816
+ h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), J(a, o, { entity: (p = a.entity) == null ? void 0 : p.data }, null), H(a, o);
818
817
  });
819
818
  }
820
819
  }
@@ -829,11 +828,11 @@ async function $(e, t, s, a) {
829
828
  const d = o === !0 ? (c = l.completeTaskParam) == null ? void 0 : c.opinion : o;
830
829
  t.completeTaskParam = { taskId: l.completeTaskParam.taskId, opinion: d };
831
830
  }
832
- if (!(s = F(s, m, u, l.isTest))) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
833
- const p = A.post(s, t);
831
+ if (!(s = F(s, m, u, l.isTest))) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
832
+ const p = U.post(s, t);
834
833
  p && p.then((d) => {
835
834
  let C = !0;
836
- d && (C = Z(d, !1, l, e, null)), C === !0 && k({ showClose: !0, type: "success", message: b().t(a) }), n(!0);
835
+ d && (C = Z(d, !1, l, e, null)), C === !0 && h({ showClose: !0, type: "success", message: b().t(a) }), n(!0);
837
836
  }).catch((d) => {
838
837
  r(d);
839
838
  });
@@ -842,32 +841,32 @@ async function $(e, t, s, a) {
842
841
  }
843
842
  function $t(e) {
844
843
  const t = e.pageContext, s = t.systemCode, a = t.backendUrl, o = t.completeTaskParam;
845
- let n = I(a, t.isTest) + "/dsc/workflow-commons/returnable-task/" + o.taskId;
846
- if (n = F(n, s, a, t.isTest), !n) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
844
+ let n = R(a, t.isTest) + "/dsc/workflow-commons/returnable-task/" + o.taskId;
845
+ if (n = F(n, s, a, t.isTest), !n) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
847
846
  const r = t.code, c = G(t), l = { beanName: t.beanName, additionalParamMap: c, tableName: t.tableName, functionCode: r + ".xxx", pageCode: t.code };
848
- return A.post(n, l);
847
+ return U.post(n, l);
849
848
  }
850
849
  function qt(e, t) {
851
- const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = I(o, s.isTest) + "/dsc/workflow-commons/returnTaskTo", r = W(e);
850
+ const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = R(o, s.isTest) + "/dsc/workflow-commons/returnTaskTo", r = W(e);
852
851
  t.nodeName && (r.returnToNodeName = t.nodeName), t.nodeId && (r.returnToNodeId = t.nodeId), $(e, r, n, "superPageRuntimeMessage.successfulReturnTaskTo").then((c) => {
853
852
  H(s, a);
854
853
  });
855
854
  }
856
855
  function Ht(e) {
857
856
  const t = e.pageContext, s = t.systemCode, a = t.backendUrl;
858
- let o = I(a, t.isTest) + "/dsc/workflow-commons/get-remove-signers";
857
+ let o = R(a, t.isTest) + "/dsc/workflow-commons/get-remove-signers";
859
858
  const n = W(e);
860
- if (o = F(o, s, a, t.isTest), o) return A.post(o, n);
861
- k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
859
+ if (o = F(o, s, a, t.isTest), o) return U.post(o, n);
860
+ h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
862
861
  }
863
862
  function Gt(e, t) {
864
863
  if (t) {
865
864
  const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
866
- let r = I(n, s.isTest) + "/dsc/workflow-commons/remove-signers";
867
- if (r = F(r, o, n, s.isTest), !r) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
865
+ let r = R(n, s.isTest) + "/dsc/workflow-commons/remove-signers";
866
+ if (r = F(r, o, n, s.isTest), !r) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
868
867
  const c = t.map((u) => u.id ? u.id : u.ID ? u.ID : null), l = W(e);
869
868
  l.ids = c;
870
- const m = A.post(r, l);
869
+ const m = U.post(r, l);
871
870
  m && m.then((u) => {
872
871
  J(s, a, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, a);
873
872
  });
@@ -875,19 +874,19 @@ function Gt(e, t) {
875
874
  }
876
875
  function Jt(e) {
877
876
  const t = e.pageContext, s = t.systemCode, a = t.backendUrl;
878
- let o = I(a, t.isTest) + "/dsc/workflow-commons/get-remove-transactors";
877
+ let o = R(a, t.isTest) + "/dsc/workflow-commons/get-remove-transactors";
879
878
  const n = W(e);
880
- if (o = F(o, s, a, t.isTest), o) return A.post(o, n);
881
- k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
879
+ if (o = F(o, s, a, t.isTest), o) return U.post(o, n);
880
+ h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
882
881
  }
883
882
  function Yt(e, t) {
884
883
  if (t) {
885
884
  const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
886
- let r = I(n, s.isTest) + "/dsc/workflow-commons/remove-transactors";
887
- if (r = F(r, o, n, s.isTest), !r) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
885
+ let r = R(n, s.isTest) + "/dsc/workflow-commons/remove-transactors";
886
+ if (r = F(r, o, n, s.isTest), !r) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
888
887
  const c = t.map((u) => u.taskId), l = W(e);
889
888
  l.ids = c;
890
- const m = A.post(r, l);
889
+ const m = U.post(r, l);
891
890
  m && m.then((u) => {
892
891
  J(s, a, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, a);
893
892
  });
@@ -895,7 +894,7 @@ function Yt(e, t) {
895
894
  }
896
895
  function dt(e) {
897
896
  const t = e.pageContext, s = t.backendUrl;
898
- let a = I(s, t.isTest) + "/dsc/workflow-commons/initiate-extract";
897
+ let a = R(s, t.isTest) + "/dsc/workflow-commons/initiate-extract";
899
898
  const o = W(e);
900
899
  if (t.completeTaskParam) {
901
900
  const n = [];
@@ -903,11 +902,11 @@ function dt(e) {
903
902
  }
904
903
  return new Promise((n, r) => {
905
904
  const c = e.pageContext, l = c.systemCode, m = c.backendUrl;
906
- if (a = F(a, l, m, c.isTest), !a) return void k({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
907
- const u = A.post(a, o);
905
+ if (a = F(a, l, m, c.isTest), !a) return void h({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
906
+ const u = U.post(a, o);
908
907
  u && u.then((p) => {
909
908
  let d = !0;
910
- p && (d = Z(p, !1, c, e, null)), d === !0 && k({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulInitiateExtract") }), n(!0);
909
+ p && (d = Z(p, !1, c, e, null)), d === !0 && h({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulInitiateExtract") }), n(!0);
911
910
  }).catch((p) => {
912
911
  r(p);
913
912
  });
@@ -952,22 +951,22 @@ function zt(e, t, s, a, o, n) {
952
951
  return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "VOTE" && i.showButtonKiken);
953
952
  }(s) : t === "extractWorkflow" ? r = function(i, f, g) {
954
953
  var y;
955
- const w = Re(), h = w ? w.loginName : null;
954
+ const w = Re(), k = w ? w.loginName : null;
956
955
  if (i != null && i.processState) {
957
956
  if (((y = f == null ? void 0 : f.firstNodeInfo) == null ? void 0 : y.nodeId) === (g == null ? void 0 : g.CURRENT_ACTIVITY_ID)) return !1;
958
- if ((i == null ? void 0 : i.processState) !== "END" && (i == null ? void 0 : i.processState) !== "EXTRACT" && (i == null ? void 0 : i.processState) !== "MANUAL_END" && g && (g.creator === h || g.CREATOR === h)) return !0;
957
+ if ((i == null ? void 0 : i.processState) !== "END" && (i == null ? void 0 : i.processState) !== "EXTRACT" && (i == null ? void 0 : i.processState) !== "MANUAL_END" && g && (g.creator === k || g.CREATOR === k)) return !0;
959
958
  }
960
959
  return !1;
961
960
  }(s, a, n) : t === "cancelExtractWorkflow" ? r = function(i, f, g) {
962
- const w = Re(), h = w ? w.loginName : null;
963
- return !!((i == null ? void 0 : i.processState) === "EXTRACT" && g && (g.creator === h || g.CREATOR === h));
961
+ const w = Re(), k = w ? w.loginName : null;
962
+ return !!((i == null ? void 0 : i.processState) === "EXTRACT" && g && (g.creator === k || g.CREATOR === k));
964
963
  }(s, 0, n) : t === "approveExtractWorkflow" || t === "refuseExtractWorkflow" ? r = mt(s) : t === "addTransactor" || t === "removeTransactor" ? r = function(i) {
965
964
  return !!(i.processState && i.processState === "SUBMIT" && (i.active === "WAIT_TRANSACT" || i.active === "DRAW_WAIT") && i.processingMode !== "COUNTERSIGN");
966
965
  }(s) : function(i, f) {
967
966
  return i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && !function(g) {
968
967
  const w = g;
969
- let h = !0;
970
- return w && (h = w.taskComplete), h;
968
+ let k = !0;
969
+ return w && (k = w.taskComplete), k;
971
970
  }(f);
972
971
  }(s, a) && (r = t !== "returnToPreviousTask" || function(i) {
973
972
  return !!i.rebuttable;
@@ -1000,54 +999,54 @@ function ft(e, t, s) {
1000
999
  const a = e.pageType;
1001
1000
  return a && a === "form" ? (e.canClick = !1, ue(e) ? function(o, n, r) {
1002
1001
  return new Promise((c, l) => {
1003
- var O;
1002
+ var M;
1004
1003
  const m = o.systemCode, u = o.code, p = o.version, d = G(o);
1005
1004
  let C = n || null, T = n ? [n] : null;
1006
1005
  r === void 0 || r ? (C || (C = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (C = null, T = null, d._id = d.id, d.id = null);
1007
1006
  const i = d ? d.taskId : null, f = u, g = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, isWorkflowEntity: !0, systemCode: m, functionCode: f + ".workflowGets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
1008
1007
  if (o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
1009
1008
  const P = {};
1010
- o.tableUuids.forEach((R) => {
1011
- const M = Ie(u, p, R);
1012
- P[M] = M;
1009
+ o.tableUuids.forEach((v) => {
1010
+ const I = Ie(u, p, v);
1011
+ P[I] = I;
1013
1012
  }), g.listCodesMap = P;
1014
1013
  }
1015
- T && (g.ids = Ue(T)), i ? g.taskId = i : C ? g.id = C : (d && d._t_ && ae(d._t_ + "_id") && (g.id = ae(d._t_ + "_id")), o.notIdInitializationList && (g.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList))), d && (g.additionalParamMap = d), o.beanName && (g.beanName = o.beanName), o.refercePropMap && (g.refercePropMap = o.refercePropMap), (O = o.props) != null && O.enableFormDataPermission && (g.withDataPermission = !0), g.isMobile = q();
1016
- const w = I(o.backendUrl, o.isTest) + "/dsc/workflow-commons/gets", h = xe();
1017
- h.restorePageLoadState(), ie(null, o, o, "beforeFormLoadData");
1018
- const y = Se(o.code, g.id);
1019
- A.post(w, g).then(async (P) => {
1014
+ T && (g.ids = Ue(T)), i ? g.taskId = i : C ? g.id = C : (d && d._t_ && ae(d._t_ + "_id") && (g.id = ae(d._t_ + "_id")), o.notIdInitializationList && (g.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList))), d && (g.additionalParamMap = d), o.beanName && (g.beanName = o.beanName), o.refercePropMap && (g.refercePropMap = o.refercePropMap), (M = o.props) != null && M.enableFormDataPermission && (g.withDataPermission = !0), g.isMobile = q();
1015
+ const w = R(o.backendUrl, o.isTest) + "/dsc/workflow-commons/gets", k = Se();
1016
+ k.restorePageLoadState(), ie(null, o, o, "beforeFormLoadData");
1017
+ const y = xe(o.code, g.id);
1018
+ U.post(w, g).then(async (P) => {
1020
1019
  y && await Oe(o, g.id, P), o.workflowOpinion = { showOpinionBox: !1 }, o.definitionId = P.definitionId, o.entity.task = P.taskParamMap, o.dataTypeMaps = P.dataTypeMap, Z(P, !0, o), o.workflowRules = st(o);
1021
- const R = o.pageType;
1022
- R && R === "form" && function(M) {
1023
- (function(x) {
1024
- const S = /* @__PURE__ */ new Map(), N = x.fieldPermissions;
1025
- if (N !== void 0) for (let v = 0; v < N.length; v++) {
1026
- const U = N[v].name;
1027
- if (U) if (U.indexOf("$") === 0 && U.indexOf(".") > 0) {
1028
- const E = N[v], D = JSON.parse(JSON.stringify(E)), _ = U.substring(1, U.indexOf(".")), V = U.substring(U.indexOf(".") + 1);
1029
- if (D.name = V, D && D.name === "all_fields") D.canEdit === !1 ? D.rowIndexes ? S.set(_, [{ name: "all_fields", canEdit: !1, rowIndexes: D.rowIndexes }]) : S.set(_, [{ name: "all_fields", canEdit: !1 }]) : D.rowIndexes ? S.set(_, [{ name: "all_fields", canEdit: !0, rowIndexes: D.rowIndexes }]) : S.set(_, [{ name: "all_fields", canEdit: !0 }]);
1020
+ const v = o.pageType;
1021
+ v && v === "form" && function(I) {
1022
+ (function(S) {
1023
+ const x = /* @__PURE__ */ new Map(), N = S.fieldPermissions;
1024
+ if (N !== void 0) for (let O = 0; O < N.length; O++) {
1025
+ const A = N[O].name;
1026
+ if (A) if (A.indexOf("$") === 0 && A.indexOf(".") > 0) {
1027
+ const E = N[O], D = JSON.parse(JSON.stringify(E)), _ = A.substring(1, A.indexOf(".")), V = A.substring(A.indexOf(".") + 1);
1028
+ if (D.name = V, D && D.name === "all_fields") D.canEdit === !1 ? D.rowIndexes ? x.set(_, [{ name: "all_fields", canEdit: !1, rowIndexes: D.rowIndexes }]) : x.set(_, [{ name: "all_fields", canEdit: !1 }]) : D.rowIndexes ? x.set(_, [{ name: "all_fields", canEdit: !0, rowIndexes: D.rowIndexes }]) : x.set(_, [{ name: "all_fields", canEdit: !0 }]);
1030
1029
  else {
1031
- let L = S.get(_);
1032
- L || (L = []), L.push(D), S.set(_, L);
1030
+ let L = x.get(_);
1031
+ L || (L = []), L.push(D), x.set(_, L);
1033
1032
  }
1034
- } else S.set(U, N[v]);
1033
+ } else x.set(A, N[O]);
1035
1034
  }
1036
- x.fieldPermissionMap = S;
1037
- })(M), function(x) {
1038
- const S = x.fieldPermissionMap, N = /* @__PURE__ */ new Map(), v = x.actionPermissions;
1039
- v != null && Object.keys(v).forEach((U) => {
1040
- const E = v[U], D = S.get(U);
1035
+ S.fieldPermissionMap = x;
1036
+ })(I), function(S) {
1037
+ const x = S.fieldPermissionMap, N = /* @__PURE__ */ new Map(), O = S.actionPermissions;
1038
+ O != null && Object.keys(O).forEach((A) => {
1039
+ const E = O[A], D = x.get(A);
1041
1040
  if (D && D.length > 0 && D[0].name === "all_fields" && D[0].canEdit === !1) E.canUpdate = !1, E.canAdd = !1;
1042
1041
  else {
1043
1042
  E && Object.keys(E.deleteCondition).length !== 0 || (E.deleteCondition = null), E && Object.keys(E.updateCondition).length !== 0 || (E.updateCondition = null);
1044
1043
  const _ = E.canUpdate, V = E.updateRowIndexes;
1045
- _ !== void 0 && _ === !1 && V != null && V.length > 0 && S.set(U, [{ name: "all_fields", canEdit: !1, rowIndexes: V }]);
1044
+ _ !== void 0 && _ === !1 && V != null && V.length > 0 && x.set(A, [{ name: "all_fields", canEdit: !1, rowIndexes: V }]);
1046
1045
  }
1047
- N.set(U, E);
1048
- }), x.actionPermissionMap = N;
1049
- }(M);
1050
- }(o), o.canClick = !0, ie(null, o, o, "afterFormLoadData"), h.setFormPageDataLoadState(!0), c(P);
1046
+ N.set(A, E);
1047
+ }), S.actionPermissionMap = N;
1048
+ }(I);
1049
+ }(o), o.canClick = !0, ie(null, o, o, "afterFormLoadData"), k.setFormPageDataLoadState(!0), c(P);
1051
1050
  }).catch((P) => {
1052
1051
  o.canClick = !0, l(P);
1053
1052
  });
@@ -1058,24 +1057,24 @@ function ft(e, t, s) {
1058
1057
  const m = o.systemCode, u = o.code, p = o.version, d = G(o);
1059
1058
  let C = n || null, T = n ? [n] : null;
1060
1059
  r === void 0 || r ? (C || (C = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (C = null, T = null, d._id = d.id, d.id = null);
1061
- const i = d ? d.taskId : null, f = u, g = I(o.backendUrl, o.isTest), w = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, id: C, systemCode: m, functionCode: f + ".gets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
1060
+ const i = d ? d.taskId : null, f = u, g = R(o.backendUrl, o.isTest), w = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, id: C, systemCode: m, functionCode: f + ".gets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
1062
1061
  if (!w.id && d && d._t_ && ae(d._t_ + "_id") && (w.id = ae(d._t_ + "_id")), T && (w.ids = Ue(T)), o.notIdInitializationList && (w.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList)), d && (w.additionalParamMap = d), o.beanName && (w.beanName = o.beanName), i && (w.taskId = i), (P = o.props) != null && P.enableFormDataPermission && (w.withDataPermission = !0), o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
1063
- const R = {};
1064
- o.tableUuids.forEach((M) => {
1065
- const x = Ie(u, p, M);
1066
- R[x] = x;
1067
- }), w.listCodesMap = R;
1062
+ const v = {};
1063
+ o.tableUuids.forEach((I) => {
1064
+ const S = Ie(u, p, I);
1065
+ v[S] = S;
1066
+ }), w.listCodesMap = v;
1068
1067
  }
1069
1068
  o.refercePropMap && (w.refercePropMap = o.refercePropMap), w.isMobile = q();
1070
- const h = g + "/dsc/commons/gets", y = xe();
1069
+ const k = g + "/dsc/commons/gets", y = Se();
1071
1070
  y.restorePageLoadState(), ie(null, o, o, "beforeFormLoadData");
1072
- const O = Se(o.code, w.id);
1073
- A.post(h, w).then(async (R) => {
1074
- R && (O && await Oe(o, w.id, R), o.entity.data = R.entity, o.initFormNo = R.formNo);
1075
- const M = o.customRules, x = o.rules, S = ot(o, M, x);
1076
- o.rules = S, o.canClick = !0, ie(null, o, o, "afterFormLoadData"), y.setFormPageDataLoadState(!0), c(R);
1077
- }).catch((R) => {
1078
- o.canClick = !0, l(R);
1071
+ const M = xe(o.code, w.id);
1072
+ U.post(k, w).then(async (v) => {
1073
+ v && (M && await Oe(o, w.id, v), o.entity.data = v.entity, o.initFormNo = v.formNo);
1074
+ const I = o.customRules, S = o.rules, x = ot(o, I, S);
1075
+ o.rules = x, o.canClick = !0, ie(null, o, o, "afterFormLoadData"), y.setFormPageDataLoadState(!0), c(v);
1076
+ }).catch((v) => {
1077
+ o.canClick = !0, l(v);
1079
1078
  });
1080
1079
  });
1081
1080
  }(e, t, s)) : new Promise((o, n) => {
@@ -1102,15 +1101,15 @@ function Pe(e) {
1102
1101
  }
1103
1102
  function Kt(e, t) {
1104
1103
  const s = e.entity ? e.entity : {}, a = { data: s.data, page: s.page }, o = { pageCode: e.code, queryCondition: JSON.stringify(a), name: t }, n = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
1105
- return A.post(n, o);
1104
+ return U.post(n, o);
1106
1105
  }
1107
1106
  function Xt(e) {
1108
1107
  const t = e.code, s = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t;
1109
- return A.get(s);
1108
+ return U.get(s);
1110
1109
  }
1111
1110
  function Qt(e) {
1112
1111
  const t = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e;
1113
- return A.delete(t);
1112
+ return U.delete(t);
1114
1113
  }
1115
1114
  function Fe(e) {
1116
1115
  e.exportNoticeInfo && (e.exportNoticeInfo.noticeInterval && clearInterval(e.exportNoticeInfo.noticeInterval), e.exportNoticeInfo.noticeComponent = null, e.exportNoticeInfo.noticeInterval = null), e.exportNoticeInfo = {}, Le(e.exportNoticeInfo, e.backendUrl, e.code);
@@ -1121,7 +1120,7 @@ function Be(e, t, s) {
1121
1120
  }, message: () => at(it, { isShow: !0, backendUrl: t, lastFileTask: e.lastFileTask, onClickMsg(a) {
1122
1121
  a.serverPath ? function(o, n, r, c, l, m) {
1123
1122
  be(l, m, r, c);
1124
- const u = Te(), p = I(l), d = p + "/common/super-form/downloads?jwt=" + u + "&showName=" + encodeURI(o) + "&serverPath=" + n;
1123
+ const u = Te(), p = R(l), d = p + "/common/super-form/downloads?jwt=" + u + "&showName=" + encodeURI(o) + "&serverPath=" + n;
1125
1124
  window.open(d);
1126
1125
  }(a.fileName, a.serverPath, a.id, e, t, s) : be(t, s, a.id, e), e.noticeComponent.close(), e.noticeComponent = null;
1127
1126
  } }) }) : (e.noticeComponent != null && (e.noticeComponent.close(), e.noticeComponent = null), e.noticeInterval && (clearInterval(e.noticeInterval), e.noticeInterval = null));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../common-util.cjs"),g=require("agilebuilder-ui"),k=require("element-plus"),J=require("../global-refs.cjs"),D=require("../eventBus.cjs"),ne=require("axios"),W=require("./event-util.cjs"),fe=require("../store-util.cjs"),G=require("../page-init-util.cjs"),Y=require("../page-helper-util.cjs"),Ae=require("./print-label.cjs"),se=require("../table-utils.cjs"),Ce=require("./validator-util.cjs"),Oe=require("../api/page-expose-util.cjs"),be=require("../page-store.cjs"),Be=require("vue"),De=require("../../views/assemblys/common/file-task-notice.vue.cjs"),j=require("./data-backfill-util.cjs"),_e={save:function(e){return he(e,!1)},saveList:function(e){return he(e,!0)},exportForm:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-form-report",e)},exportPDF:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-pdf-report",e)},submit:function(e){return Q(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Q(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Q(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Q(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Q(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Q(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,n=t.entity?t.entity.data:{},a=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;me(t,e.configureObj,n,a)},delete:function(e){return function(t){return new Promise((n,a)=>{const s=t.ids;if(!s||s.length===0)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")}),void n(!0);k.ElMessageBox.confirm(g.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{var E,P,R;const o=t.pageContext,r=t.configureObj,l=r.props.base,c=o.systemCode,m=o.backendUrl,u=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,p=se.getTableNameByTableUuid(o,u);let d=f.getBaseUrl(m,o.isTest)+"/dsc/commons/"+p;d=f.getRealRestApiPath(d,c,m,o.isTest);const w=l.isPermission===void 0||l.isPermission==="true"||l.isPermission,T=f.isWorkflowPage(o),i=G.getPermissionCodes(r,o),C={ids:s,functionCode:i,isPermission:w+"",systemCode:c,isWorkflowEntity:T,listCodesMap:o.listCodesMap,pageCode:o.code,pageVersion:o.version};o.beanName&&(C.beanName=o.beanName);const b=r.props.deleteLogicSetting;b&&(typeof b=="object"?C.deleteLogicSetting=JSON.stringify(b):typeof b=="string"&&(C.deleteLogicSetting=b));const h=(E=r.props.base)==null?void 0:E.logSetting;h&&(C.logSettingText=h.join(""));const y=r.props.base.isSafeDelete;y&&(C.isSafeDelete=y);const I=(R=(P=r.runtime)==null?void 0:P.props)==null?void 0:R.title;I&&(C.currentOperation=I),C.isMobile=g.isMobileBrowser(),g.http.delete(d,{data:C}).then(x=>{const v=J.getComponentRef(o,u);v&&(v.isDeleteChange(!0),v.clearSelections()),V(o,r,x,"superPageRuntimeMessage.successfulDelete",!0),n(!0)}).catch(x=>{a(x)})}).catch(()=>{a()})})}(e)},downloadTemplate:function(e){(function(t){var I,E,P;const n=t.pageContext,a=t.configureObj,s=a.props.base,o=f.packageTemplateFiles(s.templateFiles,n,a);let r,l;o&&o.length>0&&(r=o[0].templateUuid,l=o[0].templateName);const c=n.systemCode,m=n.backendUrl;let u=l,p="?1=1";r&&u&&r!=="undefined"&&u!=="undefined"&&r!=="null"&&u!=="null"?p+="&fileName="+encodeURI(r)+"&showName="+encodeURI(u):u?p+="&showName="+encodeURI(u):n.label&&(p+="&showName="+encodeURI(n.label)+".xlsx",u=n.label+".xlsx");const d=(I=a.props.base)==null?void 0:I.logSetting;d&&(p+="&logSettingText="+d.join("")),c&&(p+="&systemCode="+c);const w=t.listCode;w&&(p+="&listCode="+w),n.beanName&&(p+="&beanName="+n.beanName);const T=G.getPermissionCodes(a,n);T&&(p+="&functionCode="+T),n.tableName&&(p+="&tableName="+n.tableName),n.code&&(p+="&pageCode="+n.code),n.version&&(p+="&pageVersion="+n.version);const i=g.getToken();i&&(p+="&JWT="+i);const C=(P=(E=a.runtime)==null?void 0:E.props)==null?void 0:P.title;C&&(p+="&currentOperation="+encodeURI(C)),p+="&isMobile="+g.isMobileBrowser();const b="_RUN_CURRENT_ROLE",h=g.getSessionCache(b);h&&(p+="&"+b+"="+h),s&&(p+="&isPermission="+(s.isPermission===void 0||s.isPermission==="true"||s.isPermission));const y=f.getBaseUrl(m,n.isTest);g.http.get(y+"/dsc/commons/download-files"+p,{responseType:"blob"}).then(R=>{var N;const x=u||"template.xlsx",v={xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",doc:"application/msword",pdf:"application/pdf",csv:"text/csv"}[((N=x.split(".").pop())==null?void 0:N.toLowerCase())??"xlsx"]??"application/octet-stream",S=new Blob([R],{type:v}),U=URL.createObjectURL(S),M=document.createElement("a");M.style.display="none",M.href=U,M.setAttribute("download",x),document.body.appendChild(M),M.click(),document.body.removeChild(M),URL.revokeObjectURL(U)})})(e)},import:function(e){const t=e.pageContext.code+"_";D.$emit(t+"import-file",e)},export:function(e){return function(t){return new Promise((n,a)=>{var b,h,y,I,E,P,R,x,v,S,U,M;const s=t.pageContext,o=t.configureObj,r=o.props.base,l=t.listCode,c=t.selections,m={};c&&c.length>0&&(m.data=c);let u=s.label;u||(u=s.code);let p=!1;p=r.isAsync!==void 0&&r.isAsync!==null&&r.isAsync;const d=r.isPermission===void 0||r.isPermission==="true"||r.isPermission,w=G.getPermissionCodes(o,s),T=u,i={backendUrl:s.backendUrl,pageContext:s},C=(h=(b=o.runtime)==null?void 0:b.props)==null?void 0:h.title;C&&(i.currentOperation=C),i.isShowWatermark=((I=(y=o.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)===void 0?"true":((P=(E=o.props)==null?void 0:E.watermark)==null?void 0:P.isShowWatermark)+"",i.watermarkContent=(x=(R=o.props)==null?void 0:R.watermark)!=null&&x.content&&((S=(v=o.props)==null?void 0:v.watermark)==null?void 0:S.content.length)>0?(M=(U=o.props)==null?void 0:U.watermark)==null?void 0:M.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(m,T,l,w,null,i,p,s.code,d),p&&setTimeout(()=>{de(s)},100)})}(e)},search:function(e){const t=e.pageContext,n=e.tableUuid;J.getComponentRef(t,n).refresh()},showSearch:function(e){const t=e.pageContext,n=e.tableUuid;J.getComponentRef(t,n).showMobileSearch()},workflowSave:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((n,a)=>{const s=t.pageContext,o=s.entity.data,r=s.systemCode,l=s.backendUrl;let c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons";if(c=f.getRealRestApiPath(c,r,l,s.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;u=o.id||o.ID?g.http.put(c,m):g.http.post(c,m),j.cacheBackfillData(s.code,o),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(s.code,o),d=z(p,!1,s,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSave")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(p=>{a(p)})})}(e)},workflowStart:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((n,a)=>{const s=t.pageContext,o=s.entity.data,r=s.systemCode,l=s.backendUrl;if(s.fileuploadInfo&&s.fileuploadInfo.length>0){const c=s.fileuploadInfo[0];let m;c.isTable&&c.tableTitle&&c.rowIndex!==void 0?(c.rowIndex,c.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:c.label,tableTitle:c.tableTitle,rowIndex:c.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:c.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),n(!1)}else{let c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons/start";if(c=f.getRealRestApiPath(c,r,l,s.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;o.workflow_id||o.WORKFLOW_ID?(c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons",c=f.getRealRestApiPath(c,r,l,s.isTest),u=g.http.put(c,m)):u=g.http.post(c,m),j.cacheBackfillData(s.code,o),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(s.code,o),d=z(p,!1,s,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulStart")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(p=>{a(p)})}})}(e)},submitProcess:function(e){return D.$emit("clearTableAllStartEditing"),function(t){return new Promise((n,a)=>{const s=t.pageContext;if(s.fileuploadInfo&&s.fileuploadInfo.length>0){const o=s.fileuploadInfo[0];let r;o.isTable&&o.tableTitle&&o.rowIndex!==void 0?(o.rowIndex,o.rowIndex,r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:o.label,tableTitle:o.tableTitle,rowIndex:o.rowIndex+1})):r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:o.label}),k.ElMessage({message:r,type:"warning",showClose:!0}),n(!1)}else{const o=s.systemCode,r=s.backendUrl;let l=f.getBaseUrl(r,s.isTest)+"/dsc/workflow-commons/submit";if(l=f.getRealRestApiPath(l,o,r,s.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=_(t);j.cacheBackfillData(s.code,s.entity.data);const m=g.http.post(l,c);m?m.then(u=>{let p=!0;u&&(j.removeCacheFillData(s.code,s.entity.data),p=z(u,!1,s,t,null)),p===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSubmit")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(u=>{a(u)}):j.removeCacheFillData(s.code,s.entity.data)}})}(e)},submitTask:function(e){return X(e,"SUBMIT")},approve:function(e){return X(e,"APPROVE")},refuse:function(e){return X(e,"REFUSE")},readed:function(e){return X(e,"READED")},agreement:function(e){return X(e,"AGREEMENT")},oppose:function(e){return X(e,"OPPOSE")},kiken:function(e){return X(e,"KIKEN")},assign:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"assign-task",t)}(e)},copyTask:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"copy-task",t)}(e)},addSigner:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"add-signer",t)}(e)},drawTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/draw-tasks",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/abandon-receives",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/end-instance",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/retrieves",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Se(e)},extractWorkflowEvent:function(e){return function(t){const n=t.pageContext;D.$emit(n.code+"_event-call-component",{componentName:"extract-workflow-dialog",componentProps:{pageContext:t.pageContext,configure:t.configureObj}})}(e)},cancelExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/cancel-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/approve-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/refuse-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const n=t.pageContext,a=t.tableUuid,s=J.getComponentRef(n,a);s&&(t.getDefaultValueFunc=G.getDefaultValue,s.createRow(t.listCode,{},t))}(e)},printLabel:function(e){return function(t){let n=null;try{if(n=t.menuItem?t.menuItem.templateUuid:t.configureObj.props.base.template[0].templateUuid,!n)throw new Error("未找到模板")}catch(a){console.error("打印标签失败,未在配置中找到找到模板",a,t)}Ae.default.printLabel(t,n)}(e)},queryCharts:function(e){we(e)},resetCharts:function(e){var n,a;const t=e.pageContext;Object.assign(t.entity.data,f.deepCopy((n=t.initChartData)==null?void 0:n.data)),Object.assign(t.entity.page,f.deepCopy((a=t.initChartData)==null?void 0:a.page)),e.isInitChart=!0,we(e)},exportCharts:function(e){(function(t){var i,C,b,h,y,I,E,P,R,x,v,S;const n=t.pageContext,a=n.allChartUuids;if(!a||a.length==0)return;const s=t.configureObj;let o=null;s&&s.runtime&&(o=s.runtime.props);const r=o?o.state:void 0;o&&(o.state="disabled");const l=[];for(let U=0;U<a.length;U++){const M=a[U],N=J.getComponentRef(n,M);if(N){const A=N.getConfigure();A&&A.exportable&&A._dynamicShowFlag&&N.exportChart&&l.push(N.exportChart())}}if(!l||l.length==0)return;let c,m=n.label;m||(m=n.code),c=m;const u={reportDataList:l,beanName:n.beanName,systemCode:n.systemCode,pageCode:n.code},p=$(n);u.additionalParamMap=p;const d=(C=(i=s.runtime)==null?void 0:i.props)==null?void 0:C.title;d&&(u.currentOperation=d),u.isMobile=g.isMobileBrowser(),u.isShowWatermark=((h=(b=s.props)==null?void 0:b.watermark)==null?void 0:h.isShowWatermark)===void 0?"true":((I=(y=s.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)+"",u.watermark=(P=(E=s.props)==null?void 0:E.watermark)!=null&&P.content&&((x=(R=s.props)==null?void 0:R.watermark)==null?void 0:x.content.length)>0?(S=(v=s.props)==null?void 0:v.watermark)==null?void 0:S.content.join("-~"):"";const w=n.backendUrl,T=f.getBaseUrl(w,n.isTest)+"/dsc/commons/exportChart";ue(),ne.post(T,u,{responseType:"blob"}).then(U=>{const M=document.createElement("a");M.style.display="none",M.href=URL.createObjectURL(U.data),M.setAttribute("download",c+".xlsx"),document.body.appendChild(M),M.click(),document.body.removeChild(M)}).finally(()=>{o&&(o.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const n=t.pageContext,a=t.configureObj,s=n.code+"_";D.$emit(s+"save-chart-condition",{pageContext:n,configureObj:a})})(e)},addTransactor:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"remove-transactor",t)}(e)}};function we(e){const t=e.pageContext,n=t.initChartServiceConfigs;if(!n||n.length==0)return;const a=e.configureObj;let s=null;a&&a.runtime&&(s=a.runtime.props);const o=s?s.state:void 0;s&&(s.state="disabled"),Y.updateChartDatasources(t,n,void 0,e.isInitChart).then(()=>{s&&(s.state=o)}).catch(()=>{s&&(s.state=o)})}function ue(){ne.defaults.headers.common.Authorization=g.getToken();const e=g.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";ne.defaults.headers.common[t]=e}}function he(e,t){return new Promise((n,a)=>{const s=e.pageContext,o=e.configureObj,r=e.mainDefaultValueColumns,l=e.dynamicColumnInfo,c=o.props.base.successOperation;let m=!1;if(c&&c==="noOperation"&&(m=!0),s.fileuploadInfo&&s.fileuploadInfo.length>0){const u=s.fileuploadInfo[0];let p;p=u.isTable&&u.tableTitle&&u.rowIndex!==void 0?g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:u.label,tableTitle:u.tableTitle,rowIndex:u.rowIndex+1}):g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:u.label}),k.ElMessage({message:p,type:"warning",showClose:!0}),n(!1)}else{j.cacheBackfillData(s.code,s.entity.data);const u=Pe(s,o,"/dsc/commons",m,r,l);u?u.then(p=>{p&&j.removeCacheFillData(s.code,s.entity.data),V(s,o,p,"superPageRuntimeMessage.successfulSave",t),n(p)}).catch(p=>{a(p)}):(j.removeCacheFillData(s.code,s.entity.data),a("保存时request不存在"))}})}function ye(e,t,n,a,s,o,r){var y,I,E;const l=f.isWorkflowPage(e),c=e.systemCode,m=t.props.base.isPermission===void 0||t.props.base.isPermission==="true"||t.props.base.isPermission,u=G.getPermissionCodes(t,e);let p=r;p||(p=e.entity.data);const d={entity:p,tableName:e.tableName,formNoRuleCode:e.formNoRuleCode,isWorkflowEntity:l,functionCode:u,isPermission:m+"",listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};o&&(d.ids=o),e.judgeHeavyList&&(f.isArrayFn(e.judgeHeavyList)?d.judgeHeavyList=JSON.stringify(e.judgeHeavyList):d.judgeHeavyList=e.judgeHeavyList);const w=t.props.base.conversionCodes;w&&(f.isArrayFn(w)?d.dataConversionRule=w.join(","):typeof w=="string"&&(d.dataConversionRule=w));const T=ge(t);T&&(d.autoSetValueData=T);const i=(y=t.props.base)==null?void 0:y.logSetting;i&&(d.logSettingText=i.join("")),d.systemCode||(d.systemCode=c);const C=e.beanName;C&&(d.beanName=C),s&&(d.dynamicColumnInfo=s),a&&(d.mainDefaultValueColumns=a);const b=$(e);d.additionalParamMap=b,n!==void 0&&(d.unControlVersion=n);const h=(E=(I=t.runtime)==null?void 0:I.props)==null?void 0:E.title;return h&&(d.currentOperation=h),d.isMobile=g.isMobileBrowser(),d}function Ie(e,t,n,a,s,o,r,l,c){const m=e.systemCode,u=e.backendUrl,p=ye(e,t,a,s,o,null,r);return l&&l.tableName&&(p.tableName=l.tableName),c&&(p.isWorkflowEntity=!1),function(d,w,T,i,C,b){const h=f.getBaseUrl(w,b);let y,I=h+i;return I=f.getRealRestApiPath(I,d,w,b),y=C&&(C.id||C.ID)?g.http.put(I,T):g.http.post(I,T),y}(m,u,p,n,r,e.isTest)}function Pe(e,t,n,a,s,o){return Ie(e,t,n,a,s,o,null,null)}function V(e,t,n,a,s){const o=Re(e,t,s);if(o&&o==="list")(function(r,l,c,m){let u=l.props.base.successOperation;const p=l.props.base.isNeedValueMapping,d=W.getTableUuid(r,l);if(u||je.includes(l.name)||(u="refresh"),u==="refresh")d?J.getComponentRef(r,d).refresh():console.error("tableUuid is empty");else if(u==="closeWindow"||u==="closeWindowAndRefresh"){const w=f.deepCopy(r.entity.page);let T=c;T||(T={}),Object.assign(w,T),me(r,l,w,p)}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,n,a),e.canClick=!0;else if(o&&o==="form")(function(r,l,c,m){if(c){const u=c;let p;p=u.entity?u.entity:u,u.formNo&&(r.initFormNo=u.formNo),re(r,l,{...p,...r.entity.page})}else{const u=l.props.base.successOperation;u&&u!==null?re(r,l,{...r.entity.page}):r.canClick=!0}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,n,a);else{const r=t.props.base.successOperation;r&&r!==null?re(e,t,null):e.canClick=!0}}function Re(e,t,n){let a;return n===void 0?a=t.props.base.tableUuid?"list":null:n===!1&&(a="form"),a||(a=e.pageType),a}function re(e,t,n){const a=t.props.base.successOperation;if(!a||a===null)return;const s=t.props.base.isNeedValueMapping;a==="noOperation"?e.canClick=!0:a==="refresh"?n&&(n.id||n.ID)?pe(e,n.ID?n.ID:n.id):e.canClick=!0:a!=="closeWindow"&&a!=="closeWindowAndRefresh"||(me(e,t,n,s),e.canClick=!0)}function me(e,t,n,a){const s=e.entity&&e.entity.request?e.entity.request.jumpMode:null;if(s==="openWindow"||s==="newTab")window.parent?window.parent.close():window.close();else{const o=e.tableName,r=a!==void 0&&a===!0&&n&&n!==void 0,l=(e.entity&&e.entity.request?e.entity.request.parentPageCode:null)+"_close-dialog";D.$has(l)?D.$emit(l,{isNeedValueMapping:r,dataModel:n,sourceConfigureObj:t,sourceTableName:o,jumpMode:s}):s==="refresh"&&window.history.back()}}const je=["dropdown"];function Q(e,t,n,a){return new Promise((s,o)=>{const r=e.pageContext,l=e.configureObj;if(r.fileuploadInfo&&r.fileuploadInfo.length>0){const c=r.fileuploadInfo[0];let m;c.isTable&&c.tableTitle&&c.rowIndex!==void 0?(c.rowIndex,c.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:c.label,tableTitle:c.tableTitle,rowIndex:c.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:c.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),s(!1)}else{const c=e.mainDefaultValueColumns,m=e.dynamicColumnInfo,u=e.ids,p=l.props.base.successOperation;let d=!1;p&&p==="noOperation"&&(d=!0);let w=r.tableName;if(t){const i=l.props.base.tableUuid?l.props.base.tableUuid:e.tableUuid;w=se.getTableNameByTableUuid(r,i)}else j.cacheBackfillData(r.code,r.entity.data);const T=function(i,C,b,h,y,I,E,P,R){return new Promise((x,v)=>{const S=C.props.base.title,U="superPageRuntimeMessage.whetherToConfirm"+f.upperFirstCase(E);k.ElMessageBox.confirm(g.getI18n().t(U,{name:S}),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const M=i.systemCode,N=i.backendUrl,A=ye(i,C,h,y,I,P,null);A.tableName=R;let B=f.getBaseUrl(N,i.isTest)+b;B=f.getRealRestApiPath(B,M,N,i.isTest),g.http.post(B,A).then(O=>{x(O)}).catch(O=>{v(O)})}).catch(()=>{v("点击了取消按钮")})})}(r,l,a,d,c,m,n,u,w);T?T.then(i=>{!t&&i&&j.removeCacheFillData(r.code,r.entity.data),V(r,l,i,"superPageRuntimeMessage.successfulSave",t),s(i)}).catch(i=>{o(i)}):(t||j.removeCacheFillData(r.code,r.entity.data),o("request不存在"))}})}function _(e){var T,i,C;const t=e.pageContext,n=e.configureObj,a=t.entity.data,s=t.systemCode,o=t.code;let r=G.getPermissionCodes(n,t);r||(r=o+".xxx"),a.id||a.ID||(a.PAGE_CODE=t.code,a.PAGE_VERSION=t.version);const l={entity:a,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:s,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.completeTaskParam&&(l.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(f.isArrayFn(t.judgeHeavyList)?l.judgeHeavyList=JSON.stringify(t.judgeHeavyList):l.judgeHeavyList=t.judgeHeavyList);const c=n.props.base.conversionCodes;c&&(f.isArrayFn(c)?l.dataConversionRule=c.join(","):typeof c=="string"&&(l.dataConversionRule=c));const m=ge(n);m&&(l.autoSetValueData=m),t.beanName&&(l.beanName=t.beanName);const u=(T=n.props.base)==null?void 0:T.logSetting;u&&(l.logSettingText=u.join("")),l.systemCode||(l.systemCode=s);const p=$(t);l.additionalParamMap=p,p.ids&&p.ids.length>0&&(typeof p.ids=="string"?l.ids=p.ids.split(","):Array.isArray(p.ids)?l.ids=p.ids:typeof ids=="number"?l.ids=[p.ids]:console.error("ids参数类型错误"));const d=n.props.base.successOperation;d&&d==="noOperation"&&(l.unControlVersion=!0),l.isWorkflowEntity=!0;const w=(C=(i=n.runtime)==null?void 0:i.props)==null?void 0:C.title;return w&&(l.currentOperation=w),l.isMobile=g.isMobileBrowser(),l}function z(e,t,n,a,s){const o=n.code,r=n.version;let l;if(e){t&&(n.initFormNo=e.formNo,n.emailTemplateCode=e.emailTemplateCode),e.entity&&(n.entity.data=e.entity,function(m,u){const p=$(u);m&&p&&g.setSessionCache(p._t_+"_id",m)}(e.entity.id||e.entity.ID,n));const c=e.completeTaskResult;if(c){const m=c.completeTaskTipType;if(m&&m==="MESSAGE"){const u=c.content;return k.ElMessage({showClose:!0,type:"warning",message:u}),!1}}if(e.completeTaskParam){const m=e.completeTaskParam;l=m.taskId,a&&(a.taskId=l),fe.setStoreInfo(o,r,"_completeTaskParam",m),n.fieldPermissions=m.fieldPermissions,n.actionPermissions=m.actionPermissions,n.workflowButtonComponent=m.buttonComponent,n.completeTaskParam=m,n.completeTaskParam.opinion=null}n.entity||(n.entity={}),n.entity.task=e.taskParamMap,fe.setStoreInfo(o,r,"_currentActivityName",e.taskName)}return a&&(a.operationResult=s),t||V(n,a.configureObj,e,null,!1),!0}async function X(e,t){const n=await Me(e);return new Promise((a,s)=>{var r;const o=e.pageContext;if(o.fileuploadInfo&&o.fileuploadInfo.length>0){const l=o.fileuploadInfo[0];let c;l.isTable&&l.tableTitle&&l.rowIndex!==void 0?(l.rowIndex,l.rowIndex,c=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:l.label,tableTitle:l.tableTitle,rowIndex:l.rowIndex+1})):c=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:l.label}),k.ElMessage({message:c,type:"warning",showClose:!0}),a(!1)}else if(n){const l=o.systemCode,c=o.backendUrl,m=n===!0?(r=o.completeTaskParam)==null?void 0:r.opinion:n;let u=f.getBaseUrl(c,o.isTest)+"/dsc/workflow-commons/complete-tasks";if(u=f.getRealRestApiPath(u,l,c,o.isTest),!u)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=_(e);p.completeTaskParam={operationResult:t,taskId:o.completeTaskParam?o.completeTaskParam.taskId:null,opinion:m||null};const d=g.http.post(u,p);j.cacheBackfillData(o.code,o.entity.data),d.then(w=>{let T=!0;w&&(j.removeCacheFillData(o.code,o.entity.data),T=z(w,!1,o,e,t)),T===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),a(!0)}).catch(w=>{s(w)})}else a(!0)})}function Me(e){return new Promise((t,n)=>{var s,o,r,l,c;const a=e.configureObj;if(a){if((s=e.pageContext.workflowOpinion)!=null&&s.opinion)return void t(e.pageContext.workflowOpinion.opinion);let m=!1;if((r=(o=a.props)==null?void 0:o.base)!=null&&r.isMustOpinion&&(m=!0),m===!0){const u=e.pageContext,p=(c=(l=a.props)==null?void 0:l.base)==null?void 0:c.mustOpinionConditions;m=Y.caculateShowCondition(u,p)}m===!0?(k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseInputOpinion")}),e.pageContext.workflowOpinion.focusOpinionInput=!0,t(!1)):t(!0)}else t(!0)})}function le(e){var u,p;const t=e.pageContext,n=t.entity.data,a=t.systemCode,s=t.code,o=e.configureObj,r=$(t),l=n.ID!==void 0&&n.ID!==null?n.ID:n.id,c={beanName:t.beanName,id:l,entity:n,additionalParamMap:r,tableName:t.tableName,functionCode:s+".xxx",isWorkflowEntity:!0,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};c.completeTaskParam={taskId:t.completeTaskParam.taskId,systemCode:a},c.completeTaskParam.customTaskTitle=ve(e);const m=(p=(u=o==null?void 0:o.runtime)==null?void 0:u.props)==null?void 0:p.title;return m&&(c.currentOperation=m),c.isMobile=g.isMobileBrowser(),c}function ve(e){var n,a,s;let t=null;if(((a=(n=e.configureObj.props.task)==null?void 0:n.title)==null?void 0:a.length)>0)for(let o=0;o<e.configureObj.props.task.title.length;o++){const r=e.configureObj.props.task.title[o];if(r.config){if(!(((s=r.conditions)==null?void 0:s.length)>0)){t=r.config;break}if(Y.caculateShowCondition(e.pageContext,r.conditions)){t=r.config;break}}}return t}function $(e){if(e.entity){let t=f.deepCopy(e.entity.page);t||(t={});const n=e.entity.request;return n&&Object.assign(t,n),t}}async function H(e,t,n,a){const s=await Me(e);return new Promise((o,r)=>{var l;if(s){const c=e.pageContext,m=c.systemCode,u=c.backendUrl;if(c.completeTaskParam){const d=s===!0?(l=c.completeTaskParam)==null?void 0:l.opinion:s;t.completeTaskParam={taskId:c.completeTaskParam.taskId,opinion:d}}if(!(n=f.getRealRestApiPath(n,m,u,c.isTest)))return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=g.http.post(n,t);p&&p.then(d=>{let w=!0;d&&(w=z(d,!1,c,e,null)),w===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t(a)}),o(!0)}).catch(d=>{r(d)})}else o(!0)})}function Se(e){const t=e.pageContext,n=t.backendUrl;let a=f.getBaseUrl(n,t.isTest)+"/dsc/workflow-commons/initiate-extract";const s=_(e);if(t.completeTaskParam){const o=[];e._value.loginName&&o.push(e._value.loginName),s.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:o,customTaskTitle:ve(e)}}return new Promise((o,r)=>{const l=e.pageContext,c=l.systemCode,m=l.backendUrl;if(a=f.getRealRestApiPath(a,c,m,l.isTest),!a)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=g.http.post(a,s);u&&u.then(p=>{let d=!0;p&&(d=z(p,!1,l,e,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulInitiateExtract")}),o(!0)}).catch(p=>{r(p)})})}function Fe(e,t,n){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function pe(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,xe(e,t).then(n=>{e.isRefresh=!0})}function xe(e,t,n){const a=e.pageType;return a&&a==="form"?(e.canClick=!1,f.isWorkflowPage(e)?function(s,o,r){return new Promise((l,c)=>{var E;const m=s.systemCode,u=s.code,p=s.version,d=$(s);let w=o||null,T=o?[o]:null;r===void 0||r?(w||(w=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(w=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b={pageCode:u,pageVersion:p,tableName:s.tableName,formNoRuleCode:s.formNoRuleCode,isWorkflowEntity:!0,systemCode:m,functionCode:C+".workflowGets",listCodesMap:s.listCodesMap,listCodesInitSearchForm:s.listCodesInitSearchForm};if(s.listCodesMap,(!s.listCodesMap||Object.keys(s.listCodesMap).length===0)&&s.tableUuids){const P={};s.tableUuids.forEach(R=>{const x=f.getListCode(u,p,R);P[x]=x}),b.listCodesMap=P}T&&(b.ids=ke(T)),i?b.taskId=i:w?b.id=w:(d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(b.id=g.getSessionCache(d._t_+"_id")),s.notIdInitializationList&&(b.noIdAndTaskIdInitSetting=JSON.stringify(s.notIdInitializationList))),d&&(b.additionalParamMap=d),s.beanName&&(b.beanName=s.beanName),s.refercePropMap&&(b.refercePropMap=s.refercePropMap),(E=s.props)!=null&&E.enableFormDataPermission&&(b.withDataPermission=!0),b.isMobile=g.isMobileBrowser();const h=f.getBaseUrl(s.backendUrl,s.isTest)+"/dsc/workflow-commons/gets",y=be.usePageContextStore();y.restorePageLoadState(),W.handleEvent(null,s,s,"beforeFormLoadData");const I=j.hasBackfillData(s.code,b.id);g.http.post(h,b).then(async P=>{I&&await Te(s,b.id,P),s.workflowOpinion={showOpinionBox:!1},s.definitionId=P.definitionId,s.entity.task=P.taskParamMap,s.dataTypeMaps=P.dataTypeMap,z(P,!0,s),s.workflowRules=Ce.getWorkflowRules(s);const R=s.pageType;R&&R==="form"&&function(x){(function(v){const S=new Map,U=v.fieldPermissions;if(U!==void 0)for(let M=0;M<U.length;M++){const N=U[M].name;if(N)if(N.indexOf("$")===0&&N.indexOf(".")>0){const A=U[M],B=JSON.parse(JSON.stringify(A)),O=N.substring(1,N.indexOf(".")),q=N.substring(N.indexOf(".")+1);if(B.name=q,B&&B.name==="all_fields")B.canEdit===!1?B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!1,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!1}]):B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!0,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!0}]);else{let L=S.get(O);L||(L=[]),L.push(B),S.set(O,L)}}else S.set(N,U[M])}v.fieldPermissionMap=S})(x),function(v){const S=v.fieldPermissionMap,U=new Map,M=v.actionPermissions;M!=null&&Object.keys(M).forEach(N=>{const A=M[N],B=S.get(N);if(B&&B.length>0&&B[0].name==="all_fields"&&B[0].canEdit===!1)A.canUpdate=!1,A.canAdd=!1;else{A&&Object.keys(A.deleteCondition).length!==0||(A.deleteCondition=null),A&&Object.keys(A.updateCondition).length!==0||(A.updateCondition=null);const O=A.canUpdate,q=A.updateRowIndexes;O!==void 0&&O===!1&&q!=null&&q.length>0&&S.set(N,[{name:"all_fields",canEdit:!1,rowIndexes:q}])}U.set(N,A)}),v.actionPermissionMap=U}(x)}(s),s.canClick=!0,W.handleEvent(null,s,s,"afterFormLoadData"),y.setFormPageDataLoadState(!0),l(P)}).catch(P=>{s.canClick=!0,c(P)})})}(e,t,n):function(s,o,r){return new Promise((l,c)=>{var P;const m=s.systemCode,u=s.code,p=s.version,d=$(s);let w=o||null,T=o?[o]:null;r===void 0||r?(w||(w=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(w=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b=f.getBaseUrl(s.backendUrl,s.isTest),h={pageCode:u,pageVersion:p,tableName:s.tableName,formNoRuleCode:s.formNoRuleCode,id:w,systemCode:m,functionCode:C+".gets",listCodesMap:s.listCodesMap,listCodesInitSearchForm:s.listCodesInitSearchForm};if(!h.id&&d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(h.id=g.getSessionCache(d._t_+"_id")),T&&(h.ids=ke(T)),s.notIdInitializationList&&(h.noIdAndTaskIdInitSetting=JSON.stringify(s.notIdInitializationList)),d&&(h.additionalParamMap=d),s.beanName&&(h.beanName=s.beanName),i&&(h.taskId=i),(P=s.props)!=null&&P.enableFormDataPermission&&(h.withDataPermission=!0),s.listCodesMap,(!s.listCodesMap||Object.keys(s.listCodesMap).length===0)&&s.tableUuids){const R={};s.tableUuids.forEach(x=>{const v=f.getListCode(u,p,x);R[v]=v}),h.listCodesMap=R}s.refercePropMap&&(h.refercePropMap=s.refercePropMap),h.isMobile=g.isMobileBrowser();const y=b+"/dsc/commons/gets",I=be.usePageContextStore();I.restorePageLoadState(),W.handleEvent(null,s,s,"beforeFormLoadData");const E=j.hasBackfillData(s.code,h.id);g.http.post(y,h).then(async R=>{R&&(E&&await Te(s,h.id,R),s.entity.data=R.entity,s.initFormNo=R.formNo);const x=s.customRules,v=s.rules,S=Ce.packageCustomRules(s,x,v);s.rules=S,s.canClick=!0,W.handleEvent(null,s,s,"afterFormLoadData"),I.setFormPageDataLoadState(!0),l(R)}).catch(R=>{s.canClick=!0,c(R)})})}(e,t,n)):new Promise((s,o)=>{s(!0)})}async function Te(e,t,n){try{await k.ElMessageBox.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}),n.entity=j.getRealFillData(e.code,t,n.entity)}catch{}j.removeCacheFillDataById(e.code,t)}function ke(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function ge(e){const t=e.props.setValueList;if(t){if(f.isArrayFn(t)&&t.length>0)return JSON.stringify(t);if(typeof t=="string"&&t!=="[]")return t}return null}function de(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ee(e.exportNoticeInfo,e.backendUrl,e.code)}function Ue(e,t,n){e.lastFileTask&&!e.noticeComponent?e.noticeComponent=k.ElNotification({title:g.getI18n().t("superPageRuntimeMessage.logTip"),duration:0,position:"top-right",type:"success",onClose(){e.lastFileTask.taskState==="Success"||e.lastFileTask.taskState==="Fail"||e.lastFileTask.taskState==="PartSuccess"?ce(t,n,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ee(e,t,n))},message:()=>Be.h(De,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(a){a.serverPath?function(s,o,r,l,c,m){ce(c,m,r,l);const u=g.getToken(),p=f.getBaseUrl(c),d=p+"/common/super-form/downloads?jwt="+u+"&showName="+encodeURI(s)+"&serverPath="+o;window.open(d)}(a.fileName,a.serverPath,a.id,e,t,n):ce(t,n,a.id,e),e.noticeComponent.close(),e.noticeComponent=null}})}):(e.noticeComponent!=null&&(e.noticeComponent.close(),e.noticeComponent=null),e.noticeInterval&&(clearInterval(e.noticeInterval),e.noticeInterval=null))}function Ee(e,t,n){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(a,s,o){Ne(s,o).then(r=>{a.lastFileTask=r,Ue(a,s,o)})}(e,t,n)},3e3))}function Ne(e,t){return se.getCurrentUserFileTasks(e,t)}function ce(e,t,n,a){se.setFileTaskRead(e,n).then(()=>{(function(s,o,r){Ne(o,r).then(l=>{s.lastFileTask=l,Ue(s,o,r)})})(a,e,t)})}exports.dealAfterOperate=V,exports.dealCompleteTaskParam=z,exports.deleteChartCondition=function(e){const t=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/"+e;return g.http.delete(t)},exports.doAddSigner=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/add-signers";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(",");const c=g.http.post(r,l);c&&c.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(n,a,m,null,!1),W.doAfterClickEvent(n,a)})}},exports.doAddTransactor=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/add-transactors";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(",");const c=g.http.post(r,l);c&&c.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(n,a,m,null,!1),W.doAfterClickEvent(n,a)})}},exports.doAssign=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.backendUrl,o=f.getBaseUrl(s,n.isTest)+"/dsc/workflow-commons/assigns",r=t.id?t.id:t.ID?t.ID:null,l=_(e);l.assigneeId=r,H(e,l,o,"superPageRuntimeMessage.successfulAssign").then(c=>{W.doAfterClickEvent(n,a)})}},exports.doCreateCopyTask=async function(e,t){if(t){const n=await function(a){return new Promise((s,o)=>{var l,c,m,u;const r=a.configureObj;if(r){let p=(c=(l=r.props)==null?void 0:l.base)==null?void 0:c.isMustRemark;if(p===void 0||p===!0){p=!0;const d=a.pageContext,w=(u=(m=r.props)==null?void 0:m.base)==null?void 0:u.mustRemarkConditions;p=Y.caculateShowCondition(d,w)}p===!0?k.ElMessageBox.prompt(g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark"),g.getI18n().t("superPageRuntimeMessage.remark"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),inputType:"textarea",inputValue:null,closeOnClickModal:!1,inputValidator:d=>!(!d||!d.trim())||g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark")}).then(({value:d})=>{s(d)}).catch(()=>{s(!1)}):s(!0)}else s(!0)})}(e);if(n){const a=e.pageContext,s=e.configureObj,o=a.systemCode,r=a.backendUrl;let l=f.getBaseUrl(r,a.isTest)+"/dsc/workflow-commons/copies";if(l=f.getRealRestApiPath(l,o,r,a.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(","),n!==!0&&(c.completeTaskParam.remark=n);const m=g.http.post(l,c);m&&m.then(u=>{var p;k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),V(a,s,{entity:(p=a.entity)==null?void 0:p.data},null),W.doAfterClickEvent(a,s)})}}},exports.doFileTaskFunc=de,exports.doImportFinally=function(e,t){var R,x,v;const n=e.pageContext,a=e.configureObj,s=e.tableConfigure,o=a.props.base,r=a.props.base.tableUuid?a.props.base.tableUuid:e.tableUuid,l=se.getTableNameByTableUuid(n,r),c=new FormData;c.append("multipartFile",t),l&&c.append("tableName",l);const m=(x=(R=a.runtime)==null?void 0:R.props)==null?void 0:x.title;m&&c.append("currentOperation",m),c.append("isMobile",g.isMobileBrowser()),n.importBeanName&&c.append("importBeanName",n.importBeanName),n.beanName&&c.append("beanName",n.beanName);const u=(v=s.props.importSetting)==null?void 0:v.listViewImportDuplicate;u&&c.append("importDuplicateRule",u);const p=n.judgeHeavyList;p&&c.append("judgeHeavyList",JSON.stringify(p));const d=ge(a);d&&c.append("autoSetValueData",d);const w=n.formNoRuleCode;w&&c.append("formNoRuleCode",w);const T=e.listCode;T&&c.append("listCode",T);let i=!1;i=o.isAsync!==void 0&&o.isAsync!==null&&o.isAsync,c.append("isAsync",i+""),c.append("pageCode",n.code);const C=f.isWorkflowPage(n);C!=null&&c.append("isWorkflowEntity",C+"");const b=G.getPermissionCodes(a,n);b&&c.append("functionCode",b);const h=$(n);c.append("additionalParamMapStr",JSON.stringify(h));const y=o.isPermission===void 0||o.isPermission==="true"||o.isPermission;c.append("isPermission",y+"");const I=n.systemCode;I&&c.append("systemCode",I);const E=n.backendUrl;let P=f.getBaseUrl(E,n.isTest)+"/dsc/commons/import-data";P=f.getRealRestApiPath(P,I,E,n.isTest),g.http.post(P,c).then(S=>{if(i)k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.asyncImport")}),de(n);else{let U=!1;S?(U=!1,k.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:S})):(k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulImport")}),U=!0),V(n,a,S,null,!0),n.result=U,W.doAfterClickEvent(n,a)}}).catch(S=>{})},exports.doRemoveSigners=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/remove-signers";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=t.map(u=>u.id?u.id:u.ID?u.ID:null),c=_(e);c.ids=l;const m=g.http.post(r,c);m&&m.then(u=>{V(n,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(n,a)})}},exports.doRemoveTransactors=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=t.map(u=>u.taskId),c=_(e);c.ids=l;const m=g.http.post(r,c);m&&m.then(u=>{V(n,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(n,a)})}},exports.doReturnTaskTo=function(e,t){const n=e.pageContext,a=e.configureObj,s=n.backendUrl,o=f.getBaseUrl(s,n.isTest)+"/dsc/workflow-commons/returnTaskTo",r=_(e);t.nodeName&&(r.returnToNodeName=t.nodeName),t.nodeId&&(r.returnToNodeId=t.nodeId),H(e,r,o,"superPageRuntimeMessage.successfulReturnTaskTo").then(l=>{W.doAfterClickEvent(n,a)})},exports.exportFormReport=function(e,t,n,a){var y,I,E,P,R,x,v,S,U,M,N,A,B;e.clickUuid=t.uuid,e.canClick=!1;const s=n.templateUuid,o=n.templateName,r=e.systemCode,l=(y=t.props.base)==null?void 0:y.logSetting,c=f.isWorkflowPage(e),m=e.beanName,u=t.props.base,p=t.tableName?t.tableName:e.tableName,d=e.backendUrl,w=Oe.functions.getFormViewData(e),T=u.isPermission===void 0||u.isPermission==="true"||u.isPermission,i={entity:w,fileName:s,showName:o,beanName:m,isWorkflowForm:c,functionCode:G.getPermissionCodes(t,e),tableName:p,isPermission:T+"",systemCode:r,listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};if(e.tableUuids&&e.tableUuids.length>0){const O={};e.tableUuids.forEach(q=>{const L=J.getComponentRef(e,q);if(L){const Z=L.getConfigure().code,K=L.getSuperGridRef().columns;K&&K.length>0&&(O[Z]=K)}}),i.subTableColumns=O}l&&(i.logSettingText=l.join(""));const C=(E=(I=t.runtime)==null?void 0:I.props)==null?void 0:E.title;C&&(i.currentOperation=C),i.isMobile=g.isMobileBrowser();const b=$(e);let h;i.additionalParamMap=b,i.isShowWatermark=((R=(P=t.props)==null?void 0:P.watermark)==null?void 0:R.isShowWatermark)===void 0?"true":((v=(x=t.props)==null?void 0:x.watermark)==null?void 0:v.isShowWatermark)+"",i.watermark=(U=(S=t.props)==null?void 0:S.watermark)!=null&&U.content&&((N=(M=t.props)==null?void 0:M.watermark)==null?void 0:N.content.length)>0?(B=(A=t.props)==null?void 0:A.watermark)==null?void 0:B.content.join("-~"):"",h=a?function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-pdf";ue();const ee=ne.post(ie,L,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),ee.then(te=>{const oe=new Blob([te.data]),F=document.createElement("a");F.download=O.substring(0,O.lastIndexOf("."))+".pdf",F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(oe),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(te=>{ae(te)})})}(o,d,i,e.isTest):function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-reports";ue(),ne.post(ie,L,{responseType:"blob"}).then(ee=>{const te=new Blob([ee.data]);let oe="报告.xlsx";O&&(oe=O);const F=document.createElement("a");F.download=oe,F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(te),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(ee=>{ae(ee)})})}(o,d,i,e.isTest),h&&h.then(()=>{W.doAfterClickEvent(e,t)}).catch(O=>{window.$message.error("导出失败..."),W.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Se,exports.getAdditionalParamMap=$,exports.getFormData=xe,exports.getRemoveSigner=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const o=_(e);if(s=f.getRealRestApiPath(s,n,a,t.isTest),s)return g.http.post(s,o);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const o=_(e);if(s=f.getRealRestApiPath(s,n,a,t.isTest),s)return g.http.post(s,o);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=Pe,exports.getSaveFormRequestWithRow=Ie,exports.getTaskInformitions=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl,s=t.completeTaskParam;let o=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/returnable-task/"+s.taskId;if(o=f.getRealRestApiPath(o,n,a,t.isTest),!o)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const r=t.code,l=$(t),c={beanName:t.beanName,additionalParamMap:l,tableName:t.tableName,functionCode:r+".xxx",pageCode:t.code};return g.http.post(o,c)},exports.isVisibleWorkflowButton=function(e,t,n,a,s,o){var l,c,m,u,p,d,w,T;let r=!1;if(a&&a.archival)return r;if(t&&n&&(t==="workflowSave"?r=function(i){return!!((i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)||i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.processingMode!=="TYPE_READ"&&i.showButtonSave&&(i.active==="WAIT_TRANSACT"||i.active==="WAIT_DESIGNATE_TRANSACTOR"||i.active==="WAIT_CHOICE_TACHE"||i.active==="DRAW_WAIT"))}(n):t==="workflowStart"?r=function(i,C){return!!(i.processState===void 0||i.processState===null||C&&!C.workflow_id&&!C.WORKFLOW_ID)}(n,o):t==="submitProcess"?r=function(i){return(i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)}(n):t==="submitTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.active==="WAIT_TRANSACT"&&i.processingMode==="EDIT")}(n):t==="drawTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active&&(i.active==="DRAW_WAIT"||i.active==="DEPT_DRAW_WAIT")&&i.showButtonDraw)}(n):t==="abandonReceive"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.drawTask&&i.active==="WAIT_TRANSACT"||i.canAbandonDeptTask&&i.active==="WAIT_TRANSACT")&&i.showButtonAbandon)}(n):t==="approve"||t==="refuse"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&(i.processingMode==="APPROVE"||i.processingMode==="COUNTERSIGN"))}(n):t==="readed"?r=function(i){return i.active==="WAIT_TRANSACT"&&i.processingMode==="TYPE_READ"}(n):t==="assign"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT"))}(n):t==="copyTask"?r=function(i,C){let b=!1;return i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode!=="TYPE_READ"&&i.showButtonCopy&&(b=!0),C&&(C.props.base.state=b?"":"hidden"),!0}(n,s):t==="addSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonAddCounter)}(n):t==="removeSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonDelCounter)}(n):t==="retrieveTask"?r=function(i){return!!(i.processState&&i.processState!=="END"&&i.processState==="SUBMIT"&&i.showButtonGetBack===!0&&function(C){return!(C.active!=="COMPLETED"||C.processingMode==="TYPE_READ"||!C.showButtonGetBack)}(i))}(n):t==="agreement"||t==="oppose"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE")}(n):t==="kiken"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE"&&i.showButtonKiken)}(n):t==="extractWorkflow"?r=function(i,C,b){var I;const h=g.getCurrentUser(),y=h?h.loginName:null;if(i!=null&&i.processState){if(((I=C==null?void 0:C.firstNodeInfo)==null?void 0:I.nodeId)===(b==null?void 0:b.CURRENT_ACTIVITY_ID))return!1;if((i==null?void 0:i.processState)!=="END"&&(i==null?void 0:i.processState)!=="EXTRACT"&&(i==null?void 0:i.processState)!=="MANUAL_END"&&b&&(b.creator===y||b.CREATOR===y))return!0}return!1}(n,a,o):t==="cancelExtractWorkflow"?r=function(i,C,b){const h=g.getCurrentUser(),y=h?h.loginName:null;return!!((i==null?void 0:i.processState)==="EXTRACT"&&b&&(b.creator===y||b.CREATOR===y))}(n,0,o):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=Fe(n):t==="addTransactor"||t==="removeTransactor"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT")&&i.processingMode!=="COUNTERSIGN")}(n):function(i,C){return i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&!function(b){const h=b;let y=!0;return h&&(y=h.taskComplete),y}(C)}(n,a)&&(r=t!=="returnToPreviousTask"||function(i){return!!i.rebuttable}(n))),(s==null?void 0:s.check)&&["submitTask","approve","refuse","agreement","oppose","kiken","extractWorkflow","cancelExtractWorkflow","approveExtractWorkflow","refuseExtractWorkflow","returnToPreviousTask","returnTaskTo"].indexOf(t)!==-1&&r){if(e.workflowOpinion||(e.workflowOpinion={showOpinionBox:!1}),(c=(l=s.props)==null?void 0:l.base)==null?void 0:c.showOpinionBox){e.workflowOpinion.showOpinionBox=!0;const C=(u=(m=s.props)==null?void 0:m.base)==null?void 0:u.showOpinionBoxConditions;C&&C.length>0&&(e.workflowOpinion.showOpinionBox=Y.caculateShowCondition(e,C))}let i=!1;if((d=(p=s.props)==null?void 0:p.base)!=null&&d.isMustOpinion){if(i=!0,i===!0){const C=(T=(w=s.props)==null?void 0:w.base)==null?void 0:T.mustOpinionConditions;C&&C.length>0&&(i=Y.caculateShowCondition(e,C))}e.workflowOpinion.isRequired=i,i&&(e.workflowOpinion.showOpinionBox=!0)}}return e.workflowOpinion,r},exports.judgeDataNumber=function(e,t){const n=e.props.base;if(n.conditionsForExecution&&n.conditionsForExecution!==""){if(n.conditionsForExecution==="one"){if(!t||t.length!==1)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")})}),!1}else if(n.conditionsForExecution==="more"&&(!t||t.length<=0))return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")})}),!1}return!0},exports.listChartConditions=function(e){const t=e.code,n=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/list/"+t;return g.http.get(n)},exports.refreshFormOrListPage=function(e,t,n,a){var r;t&&!t.props.base&&(t.props.base={});let s=a;s||(s=n?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const o=Re(e,t);if(o&&o==="list"&&!s&&(s="refresh"),s==="refresh"){if(o&&o==="list"){const l=W.getTableUuid(e,t);l?J.getComponentRef(e,l).refresh():console.error("tableUuid is empty")}else if(o&&o==="form"){const l=e.entity.data;pe(e,l.ID?l.ID:l.id)}}},exports.refreshPage=pe,exports.saveChartConditionBase=function(e,t){const n=e.entity?e.entity:{},a={data:n.data,page:n.page},s={pageCode:e.code,queryCondition:JSON.stringify(a),name:t},o=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return g.http.post(o,s)},exports.standardEvents=_e,exports.updateValuesWhenCloseDialog=function(e,t,n,a,s){var r;s||(s=t.runtime&&t.runtime.linkPage&&t.runtime.linkPage.valueMappings?t.runtime.linkPage.valueMappings:null)||(s=(r=t.props.linkPage)==null?void 0:r.valueMappings);const o=e.tableName;(function(l,c,m){if(l&&l!==null&&c){let u=l;Array.isArray(l)&&l.length>0&&(u=l[0]),c.forEach(p=>{const d=p.source;if(!d)return;const w=d.split("."),T=Y.getVariableValue(u,w),i=p.target,C=G.getModelFields(null,i);Y.setVariableValue(m.entity,C,T)})}})(n,s,e),W.handleEvent(null,e,t,"setValue",{sourceModel:n,sourceTableName:a,entity:e.entity.data,targetTableName:o})};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../common-util.cjs"),g=require("agilebuilder-ui"),k=require("element-plus"),J=require("../global-refs.cjs"),D=require("../eventBus.cjs"),ne=require("axios"),W=require("./event-util.cjs"),fe=require("../store-util.cjs"),G=require("../page-init-util.cjs"),Y=require("../page-helper-util.cjs"),Ae=require("./print-label.cjs"),se=require("../table-utils.cjs"),Ce=require("./validator-util.cjs"),Oe=require("../api/page-expose-util.cjs"),be=require("../page-store.cjs"),Be=require("vue"),De=require("../../views/assemblys/common/file-task-notice.vue.cjs"),j=require("./data-backfill-util.cjs"),_e={save:function(e){return he(e,!1)},saveList:function(e){return he(e,!0)},exportForm:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-form-report",e)},exportPDF:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-pdf-report",e)},submit:function(e){return Q(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Q(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Q(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Q(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Q(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Q(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,n=t.entity?t.entity.data:{},a=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;me(t,e.configureObj,n,a)},delete:function(e){return function(t){return new Promise((n,a)=>{const s=t.ids;if(!s||s.length===0)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")}),void n(!0);k.ElMessageBox.confirm(g.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{var x,P,M;const o=t.pageContext,r=t.configureObj,l=r.props.base,c=o.systemCode,m=o.backendUrl,u=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,p=se.getTableNameByTableUuid(o,u);let d=f.getBaseUrl(m,o.isTest)+"/dsc/commons/"+p;d=f.getRealRestApiPath(d,c,m,o.isTest);const w=l.isPermission===void 0||l.isPermission==="true"||l.isPermission,T=f.isWorkflowPage(o),i=G.getPermissionCodes(r,o),C={ids:s,functionCode:i,isPermission:w+"",systemCode:c,isWorkflowEntity:T,listCodesMap:o.listCodesMap,pageCode:o.code,pageVersion:o.version};o.beanName&&(C.beanName=o.beanName);const b=r.props.deleteLogicSetting;b&&(typeof b=="object"?C.deleteLogicSetting=JSON.stringify(b):typeof b=="string"&&(C.deleteLogicSetting=b));const h=(x=r.props.base)==null?void 0:x.logSetting;h&&(C.logSettingText=h.join(""));const y=r.props.base.isSafeDelete;y&&(C.isSafeDelete=y);const I=(M=(P=r.runtime)==null?void 0:P.props)==null?void 0:M.title;I&&(C.currentOperation=I),C.isMobile=g.isMobileBrowser(),g.http.delete(d,{data:C}).then(R=>{const v=J.getComponentRef(o,u);v&&(v.isDeleteChange(!0),v.clearSelections()),V(o,r,R,"superPageRuntimeMessage.successfulDelete",!0),n(!0)}).catch(R=>{a(R)})}).catch(()=>{a()})})}(e)},downloadTemplate:function(e){(function(t){var I,x,P;const n=t.pageContext,a=t.configureObj,s=a.props.base,o=f.packageTemplateFiles(s.templateFiles,n,a);let r,l;o&&o.length>0&&(r=o[0].templateUuid,l=o[0].templateName);const c=n.systemCode,m=n.backendUrl;let u=l,p="?1=1";r&&u&&r!=="undefined"&&u!=="undefined"&&r!=="null"&&u!=="null"?p+="&fileName="+encodeURI(r)+"&showName="+encodeURI(u):u?p+="&showName="+encodeURI(u):n.label&&(p+="&showName="+encodeURI(n.label)+".xlsx",u=n.label+".xlsx");const d=(I=a.props.base)==null?void 0:I.logSetting;d&&(p+="&logSettingText="+d.join("")),c&&(p+="&systemCode="+c);const w=t.listCode;w&&(p+="&listCode="+w),n.beanName&&(p+="&beanName="+n.beanName);const T=G.getPermissionCodes(a,n);T&&(p+="&functionCode="+T),n.tableName&&(p+="&tableName="+n.tableName),n.code&&(p+="&pageCode="+n.code),n.version&&(p+="&pageVersion="+n.version);const i=g.getToken();i&&(p+="&JWT="+i);const C=(P=(x=a.runtime)==null?void 0:x.props)==null?void 0:P.title;C&&(p+="&currentOperation="+encodeURI(C)),p+="&isMobile="+g.isMobileBrowser();const b="_RUN_CURRENT_ROLE",h=g.getSessionCache(b);h&&(p+="&"+b+"="+h),s&&(p+="&isPermission="+(s.isPermission===void 0||s.isPermission==="true"||s.isPermission));const y=f.getBaseUrl(m,n.isTest);window.$http({url:encodeURI(y+"/dsc/commons/download-files"+p),method:"get",responseType:"blob"}).then(M=>{const R=document.createElement("a"),v=new Blob([M],{type:"application/vnd.ms-excel;charset=UTF-8"});R.style.display="none",R.remove("download"),R.href=URL.createObjectURL(v),R.setAttribute("download",u||"template.xlsx"),document.body.appendChild(R),R.click(),document.body.removeChild(R)})})(e)},import:function(e){const t=e.pageContext.code+"_";D.$emit(t+"import-file",e)},export:function(e){return function(t){return new Promise((n,a)=>{var b,h,y,I,x,P,M,R,v,S,U,E;const s=t.pageContext,o=t.configureObj,r=o.props.base,l=t.listCode,c=t.selections,m={};c&&c.length>0&&(m.data=c);let u=s.label;u||(u=s.code);let p=!1;p=r.isAsync!==void 0&&r.isAsync!==null&&r.isAsync;const d=r.isPermission===void 0||r.isPermission==="true"||r.isPermission,w=G.getPermissionCodes(o,s),T=u,i={backendUrl:s.backendUrl,pageContext:s},C=(h=(b=o.runtime)==null?void 0:b.props)==null?void 0:h.title;C&&(i.currentOperation=C),i.isShowWatermark=((I=(y=o.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)===void 0?"true":((P=(x=o.props)==null?void 0:x.watermark)==null?void 0:P.isShowWatermark)+"",i.watermarkContent=(R=(M=o.props)==null?void 0:M.watermark)!=null&&R.content&&((S=(v=o.props)==null?void 0:v.watermark)==null?void 0:S.content.length)>0?(E=(U=o.props)==null?void 0:U.watermark)==null?void 0:E.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(m,T,l,w,null,i,p,s.code,d),p&&setTimeout(()=>{de(s)},100)})}(e)},search:function(e){const t=e.pageContext,n=e.tableUuid;J.getComponentRef(t,n).refresh()},showSearch:function(e){const t=e.pageContext,n=e.tableUuid;J.getComponentRef(t,n).showMobileSearch()},workflowSave:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((n,a)=>{const s=t.pageContext,o=s.entity.data,r=s.systemCode,l=s.backendUrl;let c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons";if(c=f.getRealRestApiPath(c,r,l,s.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;u=o.id||o.ID?g.http.put(c,m):g.http.post(c,m),j.cacheBackfillData(s.code,o),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(s.code,o),d=z(p,!1,s,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSave")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(p=>{a(p)})})}(e)},workflowStart:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((n,a)=>{const s=t.pageContext,o=s.entity.data,r=s.systemCode,l=s.backendUrl;if(s.fileuploadInfo&&s.fileuploadInfo.length>0){const c=s.fileuploadInfo[0];let m;c.isTable&&c.tableTitle&&c.rowIndex!==void 0?(c.rowIndex,c.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:c.label,tableTitle:c.tableTitle,rowIndex:c.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:c.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),n(!1)}else{let c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons/start";if(c=f.getRealRestApiPath(c,r,l,s.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;o.workflow_id||o.WORKFLOW_ID?(c=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons",c=f.getRealRestApiPath(c,r,l,s.isTest),u=g.http.put(c,m)):u=g.http.post(c,m),j.cacheBackfillData(s.code,o),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(s.code,o),d=z(p,!1,s,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulStart")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(p=>{a(p)})}})}(e)},submitProcess:function(e){return D.$emit("clearTableAllStartEditing"),function(t){return new Promise((n,a)=>{const s=t.pageContext;if(s.fileuploadInfo&&s.fileuploadInfo.length>0){const o=s.fileuploadInfo[0];let r;o.isTable&&o.tableTitle&&o.rowIndex!==void 0?(o.rowIndex,o.rowIndex,r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:o.label,tableTitle:o.tableTitle,rowIndex:o.rowIndex+1})):r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:o.label}),k.ElMessage({message:r,type:"warning",showClose:!0}),n(!1)}else{const o=s.systemCode,r=s.backendUrl;let l=f.getBaseUrl(r,s.isTest)+"/dsc/workflow-commons/submit";if(l=f.getRealRestApiPath(l,o,r,s.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=_(t);j.cacheBackfillData(s.code,s.entity.data);const m=g.http.post(l,c);m?m.then(u=>{let p=!0;u&&(j.removeCacheFillData(s.code,s.entity.data),p=z(u,!1,s,t,null)),p===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSubmit")}),D.$emit("clearTableAllEndEditing"),n(!0)}).catch(u=>{a(u)}):j.removeCacheFillData(s.code,s.entity.data)}})}(e)},submitTask:function(e){return X(e,"SUBMIT")},approve:function(e){return X(e,"APPROVE")},refuse:function(e){return X(e,"REFUSE")},readed:function(e){return X(e,"READED")},agreement:function(e){return X(e,"AGREEMENT")},oppose:function(e){return X(e,"OPPOSE")},kiken:function(e){return X(e,"KIKEN")},assign:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"assign-task",t)}(e)},copyTask:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"copy-task",t)}(e)},addSigner:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"add-signer",t)}(e)},drawTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/draw-tasks",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/abandon-receives",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/end-instance",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/retrieves",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Se(e)},extractWorkflowEvent:function(e){return function(t){const n=t.pageContext;D.$emit(n.code+"_event-call-component",{componentName:"extract-workflow-dialog",componentProps:{pageContext:t.pageContext,configure:t.configureObj}})}(e)},cancelExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/cancel-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/approve-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const n=t.pageContext,a=n.backendUrl,s=f.getBaseUrl(a,n.isTest)+"/dsc/workflow-commons/refuse-extract",o=_(t);return H(t,o,s,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const n=t.pageContext,a=t.tableUuid,s=J.getComponentRef(n,a);s&&(t.getDefaultValueFunc=G.getDefaultValue,s.createRow(t.listCode,{},t))}(e)},printLabel:function(e){return function(t){let n=null;try{if(n=t.menuItem?t.menuItem.templateUuid:t.configureObj.props.base.template[0].templateUuid,!n)throw new Error("未找到模板")}catch(a){console.error("打印标签失败,未在配置中找到找到模板",a,t)}Ae.default.printLabel(t,n)}(e)},queryCharts:function(e){we(e)},resetCharts:function(e){var n,a;const t=e.pageContext;Object.assign(t.entity.data,f.deepCopy((n=t.initChartData)==null?void 0:n.data)),Object.assign(t.entity.page,f.deepCopy((a=t.initChartData)==null?void 0:a.page)),e.isInitChart=!0,we(e)},exportCharts:function(e){(function(t){var i,C,b,h,y,I,x,P,M,R,v,S;const n=t.pageContext,a=n.allChartUuids;if(!a||a.length==0)return;const s=t.configureObj;let o=null;s&&s.runtime&&(o=s.runtime.props);const r=o?o.state:void 0;o&&(o.state="disabled");const l=[];for(let U=0;U<a.length;U++){const E=a[U],N=J.getComponentRef(n,E);if(N){const A=N.getConfigure();A&&A.exportable&&A._dynamicShowFlag&&N.exportChart&&l.push(N.exportChart())}}if(!l||l.length==0)return;let c,m=n.label;m||(m=n.code),c=m;const u={reportDataList:l,beanName:n.beanName,systemCode:n.systemCode,pageCode:n.code},p=$(n);u.additionalParamMap=p;const d=(C=(i=s.runtime)==null?void 0:i.props)==null?void 0:C.title;d&&(u.currentOperation=d),u.isMobile=g.isMobileBrowser(),u.isShowWatermark=((h=(b=s.props)==null?void 0:b.watermark)==null?void 0:h.isShowWatermark)===void 0?"true":((I=(y=s.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)+"",u.watermark=(P=(x=s.props)==null?void 0:x.watermark)!=null&&P.content&&((R=(M=s.props)==null?void 0:M.watermark)==null?void 0:R.content.length)>0?(S=(v=s.props)==null?void 0:v.watermark)==null?void 0:S.content.join("-~"):"";const w=n.backendUrl,T=f.getBaseUrl(w,n.isTest)+"/dsc/commons/exportChart";ue(),ne.post(T,u,{responseType:"blob"}).then(U=>{const E=document.createElement("a");E.style.display="none",E.href=URL.createObjectURL(U.data),E.setAttribute("download",c+".xlsx"),document.body.appendChild(E),E.click(),document.body.removeChild(E)}).finally(()=>{o&&(o.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const n=t.pageContext,a=t.configureObj,s=n.code+"_";D.$emit(s+"save-chart-condition",{pageContext:n,configureObj:a})})(e)},addTransactor:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const n=t.pageContext,a=n.code+"_";D.$emit(a+"remove-transactor",t)}(e)}};function we(e){const t=e.pageContext,n=t.initChartServiceConfigs;if(!n||n.length==0)return;const a=e.configureObj;let s=null;a&&a.runtime&&(s=a.runtime.props);const o=s?s.state:void 0;s&&(s.state="disabled"),Y.updateChartDatasources(t,n,void 0,e.isInitChart).then(()=>{s&&(s.state=o)}).catch(()=>{s&&(s.state=o)})}function ue(){ne.defaults.headers.common.Authorization=g.getToken();const e=g.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";ne.defaults.headers.common[t]=e}}function he(e,t){return new Promise((n,a)=>{const s=e.pageContext,o=e.configureObj,r=e.mainDefaultValueColumns,l=e.dynamicColumnInfo,c=o.props.base.successOperation;let m=!1;if(c&&c==="noOperation"&&(m=!0),s.fileuploadInfo&&s.fileuploadInfo.length>0){const u=s.fileuploadInfo[0];let p;p=u.isTable&&u.tableTitle&&u.rowIndex!==void 0?g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:u.label,tableTitle:u.tableTitle,rowIndex:u.rowIndex+1}):g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:u.label}),k.ElMessage({message:p,type:"warning",showClose:!0}),n(!1)}else{j.cacheBackfillData(s.code,s.entity.data);const u=Pe(s,o,"/dsc/commons",m,r,l);u?u.then(p=>{p&&j.removeCacheFillData(s.code,s.entity.data),V(s,o,p,"superPageRuntimeMessage.successfulSave",t),n(p)}).catch(p=>{a(p)}):(j.removeCacheFillData(s.code,s.entity.data),a("保存时request不存在"))}})}function ye(e,t,n,a,s,o,r){var y,I,x;const l=f.isWorkflowPage(e),c=e.systemCode,m=t.props.base.isPermission===void 0||t.props.base.isPermission==="true"||t.props.base.isPermission,u=G.getPermissionCodes(t,e);let p=r;p||(p=e.entity.data);const d={entity:p,tableName:e.tableName,formNoRuleCode:e.formNoRuleCode,isWorkflowEntity:l,functionCode:u,isPermission:m+"",listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};o&&(d.ids=o),e.judgeHeavyList&&(f.isArrayFn(e.judgeHeavyList)?d.judgeHeavyList=JSON.stringify(e.judgeHeavyList):d.judgeHeavyList=e.judgeHeavyList);const w=t.props.base.conversionCodes;w&&(f.isArrayFn(w)?d.dataConversionRule=w.join(","):typeof w=="string"&&(d.dataConversionRule=w));const T=ge(t);T&&(d.autoSetValueData=T);const i=(y=t.props.base)==null?void 0:y.logSetting;i&&(d.logSettingText=i.join("")),d.systemCode||(d.systemCode=c);const C=e.beanName;C&&(d.beanName=C),s&&(d.dynamicColumnInfo=s),a&&(d.mainDefaultValueColumns=a);const b=$(e);d.additionalParamMap=b,n!==void 0&&(d.unControlVersion=n);const h=(x=(I=t.runtime)==null?void 0:I.props)==null?void 0:x.title;return h&&(d.currentOperation=h),d.isMobile=g.isMobileBrowser(),d}function Ie(e,t,n,a,s,o,r,l,c){const m=e.systemCode,u=e.backendUrl,p=ye(e,t,a,s,o,null,r);return l&&l.tableName&&(p.tableName=l.tableName),c&&(p.isWorkflowEntity=!1),function(d,w,T,i,C,b){const h=f.getBaseUrl(w,b);let y,I=h+i;return I=f.getRealRestApiPath(I,d,w,b),y=C&&(C.id||C.ID)?g.http.put(I,T):g.http.post(I,T),y}(m,u,p,n,r,e.isTest)}function Pe(e,t,n,a,s,o){return Ie(e,t,n,a,s,o,null,null)}function V(e,t,n,a,s){const o=Re(e,t,s);if(o&&o==="list")(function(r,l,c,m){let u=l.props.base.successOperation;const p=l.props.base.isNeedValueMapping,d=W.getTableUuid(r,l);if(u||je.includes(l.name)||(u="refresh"),u==="refresh")d?J.getComponentRef(r,d).refresh():console.error("tableUuid is empty");else if(u==="closeWindow"||u==="closeWindowAndRefresh"){const w=f.deepCopy(r.entity.page);let T=c;T||(T={}),Object.assign(w,T),me(r,l,w,p)}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,n,a),e.canClick=!0;else if(o&&o==="form")(function(r,l,c,m){if(c){const u=c;let p;p=u.entity?u.entity:u,u.formNo&&(r.initFormNo=u.formNo),re(r,l,{...p,...r.entity.page})}else{const u=l.props.base.successOperation;u&&u!==null?re(r,l,{...r.entity.page}):r.canClick=!0}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,n,a);else{const r=t.props.base.successOperation;r&&r!==null?re(e,t,null):e.canClick=!0}}function Re(e,t,n){let a;return n===void 0?a=t.props.base.tableUuid?"list":null:n===!1&&(a="form"),a||(a=e.pageType),a}function re(e,t,n){const a=t.props.base.successOperation;if(!a||a===null)return;const s=t.props.base.isNeedValueMapping;a==="noOperation"?e.canClick=!0:a==="refresh"?n&&(n.id||n.ID)?pe(e,n.ID?n.ID:n.id):e.canClick=!0:a!=="closeWindow"&&a!=="closeWindowAndRefresh"||(me(e,t,n,s),e.canClick=!0)}function me(e,t,n,a){const s=e.entity&&e.entity.request?e.entity.request.jumpMode:null;if(s==="openWindow"||s==="newTab")window.parent?window.parent.close():window.close();else{const o=e.tableName,r=a!==void 0&&a===!0&&n&&n!==void 0,l=(e.entity&&e.entity.request?e.entity.request.parentPageCode:null)+"_close-dialog";D.$has(l)?D.$emit(l,{isNeedValueMapping:r,dataModel:n,sourceConfigureObj:t,sourceTableName:o,jumpMode:s}):s==="refresh"&&window.history.back()}}const je=["dropdown"];function Q(e,t,n,a){return new Promise((s,o)=>{const r=e.pageContext,l=e.configureObj;if(r.fileuploadInfo&&r.fileuploadInfo.length>0){const c=r.fileuploadInfo[0];let m;c.isTable&&c.tableTitle&&c.rowIndex!==void 0?(c.rowIndex,c.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:c.label,tableTitle:c.tableTitle,rowIndex:c.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:c.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),s(!1)}else{const c=e.mainDefaultValueColumns,m=e.dynamicColumnInfo,u=e.ids,p=l.props.base.successOperation;let d=!1;p&&p==="noOperation"&&(d=!0);let w=r.tableName;if(t){const i=l.props.base.tableUuid?l.props.base.tableUuid:e.tableUuid;w=se.getTableNameByTableUuid(r,i)}else j.cacheBackfillData(r.code,r.entity.data);const T=function(i,C,b,h,y,I,x,P,M){return new Promise((R,v)=>{const S=C.props.base.title,U="superPageRuntimeMessage.whetherToConfirm"+f.upperFirstCase(x);k.ElMessageBox.confirm(g.getI18n().t(U,{name:S}),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const E=i.systemCode,N=i.backendUrl,A=ye(i,C,h,y,I,P,null);A.tableName=M;let B=f.getBaseUrl(N,i.isTest)+b;B=f.getRealRestApiPath(B,E,N,i.isTest),g.http.post(B,A).then(O=>{R(O)}).catch(O=>{v(O)})}).catch(()=>{v("点击了取消按钮")})})}(r,l,a,d,c,m,n,u,w);T?T.then(i=>{!t&&i&&j.removeCacheFillData(r.code,r.entity.data),V(r,l,i,"superPageRuntimeMessage.successfulSave",t),s(i)}).catch(i=>{o(i)}):(t||j.removeCacheFillData(r.code,r.entity.data),o("request不存在"))}})}function _(e){var T,i,C;const t=e.pageContext,n=e.configureObj,a=t.entity.data,s=t.systemCode,o=t.code;let r=G.getPermissionCodes(n,t);r||(r=o+".xxx"),a.id||a.ID||(a.PAGE_CODE=t.code,a.PAGE_VERSION=t.version);const l={entity:a,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:s,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.completeTaskParam&&(l.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(f.isArrayFn(t.judgeHeavyList)?l.judgeHeavyList=JSON.stringify(t.judgeHeavyList):l.judgeHeavyList=t.judgeHeavyList);const c=n.props.base.conversionCodes;c&&(f.isArrayFn(c)?l.dataConversionRule=c.join(","):typeof c=="string"&&(l.dataConversionRule=c));const m=ge(n);m&&(l.autoSetValueData=m),t.beanName&&(l.beanName=t.beanName);const u=(T=n.props.base)==null?void 0:T.logSetting;u&&(l.logSettingText=u.join("")),l.systemCode||(l.systemCode=s);const p=$(t);l.additionalParamMap=p,p.ids&&p.ids.length>0&&(typeof p.ids=="string"?l.ids=p.ids.split(","):Array.isArray(p.ids)?l.ids=p.ids:typeof ids=="number"?l.ids=[p.ids]:console.error("ids参数类型错误"));const d=n.props.base.successOperation;d&&d==="noOperation"&&(l.unControlVersion=!0),l.isWorkflowEntity=!0;const w=(C=(i=n.runtime)==null?void 0:i.props)==null?void 0:C.title;return w&&(l.currentOperation=w),l.isMobile=g.isMobileBrowser(),l}function z(e,t,n,a,s){const o=n.code,r=n.version;let l;if(e){t&&(n.initFormNo=e.formNo,n.emailTemplateCode=e.emailTemplateCode),e.entity&&(n.entity.data=e.entity,function(m,u){const p=$(u);m&&p&&g.setSessionCache(p._t_+"_id",m)}(e.entity.id||e.entity.ID,n));const c=e.completeTaskResult;if(c){const m=c.completeTaskTipType;if(m&&m==="MESSAGE"){const u=c.content;return k.ElMessage({showClose:!0,type:"warning",message:u}),!1}}if(e.completeTaskParam){const m=e.completeTaskParam;l=m.taskId,a&&(a.taskId=l),fe.setStoreInfo(o,r,"_completeTaskParam",m),n.fieldPermissions=m.fieldPermissions,n.actionPermissions=m.actionPermissions,n.workflowButtonComponent=m.buttonComponent,n.completeTaskParam=m,n.completeTaskParam.opinion=null}n.entity||(n.entity={}),n.entity.task=e.taskParamMap,fe.setStoreInfo(o,r,"_currentActivityName",e.taskName)}return a&&(a.operationResult=s),t||V(n,a.configureObj,e,null,!1),!0}async function X(e,t){const n=await Me(e);return new Promise((a,s)=>{var r;const o=e.pageContext;if(o.fileuploadInfo&&o.fileuploadInfo.length>0){const l=o.fileuploadInfo[0];let c;l.isTable&&l.tableTitle&&l.rowIndex!==void 0?(l.rowIndex,l.rowIndex,c=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:l.label,tableTitle:l.tableTitle,rowIndex:l.rowIndex+1})):c=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:l.label}),k.ElMessage({message:c,type:"warning",showClose:!0}),a(!1)}else if(n){const l=o.systemCode,c=o.backendUrl,m=n===!0?(r=o.completeTaskParam)==null?void 0:r.opinion:n;let u=f.getBaseUrl(c,o.isTest)+"/dsc/workflow-commons/complete-tasks";if(u=f.getRealRestApiPath(u,l,c,o.isTest),!u)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=_(e);p.completeTaskParam={operationResult:t,taskId:o.completeTaskParam?o.completeTaskParam.taskId:null,opinion:m||null};const d=g.http.post(u,p);j.cacheBackfillData(o.code,o.entity.data),d.then(w=>{let T=!0;w&&(j.removeCacheFillData(o.code,o.entity.data),T=z(w,!1,o,e,t)),T===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),a(!0)}).catch(w=>{s(w)})}else a(!0)})}function Me(e){return new Promise((t,n)=>{var s,o,r,l,c;const a=e.configureObj;if(a){if((s=e.pageContext.workflowOpinion)!=null&&s.opinion)return void t(e.pageContext.workflowOpinion.opinion);let m=!1;if((r=(o=a.props)==null?void 0:o.base)!=null&&r.isMustOpinion&&(m=!0),m===!0){const u=e.pageContext,p=(c=(l=a.props)==null?void 0:l.base)==null?void 0:c.mustOpinionConditions;m=Y.caculateShowCondition(u,p)}m===!0?(k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseInputOpinion")}),e.pageContext.workflowOpinion.focusOpinionInput=!0,t(!1)):t(!0)}else t(!0)})}function le(e){var u,p;const t=e.pageContext,n=t.entity.data,a=t.systemCode,s=t.code,o=e.configureObj,r=$(t),l=n.ID!==void 0&&n.ID!==null?n.ID:n.id,c={beanName:t.beanName,id:l,entity:n,additionalParamMap:r,tableName:t.tableName,functionCode:s+".xxx",isWorkflowEntity:!0,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};c.completeTaskParam={taskId:t.completeTaskParam.taskId,systemCode:a},c.completeTaskParam.customTaskTitle=ve(e);const m=(p=(u=o==null?void 0:o.runtime)==null?void 0:u.props)==null?void 0:p.title;return m&&(c.currentOperation=m),c.isMobile=g.isMobileBrowser(),c}function ve(e){var n,a,s;let t=null;if(((a=(n=e.configureObj.props.task)==null?void 0:n.title)==null?void 0:a.length)>0)for(let o=0;o<e.configureObj.props.task.title.length;o++){const r=e.configureObj.props.task.title[o];if(r.config){if(!(((s=r.conditions)==null?void 0:s.length)>0)){t=r.config;break}if(Y.caculateShowCondition(e.pageContext,r.conditions)){t=r.config;break}}}return t}function $(e){if(e.entity){let t=f.deepCopy(e.entity.page);t||(t={});const n=e.entity.request;return n&&Object.assign(t,n),t}}async function H(e,t,n,a){const s=await Me(e);return new Promise((o,r)=>{var l;if(s){const c=e.pageContext,m=c.systemCode,u=c.backendUrl;if(c.completeTaskParam){const d=s===!0?(l=c.completeTaskParam)==null?void 0:l.opinion:s;t.completeTaskParam={taskId:c.completeTaskParam.taskId,opinion:d}}if(!(n=f.getRealRestApiPath(n,m,u,c.isTest)))return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=g.http.post(n,t);p&&p.then(d=>{let w=!0;d&&(w=z(d,!1,c,e,null)),w===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t(a)}),o(!0)}).catch(d=>{r(d)})}else o(!0)})}function Se(e){const t=e.pageContext,n=t.backendUrl;let a=f.getBaseUrl(n,t.isTest)+"/dsc/workflow-commons/initiate-extract";const s=_(e);if(t.completeTaskParam){const o=[];e._value.loginName&&o.push(e._value.loginName),s.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:o,customTaskTitle:ve(e)}}return new Promise((o,r)=>{const l=e.pageContext,c=l.systemCode,m=l.backendUrl;if(a=f.getRealRestApiPath(a,c,m,l.isTest),!a)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=g.http.post(a,s);u&&u.then(p=>{let d=!0;p&&(d=z(p,!1,l,e,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulInitiateExtract")}),o(!0)}).catch(p=>{r(p)})})}function Fe(e,t,n){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function pe(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,xe(e,t).then(n=>{e.isRefresh=!0})}function xe(e,t,n){const a=e.pageType;return a&&a==="form"?(e.canClick=!1,f.isWorkflowPage(e)?function(s,o,r){return new Promise((l,c)=>{var x;const m=s.systemCode,u=s.code,p=s.version,d=$(s);let w=o||null,T=o?[o]:null;r===void 0||r?(w||(w=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(w=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b={pageCode:u,pageVersion:p,tableName:s.tableName,formNoRuleCode:s.formNoRuleCode,isWorkflowEntity:!0,systemCode:m,functionCode:C+".workflowGets",listCodesMap:s.listCodesMap,listCodesInitSearchForm:s.listCodesInitSearchForm};if(s.listCodesMap,(!s.listCodesMap||Object.keys(s.listCodesMap).length===0)&&s.tableUuids){const P={};s.tableUuids.forEach(M=>{const R=f.getListCode(u,p,M);P[R]=R}),b.listCodesMap=P}T&&(b.ids=ke(T)),i?b.taskId=i:w?b.id=w:(d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(b.id=g.getSessionCache(d._t_+"_id")),s.notIdInitializationList&&(b.noIdAndTaskIdInitSetting=JSON.stringify(s.notIdInitializationList))),d&&(b.additionalParamMap=d),s.beanName&&(b.beanName=s.beanName),s.refercePropMap&&(b.refercePropMap=s.refercePropMap),(x=s.props)!=null&&x.enableFormDataPermission&&(b.withDataPermission=!0),b.isMobile=g.isMobileBrowser();const h=f.getBaseUrl(s.backendUrl,s.isTest)+"/dsc/workflow-commons/gets",y=be.usePageContextStore();y.restorePageLoadState(),W.handleEvent(null,s,s,"beforeFormLoadData");const I=j.hasBackfillData(s.code,b.id);g.http.post(h,b).then(async P=>{I&&await Te(s,b.id,P),s.workflowOpinion={showOpinionBox:!1},s.definitionId=P.definitionId,s.entity.task=P.taskParamMap,s.dataTypeMaps=P.dataTypeMap,z(P,!0,s),s.workflowRules=Ce.getWorkflowRules(s);const M=s.pageType;M&&M==="form"&&function(R){(function(v){const S=new Map,U=v.fieldPermissions;if(U!==void 0)for(let E=0;E<U.length;E++){const N=U[E].name;if(N)if(N.indexOf("$")===0&&N.indexOf(".")>0){const A=U[E],B=JSON.parse(JSON.stringify(A)),O=N.substring(1,N.indexOf(".")),q=N.substring(N.indexOf(".")+1);if(B.name=q,B&&B.name==="all_fields")B.canEdit===!1?B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!1,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!1}]):B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!0,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!0}]);else{let L=S.get(O);L||(L=[]),L.push(B),S.set(O,L)}}else S.set(N,U[E])}v.fieldPermissionMap=S})(R),function(v){const S=v.fieldPermissionMap,U=new Map,E=v.actionPermissions;E!=null&&Object.keys(E).forEach(N=>{const A=E[N],B=S.get(N);if(B&&B.length>0&&B[0].name==="all_fields"&&B[0].canEdit===!1)A.canUpdate=!1,A.canAdd=!1;else{A&&Object.keys(A.deleteCondition).length!==0||(A.deleteCondition=null),A&&Object.keys(A.updateCondition).length!==0||(A.updateCondition=null);const O=A.canUpdate,q=A.updateRowIndexes;O!==void 0&&O===!1&&q!=null&&q.length>0&&S.set(N,[{name:"all_fields",canEdit:!1,rowIndexes:q}])}U.set(N,A)}),v.actionPermissionMap=U}(R)}(s),s.canClick=!0,W.handleEvent(null,s,s,"afterFormLoadData"),y.setFormPageDataLoadState(!0),l(P)}).catch(P=>{s.canClick=!0,c(P)})})}(e,t,n):function(s,o,r){return new Promise((l,c)=>{var P;const m=s.systemCode,u=s.code,p=s.version,d=$(s);let w=o||null,T=o?[o]:null;r===void 0||r?(w||(w=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(w=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,b=f.getBaseUrl(s.backendUrl,s.isTest),h={pageCode:u,pageVersion:p,tableName:s.tableName,formNoRuleCode:s.formNoRuleCode,id:w,systemCode:m,functionCode:C+".gets",listCodesMap:s.listCodesMap,listCodesInitSearchForm:s.listCodesInitSearchForm};if(!h.id&&d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(h.id=g.getSessionCache(d._t_+"_id")),T&&(h.ids=ke(T)),s.notIdInitializationList&&(h.noIdAndTaskIdInitSetting=JSON.stringify(s.notIdInitializationList)),d&&(h.additionalParamMap=d),s.beanName&&(h.beanName=s.beanName),i&&(h.taskId=i),(P=s.props)!=null&&P.enableFormDataPermission&&(h.withDataPermission=!0),s.listCodesMap,(!s.listCodesMap||Object.keys(s.listCodesMap).length===0)&&s.tableUuids){const M={};s.tableUuids.forEach(R=>{const v=f.getListCode(u,p,R);M[v]=v}),h.listCodesMap=M}s.refercePropMap&&(h.refercePropMap=s.refercePropMap),h.isMobile=g.isMobileBrowser();const y=b+"/dsc/commons/gets",I=be.usePageContextStore();I.restorePageLoadState(),W.handleEvent(null,s,s,"beforeFormLoadData");const x=j.hasBackfillData(s.code,h.id);g.http.post(y,h).then(async M=>{M&&(x&&await Te(s,h.id,M),s.entity.data=M.entity,s.initFormNo=M.formNo);const R=s.customRules,v=s.rules,S=Ce.packageCustomRules(s,R,v);s.rules=S,s.canClick=!0,W.handleEvent(null,s,s,"afterFormLoadData"),I.setFormPageDataLoadState(!0),l(M)}).catch(M=>{s.canClick=!0,c(M)})})}(e,t,n)):new Promise((s,o)=>{s(!0)})}async function Te(e,t,n){try{await k.ElMessageBox.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}),n.entity=j.getRealFillData(e.code,t,n.entity)}catch{}j.removeCacheFillDataById(e.code,t)}function ke(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function ge(e){const t=e.props.setValueList;if(t){if(f.isArrayFn(t)&&t.length>0)return JSON.stringify(t);if(typeof t=="string"&&t!=="[]")return t}return null}function de(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ee(e.exportNoticeInfo,e.backendUrl,e.code)}function Ue(e,t,n){e.lastFileTask&&!e.noticeComponent?e.noticeComponent=k.ElNotification({title:g.getI18n().t("superPageRuntimeMessage.logTip"),duration:0,position:"top-right",type:"success",onClose(){e.lastFileTask.taskState==="Success"||e.lastFileTask.taskState==="Fail"||e.lastFileTask.taskState==="PartSuccess"?ce(t,n,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ee(e,t,n))},message:()=>Be.h(De,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(a){a.serverPath?function(s,o,r,l,c,m){ce(c,m,r,l);const u=g.getToken(),p=f.getBaseUrl(c),d=p+"/common/super-form/downloads?jwt="+u+"&showName="+encodeURI(s)+"&serverPath="+o;window.open(d)}(a.fileName,a.serverPath,a.id,e,t,n):ce(t,n,a.id,e),e.noticeComponent.close(),e.noticeComponent=null}})}):(e.noticeComponent!=null&&(e.noticeComponent.close(),e.noticeComponent=null),e.noticeInterval&&(clearInterval(e.noticeInterval),e.noticeInterval=null))}function Ee(e,t,n){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(a,s,o){Ne(s,o).then(r=>{a.lastFileTask=r,Ue(a,s,o)})}(e,t,n)},3e3))}function Ne(e,t){return se.getCurrentUserFileTasks(e,t)}function ce(e,t,n,a){se.setFileTaskRead(e,n).then(()=>{(function(s,o,r){Ne(o,r).then(l=>{s.lastFileTask=l,Ue(s,o,r)})})(a,e,t)})}exports.dealAfterOperate=V,exports.dealCompleteTaskParam=z,exports.deleteChartCondition=function(e){const t=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/"+e;return g.http.delete(t)},exports.doAddSigner=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/add-signers";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(",");const c=g.http.post(r,l);c&&c.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(n,a,m,null,!1),W.doAfterClickEvent(n,a)})}},exports.doAddTransactor=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/add-transactors";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(",");const c=g.http.post(r,l);c&&c.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(n,a,m,null,!1),W.doAfterClickEvent(n,a)})}},exports.doAssign=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.backendUrl,o=f.getBaseUrl(s,n.isTest)+"/dsc/workflow-commons/assigns",r=t.id?t.id:t.ID?t.ID:null,l=_(e);l.assigneeId=r,H(e,l,o,"superPageRuntimeMessage.successfulAssign").then(c=>{W.doAfterClickEvent(n,a)})}},exports.doCreateCopyTask=async function(e,t){if(t){const n=await function(a){return new Promise((s,o)=>{var l,c,m,u;const r=a.configureObj;if(r){let p=(c=(l=r.props)==null?void 0:l.base)==null?void 0:c.isMustRemark;if(p===void 0||p===!0){p=!0;const d=a.pageContext,w=(u=(m=r.props)==null?void 0:m.base)==null?void 0:u.mustRemarkConditions;p=Y.caculateShowCondition(d,w)}p===!0?k.ElMessageBox.prompt(g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark"),g.getI18n().t("superPageRuntimeMessage.remark"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),inputType:"textarea",inputValue:null,closeOnClickModal:!1,inputValidator:d=>!(!d||!d.trim())||g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark")}).then(({value:d})=>{s(d)}).catch(()=>{s(!1)}):s(!0)}else s(!0)})}(e);if(n){const a=e.pageContext,s=e.configureObj,o=a.systemCode,r=a.backendUrl;let l=f.getBaseUrl(r,a.isTest)+"/dsc/workflow-commons/copies";if(l=f.getRealRestApiPath(l,o,r,a.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(","),n!==!0&&(c.completeTaskParam.remark=n);const m=g.http.post(l,c);m&&m.then(u=>{var p;k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),V(a,s,{entity:(p=a.entity)==null?void 0:p.data},null),W.doAfterClickEvent(a,s)})}}},exports.doFileTaskFunc=de,exports.doImportFinally=function(e,t){var M,R,v;const n=e.pageContext,a=e.configureObj,s=e.tableConfigure,o=a.props.base,r=a.props.base.tableUuid?a.props.base.tableUuid:e.tableUuid,l=se.getTableNameByTableUuid(n,r),c=new FormData;c.append("multipartFile",t),l&&c.append("tableName",l);const m=(R=(M=a.runtime)==null?void 0:M.props)==null?void 0:R.title;m&&c.append("currentOperation",m),c.append("isMobile",g.isMobileBrowser()),n.importBeanName&&c.append("importBeanName",n.importBeanName),n.beanName&&c.append("beanName",n.beanName);const u=(v=s.props.importSetting)==null?void 0:v.listViewImportDuplicate;u&&c.append("importDuplicateRule",u);const p=n.judgeHeavyList;p&&c.append("judgeHeavyList",JSON.stringify(p));const d=ge(a);d&&c.append("autoSetValueData",d);const w=n.formNoRuleCode;w&&c.append("formNoRuleCode",w);const T=e.listCode;T&&c.append("listCode",T);let i=!1;i=o.isAsync!==void 0&&o.isAsync!==null&&o.isAsync,c.append("isAsync",i+""),c.append("pageCode",n.code);const C=f.isWorkflowPage(n);C!=null&&c.append("isWorkflowEntity",C+"");const b=G.getPermissionCodes(a,n);b&&c.append("functionCode",b);const h=$(n);c.append("additionalParamMapStr",JSON.stringify(h));const y=o.isPermission===void 0||o.isPermission==="true"||o.isPermission;c.append("isPermission",y+"");const I=n.systemCode;I&&c.append("systemCode",I);const x=n.backendUrl;let P=f.getBaseUrl(x,n.isTest)+"/dsc/commons/import-data";P=f.getRealRestApiPath(P,I,x,n.isTest),g.http.post(P,c).then(S=>{if(i)k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.asyncImport")}),de(n);else{let U=!1;S?(U=!1,k.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:S})):(k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulImport")}),U=!0),V(n,a,S,null,!0),n.result=U,W.doAfterClickEvent(n,a)}}).catch(S=>{})},exports.doRemoveSigners=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/remove-signers";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=t.map(u=>u.id?u.id:u.ID?u.ID:null),c=_(e);c.ids=l;const m=g.http.post(r,c);m&&m.then(u=>{V(n,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(n,a)})}},exports.doRemoveTransactors=function(e,t){if(t){const n=e.pageContext,a=e.configureObj,s=n.systemCode,o=n.backendUrl;let r=f.getBaseUrl(o,n.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=f.getRealRestApiPath(r,s,o,n.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=t.map(u=>u.taskId),c=_(e);c.ids=l;const m=g.http.post(r,c);m&&m.then(u=>{V(n,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(n,a)})}},exports.doReturnTaskTo=function(e,t){const n=e.pageContext,a=e.configureObj,s=n.backendUrl,o=f.getBaseUrl(s,n.isTest)+"/dsc/workflow-commons/returnTaskTo",r=_(e);t.nodeName&&(r.returnToNodeName=t.nodeName),t.nodeId&&(r.returnToNodeId=t.nodeId),H(e,r,o,"superPageRuntimeMessage.successfulReturnTaskTo").then(l=>{W.doAfterClickEvent(n,a)})},exports.exportFormReport=function(e,t,n,a){var y,I,x,P,M,R,v,S,U,E,N,A,B;e.clickUuid=t.uuid,e.canClick=!1;const s=n.templateUuid,o=n.templateName,r=e.systemCode,l=(y=t.props.base)==null?void 0:y.logSetting,c=f.isWorkflowPage(e),m=e.beanName,u=t.props.base,p=t.tableName?t.tableName:e.tableName,d=e.backendUrl,w=Oe.functions.getFormViewData(e),T=u.isPermission===void 0||u.isPermission==="true"||u.isPermission,i={entity:w,fileName:s,showName:o,beanName:m,isWorkflowForm:c,functionCode:G.getPermissionCodes(t,e),tableName:p,isPermission:T+"",systemCode:r,listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};if(e.tableUuids&&e.tableUuids.length>0){const O={};e.tableUuids.forEach(q=>{const L=J.getComponentRef(e,q);if(L){const Z=L.getConfigure().code,K=L.getSuperGridRef().columns;K&&K.length>0&&(O[Z]=K)}}),i.subTableColumns=O}l&&(i.logSettingText=l.join(""));const C=(x=(I=t.runtime)==null?void 0:I.props)==null?void 0:x.title;C&&(i.currentOperation=C),i.isMobile=g.isMobileBrowser();const b=$(e);let h;i.additionalParamMap=b,i.isShowWatermark=((M=(P=t.props)==null?void 0:P.watermark)==null?void 0:M.isShowWatermark)===void 0?"true":((v=(R=t.props)==null?void 0:R.watermark)==null?void 0:v.isShowWatermark)+"",i.watermark=(U=(S=t.props)==null?void 0:S.watermark)!=null&&U.content&&((N=(E=t.props)==null?void 0:E.watermark)==null?void 0:N.content.length)>0?(B=(A=t.props)==null?void 0:A.watermark)==null?void 0:B.content.join("-~"):"",h=a?function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-pdf";ue();const ee=ne.post(ie,L,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),ee.then(te=>{const oe=new Blob([te.data]),F=document.createElement("a");F.download=O.substring(0,O.lastIndexOf("."))+".pdf",F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(oe),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(te=>{ae(te)})})}(o,d,i,e.isTest):function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-reports";ue(),ne.post(ie,L,{responseType:"blob"}).then(ee=>{const te=new Blob([ee.data]);let oe="报告.xlsx";O&&(oe=O);const F=document.createElement("a");F.download=oe,F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(te),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(ee=>{ae(ee)})})}(o,d,i,e.isTest),h&&h.then(()=>{W.doAfterClickEvent(e,t)}).catch(O=>{window.$message.error("导出失败..."),W.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Se,exports.getAdditionalParamMap=$,exports.getFormData=xe,exports.getRemoveSigner=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const o=_(e);if(s=f.getRealRestApiPath(s,n,a,t.isTest),s)return g.http.post(s,o);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const o=_(e);if(s=f.getRealRestApiPath(s,n,a,t.isTest),s)return g.http.post(s,o);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=Pe,exports.getSaveFormRequestWithRow=Ie,exports.getTaskInformitions=function(e){const t=e.pageContext,n=t.systemCode,a=t.backendUrl,s=t.completeTaskParam;let o=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/returnable-task/"+s.taskId;if(o=f.getRealRestApiPath(o,n,a,t.isTest),!o)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const r=t.code,l=$(t),c={beanName:t.beanName,additionalParamMap:l,tableName:t.tableName,functionCode:r+".xxx",pageCode:t.code};return g.http.post(o,c)},exports.isVisibleWorkflowButton=function(e,t,n,a,s,o){var l,c,m,u,p,d,w,T;let r=!1;if(a&&a.archival)return r;if(t&&n&&(t==="workflowSave"?r=function(i){return!!((i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)||i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.processingMode!=="TYPE_READ"&&i.showButtonSave&&(i.active==="WAIT_TRANSACT"||i.active==="WAIT_DESIGNATE_TRANSACTOR"||i.active==="WAIT_CHOICE_TACHE"||i.active==="DRAW_WAIT"))}(n):t==="workflowStart"?r=function(i,C){return!!(i.processState===void 0||i.processState===null||C&&!C.workflow_id&&!C.WORKFLOW_ID)}(n,o):t==="submitProcess"?r=function(i){return(i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)}(n):t==="submitTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.active==="WAIT_TRANSACT"&&i.processingMode==="EDIT")}(n):t==="drawTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active&&(i.active==="DRAW_WAIT"||i.active==="DEPT_DRAW_WAIT")&&i.showButtonDraw)}(n):t==="abandonReceive"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.drawTask&&i.active==="WAIT_TRANSACT"||i.canAbandonDeptTask&&i.active==="WAIT_TRANSACT")&&i.showButtonAbandon)}(n):t==="approve"||t==="refuse"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&(i.processingMode==="APPROVE"||i.processingMode==="COUNTERSIGN"))}(n):t==="readed"?r=function(i){return i.active==="WAIT_TRANSACT"&&i.processingMode==="TYPE_READ"}(n):t==="assign"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT"))}(n):t==="copyTask"?r=function(i,C){let b=!1;return i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode!=="TYPE_READ"&&i.showButtonCopy&&(b=!0),C&&(C.props.base.state=b?"":"hidden"),!0}(n,s):t==="addSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonAddCounter)}(n):t==="removeSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonDelCounter)}(n):t==="retrieveTask"?r=function(i){return!!(i.processState&&i.processState!=="END"&&i.processState==="SUBMIT"&&i.showButtonGetBack===!0&&function(C){return!(C.active!=="COMPLETED"||C.processingMode==="TYPE_READ"||!C.showButtonGetBack)}(i))}(n):t==="agreement"||t==="oppose"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE")}(n):t==="kiken"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE"&&i.showButtonKiken)}(n):t==="extractWorkflow"?r=function(i,C,b){var I;const h=g.getCurrentUser(),y=h?h.loginName:null;if(i!=null&&i.processState){if(((I=C==null?void 0:C.firstNodeInfo)==null?void 0:I.nodeId)===(b==null?void 0:b.CURRENT_ACTIVITY_ID))return!1;if((i==null?void 0:i.processState)!=="END"&&(i==null?void 0:i.processState)!=="EXTRACT"&&(i==null?void 0:i.processState)!=="MANUAL_END"&&b&&(b.creator===y||b.CREATOR===y))return!0}return!1}(n,a,o):t==="cancelExtractWorkflow"?r=function(i,C,b){const h=g.getCurrentUser(),y=h?h.loginName:null;return!!((i==null?void 0:i.processState)==="EXTRACT"&&b&&(b.creator===y||b.CREATOR===y))}(n,0,o):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=Fe(n):t==="addTransactor"||t==="removeTransactor"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT")&&i.processingMode!=="COUNTERSIGN")}(n):function(i,C){return i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&!function(b){const h=b;let y=!0;return h&&(y=h.taskComplete),y}(C)}(n,a)&&(r=t!=="returnToPreviousTask"||function(i){return!!i.rebuttable}(n))),(s==null?void 0:s.check)&&["submitTask","approve","refuse","agreement","oppose","kiken","extractWorkflow","cancelExtractWorkflow","approveExtractWorkflow","refuseExtractWorkflow","returnToPreviousTask","returnTaskTo"].indexOf(t)!==-1&&r){if(e.workflowOpinion||(e.workflowOpinion={showOpinionBox:!1}),(c=(l=s.props)==null?void 0:l.base)==null?void 0:c.showOpinionBox){e.workflowOpinion.showOpinionBox=!0;const C=(u=(m=s.props)==null?void 0:m.base)==null?void 0:u.showOpinionBoxConditions;C&&C.length>0&&(e.workflowOpinion.showOpinionBox=Y.caculateShowCondition(e,C))}let i=!1;if((d=(p=s.props)==null?void 0:p.base)!=null&&d.isMustOpinion){if(i=!0,i===!0){const C=(T=(w=s.props)==null?void 0:w.base)==null?void 0:T.mustOpinionConditions;C&&C.length>0&&(i=Y.caculateShowCondition(e,C))}e.workflowOpinion.isRequired=i,i&&(e.workflowOpinion.showOpinionBox=!0)}}return e.workflowOpinion,r},exports.judgeDataNumber=function(e,t){const n=e.props.base;if(n.conditionsForExecution&&n.conditionsForExecution!==""){if(n.conditionsForExecution==="one"){if(!t||t.length!==1)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")})}),!1}else if(n.conditionsForExecution==="more"&&(!t||t.length<=0))return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")})}),!1}return!0},exports.listChartConditions=function(e){const t=e.code,n=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/list/"+t;return g.http.get(n)},exports.refreshFormOrListPage=function(e,t,n,a){var r;t&&!t.props.base&&(t.props.base={});let s=a;s||(s=n?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const o=Re(e,t);if(o&&o==="list"&&!s&&(s="refresh"),s==="refresh"){if(o&&o==="list"){const l=W.getTableUuid(e,t);l?J.getComponentRef(e,l).refresh():console.error("tableUuid is empty")}else if(o&&o==="form"){const l=e.entity.data;pe(e,l.ID?l.ID:l.id)}}},exports.refreshPage=pe,exports.saveChartConditionBase=function(e,t){const n=e.entity?e.entity:{},a={data:n.data,page:n.page},s={pageCode:e.code,queryCondition:JSON.stringify(a),name:t},o=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return g.http.post(o,s)},exports.standardEvents=_e,exports.updateValuesWhenCloseDialog=function(e,t,n,a,s){var r;s||(s=t.runtime&&t.runtime.linkPage&&t.runtime.linkPage.valueMappings?t.runtime.linkPage.valueMappings:null)||(s=(r=t.props.linkPage)==null?void 0:r.valueMappings);const o=e.tableName;(function(l,c,m){if(l&&l!==null&&c){let u=l;Array.isArray(l)&&l.length>0&&(u=l[0]),c.forEach(p=>{const d=p.source;if(!d)return;const w=d.split("."),T=Y.getVariableValue(u,w),i=p.target,C=G.getModelFields(null,i);Y.setVariableValue(m.entity,C,T)})}})(n,s,e),W.handleEvent(null,e,t,"setValue",{sourceModel:n,sourceTableName:a,entity:e.entity.data,targetTableName:o})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.39-cdnTmp1",
3
+ "version": "2.3.39-cdnTmp2",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/lib/index.cjs",
@@ -50,7 +50,7 @@
50
50
  "@vitejs/plugin-vue-jsx": "^3.1.0",
51
51
  "@vue/eslint-config-prettier": "^8.0.0",
52
52
  "@vue/test-utils": "^2.4.4",
53
- "agilebuilder-ui": "1.1.95-cdnTmp1",
53
+ "agilebuilder-ui": "1.1.95-cdnTmp2",
54
54
  "axios": "1.11.0",
55
55
  "cypress": "^13.6.6",
56
56
  "element-plus": "2.14.1",