super-page-runtime 2.3.38-sit4 → 2.3.39-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ interface eventBus {
2
2
  $on: any;
3
3
  $emit: any;
4
4
  $off: any;
5
+ $has: (event: string) => boolean;
5
6
  }
6
7
  declare const bus: eventBus;
7
8
  export default bus;
@@ -1,5 +1,8 @@
1
- import o from "mitt";
2
- const t = o(), f = { $on: t.on, $emit: t.emit, $off: t.off };
1
+ import t from "mitt";
2
+ const o = t(), r = { $on: o.on, $emit: o.emit, $off: o.off, $has: (t2) => {
3
+ const r2 = o.all.get(t2);
4
+ return Array.isArray(r2) && r2.length > 0;
5
+ } };
3
6
  export {
4
- f as default
7
+ r as default
5
8
  };
@@ -54,7 +54,7 @@ export declare const standardEvents: {
54
54
  removeTransactor: (params: any) => void;
55
55
  };
56
56
  export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
57
- export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
57
+ export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
58
58
  export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
59
59
  /**
60
60
  * 按钮执行后页面处理方式:刷新、关闭弹框等等
@@ -8,14 +8,14 @@ import T from "../eventBus.js";
8
8
  import k from "axios";
9
9
  import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
10
10
  import { setStoreInfo as I } from "../store-util.js";
11
- import { getPermissionCodes as v, getDefaultValue as R, getModelFields as S } from "../page-init-util.js";
12
- import { caculateShowCondition as M, updateChartDatasources as x, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
11
+ import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
12
+ import { caculateShowCondition as S, updateChartDatasources as M, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
13
13
  import U from "./print-label.js";
14
14
  import { getTableNameByTableUuid as A, 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
- import { usePageContextStore as B } from "../page-store.js";
18
- import { isMobileBrowser as L } from "agilebuilder-ui/src/utils/common-util";
17
+ import { usePageContextStore as L } from "../page-store.js";
18
+ import { isMobileBrowser as B } from "agilebuilder-ui/src/utils/common-util";
19
19
  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";
@@ -63,7 +63,7 @@ const Y = { save: function(e2) {
63
63
  const P2 = l2.props.base.isSafeDelete;
64
64
  P2 && (k2.isSafeDelete = P2);
65
65
  const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
66
- I2 && (k2.currentOperation = I2), k2.isMobile = L(), c.delete(g2, { data: k2 }).then((e4) => {
66
+ I2 && (k2.currentOperation = I2), k2.isMobile = B(), c.delete(g2, { data: k2 }).then((e4) => {
67
67
  const t2 = w(r2, m2);
68
68
  t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
69
69
  }).catch((e4) => {
@@ -78,34 +78,38 @@ const Y = { save: function(e2) {
78
78
  !function(e3) {
79
79
  var _a, _b, _c;
80
80
  const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, i2 = a(s2.templateFiles, n2, o2);
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, p2 = c2;
84
- let 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");
86
- const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
87
- m2 && (d2 += "&logSettingText=" + m2.join(""));
88
- l2 && (d2 += "&systemCode=" + l2);
89
- const b2 = e3.listCode;
90
- b2 && (d2 += "&listCode=" + b2);
91
- n2.beanName && (d2 += "&beanName=" + n2.beanName);
92
- const C2 = v(o2, n2);
93
- C2 && (d2 += "&functionCode=" + C2);
94
- n2.tableName && (d2 += "&tableName=" + n2.tableName);
95
- n2.code && (d2 += "&pageCode=" + n2.code);
96
- n2.version && (d2 += "&pageVersion=" + n2.version);
97
- const w2 = f();
98
- w2 && (d2 += "&JWT=" + w2);
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=" + L();
102
- const k2 = "_RUN_CURRENT_ROLE", h2 = g(k2);
103
- h2 && (d2 += "&" + k2 + "=" + h2);
81
+ let r2, l2;
82
+ i2 && i2.length > 0 && (r2 = i2[0].templateUuid, l2 = i2[0].templateName);
83
+ const u2 = n2.systemCode, p2 = n2.backendUrl;
84
+ let d2 = l2, 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 && (m2 += "&showName=" + encodeURI(n2.label) + ".xlsx", d2 = n2.label + ".xlsx");
86
+ const b2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
87
+ b2 && (m2 += "&logSettingText=" + b2.join(""));
88
+ u2 && (m2 += "&systemCode=" + u2);
89
+ const C2 = e3.listCode;
90
+ C2 && (m2 += "&listCode=" + C2);
91
+ n2.beanName && (m2 += "&beanName=" + n2.beanName);
92
+ const w2 = v(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 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.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.open(y2 + "/dsc/commons/download-files" + d2);
107
+ const P2 = t(p2, n2.isTest);
108
+ c.get(P2 + "/dsc/commons/download-files" + m2, { responseType: "blob" }).then((e4) => {
109
+ var _a2;
110
+ const t2 = d2 || "template.xlsx", n3 = { xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xls: "application/vnd.ms-excel", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", doc: "application/msword", pdf: "application/pdf", csv: "text/csv" }[((_a2 = t2.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) ?? "xlsx"] ?? "application/octet-stream", o3 = new Blob([e4], { type: n3 }), s3 = URL.createObjectURL(o3), a2 = document.createElement("a");
111
+ a2.style.display = "none", a2.href = s3, a2.setAttribute("download", t2), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2), URL.revokeObjectURL(s3);
112
+ });
109
113
  }(e2);
110
114
  }, import: function(e2) {
111
115
  const t2 = e2.pageContext.code + "_";
@@ -284,7 +288,7 @@ const Y = { save: function(e2) {
284
288
  }, lineEditCreate: function(e2) {
285
289
  return function(e3) {
286
290
  const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = w(t2, n2);
287
- o2 && (e3.getDefaultValueFunc = R, o2.createRow(e3.listCode, {}, e3));
291
+ o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
288
292
  }(e2);
289
293
  }, printLabel: function(e2) {
290
294
  return function(e3) {
@@ -327,7 +331,7 @@ const Y = { save: function(e2) {
327
331
  u2.additionalParamMap = p2;
328
332
  const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
329
333
  d2 && (u2.currentOperation = d2);
330
- u2.isMobile = L(), 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("-~") : "";
334
+ 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("-~") : "";
331
335
  const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
332
336
  X();
333
337
  k.post(f2, u2, { responseType: "blob" }).then((e4) => {
@@ -360,7 +364,7 @@ function z(e2) {
360
364
  let s2 = null;
361
365
  o2 && o2.runtime && (s2 = o2.runtime.props);
362
366
  const a2 = s2 ? s2.state : void 0;
363
- s2 && (s2.state = "disabled"), x(t2, n2, void 0, e2.isInitChart).then(() => {
367
+ s2 && (s2.state = "disabled"), M(t2, n2, void 0, e2.isInitChart).then(() => {
364
368
  s2 && (s2.state = a2);
365
369
  }).catch(() => {
366
370
  s2 && (s2.state = a2);
@@ -370,12 +374,22 @@ function K(e2, n2, s2, a2) {
370
374
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
371
375
  e2.clickUuid = n2.uuid, e2.canClick = false;
372
376
  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, C2 = { 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 };
377
+ if (e2.tableUuids && e2.tableUuids.length > 0) {
378
+ const t2 = {};
379
+ e2.tableUuids.forEach((n3) => {
380
+ const o2 = w(e2, n3);
381
+ if (o2) {
382
+ const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
383
+ n4 && n4.length > 0 && (t2[e3] = n4);
384
+ }
385
+ }), C2.subTableColumns = t2;
386
+ }
373
387
  l2 && (C2.logSettingText = l2.join(""));
374
- const w2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
375
- w2 && (C2.currentOperation = w2), C2.isMobile = L();
376
- const T2 = Te(e2);
377
- let h2;
378
- C2.additionalParamMap = T2, C2.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) + "", C2.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("-~") : "", h2 = a2 ? function(e3, n3, o2, s3) {
388
+ const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
389
+ T2 && (C2.currentOperation = T2), C2.isMobile = B();
390
+ const h2 = Te(e2);
391
+ let y2;
392
+ C2.additionalParamMap = h2, C2.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) + "", C2.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) {
379
393
  return new Promise((a3, i3) => {
380
394
  const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
381
395
  X();
@@ -401,7 +415,7 @@ function K(e2, n2, s2, a2) {
401
415
  i3(e4);
402
416
  });
403
417
  });
404
- }(r2, f2, C2, e2.isTest), h2 && h2.then(() => {
418
+ }(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
405
419
  P(e2, n2);
406
420
  }).catch((t2) => {
407
421
  window.$message.error("导出失败..."), P(e2, n2);
@@ -452,16 +466,16 @@ function Z(e2, t2, n2, a2, i2, r2, c2) {
452
466
  const T2 = Te(e2);
453
467
  f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
454
468
  const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
455
- return k2 && (f2.currentOperation = k2), f2.isMobile = L(), f2;
469
+ return k2 && (f2.currentOperation = k2), f2.isMobile = B(), f2;
456
470
  }
457
- function ee(e2, o2, s2, a2, i2, r2, l2, u2) {
458
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Z(e2, o2, a2, i2, r2, null, l2);
459
- return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, o3, s3, a3, i3, r3) {
471
+ function ee(e2, o2, s2, a2, i2, r2, l2, u2, p2) {
472
+ const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2, a2, i2, r2, null, l2);
473
+ return u2 && u2.tableName && (f2.tableName = u2.tableName), p2 && (f2.isWorkflowEntity = false), function(e3, o3, s3, a3, i3, r3) {
460
474
  const l3 = t(o3, r3);
461
475
  let u3, p3 = l3 + a3;
462
476
  p3 = n(p3, e3, o3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
463
477
  return u3;
464
- }(p2, d2, m2, s2, l2, e2.isTest);
478
+ }(d2, m2, f2, s2, l2, e2.isTest);
465
479
  }
466
480
  function te(e2, t2, n2, o2, s2, a2) {
467
481
  return ee(e2, t2, n2, o2, s2, a2, null, null);
@@ -516,8 +530,8 @@ function ae(e2, t2, n2, o2) {
516
530
  const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
517
531
  if ("openWindow" === s2 || "newTab" === s2) window.parent ? window.parent.close() : window.close();
518
532
  else {
519
- 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) + "_";
520
- T.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 });
533
+ 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";
534
+ T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
521
535
  }
522
536
  }
523
537
  function ie(e2, t2, n2, o2, s2) {
@@ -530,7 +544,7 @@ function ie(e2, t2, n2, o2, s2) {
530
544
  Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
531
545
  const t4 = e4.source;
532
546
  if (!t4) return;
533
- const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = S(null, i2);
547
+ const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = R(null, i2);
534
548
  O(n3.entity, r2, a3);
535
549
  });
536
550
  }
@@ -601,7 +615,7 @@ function ue(e2, s2) {
601
615
  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();
602
616
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
603
617
  const g2 = (_b = (_a = i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
604
- g2 && f2.append("currentOperation", g2), f2.append("isMobile", L()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
618
+ g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
605
619
  const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
606
620
  b2 && f2.append("importDuplicateRule", b2);
607
621
  const C2 = a2.judgeHeavyList;
@@ -618,15 +632,15 @@ function ue(e2, s2) {
618
632
  null != y2 && f2.append("isWorkflowEntity", y2 + "");
619
633
  const I2 = v(i2, a2);
620
634
  I2 && f2.append("functionCode", I2);
621
- const R2 = Te(a2);
622
- f2.append("additionalParamMapStr", JSON.stringify(R2));
623
- const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
624
- f2.append("isPermission", S2 + "");
625
- const M2 = a2.systemCode;
626
- M2 && f2.append("systemCode", M2);
627
- const x2 = a2.backendUrl;
628
- let N2 = t(x2, a2.isTest) + "/dsc/commons/import-data";
629
- N2 = n(N2, M2, x2, a2.isTest), c.post(N2, f2).then((e3) => {
635
+ const x2 = Te(a2);
636
+ f2.append("additionalParamMapStr", JSON.stringify(x2));
637
+ const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
638
+ f2.append("isPermission", R2 + "");
639
+ const S2 = a2.systemCode;
640
+ S2 && f2.append("systemCode", S2);
641
+ const M2 = a2.backendUrl;
642
+ let N2 = t(M2, a2.isTest) + "/dsc/commons/import-data";
643
+ N2 = n(N2, S2, M2, a2.isTest), c.post(N2, f2).then((e3) => {
630
644
  if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
631
645
  else {
632
646
  let t2 = false;
@@ -662,7 +676,7 @@ function de(e2) {
662
676
  const m2 = n2.props.base.successOperation;
663
677
  m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
664
678
  const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
665
- return f2 && (c2.currentOperation = f2), c2.isMobile = L(), c2;
679
+ return f2 && (c2.currentOperation = f2), c2.isMobile = B(), c2;
666
680
  }
667
681
  function me(e2, t2, n2, o2, s2) {
668
682
  const a2 = n2.code, i2 = n2.version;
@@ -722,7 +736,7 @@ function ge(e2) {
722
736
  let n3 = false;
723
737
  if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
724
738
  const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
725
- n3 = M(t3, s2);
739
+ n3 = S(t3, s2);
726
740
  }
727
741
  true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
728
742
  } else t2(true);
@@ -741,7 +755,7 @@ function Ce(e2) {
741
755
  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 };
742
756
  c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = we(e2);
743
757
  const l2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
744
- return l2 && (c2.currentOperation = l2), c2.isMobile = L(), c2;
758
+ return l2 && (c2.currentOperation = l2), c2.isMobile = B(), c2;
745
759
  }
746
760
  function we(e2) {
747
761
  var _a, _b, _c;
@@ -753,7 +767,7 @@ function we(e2) {
753
767
  t2 = o2.config;
754
768
  break;
755
769
  }
756
- if (M(e2.pageContext, o2.conditions)) {
770
+ if (S(e2.pageContext, o2.conditions)) {
757
771
  t2 = o2.config;
758
772
  break;
759
773
  }
@@ -806,7 +820,7 @@ async function ye(e2, o2) {
806
820
  if (void 0 === n3 || true === n3) {
807
821
  n3 = true;
808
822
  const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
809
- n3 = M(t3, s3);
823
+ n3 = S(t3, s3);
810
824
  }
811
825
  true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
812
826
  t2(e4);
@@ -864,14 +878,14 @@ function ve(e2, n2) {
864
878
  P(o2, s2);
865
879
  });
866
880
  }
867
- function Re(e2) {
881
+ function xe(e2) {
868
882
  const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
869
883
  let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
870
884
  const r2 = de(e2);
871
885
  if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
872
886
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
873
887
  }
874
- function Se(e2, o2) {
888
+ function Re(e2, o2) {
875
889
  if (o2) {
876
890
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
877
891
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
@@ -884,14 +898,14 @@ function Se(e2, o2) {
884
898
  });
885
899
  }
886
900
  }
887
- function Me(e2) {
901
+ function Se(e2) {
888
902
  const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
889
903
  let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
890
904
  const r2 = de(e2);
891
905
  if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
892
906
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
893
907
  }
894
- function xe(e2, o2) {
908
+ function Me(e2, o2) {
895
909
  if (o2) {
896
910
  const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
897
911
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
@@ -1011,13 +1025,13 @@ function Oe(e2, t2, n2, o2, s2, a2) {
1011
1025
  if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
1012
1026
  e2.workflowOpinion.showOpinionBox = true;
1013
1027
  const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
1014
- t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
1028
+ t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = S(e2, t4));
1015
1029
  }
1016
1030
  let t3 = false;
1017
1031
  if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
1018
1032
  if (t3 = true, true === t3) {
1019
1033
  const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
1020
- n3 && n3.length > 0 && (t3 = M(e2, n3));
1034
+ n3 && n3.length > 0 && (t3 = S(e2, n3));
1021
1035
  }
1022
1036
  e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
1023
1037
  }
@@ -1038,6 +1052,7 @@ function Ee(e2, n2, s2) {
1038
1052
  e2.canClick = false;
1039
1053
  return o(e2) ? function(e3, n3, o2) {
1040
1054
  return new Promise((s3, a3) => {
1055
+ var _a;
1041
1056
  const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
1042
1057
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1043
1058
  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);
@@ -1049,8 +1064,8 @@ function Ee(e2, n2, s2) {
1049
1064
  t2[n4] = n4;
1050
1065
  }), C2.listCodesMap = t2;
1051
1066
  }
1052
- m2 && (C2.ids = je(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), C2.isMobile = L();
1053
- const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
1067
+ m2 && (C2.ids = je(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), C2.isMobile = B();
1068
+ const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
1054
1069
  T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1055
1070
  const k2 = H(e3.code, C2.id);
1056
1071
  c.post(w2, C2).then(async (t2) => {
@@ -1094,19 +1109,20 @@ function Ee(e2, n2, s2) {
1094
1109
  });
1095
1110
  }(e2, n2, s2) : function(e3, n3, o2) {
1096
1111
  return new Promise((s3, a3) => {
1112
+ var _a;
1097
1113
  const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
1098
1114
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1099
1115
  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);
1100
1116
  const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1101
- if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = je(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1117
+ if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = je(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 || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1102
1118
  const t2 = {};
1103
1119
  e3.tableUuids.forEach((e4) => {
1104
1120
  const n4 = r(l2, u2, e4);
1105
1121
  t2[n4] = n4;
1106
1122
  }), w2.listCodesMap = t2;
1107
1123
  }
1108
- e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = L();
1109
- const T2 = C2 + "/dsc/commons/gets", k2 = B();
1124
+ e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = B();
1125
+ const T2 = C2 + "/dsc/commons/gets", k2 = L();
1110
1126
  k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
1111
1127
  const y2 = H(e3.code, w2.id);
1112
1128
  c.post(T2, w2).then(async (t2) => {
@@ -1145,11 +1161,11 @@ function We(e2, t2) {
1145
1161
  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";
1146
1162
  return c.post(a2, s2);
1147
1163
  }
1148
- function Be(e2) {
1164
+ function Le(e2) {
1149
1165
  const t2 = e2.code, n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
1150
1166
  return c.get(n2);
1151
1167
  }
1152
- function Le(e2) {
1168
+ function Be(e2) {
1153
1169
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
1154
1170
  return c.delete(t2);
1155
1171
  }
@@ -1191,28 +1207,28 @@ function He(e2, t2, n2, o2) {
1191
1207
  export {
1192
1208
  ne as dealAfterOperate,
1193
1209
  me as dealCompleteTaskParam,
1194
- Le as deleteChartCondition,
1210
+ Be as deleteChartCondition,
1195
1211
  ke as doAddSigner,
1196
1212
  he as doAddTransactor,
1197
1213
  be as doAssign,
1198
1214
  ye as doCreateCopyTask,
1199
1215
  Fe as doFileTaskFunc,
1200
1216
  ue as doImportFinally,
1201
- Se as doRemoveSigners,
1202
- xe as doRemoveTransactors,
1217
+ Re as doRemoveSigners,
1218
+ Me as doRemoveTransactors,
1203
1219
  ve as doReturnTaskTo,
1204
1220
  K as exportFormReport,
1205
1221
  Ne as extractWorkflowFunc,
1206
1222
  Te as getAdditionalParamMap,
1207
1223
  Ee as getFormData,
1208
- Re as getRemoveSigner,
1209
- Me as getRemoveTransactor,
1224
+ xe as getRemoveSigner,
1225
+ Se as getRemoveTransactor,
1210
1226
  te as getSaveFormRequest,
1211
1227
  ee as getSaveFormRequestWithRow,
1212
1228
  Ie as getTaskInformitions,
1213
1229
  Oe as isVisibleWorkflowButton,
1214
1230
  pe as judgeDataNumber,
1215
- Be as listChartConditions,
1231
+ Le as listChartConditions,
1216
1232
  ce as refreshFormOrListPage,
1217
1233
  Ae as refreshPage,
1218
1234
  We as saveChartConditionBase,