super-page-runtime 2.3.40 → 2.3.41

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,17 +1,17 @@
1
- import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
1
+ import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n as l } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
5
- import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as b, getRunCurrentRole as w } from "agilebuilder-ui/src/utils/auth";
6
- import { getComponentRef as C } from "../global-refs.js";
5
+ import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as C, getRunCurrentRole as b } from "agilebuilder-ui/src/utils/auth";
6
+ import { getComponentRef as w } from "../global-refs.js";
7
7
  import T from "../eventBus.js";
8
- import h from "axios";
9
- import { handleEvent as k, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
10
- import { setStoreInfo as I } from "../store-util.js";
11
- import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
12
- import { caculateShowCondition as M, updateChartDatasources as S, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
13
- import U from "./print-label.js";
14
- import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
8
+ import k from "axios";
9
+ import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
10
+ import { setStoreInfo as v } from "../store-util.js";
11
+ import { getPermissionCodes as I, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
12
+ import { caculateShowCondition as M, updateChartDatasources as x, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
13
+ import A from "./print-label.js";
14
+ import { getTableNameByTableUuid as U, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
15
15
  import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
16
16
  import { functions as W } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as L } from "../page-store.js";
@@ -20,9 +20,9 @@ import { h as F } from "vue";
20
20
  import V from "../../views/assemblys/common/file-task-notice.vue.js";
21
21
  import { cacheBackfillData as $, removeCacheFillData as q, hasBackfillData as H, getRealFillData as G, removeCacheFillDataById as J } from "./data-backfill-util.js";
22
22
  const Y = { save: function(e2) {
23
- return Q(e2, false);
23
+ return Z(e2, false);
24
24
  }, saveList: function(e2) {
25
- return Q(e2, true);
25
+ return Z(e2, true);
26
26
  }, exportForm: function(e2) {
27
27
  const t2 = e2.pageContext.code + "_";
28
28
  T.$emit(t2 + "export-form-report", e2);
@@ -30,84 +30,84 @@ const Y = { save: function(e2) {
30
30
  const t2 = e2.pageContext.code + "_";
31
31
  T.$emit(t2 + "export-pdf-report", e2);
32
32
  }, submit: function(e2) {
33
- return le(e2, false, "submit", "/dsc/commons/submits");
33
+ return ue(e2, false, "submit", "/dsc/commons/submits");
34
34
  }, submitList: function(e2) {
35
- return le(e2, true, "submit", "/dsc/commons/batch-submits");
35
+ return ue(e2, true, "submit", "/dsc/commons/batch-submits");
36
36
  }, agree: function(e2) {
37
- return le(e2, false, "agree", "/dsc/commons/approves");
37
+ return ue(e2, false, "agree", "/dsc/commons/approves");
38
38
  }, agreeList: function(e2) {
39
- return le(e2, true, "agree", "/dsc/commons/batch-approves");
39
+ return ue(e2, true, "agree", "/dsc/commons/batch-approves");
40
40
  }, disagree: function(e2) {
41
- return le(e2, false, "disagree", "/dsc/commons/refuses");
41
+ return ue(e2, false, "disagree", "/dsc/commons/refuses");
42
42
  }, disagreeList: function(e2) {
43
- return le(e2, true, "disagree", "/dsc/commons/batch-refuses");
43
+ return ue(e2, true, "disagree", "/dsc/commons/batch-refuses");
44
44
  }, back: function(e2) {
45
45
  const t2 = e2.pageContext, n2 = t2.entity ? t2.entity.data : {}, o2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
46
46
  ae(t2, e2.configureObj, n2, o2);
47
47
  }, delete: function(e2) {
48
48
  return function(e3) {
49
- return new Promise((s2, a2) => {
50
- const i2 = e3.ids;
51
- if (!i2 || 0 === i2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
49
+ return new Promise((s2, i2) => {
50
+ const a2 = e3.ids;
51
+ if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
52
52
  p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
53
53
  var _a, _b, _c;
54
- const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
54
+ const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = U(r2, m2);
55
55
  let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
56
56
  g2 = n(g2, p2, d2, r2.isTest);
57
- const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = v(l2, r2), h2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
- r2.beanName && (h2.beanName = r2.beanName);
59
- const k2 = l2.props.deleteLogicSetting;
60
- k2 && ("object" == typeof k2 ? h2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (h2.deleteLogicSetting = k2));
57
+ const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, b2 = o(r2), T2 = I(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: b2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
+ r2.beanName && (k2.beanName = r2.beanName);
59
+ const h2 = l2.props.deleteLogicSetting;
60
+ h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
61
61
  const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
62
- y2 && (h2.logSettingText = y2.join(""));
62
+ y2 && (k2.logSettingText = y2.join(""));
63
63
  const P2 = l2.props.base.isSafeDelete;
64
- P2 && (h2.isSafeDelete = P2);
65
- const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
66
- I2 && (h2.currentOperation = I2), h2.isMobile = B(), c.delete(g2, { data: h2 }).then((e4) => {
67
- const t2 = C(r2, m2);
68
- t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
64
+ P2 && (k2.isSafeDelete = P2);
65
+ const v2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
66
+ v2 && (k2.currentOperation = v2), k2.isMobile = B(), c.delete(g2, { data: k2 }).then((e4) => {
67
+ const t2 = w(r2, m2);
68
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), oe(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
69
69
  }).catch((e4) => {
70
- a2(e4);
70
+ i2(e4);
71
71
  });
72
72
  }).catch(() => {
73
- a2();
73
+ i2();
74
74
  });
75
75
  });
76
76
  }(e2);
77
77
  }, downloadTemplate: function(e2) {
78
78
  !function(e3) {
79
- var _a, _b, _c;
80
- const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, i2 = a(s2.templateFiles, n2, o2);
79
+ var _a, _b, _c, _d;
80
+ const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, a2 = i(s2.templateFiles, n2, o2);
81
81
  let r2, c2;
82
- i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
83
- const l2 = n2.systemCode, u2 = n2.backendUrl;
84
- let p2 = c2, d2 = "?1=1";
85
- r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : n2.label && (d2 += "&showName=" + encodeURI(n2.label) + ".xlsx", p2 = n2.label + ".xlsx");
86
- const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
87
- m2 && (d2 += "&logSettingText=" + m2.join(""));
88
- l2 && (d2 += "&systemCode=" + l2);
82
+ a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
83
+ const u2 = n2.systemCode, p2 = n2.backendUrl;
84
+ let d2 = c2, m2 = "?1=1";
85
+ r2 && d2 && "undefined" !== r2 && "undefined" !== d2 && "null" !== r2 && "null" !== d2 ? m2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(d2) : d2 ? m2 += "&showName=" + encodeURI(d2) : n2.label && (((_a = e3.tableConfigure) == null ? void 0 : _a.title) ? (m2 += "&showName=" + encodeURI(l().t(e3.tableConfigure.title)) + ".xlsx", d2 = l().t(e3.tableConfigure.title) + ".xlsx") : (m2 += "&showName=" + encodeURI(n2.label) + ".xlsx", d2 = n2.label + ".xlsx"));
86
+ const C2 = (_b = o2.props.base) == null ? void 0 : _b.logSetting;
87
+ C2 && (m2 += "&logSettingText=" + C2.join(""));
88
+ u2 && (m2 += "&systemCode=" + u2);
89
89
  const b2 = e3.listCode;
90
- b2 && (d2 += "&listCode=" + b2);
91
- n2.beanName && (d2 += "&beanName=" + n2.beanName);
92
- const w2 = v(o2, n2);
93
- w2 && (d2 += "&functionCode=" + w2);
94
- n2.tableName && (d2 += "&tableName=" + n2.tableName);
95
- n2.code && (d2 += "&pageCode=" + n2.code);
96
- n2.version && (d2 += "&pageVersion=" + n2.version);
97
- const C2 = f();
98
- C2 && (d2 += "&JWT=" + C2);
99
- const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
100
- T2 && (d2 += "&currentOperation=" + encodeURI(T2));
101
- d2 += "&isMobile=" + B();
102
- const h2 = "_RUN_CURRENT_ROLE", k2 = g(h2);
103
- k2 && (d2 += "&" + h2 + "=" + k2);
90
+ b2 && (m2 += "&listCode=" + b2);
91
+ n2.beanName && (m2 += "&beanName=" + n2.beanName);
92
+ const w2 = I(o2, n2);
93
+ w2 && (m2 += "&functionCode=" + w2);
94
+ n2.tableName && (m2 += "&tableName=" + n2.tableName);
95
+ n2.code && (m2 += "&pageCode=" + n2.code);
96
+ n2.version && (m2 += "&pageVersion=" + n2.version);
97
+ const T2 = f();
98
+ T2 && (m2 += "&JWT=" + T2);
99
+ const k2 = (_d = (_c = o2.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.title;
100
+ k2 && (m2 += "&currentOperation=" + encodeURI(k2));
101
+ m2 += "&isMobile=" + B();
102
+ const h2 = "_RUN_CURRENT_ROLE", y2 = g(h2);
103
+ y2 && (m2 += "&" + h2 + "=" + y2);
104
104
  if (s2) {
105
- d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
105
+ m2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
106
106
  }
107
- const y2 = t(u2, n2.isTest);
108
- window.$http({ url: encodeURI(y2 + "/dsc/commons/download-files" + d2), method: "get", responseType: "blob" }).then((e4) => {
107
+ const P2 = t(p2, n2.isTest);
108
+ window.$http({ url: encodeURI(P2 + "/dsc/commons/download-files" + m2), method: "get", responseType: "blob" }).then((e4) => {
109
109
  const t2 = document.createElement("a"), n3 = new Blob([e4], { type: "application/vnd.ms-excel;charset=UTF-8" });
110
- t2.style.display = "none", t2.remove("download"), t2.href = URL.createObjectURL(n3), t2.setAttribute("download", p2 || "template.xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
110
+ t2.style.display = "none", t2.remove("download"), t2.href = URL.createObjectURL(n3), t2.setAttribute("download", d2 || "template.xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
111
111
  });
112
112
  }(e2);
113
113
  }, import: function(e2) {
@@ -117,44 +117,37 @@ const Y = { save: function(e2) {
117
117
  return function(e3) {
118
118
  return new Promise((t2, n2) => {
119
119
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
120
- const o2 = e3.pageContext, s2 = e3.configureObj, a2 = s2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
120
+ const o2 = e3.pageContext, s2 = e3.configureObj, i2 = s2.props.base, a2 = e3.listCode, r2 = e3.selections, c2 = {};
121
121
  r2 && r2.length > 0 && (c2.data = r2);
122
122
  let l2 = o2.label;
123
123
  l2 || (l2 = o2.code);
124
124
  let u2 = false;
125
- u2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
126
- const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = v(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
127
- g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
128
- Fe(o2);
125
+ u2 = void 0 !== i2.isAsync && null !== i2.isAsync && i2.isAsync;
126
+ const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = I(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
127
+ g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
128
+ Ve(o2);
129
129
  }, 100);
130
130
  });
131
131
  }(e2);
132
132
  }, search: function(e2) {
133
133
  const t2 = e2.pageContext, n2 = e2.tableUuid;
134
- C(t2, n2).refresh();
134
+ w(t2, n2).refresh();
135
135
  }, showSearch: function(e2) {
136
136
  const t2 = e2.pageContext, n2 = e2.tableUuid;
137
- C(t2, n2).showMobileSearch();
137
+ w(t2, n2).showMobileSearch();
138
138
  }, workflowSave: function(e2) {
139
139
  return T.$emit("clearTableAllStartEditing"), async function(e3) {
140
140
  return new Promise((o2, s2) => {
141
- const a2 = e3.pageContext;
142
- if (function(e4) {
143
- if (e4.fileuploadInfo && e4.fileuploadInfo.length > 0) {
144
- const t2 = e4.fileuploadInfo[0];
145
- let n2;
146
- return t2.isTable && t2.tableTitle && void 0 !== t2.rowIndex ? (t2.rowIndex, t2.rowIndex, n2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t2.label, tableTitle: t2.tableTitle, rowIndex: t2.rowIndex + 1 })) : n2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t2.label }), u({ message: n2, type: "warning", showClose: true }), true;
147
- }
148
- return false;
149
- }(a2)) return void o2(false);
150
- const i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
151
- let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
152
- if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
153
- const m2 = de(e3);
141
+ const i2 = e3.pageContext;
142
+ if (Q(i2)) return void o2(false);
143
+ const a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
144
+ let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
145
+ if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
146
+ const m2 = me(e3);
154
147
  let f2;
155
- f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), $(a2.code, i2), f2.then((t2) => {
148
+ f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
156
149
  let n2 = true;
157
- t2 && (q(a2.code, i2), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), o2(true);
150
+ t2 && (q(i2.code, a2), n2 = fe(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), o2(true);
158
151
  }).catch((e4) => {
159
152
  s2(e4);
160
153
  });
@@ -163,63 +156,53 @@ const Y = { save: function(e2) {
163
156
  }, workflowStart: function(e2) {
164
157
  return T.$emit("clearTableAllStartEditing"), async function(e3) {
165
158
  return new Promise((o2, s2) => {
166
- const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
167
- if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
168
- const e4 = a2.fileuploadInfo[0];
169
- let t2;
170
- e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
171
- } else {
172
- let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
173
- if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
174
- const m2 = de(e3);
175
- let f2;
176
- i2.workflow_id || i2.WORKFLOW_ID ? (d2 = t(p2, a2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(a2.code, i2), f2.then((t2) => {
177
- let n2 = true;
178
- t2 && (q(a2.code, i2), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
179
- }).catch((e4) => {
180
- s2(e4);
181
- });
182
- }
159
+ const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
160
+ if (Q(i2)) return void o2(false);
161
+ let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
162
+ if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
163
+ const m2 = me(e3);
164
+ let f2;
165
+ a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
166
+ let n2 = true;
167
+ t2 && (q(i2.code, a2), n2 = fe(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
168
+ }).catch((e4) => {
169
+ s2(e4);
170
+ });
183
171
  });
184
172
  }(e2);
185
173
  }, submitProcess: function(e2) {
186
174
  return T.$emit("clearTableAllStartEditing"), function(e3) {
187
175
  return new Promise((o2, s2) => {
188
- const a2 = e3.pageContext;
189
- if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
190
- const e4 = a2.fileuploadInfo[0];
191
- let t2;
192
- e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
193
- } else {
194
- const i2 = a2.systemCode, r2 = a2.backendUrl;
195
- let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
196
- if (p2 = n(p2, i2, r2, a2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
197
- const d2 = de(e3);
198
- $(a2.code, a2.entity.data);
199
- const m2 = c.post(p2, d2);
200
- m2 ? m2.then((t2) => {
201
- let n2 = true;
202
- t2 && (q(a2.code, a2.entity.data), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
203
- }).catch((e4) => {
204
- s2(e4);
205
- }) : q(a2.code, a2.entity.data);
206
- }
176
+ const i2 = e3.pageContext;
177
+ if (Q(i2)) return void o2(false);
178
+ const a2 = i2.systemCode, r2 = i2.backendUrl;
179
+ let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
180
+ if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
181
+ const d2 = me(e3);
182
+ $(i2.code, i2.entity.data);
183
+ const m2 = c.post(p2, d2);
184
+ m2 ? m2.then((t2) => {
185
+ let n2 = true;
186
+ t2 && (q(i2.code, i2.entity.data), n2 = fe(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
187
+ }).catch((e4) => {
188
+ s2(e4);
189
+ }) : q(i2.code, i2.entity.data);
207
190
  });
208
191
  }(e2);
209
192
  }, submitTask: function(e2) {
210
- return fe(e2, "SUBMIT");
193
+ return ge(e2, "SUBMIT");
211
194
  }, approve: function(e2) {
212
- return fe(e2, "APPROVE");
195
+ return ge(e2, "APPROVE");
213
196
  }, refuse: function(e2) {
214
- return fe(e2, "REFUSE");
197
+ return ge(e2, "REFUSE");
215
198
  }, readed: function(e2) {
216
- return fe(e2, "READED");
199
+ return ge(e2, "READED");
217
200
  }, agreement: function(e2) {
218
- return fe(e2, "AGREEMENT");
201
+ return ge(e2, "AGREEMENT");
219
202
  }, oppose: function(e2) {
220
- return fe(e2, "OPPOSE");
203
+ return ge(e2, "OPPOSE");
221
204
  }, kiken: function(e2) {
222
- return fe(e2, "KIKEN");
205
+ return ge(e2, "KIKEN");
223
206
  }, assign: function(e2) {
224
207
  return function(e3) {
225
208
  const t2 = e3.pageContext, n2 = t2.code + "_";
@@ -237,23 +220,23 @@ const Y = { save: function(e2) {
237
220
  }(e2);
238
221
  }, drawTask: function(e2) {
239
222
  return function(e3) {
240
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = de(e3);
241
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulDrawTask");
223
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = me(e3);
224
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulDrawTask");
242
225
  }(e2);
243
226
  }, abandonReceive: function(e2) {
244
227
  return function(e3) {
245
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = de(e3);
246
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulAbandonReceive");
228
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = me(e3);
229
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulAbandonReceive");
247
230
  }(e2);
248
231
  }, returnToPreviousTask: function(e2) {
249
232
  return function(e3) {
250
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = de(e3);
251
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
233
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = me(e3);
234
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
252
235
  }(e2);
253
236
  }, endInstance: function(e2) {
254
237
  return function(e3) {
255
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", a2 = de(e3);
256
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulEndInstance");
238
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", i2 = me(e3);
239
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulEndInstance");
257
240
  }(e2);
258
241
  }, returnTaskTo: function(e2) {
259
242
  return function(e3) {
@@ -267,11 +250,11 @@ const Y = { save: function(e2) {
267
250
  }(e2);
268
251
  }, retrieveTask: function(e2) {
269
252
  return function(e3) {
270
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", a2 = de(e3);
271
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulRetrieve");
253
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", i2 = me(e3);
254
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulRetrieve");
272
255
  }(e2);
273
256
  }, extractWorkflow: function(e2) {
274
- return Ne(e2);
257
+ return Oe(e2);
275
258
  }, extractWorkflowEvent: function(e2) {
276
259
  return function(e3) {
277
260
  const t2 = e3.pageContext;
@@ -279,24 +262,24 @@ const Y = { save: function(e2) {
279
262
  }(e2);
280
263
  }, cancelExtractWorkflow: function(e2) {
281
264
  return function(e3) {
282
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = de(e3);
283
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulCancelExtract");
265
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", i2 = me(e3);
266
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulCancelExtract");
284
267
  }(e2);
285
268
  }, approveExtractWorkflow: function(e2) {
286
269
  return function(e3) {
287
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = de(e3);
288
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulOperation");
270
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", i2 = me(e3);
271
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
289
272
  }(e2);
290
273
  }, refuseExtractWorkflow: function(e2) {
291
274
  return function(e3) {
292
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = de(e3);
293
- return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulOperation");
275
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", i2 = me(e3);
276
+ return ve(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
294
277
  }(e2);
295
278
  }, viewDetail: function(e2) {
296
279
  }, lineEditCreate: function(e2) {
297
280
  return function(e3) {
298
- const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = C(t2, n2);
299
- o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
281
+ const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = w(t2, n2);
282
+ o2 && (e3.getDefaultValueFunc = S, o2.createRow(e3.listCode, {}, e3));
300
283
  }(e2);
301
284
  }, printLabel: function(e2) {
302
285
  return function(e3) {
@@ -306,7 +289,7 @@ const Y = { save: function(e2) {
306
289
  } catch (t3) {
307
290
  console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
308
291
  }
309
- U.printLabel(e3, t2);
292
+ A.printLabel(e3, t2);
310
293
  }(e2);
311
294
  }, queryCharts: function(e2) {
312
295
  z(e2);
@@ -320,13 +303,13 @@ const Y = { save: function(e2) {
320
303
  const n2 = e3.pageContext, o2 = n2.allChartUuids;
321
304
  if (!o2 || 0 == o2.length) return;
322
305
  const s2 = e3.configureObj;
323
- let a2 = null;
324
- s2 && s2.runtime && (a2 = s2.runtime.props);
325
- const i2 = a2 ? a2.state : void 0;
326
- a2 && (a2.state = "disabled");
306
+ let i2 = null;
307
+ s2 && s2.runtime && (i2 = s2.runtime.props);
308
+ const a2 = i2 ? i2.state : void 0;
309
+ i2 && (i2.state = "disabled");
327
310
  const r2 = [];
328
311
  for (let e4 = 0; e4 < o2.length; e4++) {
329
- const t2 = o2[e4], s3 = C(n2, t2);
312
+ const t2 = o2[e4], s3 = w(n2, t2);
330
313
  if (s3) {
331
314
  const e5 = s3.getConfigure();
332
315
  e5 && e5.exportable && e5._dynamicShowFlag && s3.exportChart && r2.push(s3.exportChart());
@@ -336,18 +319,18 @@ const Y = { save: function(e2) {
336
319
  let c2, l2 = n2.label;
337
320
  l2 || (l2 = n2.code);
338
321
  c2 = l2;
339
- const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 = Te(n2);
322
+ const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 = ke(n2);
340
323
  u2.additionalParamMap = p2;
341
324
  const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
342
325
  d2 && (u2.currentOperation = d2);
343
326
  u2.isMobile = B(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
344
327
  const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
345
328
  X();
346
- h.post(f2, u2, { responseType: "blob" }).then((e4) => {
329
+ k.post(f2, u2, { responseType: "blob" }).then((e4) => {
347
330
  const t2 = document.createElement("a");
348
331
  t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
349
332
  }).finally(() => {
350
- a2 && (a2.state = i2);
333
+ i2 && (i2.state = a2);
351
334
  });
352
335
  }(e2);
353
336
  }, saveQueryCharts: function(e2) {
@@ -372,292 +355,290 @@ function z(e2) {
372
355
  const o2 = e2.configureObj;
373
356
  let s2 = null;
374
357
  o2 && o2.runtime && (s2 = o2.runtime.props);
375
- const a2 = s2 ? s2.state : void 0;
376
- s2 && (s2.state = "disabled"), S(t2, n2, void 0, e2.isInitChart).then(() => {
377
- s2 && (s2.state = a2);
358
+ const i2 = s2 ? s2.state : void 0;
359
+ s2 && (s2.state = "disabled"), x(t2, n2, void 0, e2.isInitChart).then(() => {
360
+ s2 && (s2.state = i2);
378
361
  }).catch(() => {
379
- s2 && (s2.state = a2);
362
+ s2 && (s2.state = i2);
380
363
  });
381
364
  }
382
- function K(e2, n2, s2, a2) {
365
+ function K(e2, n2, s2, i2) {
383
366
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
384
367
  e2.clickUuid = n2.uuid, e2.canClick = false;
385
- const i2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
368
+ const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: I(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
386
369
  if (e2.tableUuids && e2.tableUuids.length > 0) {
387
370
  const t2 = {};
388
371
  e2.tableUuids.forEach((n3) => {
389
- const o2 = C(e2, n3);
372
+ const o2 = w(e2, n3);
390
373
  if (o2) {
391
374
  const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
392
375
  n4 && n4.length > 0 && (t2[e3] = n4);
393
376
  }
394
- }), w2.subTableColumns = t2;
377
+ }), b2.subTableColumns = t2;
395
378
  }
396
- l2 && (w2.logSettingText = l2.join(""));
379
+ l2 && (b2.logSettingText = l2.join(""));
397
380
  const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
398
- T2 && (w2.currentOperation = T2), w2.isMobile = B();
399
- const k2 = Te(e2);
381
+ T2 && (b2.currentOperation = T2), b2.isMobile = B();
382
+ const h2 = ke(e2);
400
383
  let y2;
401
- w2.additionalParamMap = k2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = a2 ? function(e3, n3, o2, s3) {
402
- return new Promise((a3, i3) => {
384
+ b2.additionalParamMap = h2, b2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
385
+ return new Promise((i3, a3) => {
403
386
  const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
404
387
  X();
405
- const c3 = h.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
388
+ const c3 = k.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
406
389
  window.$message.info("正在导出中..."), c3.then((t2) => {
407
390
  const n4 = new Blob([t2.data]), o3 = document.createElement("a");
408
- o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), a3(true);
391
+ o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), i3(true);
409
392
  }).catch((e4) => {
410
- i3(e4);
393
+ a3(e4);
411
394
  });
412
395
  });
413
- }(r2, f2, w2, e2.isTest) : function(e3, n3, o2, s3) {
414
- return new Promise((a3, i3) => {
396
+ }(r2, f2, b2, e2.isTest) : function(e3, n3, o2, s3) {
397
+ return new Promise((i3, a3) => {
415
398
  const r3 = t(n3, s3) + "/dsc/commons/export-reports";
416
399
  X();
417
- h.post(r3, o2, { responseType: "blob" }).then((t2) => {
400
+ k.post(r3, o2, { responseType: "blob" }).then((t2) => {
418
401
  const n4 = new Blob([t2.data]);
419
402
  let o3 = "报告.xlsx";
420
403
  e3 && (o3 = e3);
421
404
  const s4 = document.createElement("a");
422
- s4.download = o3, s4.style.display = "none", s4.target = "_blank", s4.href = URL.createObjectURL(n4), document.body.appendChild(s4), s4.click(), URL.revokeObjectURL(s4.href), document.body.removeChild(s4), a3(true);
405
+ s4.download = o3, s4.style.display = "none", s4.target = "_blank", s4.href = URL.createObjectURL(n4), document.body.appendChild(s4), s4.click(), URL.revokeObjectURL(s4.href), document.body.removeChild(s4), i3(true);
423
406
  }).catch((e4) => {
424
- i3(e4);
407
+ a3(e4);
425
408
  });
426
409
  });
427
- }(r2, f2, w2, e2.isTest), y2 && y2.then(() => {
410
+ }(r2, f2, b2, e2.isTest), y2 && y2.then(() => {
428
411
  P(e2, n2);
429
412
  }).catch((t2) => {
430
413
  window.$message.error("导出失败..."), P(e2, n2);
431
414
  });
432
415
  }
433
416
  function X() {
434
- h.defaults.headers.common.Authorization = f();
435
- const e2 = w();
417
+ k.defaults.headers.common.Authorization = f();
418
+ const e2 = b();
436
419
  if (e2) {
437
420
  const t2 = "_RUN_CURRENT_ROLE";
438
- h.defaults.headers.common[t2] = e2;
421
+ k.defaults.headers.common[t2] = e2;
422
+ }
423
+ }
424
+ function Q(e2) {
425
+ if (e2.fileuploadInfo && e2.fileuploadInfo.length > 0) {
426
+ const t2 = e2.fileuploadInfo[0];
427
+ let n2;
428
+ return n2 = t2.isTable && t2.tableTitle && void 0 !== t2.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t2.label, tableTitle: t2.tableTitle, rowIndex: t2.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t2.label }), u({ message: n2, type: "warning", showClose: true }), true;
439
429
  }
430
+ return false;
440
431
  }
441
- function Q(e2, t2) {
432
+ function Z(e2, t2) {
442
433
  return new Promise((n2, o2) => {
443
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
444
- let p2 = false;
445
- if (c2 && "noOperation" === c2 && (p2 = true), s2.fileuploadInfo && s2.fileuploadInfo.length > 0) {
446
- const e3 = s2.fileuploadInfo[0];
447
- let t3;
448
- t3 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t3, type: "warning", showClose: true }), n2(false);
449
- } else {
450
- $(s2.code, s2.entity.data);
451
- const e3 = te(s2, a2, "/dsc/commons", p2, i2, r2);
452
- e3 ? e3.then((e4) => {
453
- e4 && q(s2.code, s2.entity.data), ne(s2, a2, e4, "superPageRuntimeMessage.successfulSave", t2), n2(e4);
454
- }).catch((e4) => {
455
- o2(e4);
456
- }) : (q(s2.code, s2.entity.data), o2("保存时request不存在"));
457
- }
434
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
435
+ let l2 = false;
436
+ if (c2 && "noOperation" === c2 && (l2 = true), Q(s2)) return void n2(false);
437
+ $(s2.code, s2.entity.data);
438
+ const u2 = ne(s2, i2, "/dsc/commons", l2, a2, r2);
439
+ u2 ? u2.then((e3) => {
440
+ e3 && q(s2.code, s2.entity.data), oe(s2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), n2(e3);
441
+ }).catch((e3) => {
442
+ o2(e3);
443
+ }) : (q(s2.code, s2.entity.data), o2("保存时request不存在"));
458
444
  });
459
445
  }
460
- function Z(e2, t2, n2, a2, i2, r2, c2) {
446
+ function ee(e2, t2, n2, i2, a2, r2, c2) {
461
447
  var _a, _b, _c;
462
- const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = v(t2, e2);
448
+ const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = I(t2, e2);
463
449
  let m2 = c2;
464
450
  m2 || (m2 = e2.entity.data);
465
451
  const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
466
452
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
467
453
  const g2 = t2.props.base.conversionCodes;
468
454
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
469
- const b2 = De(t2);
470
- b2 && (f2.autoSetValueData = b2);
471
- const w2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
472
- w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode = u2);
473
- const C2 = e2.beanName;
474
- C2 && (f2.beanName = C2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
475
- const T2 = Te(e2);
455
+ const C2 = We(t2);
456
+ C2 && (f2.autoSetValueData = C2);
457
+ const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
458
+ b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = u2);
459
+ const w2 = e2.beanName;
460
+ w2 && (f2.beanName = w2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
461
+ const T2 = ke(e2);
476
462
  f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
477
- const h2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
478
- return h2 && (f2.currentOperation = h2), f2.isMobile = B(), f2;
463
+ const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
464
+ return k2 && (f2.currentOperation = k2), f2.isMobile = B(), f2;
479
465
  }
480
- function ee(e2, o2, s2, a2, i2, r2, l2, u2, p2) {
481
- const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2, a2, i2, r2, null, l2);
482
- return u2 && u2.tableName && (f2.tableName = u2.tableName), p2 && (f2.isWorkflowEntity = false), function(e3, o3, s3, a3, i3, r3) {
466
+ function te(e2, o2, s2, i2, a2, r2, l2, u2, p2) {
467
+ const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = ee(e2, o2, i2, a2, r2, null, l2);
468
+ return u2 && u2.tableName && (f2.tableName = u2.tableName), p2 && (f2.isWorkflowEntity = false), function(e3, o3, s3, i3, a3, r3) {
483
469
  const l3 = t(o3, r3);
484
- let u3, p3 = l3 + a3;
485
- p3 = n(p3, e3, o3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
470
+ let u3, p3 = l3 + i3;
471
+ p3 = n(p3, e3, o3, r3), u3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
486
472
  return u3;
487
473
  }(d2, m2, f2, s2, l2, e2.isTest);
488
474
  }
489
- function te(e2, t2, n2, o2, s2, a2) {
490
- return ee(e2, t2, n2, o2, s2, a2, null, null);
475
+ function ne(e2, t2, n2, o2, s2, i2) {
476
+ return te(e2, t2, n2, o2, s2, i2, null, null);
491
477
  }
492
- function ne(t2, n2, o2, s2, a2) {
493
- const i2 = oe(t2, n2, a2);
494
- if (i2 && "list" === i2) !function(t3, n3, o3, s3) {
495
- let a3 = n3.props.base.successOperation;
496
- const i3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
497
- a3 || re.includes(n3.name) || (a3 = "refresh");
498
- if ("refresh" === a3) if (r2) {
499
- C(t3, r2).refresh();
478
+ function oe(t2, n2, o2, s2, i2) {
479
+ const a2 = se(t2, n2, i2);
480
+ if (a2 && "list" === a2) !function(t3, n3, o3, s3) {
481
+ let i3 = n3.props.base.successOperation;
482
+ const a3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
483
+ i3 || ce.includes(n3.name) || (i3 = "refresh");
484
+ if ("refresh" === i3) if (r2) {
485
+ w(t3, r2).refresh();
500
486
  } else console.error("tableUuid is empty");
501
- else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
487
+ else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
502
488
  const s4 = e(t3.entity.page);
503
- let a4 = o3;
504
- a4 || (a4 = {}), Object.assign(s4, a4), ae(t3, n3, s4, i3);
489
+ let i4 = o3;
490
+ i4 || (i4 = {}), Object.assign(s4, i4), ae(t3, n3, s4, a3);
505
491
  }
506
492
  s3 && u({ message: l().t(s3), type: "success", showClose: true });
507
493
  }(t2, n2, o2, s2), t2.canClick = true;
508
- else if (i2 && "form" === i2) !function(e2, t3, n3, o3) {
494
+ else if (a2 && "form" === a2) !function(e2, t3, n3, o3) {
509
495
  if (n3) {
510
496
  const o4 = n3;
511
497
  let s3;
512
498
  s3 = o4.entity ? o4.entity : o4, o4.formNo && (e2.initFormNo = o4.formNo);
513
- se(e2, t3, { ...s3, ...e2.entity.page });
499
+ ie(e2, t3, { ...s3, ...e2.entity.page });
514
500
  } else {
515
501
  const n4 = t3.props.base.successOperation;
516
502
  if (n4 && null !== n4) {
517
- se(e2, t3, { ...e2.entity.page });
503
+ ie(e2, t3, { ...e2.entity.page });
518
504
  } else e2.canClick = true;
519
505
  }
520
506
  o3 && u({ message: l().t(o3), type: "success", showClose: true });
521
507
  }(t2, n2, o2, s2);
522
508
  else {
523
509
  const e2 = n2.props.base.successOperation;
524
- e2 && null !== e2 ? se(t2, n2, null) : t2.canClick = true;
510
+ e2 && null !== e2 ? ie(t2, n2, null) : t2.canClick = true;
525
511
  }
526
512
  }
527
- function oe(e2, t2, n2) {
513
+ function se(e2, t2, n2) {
528
514
  let o2;
529
515
  return void 0 === n2 ? o2 = t2.props.base.tableUuid ? "list" : null : false === n2 && (o2 = "form"), o2 || (o2 = e2.pageType), o2;
530
516
  }
531
- function se(e2, t2, n2) {
517
+ function ie(e2, t2, n2) {
532
518
  const o2 = t2.props.base.successOperation;
533
519
  if (!o2 || null === o2) return;
534
520
  const s2 = t2.props.base.isNeedValueMapping;
535
- "noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ae(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ae(e2, t2, n2, s2), e2.canClick = true);
521
+ "noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ee(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ae(e2, t2, n2, s2), e2.canClick = true);
536
522
  }
537
523
  function ae(e2, t2, n2, o2) {
538
524
  const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
539
525
  if ("openWindow" === s2 || "newTab" === s2) window.parent ? window.parent.close() : window.close();
540
526
  else {
541
- const a2 = e2.tableName, i2 = void 0 !== o2 && true === o2 && n2 && void 0 !== n2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_close-dialog";
542
- T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
527
+ const i2 = e2.tableName, a2 = void 0 !== o2 && true === o2 && n2 && void 0 !== n2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_close-dialog";
528
+ T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: a2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
543
529
  }
544
530
  }
545
- function ie({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: a2 }) {
531
+ function re({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: i2 }) {
546
532
  var _a;
547
- a2 || (a2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (a2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
548
- const i2 = e2.tableName;
533
+ i2 || (i2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (i2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
534
+ const a2 = e2.tableName;
549
535
  !function(e3, t3, n3) {
550
536
  if (e3 && null !== e3 && t3) {
551
537
  let o3 = e3;
552
538
  Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
553
539
  const t4 = e4.source;
554
540
  if (!t4) return;
555
- const s3 = t4.split("."), a3 = N(o3, s3), i3 = e4.target, r2 = R(null, i3);
556
- O(n3.entity, r2, a3);
541
+ const s3 = t4.split("."), i3 = N(o3, s3), a3 = e4.target, r2 = R(null, a3);
542
+ O(n3.entity, r2, i3);
557
543
  });
558
544
  }
559
- }(o2, a2, e2), k(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: i2, eventParams: t2 });
545
+ }(o2, i2, e2), h(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: a2, eventParams: t2 });
560
546
  }
561
- const re = ["dropdown"];
562
- function ce(e2, t2, n2, o2) {
547
+ const ce = ["dropdown"];
548
+ function le(e2, t2, n2, o2) {
563
549
  var _a;
564
550
  t2 && !t2.props.base && (t2.props.base = {});
565
551
  let s2 = o2;
566
552
  s2 || (s2 = n2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
567
- const a2 = oe(e2, t2);
568
- if (a2 && "list" === a2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
569
- if (a2 && "list" === a2) {
553
+ const i2 = se(e2, t2);
554
+ if (i2 && "list" === i2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
555
+ if (i2 && "list" === i2) {
570
556
  const n3 = y(e2, t2);
571
557
  if (n3) {
572
- C(e2, n3).refresh();
558
+ w(e2, n3).refresh();
573
559
  } else console.error("tableUuid is empty");
574
- } else if (a2 && "form" === a2) {
560
+ } else if (i2 && "form" === i2) {
575
561
  const t3 = e2.entity.data;
576
- Ae(e2, t3.ID ? t3.ID : t3.id);
562
+ Ee(e2, t3.ID ? t3.ID : t3.id);
577
563
  }
578
564
  }
579
565
  }
580
- function le(e2, o2, s2, a2) {
581
- return new Promise((r2, d2) => {
582
- const m2 = e2.pageContext, f2 = e2.configureObj;
583
- if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) {
584
- const e3 = m2.fileuploadInfo[0];
585
- let t2;
586
- e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? (e3.rowIndex, e3.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), r2(false);
587
- } else {
588
- const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, w2 = f2.props.base.successOperation;
589
- let C2 = false;
590
- w2 && "noOperation" === w2 && (C2 = true);
591
- let T2 = m2.tableName;
592
- if (o2) {
593
- const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
594
- T2 = A(m2, t2);
595
- } else $(m2.code, m2.entity.data);
596
- const h2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
597
- return new Promise((g3, b3) => {
598
- const w3 = o3.props.base.title, C3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
599
- p.confirm(l().t(C3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
600
- const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, a3, r3, u3, m3, null);
601
- p2.tableName = f3;
602
- let d4 = t(l2, e3.isTest) + s3;
603
- d4 = n(d4, i2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
604
- g3(e4);
605
- }).catch((e4) => {
606
- b3(e4);
607
- });
608
- }).catch(() => {
609
- b3("点击了取消按钮");
566
+ function ue(e2, o2, s2, i2) {
567
+ return new Promise((r2, u2) => {
568
+ const d2 = e2.pageContext, m2 = e2.configureObj;
569
+ if (Q(d2)) return void r2(false);
570
+ const f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
571
+ let w2 = false;
572
+ b2 && "noOperation" === b2 && (w2 = true);
573
+ let T2 = d2.tableName;
574
+ if (o2) {
575
+ const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
576
+ T2 = U(d2, t2);
577
+ } else $(d2.code, d2.entity.data);
578
+ const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
579
+ return new Promise((g3, C3) => {
580
+ const b3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
581
+ p.confirm(l().t(w3, { name: b3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
582
+ const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = ee(e3, o3, i3, r3, u3, m3, null);
583
+ p2.tableName = f3;
584
+ let d4 = t(l2, e3.isTest) + s3;
585
+ d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
586
+ g3(e4);
587
+ }).catch((e4) => {
588
+ C3(e4);
610
589
  });
590
+ }).catch(() => {
591
+ C3("点击了取消按钮");
611
592
  });
612
- }(m2, f2, a2, C2, u2, g2, s2, b2, T2);
613
- h2 ? h2.then((e3) => {
614
- !o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
615
- }).catch((e3) => {
616
- d2(e3);
617
- }) : (o2 || q(m2.code, m2.entity.data), d2("request不存在"));
618
- }
593
+ });
594
+ }(d2, m2, i2, w2, f2, g2, s2, C2, T2);
595
+ k2 ? k2.then((e3) => {
596
+ !o2 && e3 && q(d2.code, d2.entity.data), oe(d2, m2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
597
+ }).catch((e3) => {
598
+ u2(e3);
599
+ }) : (o2 || q(d2.code, d2.entity.data), u2("request不存在"));
619
600
  });
620
601
  }
621
- function ue(e2, s2) {
602
+ function pe(e2, s2) {
622
603
  var _a, _b, _c;
623
- const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = A(a2, d2), f2 = new FormData();
604
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = U(i2, d2), f2 = new FormData();
624
605
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
625
- const g2 = (_b = (_a = i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
626
- g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
627
- const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
628
- b2 && f2.append("importDuplicateRule", b2);
629
- const w2 = a2.judgeHeavyList;
630
- w2 && f2.append("judgeHeavyList", JSON.stringify(w2));
631
- const C2 = De(i2);
632
- C2 && f2.append("autoSetValueData", C2);
633
- const T2 = a2.formNoRuleCode;
606
+ const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
607
+ g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
608
+ const C2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
609
+ C2 && f2.append("importDuplicateRule", C2);
610
+ const b2 = i2.judgeHeavyList;
611
+ b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
612
+ const w2 = We(a2);
613
+ w2 && f2.append("autoSetValueData", w2);
614
+ const T2 = i2.formNoRuleCode;
634
615
  T2 && f2.append("formNoRuleCode", T2);
635
- const h2 = e2.listCode;
636
- h2 && f2.append("listCode", h2);
637
- let k2 = false;
638
- k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
639
- const y2 = o(a2);
616
+ const k2 = e2.listCode;
617
+ k2 && f2.append("listCode", k2);
618
+ let h2 = false;
619
+ h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
620
+ const y2 = o(i2);
640
621
  null != y2 && f2.append("isWorkflowEntity", y2 + "");
641
- const I2 = v(i2, a2);
642
- I2 && f2.append("functionCode", I2);
643
- const x2 = Te(a2);
644
- f2.append("additionalParamMapStr", JSON.stringify(x2));
622
+ const v2 = I(a2, i2);
623
+ v2 && f2.append("functionCode", v2);
624
+ const S2 = ke(i2);
625
+ f2.append("additionalParamMapStr", JSON.stringify(S2));
645
626
  const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
646
627
  f2.append("isPermission", R2 + "");
647
- const M2 = a2.systemCode;
628
+ const M2 = i2.systemCode;
648
629
  M2 && f2.append("systemCode", M2);
649
- const S2 = a2.backendUrl;
650
- let N2 = t(S2, a2.isTest) + "/dsc/commons/import-data";
651
- N2 = n(N2, M2, S2, a2.isTest), c.post(N2, f2).then((e3) => {
652
- if (k2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
630
+ const x2 = i2.backendUrl;
631
+ let N2 = t(x2, i2.isTest) + "/dsc/commons/import-data";
632
+ N2 = n(N2, M2, x2, i2.isTest), c.post(N2, f2).then((e3) => {
633
+ if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Ve(i2);
653
634
  else {
654
635
  let t2 = false;
655
- e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(a2, i2, e3, null, true), a2.result = t2, P(a2, i2);
636
+ e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), oe(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
656
637
  }
657
638
  }).catch((e3) => {
658
639
  });
659
640
  }
660
- function pe(e2, t2) {
641
+ function de(e2, t2) {
661
642
  const n2 = e2.props.base;
662
643
  if (n2.conditionsForExecution && "" !== n2.conditionsForExecution) {
663
644
  if ("one" === n2.conditionsForExecution) {
@@ -666,33 +647,33 @@ function pe(e2, t2) {
666
647
  }
667
648
  return true;
668
649
  }
669
- function de(e2) {
650
+ function me(e2) {
670
651
  var _a, _b, _c;
671
- const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
672
- let r2 = v(n2, t2);
673
- r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
674
- const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
652
+ const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
653
+ let r2 = I(n2, t2);
654
+ r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
655
+ const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
675
656
  t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
676
657
  const l2 = n2.props.base.conversionCodes;
677
658
  l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
678
- const u2 = De(n2);
659
+ const u2 = We(n2);
679
660
  u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
680
661
  const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
681
- p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
682
- const d2 = Te(t2);
662
+ p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
663
+ const d2 = ke(t2);
683
664
  c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
684
665
  const m2 = n2.props.base.successOperation;
685
666
  m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
686
667
  const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
687
668
  return f2 && (c2.currentOperation = f2), c2.isMobile = B(), c2;
688
669
  }
689
- function me(e2, t2, n2, o2, s2) {
690
- const a2 = n2.code, i2 = n2.version;
670
+ function fe(e2, t2, n2, o2, s2) {
671
+ const i2 = n2.code, a2 = n2.version;
691
672
  let r2;
692
673
  if (e2) {
693
674
  t2 && (n2.initFormNo = e2.formNo, n2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (n2.entity.data = e2.entity, function(e3, t3) {
694
- const n3 = Te(t3);
695
- e3 && n3 && b(n3._t_ + "_id", e3);
675
+ const n3 = ke(t3);
676
+ e3 && n3 && C(n3._t_ + "_id", e3);
696
677
  }(e2.entity.id || e2.entity.ID, n2));
697
678
  const s3 = e2.completeTaskResult;
698
679
  if (s3) {
@@ -704,38 +685,35 @@ function me(e2, t2, n2, o2, s2) {
704
685
  }
705
686
  if (e2.completeTaskParam) {
706
687
  const t3 = e2.completeTaskParam;
707
- r2 = t3.taskId, o2 && (o2.taskId = r2), I(a2, i2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
688
+ r2 = t3.taskId, o2 && (o2.taskId = r2), v(i2, a2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
708
689
  }
709
- n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(a2, i2, "_currentActivityName", e2.taskName);
690
+ n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, v(i2, a2, "_currentActivityName", e2.taskName);
710
691
  }
711
- return o2 && (o2.operationResult = s2), t2 || ne(n2, o2.configureObj, e2, null, false), true;
692
+ return o2 && (o2.operationResult = s2), t2 || oe(n2, o2.configureObj, e2, null, false), true;
712
693
  }
713
- async function fe(e2, o2) {
714
- const s2 = await ge(e2);
715
- return new Promise((a2, i2) => {
694
+ async function ge(e2, o2) {
695
+ const s2 = await Ce(e2);
696
+ return new Promise((i2, a2) => {
716
697
  var _a;
717
698
  const r2 = e2.pageContext;
718
- if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) {
719
- const e3 = r2.fileuploadInfo[0];
720
- let t2;
721
- e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? (e3.rowIndex, e3.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), a2(false);
722
- } else if (s2) {
699
+ if (Q(r2)) i2(false);
700
+ else if (s2) {
723
701
  const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
724
702
  let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
725
703
  if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
726
- const g2 = de(e2);
704
+ const g2 = me(e2);
727
705
  g2.completeTaskParam = { operationResult: o2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
728
- const b2 = c.post(f2, g2);
729
- $(r2.code, r2.entity.data), b2.then((t2) => {
706
+ const C2 = c.post(f2, g2);
707
+ $(r2.code, r2.entity.data), C2.then((t2) => {
730
708
  let n2 = true;
731
- t2 && (q(r2.code, r2.entity.data), n2 = me(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
709
+ t2 && (q(r2.code, r2.entity.data), n2 = fe(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
732
710
  }).catch((e3) => {
733
- i2(e3);
711
+ a2(e3);
734
712
  });
735
- } else a2(true);
713
+ } else i2(true);
736
714
  });
737
715
  }
738
- function ge(e2) {
716
+ function Ce(e2) {
739
717
  return new Promise((t2, n2) => {
740
718
  var _a, _b, _c, _d, _e2;
741
719
  const o2 = e2.configureObj;
@@ -752,20 +730,20 @@ function ge(e2) {
752
730
  }
753
731
  function be(e2, n2) {
754
732
  if (n2) {
755
- const o2 = e2.pageContext, s2 = e2.configureObj, a2 = o2.backendUrl, i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = de(e2);
756
- c2.assigneeId = r2, Pe(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
733
+ const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = me(e2);
734
+ c2.assigneeId = r2, ve(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
757
735
  P(o2, s2);
758
736
  });
759
737
  }
760
738
  }
761
739
  function we(e2) {
762
740
  var _a, _b;
763
- const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, a2 = e2.configureObj, i2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: i2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
764
- c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = Ce(e2);
765
- const l2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
741
+ const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, i2 = e2.configureObj, a2 = ke(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: a2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
742
+ c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = Te(e2);
743
+ const l2 = (_b = (_a = i2 == null ? void 0 : i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
766
744
  return l2 && (c2.currentOperation = l2), c2.isMobile = B(), c2;
767
745
  }
768
- function Ce(e2) {
746
+ function Te(e2) {
769
747
  var _a, _b, _c;
770
748
  let t2 = null;
771
749
  if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let n2 = 0; n2 < e2.configureObj.props.task.title.length; n2++) {
@@ -783,7 +761,7 @@ function Ce(e2) {
783
761
  }
784
762
  return t2;
785
763
  }
786
- function Te(t2) {
764
+ function ke(t2) {
787
765
  if (t2.entity) {
788
766
  let n2 = e(t2.entity.page);
789
767
  n2 || (n2 = {});
@@ -793,31 +771,31 @@ function Te(t2) {
793
771
  }
794
772
  function he(e2, o2) {
795
773
  if (o2) {
796
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
774
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
797
775
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
798
- if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
776
+ if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
799
777
  const d2 = we(e2);
800
778
  d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
801
779
  const m2 = c.post(p2, d2);
802
780
  m2 && m2.then((e3) => {
803
- u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, a2, e3, null, false), P(s2, a2);
781
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && oe(s2, i2, e3, null, false), P(s2, i2);
804
782
  });
805
783
  }
806
784
  }
807
- function ke(e2, o2) {
785
+ function ye(e2, o2) {
808
786
  if (o2) {
809
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
787
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
810
788
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
811
- if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
789
+ if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
812
790
  const d2 = we(e2);
813
791
  d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
814
792
  const m2 = c.post(p2, d2);
815
793
  m2 && m2.then((e3) => {
816
- u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, a2, e3, null, false), P(s2, a2);
794
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && oe(s2, i2, e3, null, false), P(s2, i2);
817
795
  });
818
796
  }
819
797
  }
820
- async function ye(e2, o2) {
798
+ async function Pe(e2, o2) {
821
799
  if (o2) {
822
800
  const s2 = await function(e3) {
823
801
  return new Promise((t2, n2) => {
@@ -839,157 +817,157 @@ async function ye(e2, o2) {
839
817
  });
840
818
  }(e2);
841
819
  if (s2) {
842
- const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
843
- let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
844
- if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
820
+ const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
821
+ let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/copies";
822
+ if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
845
823
  const m2 = we(e2);
846
824
  m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
847
825
  const f2 = c.post(d2, m2);
848
826
  f2 && f2.then((e3) => {
849
827
  var _a;
850
- u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(a2, i2, { entity: (_a = a2.entity) == null ? void 0 : _a.data }, null), P(a2, i2);
828
+ u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), oe(i2, a2, { entity: (_a = i2.entity) == null ? void 0 : _a.data }, null), P(i2, a2);
851
829
  });
852
830
  }
853
831
  }
854
832
  }
855
- async function Pe(e2, t2, o2, s2) {
856
- const a2 = await ge(e2);
857
- return new Promise((i2, r2) => {
833
+ async function ve(e2, t2, o2, s2) {
834
+ const i2 = await Ce(e2);
835
+ return new Promise((a2, r2) => {
858
836
  var _a;
859
- if (a2) {
837
+ if (i2) {
860
838
  const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
861
839
  if (p2.completeTaskParam) {
862
- const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
840
+ const e3 = true === i2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : i2;
863
841
  t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
864
842
  }
865
843
  if (!(o2 = n(o2, d2, m2, p2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
866
844
  const f2 = c.post(o2, t2);
867
845
  f2 && f2.then((t3) => {
868
846
  let n2 = true;
869
- t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), i2(true);
847
+ t3 && (n2 = fe(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), a2(true);
870
848
  }).catch((e3) => {
871
849
  r2(e3);
872
850
  });
873
- } else i2(true);
851
+ } else a2(true);
874
852
  });
875
853
  }
876
854
  function Ie(e2) {
877
- const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl, i2 = o2.completeTaskParam;
878
- let r2 = t(a2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
879
- if (r2 = n(r2, s2, a2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
880
- const p2 = o2.code, d2 = Te(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
855
+ const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl, a2 = o2.completeTaskParam;
856
+ let r2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
857
+ if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
858
+ const p2 = o2.code, d2 = ke(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
881
859
  return c.post(r2, m2);
882
860
  }
883
- function ve(e2, n2) {
884
- const o2 = e2.pageContext, s2 = e2.configureObj, a2 = o2.backendUrl, i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = de(e2);
885
- n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Pe(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
861
+ function Se(e2, n2) {
862
+ const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = me(e2);
863
+ n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), ve(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
886
864
  P(o2, s2);
887
865
  });
888
866
  }
889
- function xe(e2) {
890
- const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
891
- let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
892
- const r2 = de(e2);
893
- if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
867
+ function Re(e2) {
868
+ const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
869
+ let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
870
+ const r2 = me(e2);
871
+ if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
894
872
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
895
873
  }
896
- function Re(e2, o2) {
874
+ function Me(e2, o2) {
897
875
  if (o2) {
898
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
876
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
899
877
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
900
- if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
901
- const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = de(e2);
878
+ if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
879
+ const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = me(e2);
902
880
  m2.ids = d2;
903
881
  const f2 = c.post(p2, m2);
904
882
  f2 && f2.then((e3) => {
905
- ne(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, a2);
883
+ oe(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
906
884
  });
907
885
  }
908
886
  }
909
- function Me(e2) {
910
- const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
911
- let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
912
- const r2 = de(e2);
913
- if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
887
+ function xe(e2) {
888
+ const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
889
+ let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
890
+ const r2 = me(e2);
891
+ if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
914
892
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
915
893
  }
916
- function Se(e2, o2) {
894
+ function Ne(e2, o2) {
917
895
  if (o2) {
918
- const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
896
+ const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
919
897
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
920
- if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
921
- const d2 = o2.map((e3) => e3.taskId), m2 = de(e2);
898
+ if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
899
+ const d2 = o2.map((e3) => e3.taskId), m2 = me(e2);
922
900
  m2.ids = d2;
923
901
  const f2 = c.post(p2, m2);
924
902
  f2 && f2.then((e3) => {
925
- ne(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, a2);
903
+ oe(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
926
904
  });
927
905
  }
928
906
  }
929
- function Ne(e2) {
907
+ function Oe(e2) {
930
908
  const o2 = e2.pageContext, s2 = o2.backendUrl;
931
- let a2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
932
- const i2 = de(e2);
909
+ let i2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
910
+ const a2 = me(e2);
933
911
  if (o2.completeTaskParam) {
934
912
  const t2 = [];
935
- e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: Ce(e2) };
913
+ e2._value.loginName && t2.push(e2._value.loginName), a2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: Te(e2) };
936
914
  }
937
915
  return new Promise((t2, o3) => {
938
916
  const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
939
- if (a2 = n(a2, r2, p2, s3.isTest), !a2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
940
- const d2 = c.post(a2, i2);
917
+ if (i2 = n(i2, r2, p2, s3.isTest), !i2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
918
+ const d2 = c.post(i2, a2);
941
919
  d2 && d2.then((n2) => {
942
920
  let o4 = true;
943
- n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
921
+ n2 && (o4 = fe(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
944
922
  }).catch((e3) => {
945
923
  o3(e3);
946
924
  });
947
925
  });
948
926
  }
949
- function Oe(e2, t2, n2, o2, s2, a2) {
927
+ function Ae(e2, t2, n2, o2, s2, i2) {
950
928
  var _a, _b, _c, _d, _e2, _f, _g, _h;
951
- let i2 = false;
952
- if (o2 && o2.archival) return i2;
953
- t2 && n2 && ("workflowSave" === t2 ? i2 = function(e3) {
929
+ let a2 = false;
930
+ if (o2 && o2.archival) return a2;
931
+ t2 && n2 && ("workflowSave" === t2 ? a2 = function(e3) {
954
932
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
955
933
  if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
956
934
  return false;
957
- }(n2) : "workflowStart" === t2 ? i2 = function(e3, t3) {
935
+ }(n2) : "workflowStart" === t2 ? a2 = function(e3, t3) {
958
936
  if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
959
937
  return false;
960
- }(n2, a2) : "submitProcess" === t2 ? i2 = function(e3) {
938
+ }(n2, i2) : "submitProcess" === t2 ? a2 = function(e3) {
961
939
  if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
962
940
  return false;
963
- }(n2) : "submitTask" === t2 ? i2 = function(e3) {
941
+ }(n2) : "submitTask" === t2 ? a2 = function(e3) {
964
942
  if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
965
943
  return false;
966
- }(n2) : "drawTask" === t2 ? i2 = function(e3) {
944
+ }(n2) : "drawTask" === t2 ? a2 = function(e3) {
967
945
  if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
968
946
  return false;
969
- }(n2) : "abandonReceive" === t2 ? i2 = function(e3) {
947
+ }(n2) : "abandonReceive" === t2 ? a2 = function(e3) {
970
948
  if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
971
949
  return false;
972
- }(n2) : "approve" === t2 || "refuse" === t2 ? i2 = function(e3) {
950
+ }(n2) : "approve" === t2 || "refuse" === t2 ? a2 = function(e3) {
973
951
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
974
952
  return false;
975
- }(n2) : "readed" === t2 ? i2 = function(e3) {
953
+ }(n2) : "readed" === t2 ? a2 = function(e3) {
976
954
  if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
977
955
  return false;
978
- }(n2) : "assign" === t2 ? i2 = function(e3) {
956
+ }(n2) : "assign" === t2 ? a2 = function(e3) {
979
957
  if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
980
958
  return false;
981
- }(n2) : "copyTask" === t2 ? i2 = function(e3, t3) {
959
+ }(n2) : "copyTask" === t2 ? a2 = function(e3, t3) {
982
960
  let n3 = false;
983
961
  e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (n3 = true);
984
962
  t3 && (t3.props.base.state = n3 ? "" : "hidden");
985
963
  return true;
986
- }(n2, s2) : "addSigner" === t2 ? i2 = function(e3) {
964
+ }(n2, s2) : "addSigner" === t2 ? a2 = function(e3) {
987
965
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
988
966
  return false;
989
- }(n2) : "removeSigner" === t2 ? i2 = function(e3) {
967
+ }(n2) : "removeSigner" === t2 ? a2 = function(e3) {
990
968
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
991
969
  return false;
992
- }(n2) : "retrieveTask" === t2 ? i2 = function(e3) {
970
+ }(n2) : "retrieveTask" === t2 ? a2 = function(e3) {
993
971
  if (e3.processState && "END" !== e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
994
972
  if ("COMPLETED" !== e4.active) return false;
995
973
  if ("TYPE_READ" === e4.processingMode) return false;
@@ -997,13 +975,13 @@ function Oe(e2, t2, n2, o2, s2, a2) {
997
975
  return true;
998
976
  }(e3)) return true;
999
977
  return false;
1000
- }(n2) : "agreement" === t2 || "oppose" === t2 ? i2 = function(e3) {
978
+ }(n2) : "agreement" === t2 || "oppose" === t2 ? a2 = function(e3) {
1001
979
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
1002
980
  return false;
1003
- }(n2) : "kiken" === t2 ? i2 = function(e3) {
981
+ }(n2) : "kiken" === t2 ? a2 = function(e3) {
1004
982
  if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
1005
983
  return false;
1006
- }(n2) : "extractWorkflow" === t2 ? i2 = function(e3, t3, n3) {
984
+ }(n2) : "extractWorkflow" === t2 ? a2 = function(e3, t3, n3) {
1007
985
  var _a2;
1008
986
  const o3 = m(), s3 = o3 ? o3.loginName : null;
1009
987
  if (e3 == null ? void 0 : e3.processState) {
@@ -1011,11 +989,11 @@ function Oe(e2, t2, n2, o2, s2, a2) {
1011
989
  if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
1012
990
  }
1013
991
  return false;
1014
- }(n2, o2, a2) : "cancelExtractWorkflow" === t2 ? i2 = function(e3, t3, n3) {
992
+ }(n2, o2, i2) : "cancelExtractWorkflow" === t2 ? a2 = function(e3, t3, n3) {
1015
993
  const o3 = m(), s3 = o3 ? o3.loginName : null;
1016
994
  if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
1017
995
  return false;
1018
- }(n2, 0, a2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? i2 = Ue(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? i2 = function(e3) {
996
+ }(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = Ue(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
1019
997
  if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
1020
998
  return false;
1021
999
  }(n2) : function(e3, t3) {
@@ -1025,11 +1003,11 @@ function Oe(e2, t2, n2, o2, s2, a2) {
1025
1003
  t4 && (n3 = t4.taskComplete);
1026
1004
  return n3;
1027
1005
  }(t3);
1028
- }(n2, o2) && (i2 = "returnToPreviousTask" !== t2 || function(e3) {
1006
+ }(n2, o2) && (a2 = "returnToPreviousTask" !== t2 || function(e3) {
1029
1007
  if (e3.rebuttable) return true;
1030
1008
  return false;
1031
1009
  }(n2)));
1032
- if ((s2 == null ? void 0 : s2.check) && -1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask", "returnTaskTo"].indexOf(t2) && i2) {
1010
+ if ((s2 == null ? void 0 : s2.check) && -1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask", "returnTaskTo"].indexOf(t2) && a2) {
1033
1011
  if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
1034
1012
  e2.workflowOpinion.showOpinionBox = true;
1035
1013
  const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
@@ -1044,40 +1022,40 @@ function Oe(e2, t2, n2, o2, s2, a2) {
1044
1022
  e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
1045
1023
  }
1046
1024
  }
1047
- return e2.workflowOpinion, i2;
1025
+ return e2.workflowOpinion, a2;
1048
1026
  }
1049
1027
  function Ue(e2, t2, n2) {
1050
1028
  return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
1051
1029
  }
1052
- function Ae(e2, t2) {
1053
- e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Ee(e2, t2).then((t3) => {
1030
+ function Ee(e2, t2) {
1031
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, _e(e2, t2).then((t3) => {
1054
1032
  e2.isRefresh = true;
1055
1033
  });
1056
1034
  }
1057
- function Ee(e2, n2, s2) {
1058
- const a2 = e2.pageType;
1059
- if (a2 && "form" === a2) {
1035
+ function _e(e2, n2, s2) {
1036
+ const i2 = e2.pageType;
1037
+ if (i2 && "form" === i2) {
1060
1038
  e2.canClick = false;
1061
1039
  return o(e2) ? function(e3, n3, o2) {
1062
- return new Promise((s3, a3) => {
1040
+ return new Promise((s3, i3) => {
1063
1041
  var _a;
1064
- const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
1042
+ const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ke(e3);
1065
1043
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1066
1044
  void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1067
- const f2 = p2 ? p2.taskId : null, b2 = l2, w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1045
+ const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1068
1046
  if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1069
1047
  const t2 = {};
1070
1048
  e3.tableUuids.forEach((e4) => {
1071
1049
  const n4 = r(l2, u2, e4);
1072
1050
  t2[n4] = n4;
1073
- }), w2.listCodesMap = t2;
1051
+ }), b2.listCodesMap = t2;
1074
1052
  }
1075
- m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), w2.isMobile = B();
1076
- const C2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
1077
- T2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1078
- const h2 = H(e3.code, w2.id);
1079
- c.post(C2, w2).then(async (t2) => {
1080
- h2 && await _e(e3, w2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
1053
+ m2 && (b2.ids = De(m2)), f2 ? b2.taskId = f2 : d2 ? b2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (b2.withDataPermission = true), b2.isMobile = B();
1054
+ const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
1055
+ T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1056
+ const k2 = H(e3.code, b2.id);
1057
+ c.post(w2, b2).then(async (t2) => {
1058
+ k2 && await je(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, fe(t2, true, e3), e3.workflowRules = j(e3);
1081
1059
  const n4 = e3.pageType;
1082
1060
  n4 && "form" === n4 && function(e4) {
1083
1061
  (function(e5) {
@@ -1085,11 +1063,11 @@ function Ee(e2, n2, s2) {
1085
1063
  if (void 0 !== n5) for (let e6 = 0; e6 < n5.length; e6++) {
1086
1064
  const o3 = n5[e6].name;
1087
1065
  if (o3) if (0 === o3.indexOf("$") && o3.indexOf(".") > 0) {
1088
- const s4 = n5[e6], a4 = JSON.parse(JSON.stringify(s4)), i3 = o3.substring(1, o3.indexOf(".")), r2 = o3.substring(o3.indexOf(".") + 1);
1089
- if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: true }]);
1066
+ const s4 = n5[e6], i4 = JSON.parse(JSON.stringify(s4)), a3 = o3.substring(1, o3.indexOf(".")), r2 = o3.substring(o3.indexOf(".") + 1);
1067
+ if (i4.name = r2, i4 && "all_fields" === i4.name) false === i4.canEdit ? i4.rowIndexes ? t3.set(a3, [{ name: "all_fields", canEdit: false, rowIndexes: i4.rowIndexes }]) : t3.set(a3, [{ name: "all_fields", canEdit: false }]) : i4.rowIndexes ? t3.set(a3, [{ name: "all_fields", canEdit: true, rowIndexes: i4.rowIndexes }]) : t3.set(a3, [{ name: "all_fields", canEdit: true }]);
1090
1068
  else {
1091
- let e7 = t3.get(i3);
1092
- e7 || (e7 = []), e7.push(a4), t3.set(i3, e7);
1069
+ let e7 = t3.get(a3);
1070
+ e7 || (e7 = []), e7.push(i4), t3.set(a3, e7);
1093
1071
  }
1094
1072
  } else t3.set(o3, n5[e6]);
1095
1073
  }
@@ -1098,8 +1076,8 @@ function Ee(e2, n2, s2) {
1098
1076
  const t3 = e5.fieldPermissionMap, n5 = /* @__PURE__ */ new Map(), o3 = e5.actionPermissions;
1099
1077
  if (null != o3) {
1100
1078
  Object.keys(o3).forEach((e6) => {
1101
- const s4 = o3[e6], a4 = t3.get(e6);
1102
- if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) s4.canUpdate = false, s4.canAdd = false;
1079
+ const s4 = o3[e6], i4 = t3.get(e6);
1080
+ if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit) s4.canUpdate = false, s4.canAdd = false;
1103
1081
  else {
1104
1082
  s4 && 0 !== Object.keys(s4.deleteCondition).length || (s4.deleteCondition = null), s4 && 0 !== Object.keys(s4.updateCondition).length || (s4.updateCondition = null);
1105
1083
  const n6 = s4.canUpdate, o4 = s4.updateRowIndexes;
@@ -1110,35 +1088,35 @@ function Ee(e2, n2, s2) {
1110
1088
  }
1111
1089
  e5.actionPermissionMap = n5;
1112
1090
  }(e4);
1113
- }(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1091
+ }(e3), e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
1114
1092
  }).catch((t2) => {
1115
- e3.canClick = true, a3(t2);
1093
+ e3.canClick = true, i3(t2);
1116
1094
  });
1117
1095
  });
1118
1096
  }(e2, n2, s2) : function(e3, n3, o2) {
1119
- return new Promise((s3, a3) => {
1097
+ return new Promise((s3, i3) => {
1120
1098
  var _a;
1121
- const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
1099
+ const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ke(e3);
1122
1100
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1123
1101
  void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1124
- const f2 = p2 ? p2.taskId : null, b2 = l2, w2 = t(e3.backendUrl, e3.isTest), C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1125
- if (!C2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), m2 && (C2.ids = je(m2)), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), f2 && (C2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1102
+ const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1103
+ if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = De(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1126
1104
  const t2 = {};
1127
1105
  e3.tableUuids.forEach((e4) => {
1128
1106
  const n4 = r(l2, u2, e4);
1129
1107
  t2[n4] = n4;
1130
- }), C2.listCodesMap = t2;
1108
+ }), w2.listCodesMap = t2;
1131
1109
  }
1132
- e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), C2.isMobile = B();
1133
- const T2 = w2 + "/dsc/commons/gets", h2 = L();
1134
- h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
1135
- const y2 = H(e3.code, C2.id);
1136
- c.post(T2, C2).then(async (t2) => {
1137
- t2 && (y2 && await _e(e3, C2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1138
- const n4 = e3.customRules, o3 = e3.rules, a4 = D(e3, n4, o3);
1139
- e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), s3(t2);
1110
+ e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = B();
1111
+ const T2 = b2 + "/dsc/commons/gets", k2 = L();
1112
+ k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1113
+ const y2 = H(e3.code, w2.id);
1114
+ c.post(T2, w2).then(async (t2) => {
1115
+ t2 && (y2 && await je(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
1116
+ const n4 = e3.customRules, o3 = e3.rules, i4 = D(e3, n4, o3);
1117
+ e3.rules = i4, e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
1140
1118
  }).catch((t2) => {
1141
- e3.canClick = true, a3(t2);
1119
+ e3.canClick = true, i3(t2);
1142
1120
  });
1143
1121
  });
1144
1122
  }(e2, n2, s2);
@@ -1147,17 +1125,17 @@ function Ee(e2, n2, s2) {
1147
1125
  e3(true);
1148
1126
  });
1149
1127
  }
1150
- async function _e(e2, t2, n2) {
1128
+ async function je(e2, t2, n2) {
1151
1129
  try {
1152
1130
  await p.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), n2.entity = G(e2.code, t2, n2.entity);
1153
1131
  } catch (e3) {
1154
1132
  }
1155
1133
  J(e2.code, t2);
1156
1134
  }
1157
- function je(e2) {
1135
+ function De(e2) {
1158
1136
  return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
1159
1137
  }
1160
- function De(e2) {
1138
+ function We(e2) {
1161
1139
  const t2 = e2.props.setValueList;
1162
1140
  if (t2) {
1163
1141
  if (s(t2) && t2.length > 0) return JSON.stringify(t2);
@@ -1165,81 +1143,82 @@ function De(e2) {
1165
1143
  }
1166
1144
  return null;
1167
1145
  }
1168
- function We(e2, t2) {
1169
- const n2 = e2.entity ? e2.entity : {}, o2 = { data: n2.data, page: n2.page }, s2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
1170
- return c.post(a2, s2);
1146
+ function Le(e2, t2) {
1147
+ const n2 = e2.entity ? e2.entity : {}, o2 = { data: n2.data, page: n2.page }, s2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
1148
+ return c.post(i2, s2);
1171
1149
  }
1172
- function Le(e2) {
1150
+ function Be(e2) {
1173
1151
  const t2 = e2.code, n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
1174
1152
  return c.get(n2);
1175
1153
  }
1176
- function Be(e2) {
1154
+ function Fe(e2) {
1177
1155
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
1178
1156
  return c.delete(t2);
1179
1157
  }
1180
- function Fe(e2) {
1181
- e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {}, $e(e2.exportNoticeInfo, e2.backendUrl, e2.code);
1158
+ function Ve(e2) {
1159
+ e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {}, qe(e2.exportNoticeInfo, e2.backendUrl, e2.code);
1182
1160
  }
1183
- function Ve(e2, n2, o2) {
1161
+ function $e(e2, n2, o2) {
1184
1162
  e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
1185
- "Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? He(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && $e(e2, n2, o2));
1163
+ "Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? Ge(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && qe(e2, n2, o2));
1186
1164
  }, message: () => F(V, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
1187
- s2.serverPath ? function(e3, n3, o3, s3, a2, i2) {
1188
- He(a2, i2, o3, s3);
1189
- const r2 = f(), c2 = t(a2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
1165
+ s2.serverPath ? function(e3, n3, o3, s3, i2, a2) {
1166
+ Ge(i2, a2, o3, s3);
1167
+ const r2 = f(), c2 = t(i2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
1190
1168
  window.open(l2);
1191
- }(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : He(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
1169
+ }(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : Ge(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
1192
1170
  } }) }) : (null != e2.noticeComponent && (e2.noticeComponent.close(), e2.noticeComponent = null), e2.noticeInterval && (clearInterval(e2.noticeInterval), e2.noticeInterval = null));
1193
1171
  }
1194
- function $e(e2, t2, n2) {
1172
+ function qe(e2, t2, n2) {
1195
1173
  e2.noticeInterval || (e2.noticeInterval = setInterval(() => {
1196
1174
  e2.noticeComponent || function(e3, t3, n3) {
1197
- qe(t3, n3).then((o2) => {
1198
- e3.lastFileTask = o2, Ve(e3, t3, n3);
1175
+ He(t3, n3).then((o2) => {
1176
+ e3.lastFileTask = o2, $e(e3, t3, n3);
1199
1177
  });
1200
1178
  }(e2, t2, n2);
1201
1179
  }, 3e3));
1202
1180
  }
1203
- function qe(e2, t2) {
1181
+ function He(e2, t2) {
1204
1182
  return E(e2, t2);
1205
1183
  }
1206
- function He(e2, t2, n2, o2) {
1184
+ function Ge(e2, t2, n2, o2) {
1207
1185
  _(e2, n2).then(() => {
1208
1186
  !function(e3, t3, n3) {
1209
- qe(t3, n3).then((o3) => {
1210
- e3.lastFileTask = o3, Ve(e3, t3, n3);
1187
+ He(t3, n3).then((o3) => {
1188
+ e3.lastFileTask = o3, $e(e3, t3, n3);
1211
1189
  });
1212
1190
  }(o2, e2, t2);
1213
1191
  });
1214
1192
  }
1215
1193
  export {
1216
- ne as dealAfterOperate,
1217
- me as dealCompleteTaskParam,
1218
- Be as deleteChartCondition,
1194
+ Q as checkAndTipFileUploading,
1195
+ oe as dealAfterOperate,
1196
+ fe as dealCompleteTaskParam,
1197
+ Fe as deleteChartCondition,
1219
1198
  he as doAddSigner,
1220
- ke as doAddTransactor,
1199
+ ye as doAddTransactor,
1221
1200
  be as doAssign,
1222
- ye as doCreateCopyTask,
1223
- Fe as doFileTaskFunc,
1224
- ue as doImportFinally,
1225
- Re as doRemoveSigners,
1226
- Se as doRemoveTransactors,
1227
- ve as doReturnTaskTo,
1201
+ Pe as doCreateCopyTask,
1202
+ Ve as doFileTaskFunc,
1203
+ pe as doImportFinally,
1204
+ Me as doRemoveSigners,
1205
+ Ne as doRemoveTransactors,
1206
+ Se as doReturnTaskTo,
1228
1207
  K as exportFormReport,
1229
- Ne as extractWorkflowFunc,
1230
- Te as getAdditionalParamMap,
1231
- Ee as getFormData,
1232
- xe as getRemoveSigner,
1233
- Me as getRemoveTransactor,
1234
- te as getSaveFormRequest,
1235
- ee as getSaveFormRequestWithRow,
1208
+ Oe as extractWorkflowFunc,
1209
+ ke as getAdditionalParamMap,
1210
+ _e as getFormData,
1211
+ Re as getRemoveSigner,
1212
+ xe as getRemoveTransactor,
1213
+ ne as getSaveFormRequest,
1214
+ te as getSaveFormRequestWithRow,
1236
1215
  Ie as getTaskInformitions,
1237
- Oe as isVisibleWorkflowButton,
1238
- pe as judgeDataNumber,
1239
- Le as listChartConditions,
1240
- ce as refreshFormOrListPage,
1241
- Ae as refreshPage,
1242
- We as saveChartConditionBase,
1216
+ Ae as isVisibleWorkflowButton,
1217
+ de as judgeDataNumber,
1218
+ Be as listChartConditions,
1219
+ le as refreshFormOrListPage,
1220
+ Ee as refreshPage,
1221
+ Le as saveChartConditionBase,
1243
1222
  Y as standardEvents,
1244
- ie as updateValuesWhenCloseDialog
1223
+ re as updateValuesWhenCloseDialog
1245
1224
  };