super-page-runtime 2.3.41-sit1 → 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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -47
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +53 -52
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +10 -10
- package/package.json +2 -2
|
@@ -9,9 +9,9 @@ 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 v } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as I, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
|
|
12
|
-
import { caculateShowCondition as
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as x, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
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";
|
|
@@ -51,7 +51,7 @@ const Y = { save: function(e2) {
|
|
|
51
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 =
|
|
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
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 };
|
|
@@ -286,7 +286,8 @@ const Y = { save: function(e2) {
|
|
|
286
286
|
let t2 = null;
|
|
287
287
|
try {
|
|
288
288
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
289
|
-
} catch (
|
|
289
|
+
} catch (t3) {
|
|
290
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
290
291
|
}
|
|
291
292
|
A.printLabel(e3, t2);
|
|
292
293
|
}(e2);
|
|
@@ -355,7 +356,7 @@ function z(e2) {
|
|
|
355
356
|
let s2 = null;
|
|
356
357
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
357
358
|
const i2 = s2 ? s2.state : void 0;
|
|
358
|
-
s2 && (s2.state = "disabled"),
|
|
359
|
+
s2 && (s2.state = "disabled"), x(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
359
360
|
s2 && (s2.state = i2);
|
|
360
361
|
}).catch(() => {
|
|
361
362
|
s2 && (s2.state = i2);
|
|
@@ -480,11 +481,10 @@ function oe(t2, n2, o2, s2, i2) {
|
|
|
480
481
|
let i3 = n3.props.base.successOperation;
|
|
481
482
|
const a3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
482
483
|
i3 || ce.includes(n3.name) || (i3 = "refresh");
|
|
483
|
-
if ("refresh" === i3) {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
484
|
+
if ("refresh" === i3) if (r2) {
|
|
485
|
+
w(t3, r2).refresh();
|
|
486
|
+
} else console.error("tableUuid is empty");
|
|
487
|
+
else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
488
488
|
const s4 = e(t3.entity.page);
|
|
489
489
|
let i4 = o3;
|
|
490
490
|
i4 || (i4 = {}), Object.assign(s4, i4), ae(t3, n3, s4, a3);
|
|
@@ -518,7 +518,7 @@ function ie(e2, t2, n2) {
|
|
|
518
518
|
const o2 = t2.props.base.successOperation;
|
|
519
519
|
if (!o2 || null === o2) return;
|
|
520
520
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
521
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ?
|
|
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);
|
|
522
522
|
}
|
|
523
523
|
function ae(e2, t2, n2, o2) {
|
|
524
524
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -556,10 +556,10 @@ function le(e2, t2, n2, o2) {
|
|
|
556
556
|
const n3 = y(e2, t2);
|
|
557
557
|
if (n3) {
|
|
558
558
|
w(e2, n3).refresh();
|
|
559
|
-
}
|
|
559
|
+
} else console.error("tableUuid is empty");
|
|
560
560
|
} else if (i2 && "form" === i2) {
|
|
561
561
|
const t3 = e2.entity.data;
|
|
562
|
-
|
|
562
|
+
Ee(e2, t3.ID ? t3.ID : t3.id);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -573,7 +573,7 @@ function ue(e2, o2, s2, i2) {
|
|
|
573
573
|
let T2 = d2.tableName;
|
|
574
574
|
if (o2) {
|
|
575
575
|
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
576
|
-
T2 =
|
|
576
|
+
T2 = U(d2, t2);
|
|
577
577
|
} else $(d2.code, d2.entity.data);
|
|
578
578
|
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
579
579
|
return new Promise((g3, C3) => {
|
|
@@ -601,7 +601,7 @@ function ue(e2, o2, s2, i2) {
|
|
|
601
601
|
}
|
|
602
602
|
function pe(e2, s2) {
|
|
603
603
|
var _a, _b, _c;
|
|
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 =
|
|
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();
|
|
605
605
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
606
606
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
607
607
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -625,11 +625,11 @@ function pe(e2, s2) {
|
|
|
625
625
|
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
626
626
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
627
627
|
f2.append("isPermission", R2 + "");
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
let N2 = t(
|
|
632
|
-
N2 = n(N2,
|
|
628
|
+
const M2 = i2.systemCode;
|
|
629
|
+
M2 && f2.append("systemCode", M2);
|
|
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
633
|
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Ve(i2);
|
|
634
634
|
else {
|
|
635
635
|
let t2 = false;
|
|
@@ -661,7 +661,7 @@ function me(e2) {
|
|
|
661
661
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
662
662
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
663
663
|
const d2 = ke(t2);
|
|
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
|
|
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参数类型错误"));
|
|
665
665
|
const m2 = n2.props.base.successOperation;
|
|
666
666
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
667
667
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -722,7 +722,7 @@ function Ce(e2) {
|
|
|
722
722
|
let n3 = false;
|
|
723
723
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
724
724
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
725
|
-
n3 =
|
|
725
|
+
n3 = M(t3, s2);
|
|
726
726
|
}
|
|
727
727
|
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
728
728
|
} else t2(true);
|
|
@@ -753,7 +753,7 @@ function Te(e2) {
|
|
|
753
753
|
t2 = o2.config;
|
|
754
754
|
break;
|
|
755
755
|
}
|
|
756
|
-
if (
|
|
756
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
757
757
|
t2 = o2.config;
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
@@ -806,7 +806,7 @@ async function Pe(e2, o2) {
|
|
|
806
806
|
if (void 0 === n3 || true === n3) {
|
|
807
807
|
n3 = true;
|
|
808
808
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
809
|
-
n3 =
|
|
809
|
+
n3 = M(t3, s3);
|
|
810
810
|
}
|
|
811
811
|
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
812
|
t2(e4);
|
|
@@ -871,7 +871,7 @@ function Re(e2) {
|
|
|
871
871
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
872
872
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Me(e2, o2) {
|
|
875
875
|
if (o2) {
|
|
876
876
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
877
877
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -884,7 +884,7 @@ function xe(e2, o2) {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function xe(e2) {
|
|
888
888
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
889
889
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
890
890
|
const r2 = me(e2);
|
|
@@ -993,7 +993,7 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
993
993
|
const o3 = m(), s3 = o3 ? o3.loginName : null;
|
|
994
994
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
|
|
995
995
|
return false;
|
|
996
|
-
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 =
|
|
996
|
+
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = Ue(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
|
|
997
997
|
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
998
998
|
return false;
|
|
999
999
|
}(n2) : function(e3, t3) {
|
|
@@ -1011,23 +1011,23 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
1011
1011
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1012
1012
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1013
1013
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
1014
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
1014
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
1015
1015
|
}
|
|
1016
1016
|
let t3 = false;
|
|
1017
1017
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
1018
1018
|
if (t3 = true, true === t3) {
|
|
1019
1019
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
1020
|
-
n3 && n3.length > 0 && (t3 =
|
|
1020
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
1021
1021
|
}
|
|
1022
1022
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
return a2;
|
|
1025
|
+
return e2.workflowOpinion, a2;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Ue(e2, t2, n2) {
|
|
1028
1028
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Ee(e2, t2) {
|
|
1031
1031
|
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, _e(e2, t2).then((t3) => {
|
|
1032
1032
|
e2.isRefresh = true;
|
|
1033
1033
|
});
|
|
@@ -1043,7 +1043,7 @@ function _e(e2, n2, s2) {
|
|
|
1043
1043
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1044
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);
|
|
1045
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 };
|
|
1046
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1046
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1047
1047
|
const t2 = {};
|
|
1048
1048
|
e3.tableUuids.forEach((e4) => {
|
|
1049
1049
|
const n4 = r(l2, u2, e4);
|
|
@@ -1100,7 +1100,7 @@ function _e(e2, n2, s2) {
|
|
|
1100
1100
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1101
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);
|
|
1102
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 || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
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) {
|
|
1104
1104
|
const t2 = {};
|
|
1105
1105
|
e3.tableUuids.forEach((e4) => {
|
|
1106
1106
|
const n4 = r(l2, u2, e4);
|
|
@@ -1179,7 +1179,7 @@ function qe(e2, t2, n2) {
|
|
|
1179
1179
|
}, 3e3));
|
|
1180
1180
|
}
|
|
1181
1181
|
function He(e2, t2) {
|
|
1182
|
-
return
|
|
1182
|
+
return E(e2, t2);
|
|
1183
1183
|
}
|
|
1184
1184
|
function Ge(e2, t2, n2, o2) {
|
|
1185
1185
|
_(e2, n2).then(() => {
|
|
@@ -1201,7 +1201,7 @@ export {
|
|
|
1201
1201
|
Pe as doCreateCopyTask,
|
|
1202
1202
|
Ve as doFileTaskFunc,
|
|
1203
1203
|
pe as doImportFinally,
|
|
1204
|
-
|
|
1204
|
+
Me as doRemoveSigners,
|
|
1205
1205
|
Ne as doRemoveTransactors,
|
|
1206
1206
|
Se as doReturnTaskTo,
|
|
1207
1207
|
K as exportFormReport,
|
|
@@ -1209,7 +1209,7 @@ export {
|
|
|
1209
1209
|
ke as getAdditionalParamMap,
|
|
1210
1210
|
_e as getFormData,
|
|
1211
1211
|
Re as getRemoveSigner,
|
|
1212
|
-
|
|
1212
|
+
xe as getRemoveTransactor,
|
|
1213
1213
|
ne as getSaveFormRequest,
|
|
1214
1214
|
te as getSaveFormRequestWithRow,
|
|
1215
1215
|
Ie as getTaskInformitions,
|
|
@@ -1217,7 +1217,7 @@ export {
|
|
|
1217
1217
|
de as judgeDataNumber,
|
|
1218
1218
|
Be as listChartConditions,
|
|
1219
1219
|
le as refreshFormOrListPage,
|
|
1220
|
-
|
|
1220
|
+
Ee as refreshPage,
|
|
1221
1221
|
Le as saveChartConditionBase,
|
|
1222
1222
|
Y as standardEvents,
|
|
1223
1223
|
re as updateValuesWhenCloseDialog
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
3
|
import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
|
|
4
|
-
import { getI18n as
|
|
5
|
-
import { getAdditionalParamMap as
|
|
4
|
+
import { getI18n as o } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { getAdditionalParamMap as i } from "./standard-event.js";
|
|
6
6
|
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
|
-
import { isWorkflowPage as u, getListCode as
|
|
9
|
-
import { scrollIntoComponentWithCode as
|
|
8
|
+
import { isWorkflowPage as u, getListCode as c } from "../common-util.js";
|
|
9
|
+
import { scrollIntoComponentWithCode as f, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
|
|
10
10
|
const m = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
|
|
11
11
|
function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
|
|
12
12
|
if ("function" == typeof structuredClone) try {
|
|
@@ -45,32 +45,32 @@ function g(e2, t2, s2) {
|
|
|
45
45
|
const n2 = {};
|
|
46
46
|
t2 || (t2 = {});
|
|
47
47
|
let r2 = 0;
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
if (r2 ===
|
|
48
|
+
const o2 = e2.split(".");
|
|
49
|
+
return o2.forEach((e3) => {
|
|
50
|
+
let i2;
|
|
51
|
+
if (r2 === o2.length - 1) i2 = function(e4, t3, s3) {
|
|
52
52
|
let n3;
|
|
53
53
|
for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
|
|
54
54
|
if (t3[r3 + 1] === s3) break;
|
|
55
55
|
}
|
|
56
56
|
return n3;
|
|
57
|
-
}(n2,
|
|
57
|
+
}(n2, o2, e3), i2.fields[e3] = s2;
|
|
58
58
|
else {
|
|
59
59
|
let s3;
|
|
60
|
-
0 === r2 ?
|
|
60
|
+
0 === r2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
|
|
61
61
|
let n3;
|
|
62
62
|
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
63
|
-
const
|
|
64
|
-
if (n3 = 0 === r3 ? e4[
|
|
63
|
+
const o3 = t3[r3];
|
|
64
|
+
if (n3 = 0 === r3 ? e4[o3] : n3.fields[t3[r3]], o3 === s4) break;
|
|
65
65
|
}
|
|
66
66
|
return n3;
|
|
67
|
-
}(n2,
|
|
67
|
+
}(n2, o2, o2[r2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
|
|
68
68
|
}
|
|
69
69
|
r2++;
|
|
70
70
|
}), n2;
|
|
71
71
|
}
|
|
72
|
-
function b(e2, t2, s2, n2, r2,
|
|
73
|
-
return w(e2, t2, s2, n2, true, r2,
|
|
72
|
+
function b(e2, t2, s2, n2, r2, o2) {
|
|
73
|
+
return w(e2, t2, s2, n2, true, r2, o2);
|
|
74
74
|
}
|
|
75
75
|
function h(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
@@ -80,29 +80,30 @@ function h(e2) {
|
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function w(n2, r2,
|
|
84
|
-
let
|
|
85
|
-
if (r2 && null !== r2 || !
|
|
83
|
+
function w(n2, r2, o2, i2, l2, a2, u2) {
|
|
84
|
+
let c2, d2 = h(r2);
|
|
85
|
+
if (r2 && null !== r2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
86
86
|
return new e(d2).validate(n2, { first: true }, (e2, d3) => {
|
|
87
87
|
let m2;
|
|
88
88
|
if (e2) {
|
|
89
|
-
|
|
89
|
+
c2 = e2[0].message, m2 = e2[0].field, t({ message: c2, showClose: true, type: "warning", duration: 3e3 });
|
|
90
90
|
const n3 = s(u2, m2);
|
|
91
91
|
if (n3 && n3.addRequiredClass) {
|
|
92
92
|
n3.addRequiredClass();
|
|
93
93
|
try {
|
|
94
|
-
|
|
94
|
+
f(u2, m2);
|
|
95
95
|
} catch (e3) {
|
|
96
|
+
console.error("滚动失败", e3);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
} else
|
|
99
|
+
} else c2 = true;
|
|
99
100
|
if (m2 && true === l2) {
|
|
100
101
|
if (/[A-Z]+/.test(m2) && void 0 !== n2[m2.toLowerCase()]) {
|
|
101
102
|
const e3 = JSON.parse(JSON.stringify(n2));
|
|
102
|
-
e3[m2.toUpperCase()] = n2[m2.toLowerCase()], delete e3[m2.toLowerCase()],
|
|
103
|
+
e3[m2.toUpperCase()] = n2[m2.toLowerCase()], delete e3[m2.toLowerCase()], c2 = w(e3, r2, o2, i2, false, a2, u2);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
}),
|
|
106
|
+
}), c2;
|
|
106
107
|
}
|
|
107
108
|
function y(e2, n2, r2, l2) {
|
|
108
109
|
if (r2) {
|
|
@@ -110,69 +111,71 @@ function y(e2, n2, r2, l2) {
|
|
|
110
111
|
e3(true);
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
|
-
const
|
|
114
|
+
const c2 = e2.entity.data, d2 = { ...e2.entity.page, ...c2 }, m2 = e2.rules, g2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
114
115
|
return null != g2 && (l2 = g2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
|
|
115
116
|
if (e3) {
|
|
116
117
|
return u(l3) ? function(e4, n4, r4) {
|
|
117
118
|
return new Promise((l4, u2) => {
|
|
118
|
-
const
|
|
119
|
+
const c3 = i(n4), d3 = n4.entity.context, m3 = n4.entity.task, g3 = true, b2 = n4.subTablePageInfo;
|
|
119
120
|
E(e4, n4, r4).then((r5) => {
|
|
120
121
|
if (r5) {
|
|
121
|
-
let
|
|
122
|
+
let i2, u3, h2, w2, y2 = r5;
|
|
122
123
|
const R2 = n4.workflowRules;
|
|
123
124
|
if (R2) {
|
|
124
125
|
if (!function(e5, n5) {
|
|
125
126
|
var _a, _b, _c, _d;
|
|
126
127
|
if (!e5.actionPermissions) return true;
|
|
127
128
|
const r7 = Object.keys(e5.actionPermissions);
|
|
128
|
-
for (let
|
|
129
|
-
const l5 = r7[
|
|
129
|
+
for (let i3 = 0; i3 < r7.length; i3++) {
|
|
130
|
+
const l5 = r7[i3], u4 = e5.actionPermissions[l5];
|
|
130
131
|
if (u4 && u4.notEmpty) {
|
|
131
132
|
if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(l5)) continue;
|
|
132
133
|
let r8 = false;
|
|
133
134
|
if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
134
135
|
const r9 = s(e5, l5);
|
|
135
136
|
if (!r9) return true;
|
|
136
|
-
const
|
|
137
|
+
const i4 = r9.getConfigure();
|
|
137
138
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
138
139
|
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
|
|
139
140
|
}
|
|
140
|
-
return t({ showClose: true, message:
|
|
141
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
return true;
|
|
145
146
|
}(n4, e4)) return void l4(false);
|
|
146
|
-
const r6 = true,
|
|
147
|
+
const r6 = true, f2 = p(R2), E2 = n4.hiddenNotValidatorCodes;
|
|
147
148
|
E2 && E2.size > 0 && E2.forEach((e5) => {
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4,
|
|
151
|
-
y2 = v2.msg,
|
|
149
|
+
f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
|
|
150
|
+
}), f2.subRules && (Object.keys(f2.subRules).length > 0 ? f2.totalSubRules || (f2.totalSubRules = {}) : delete f2.subRules);
|
|
151
|
+
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, f2, g3, c3, m3, d3, b2, r6);
|
|
152
|
+
y2 = v2.msg, i2 = v2.field, u3 = v2.listCode, h2 = v2.rowIndex, w2 = v2.pageNum;
|
|
152
153
|
} else y2 = true;
|
|
153
154
|
if (true !== y2) {
|
|
154
155
|
if (t({ showClose: true, message: y2 + "", type: "warning" }), u3) {
|
|
155
156
|
const e5 = s(n4, u3);
|
|
156
157
|
if (e5 && e5.addRequiredClass) {
|
|
157
|
-
e5.addRequiredClass(
|
|
158
|
+
e5.addRequiredClass(i2, h2, w2);
|
|
158
159
|
try {
|
|
159
|
-
|
|
160
|
+
f(n4, u3), e5.scrollToCell({ fieldName: i2, rowIndex: h2, pageNum: w2 });
|
|
160
161
|
} catch (e6) {
|
|
162
|
+
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e6);
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
} else {
|
|
164
|
-
const e5 = s(n4,
|
|
166
|
+
const e5 = s(n4, i2);
|
|
165
167
|
if (e5 && e5.addRequiredClass) {
|
|
166
168
|
e5.addRequiredClass();
|
|
167
169
|
try {
|
|
168
|
-
|
|
170
|
+
f(n4, i2);
|
|
169
171
|
} catch (e6) {
|
|
172
|
+
console.error("滚动失败", e6);
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
l4(false);
|
|
174
177
|
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
|
|
175
|
-
} else u2(new Error(
|
|
178
|
+
} else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
176
179
|
}).catch((e5) => {
|
|
177
180
|
u2(e5);
|
|
178
181
|
});
|
|
@@ -197,8 +200,8 @@ function y(e2, n2, r2, l2) {
|
|
|
197
200
|
}
|
|
198
201
|
function R(e2) {
|
|
199
202
|
return new Promise((t2, s2) => {
|
|
200
|
-
const r2 = [],
|
|
201
|
-
|
|
203
|
+
const r2 = [], o2 = e2.customValidatorUuids;
|
|
204
|
+
o2 && o2.forEach((t3) => {
|
|
202
205
|
const s3 = n(e2, t3);
|
|
203
206
|
s3 && s3.validator && r2.push(s3.validator());
|
|
204
207
|
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
@@ -208,11 +211,11 @@ function R(e2) {
|
|
|
208
211
|
}
|
|
209
212
|
function E(e2, t2, s2) {
|
|
210
213
|
return new Promise((n2, r2) => {
|
|
211
|
-
const
|
|
214
|
+
const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
|
|
212
215
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
213
216
|
delete a2[e3];
|
|
214
217
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
215
|
-
if (true === b(
|
|
218
|
+
if (true === b(i2, a2, null, null, true, t2)) {
|
|
216
219
|
if (true === P(t2)) {
|
|
217
220
|
const e3 = x(t2);
|
|
218
221
|
e3 && l(e3) ? e3.then((e4) => {
|
|
@@ -222,8 +225,8 @@ function E(e2, t2, s2) {
|
|
|
222
225
|
}) : R(t2).then((e4) => {
|
|
223
226
|
n2(e4);
|
|
224
227
|
});
|
|
225
|
-
} else r2(new Error(
|
|
226
|
-
} else r2(new Error(
|
|
228
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
229
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
227
230
|
} else {
|
|
228
231
|
if (true === P(t2)) {
|
|
229
232
|
const e3 = x(t2);
|
|
@@ -234,21 +237,21 @@ function E(e2, t2, s2) {
|
|
|
234
237
|
}) : R(t2).then((e4) => {
|
|
235
238
|
n2(e4);
|
|
236
239
|
});
|
|
237
|
-
} else r2(new Error(
|
|
240
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
238
241
|
}
|
|
239
242
|
});
|
|
240
243
|
}
|
|
241
244
|
function v(e2, t2, s2) {
|
|
242
245
|
if (!t2) return s2;
|
|
243
246
|
s2 || (s2 = {});
|
|
244
|
-
const n2 = u(e2), r2 = Object.keys(t2),
|
|
247
|
+
const n2 = u(e2), r2 = Object.keys(t2), o2 = t2;
|
|
245
248
|
return r2.forEach((e3) => {
|
|
246
249
|
if ("__subRules" === e3) {
|
|
247
|
-
const e4 =
|
|
250
|
+
const e4 = o2.__subRules;
|
|
248
251
|
Object.keys(e4).forEach((t3) => {
|
|
249
252
|
s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
|
|
250
253
|
});
|
|
251
|
-
} else S(
|
|
254
|
+
} else S(o2[e3]), n2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
|
|
252
255
|
}), h(s2);
|
|
253
256
|
}
|
|
254
257
|
function P(e2) {
|
|
@@ -258,9 +261,9 @@ function P(e2) {
|
|
|
258
261
|
const s2 = e2.tableUuids;
|
|
259
262
|
if (!s2) return true;
|
|
260
263
|
for (let r2 = 0; r2 < s2.length; r2++) {
|
|
261
|
-
const
|
|
262
|
-
if (l2 && l2.size > 0 && l2.has(
|
|
263
|
-
const a2 = n(e2,
|
|
264
|
+
const i2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
|
|
265
|
+
if (l2 && l2.size > 0 && l2.has(i2)) continue;
|
|
266
|
+
const a2 = n(e2, i2);
|
|
264
267
|
if (a2) {
|
|
265
268
|
if (a2.getConfigure()) {
|
|
266
269
|
const s3 = a2.getConfigure();
|
|
@@ -268,16 +271,16 @@ function P(e2) {
|
|
|
268
271
|
const n2 = a2.getTableData();
|
|
269
272
|
if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
|
|
270
273
|
try {
|
|
271
|
-
d(e2,
|
|
274
|
+
d(e2, i2);
|
|
272
275
|
} catch (e3) {
|
|
273
276
|
}
|
|
274
|
-
return t({ showClose: true, message:
|
|
277
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
|
|
275
278
|
}
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
281
|
if (false === a2.validatorSunTableListData()) {
|
|
279
282
|
try {
|
|
280
|
-
d(e2,
|
|
283
|
+
d(e2, i2);
|
|
281
284
|
} catch (e3) {
|
|
282
285
|
}
|
|
283
286
|
return false;
|
|
@@ -290,24 +293,24 @@ function k(e2) {
|
|
|
290
293
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
291
294
|
const t2 = {}, s2 = Object.keys(e2);
|
|
292
295
|
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
293
|
-
const r2 = s2[n2],
|
|
294
|
-
C(
|
|
296
|
+
const r2 = s2[n2], o2 = e2[r2];
|
|
297
|
+
C(o2), r2.indexOf(".") > 0 ? g(r2, t2, o2) : o2 && o2.length > 0 && (t2[r2] = [...o2]);
|
|
295
298
|
}
|
|
296
299
|
return t2;
|
|
297
300
|
}
|
|
298
301
|
function C(e2, t2) {
|
|
299
302
|
e2.forEach((e3) => {
|
|
300
303
|
e3.message;
|
|
301
|
-
const t3 = e3.label, s2 =
|
|
302
|
-
e3.required && (e3.message =
|
|
304
|
+
const t3 = e3.label, s2 = o().t(t3);
|
|
305
|
+
e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
|
|
303
306
|
});
|
|
304
307
|
}
|
|
305
308
|
function O(e2) {
|
|
306
|
-
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 =
|
|
309
|
+
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), r2 = e2.entity.context, o2 = e2.entity.task;
|
|
307
310
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
308
311
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
309
312
|
});
|
|
310
|
-
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2,
|
|
313
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, o2, r2);
|
|
311
314
|
const a2 = e2.customRules;
|
|
312
315
|
return l2 = v(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
313
316
|
}
|
|
@@ -325,7 +328,7 @@ function x(e2) {
|
|
|
325
328
|
}), r2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
326
329
|
t3.includes(false) ? e3(false) : e3(true);
|
|
327
330
|
}).catch((t3) => {
|
|
328
|
-
e3(false);
|
|
331
|
+
console.error(t3), e3(false);
|
|
329
332
|
}) : e3(true);
|
|
330
333
|
}) : null;
|
|
331
334
|
}
|
|
@@ -362,16 +365,16 @@ function M(e2, t2) {
|
|
|
362
365
|
}
|
|
363
366
|
function N(e2, t2, r2) {
|
|
364
367
|
var _a;
|
|
365
|
-
let
|
|
366
|
-
if (r2 ? (
|
|
367
|
-
const l2 = e2.code, a2 = e2.version, u2 =
|
|
368
|
+
let o2, i2;
|
|
369
|
+
if (r2 ? (o2 = s(e2, r2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? n(e2, i2) : null), !o2) return;
|
|
370
|
+
const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
|
|
368
371
|
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[r2] || (e2.workflowRules.subRules[r2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
|
|
369
372
|
const s2 = e2.workflowRules.subRules[r2];
|
|
370
373
|
t2.forEach((e3) => {
|
|
371
374
|
s2[e3.name] = e3;
|
|
372
375
|
});
|
|
373
376
|
}
|
|
374
|
-
|
|
377
|
+
o2.dynamicControlTableEdit(e2, t2, u2);
|
|
375
378
|
}
|
|
376
379
|
function q(e2, t2, s2) {
|
|
377
380
|
var _a, _b, _c;
|
|
@@ -379,8 +382,8 @@ function q(e2, t2, s2) {
|
|
|
379
382
|
const n2 = t2.getConfigure();
|
|
380
383
|
if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== s2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
|
|
381
384
|
t2.changeOperationAddState(false);
|
|
382
|
-
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version,
|
|
383
|
-
t2.dynamicControlTableEdit(e2,
|
|
385
|
+
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, o2 = c(n3, r2, s3), i2 = [{ name: "_all_fields", disabled: true }];
|
|
386
|
+
t2.dynamicControlTableEdit(e2, i2, o2);
|
|
384
387
|
}
|
|
385
388
|
}
|
|
386
389
|
}
|