super-page-runtime 2.3.43-sit2 → 2.3.43
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 +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +84 -81
- package/dist/es/components/runtime/utils/page-init-util.js +43 -41
- 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/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.vue2.js +6 -4
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -72
- 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 +11 -9
- 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 +4 -3
- package/dist/es/style.css +54 -54
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ 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
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);
|
|
@@ -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);
|
|
@@ -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;
|
|
@@ -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) {
|
|
@@ -1022,12 +1022,12 @@ function Ae(e2, t2, n2, o2, s2, i2) {
|
|
|
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(() => {
|
|
@@ -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 h(e2, t2, s2, n2, r2,
|
|
73
|
-
return y(e2, t2, s2, n2, true, r2,
|
|
72
|
+
function h(e2, t2, s2, n2, r2, o2) {
|
|
73
|
+
return y(e2, t2, s2, n2, true, r2, o2);
|
|
74
74
|
}
|
|
75
75
|
function b(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
@@ -80,11 +80,11 @@ function b(e2) {
|
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function y(n2, r2,
|
|
83
|
+
function y(n2, r2, i2, l2, a2, u2, c2) {
|
|
84
84
|
var _a;
|
|
85
85
|
let d2 = b(r2);
|
|
86
|
-
if (r2 && null !== r2 || !
|
|
87
|
-
const m2 = ((_a =
|
|
86
|
+
if (r2 && null !== r2 || !i2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
87
|
+
const m2 = ((_a = c2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
88
88
|
let p2;
|
|
89
89
|
return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
|
|
90
90
|
if (m2) {
|
|
@@ -94,27 +94,28 @@ function y(n2, r2, o2, l2, a2, u2, f2) {
|
|
|
94
94
|
const s2 = JSON.parse(JSON.stringify(n2));
|
|
95
95
|
t2.forEach((t3) => {
|
|
96
96
|
e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (s2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete s2[t3.toLowerCase()]);
|
|
97
|
-
}), p2 = y(s2, r2,
|
|
97
|
+
}), p2 = y(s2, r2, i2, l2, false, u2, c2);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
true !== p2 && t({ showClose: true, message:
|
|
100
|
+
true !== p2 && t({ showClose: true, message: o().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
|
|
101
101
|
} else {
|
|
102
|
-
let
|
|
102
|
+
let o2;
|
|
103
103
|
if (e2) {
|
|
104
|
-
p2 = e2[0].message,
|
|
105
|
-
const n3 = s(
|
|
104
|
+
p2 = e2[0].message, o2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
|
|
105
|
+
const n3 = s(c2, o2);
|
|
106
106
|
if (n3 && n3.addRequiredClass) {
|
|
107
107
|
n3.addRequiredClass();
|
|
108
108
|
try {
|
|
109
|
-
|
|
109
|
+
f(c2, o2);
|
|
110
110
|
} catch (e3) {
|
|
111
|
+
console.error("滚动失败", e3);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
} else p2 = true;
|
|
114
|
-
if (
|
|
115
|
-
if (/[A-Z]+/.test(
|
|
115
|
+
if (o2 && true === a2) {
|
|
116
|
+
if (/[A-Z]+/.test(o2) && void 0 !== n2[o2.toLowerCase()]) {
|
|
116
117
|
const e3 = JSON.parse(JSON.stringify(n2));
|
|
117
|
-
e3[
|
|
118
|
+
e3[o2.toUpperCase()] = n2[o2.toLowerCase()], delete e3[o2.toLowerCase()], p2 = y(e3, r2, i2, l2, false, u2, c2);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -126,16 +127,16 @@ function w(e2, n2, r2, l2) {
|
|
|
126
127
|
e3(true);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
const
|
|
130
|
+
const c2 = e2.entity.data, f2 = { ...e2.entity.page, ...c2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
130
131
|
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
|
|
131
132
|
if (e3) {
|
|
132
133
|
return u(l3) ? function(e4, n4, r4) {
|
|
133
134
|
return new Promise((l4, u2) => {
|
|
134
135
|
var _a;
|
|
135
|
-
const
|
|
136
|
+
const c3 = i(n4), f3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, h2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
136
137
|
x(e4, n4, r4).then((r5) => {
|
|
137
138
|
if (r5) {
|
|
138
|
-
let
|
|
139
|
+
let i2 = r5;
|
|
139
140
|
const u3 = n4.workflowRules;
|
|
140
141
|
let b2 = null, y2 = null;
|
|
141
142
|
if (u3) {
|
|
@@ -143,19 +144,19 @@ function w(e2, n2, r2, l2) {
|
|
|
143
144
|
var _a2, _b, _c, _d;
|
|
144
145
|
if (!e5.actionPermissions) return true;
|
|
145
146
|
const r7 = Object.keys(e5.actionPermissions);
|
|
146
|
-
for (let
|
|
147
|
-
const l5 = r7[
|
|
147
|
+
for (let i3 = 0; i3 < r7.length; i3++) {
|
|
148
|
+
const l5 = r7[i3], u4 = e5.actionPermissions[l5];
|
|
148
149
|
if (u4 && u4.notEmpty) {
|
|
149
150
|
if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
|
|
150
151
|
let r8 = false;
|
|
151
152
|
if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
|
|
152
153
|
const r9 = s(e5, l5);
|
|
153
154
|
if (!r9) return true;
|
|
154
|
-
const
|
|
155
|
+
const i4 = r9.getConfigure();
|
|
155
156
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
156
157
|
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;
|
|
157
158
|
}
|
|
158
|
-
return t({ showClose: true, message:
|
|
159
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
}
|
|
@@ -169,10 +170,10 @@ function w(e2, n2, r2, l2) {
|
|
|
169
170
|
});
|
|
170
171
|
s2.subRules && (Object.keys(s2.subRules).length > 0 ? s2.totalSubRules || (s2.totalSubRules = {}) : delete s2.subRules);
|
|
171
172
|
return s2;
|
|
172
|
-
}(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3,
|
|
173
|
-
} else
|
|
174
|
-
true !==
|
|
175
|
-
} else u2(new Error(
|
|
173
|
+
}(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3, c3, d3, f3, g2, r6, { returnAllErrors: h2 }), i2 = y2 && Array.isArray(y2) ? 0 === y2.length || o().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
|
|
174
|
+
} else i2 = true;
|
|
175
|
+
true !== i2 ? (console.error("流程表单验证失败", b2, e4), t({ showClose: true, message: i2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), E(n4, y2)) : (R(n4, y2), v(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
|
|
176
|
+
} else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
176
177
|
}).catch((e5) => {
|
|
177
178
|
u2(e5);
|
|
178
179
|
});
|
|
@@ -193,7 +194,7 @@ function w(e2, n2, r2, l2) {
|
|
|
193
194
|
return new Promise((e4, t2) => {
|
|
194
195
|
e4(true);
|
|
195
196
|
});
|
|
196
|
-
}(l2,
|
|
197
|
+
}(l2, f2, d2, e2);
|
|
197
198
|
}
|
|
198
199
|
function R(e2, t2) {
|
|
199
200
|
if (t2.listCode) {
|
|
@@ -209,24 +210,26 @@ function C(e2, t2) {
|
|
|
209
210
|
}
|
|
210
211
|
function E(e2, t2) {
|
|
211
212
|
try {
|
|
212
|
-
|
|
213
|
+
f(e2, t2.listCode);
|
|
213
214
|
const n2 = s(e2, t2.listCode);
|
|
214
215
|
(n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
|
|
215
216
|
} catch (e3) {
|
|
217
|
+
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e3);
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
function v(e2, t2) {
|
|
219
221
|
try {
|
|
220
|
-
|
|
222
|
+
f(e2, t2);
|
|
221
223
|
} catch (e3) {
|
|
224
|
+
console.error("滚动失败", e3);
|
|
222
225
|
}
|
|
223
226
|
}
|
|
224
227
|
function P(e2, t2) {
|
|
225
228
|
let n2 = null, r2 = 1 / 0;
|
|
226
229
|
return t2.forEach((t3) => {
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
229
|
-
const
|
|
230
|
+
const o2 = t3.listCode || t3.field;
|
|
231
|
+
if (!o2) return;
|
|
232
|
+
const i2 = s(e2, o2), l2 = (i2 == null ? void 0 : i2.$el) || i2;
|
|
230
233
|
if (l2 == null ? void 0 : l2.getBoundingClientRect) {
|
|
231
234
|
const e3 = l2.getBoundingClientRect();
|
|
232
235
|
e3.top < r2 && (r2 = e3.top, n2 = t3);
|
|
@@ -238,8 +241,8 @@ function k(e2, t2) {
|
|
|
238
241
|
}
|
|
239
242
|
function O(e2) {
|
|
240
243
|
return new Promise((t2, s2) => {
|
|
241
|
-
const r2 = [],
|
|
242
|
-
|
|
244
|
+
const r2 = [], o2 = e2.customValidatorUuids;
|
|
245
|
+
o2 && o2.forEach((t3) => {
|
|
243
246
|
const s3 = n(e2, t3);
|
|
244
247
|
s3 && s3.validator && r2.push(s3.validator());
|
|
245
248
|
}), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
|
|
@@ -250,13 +253,13 @@ function O(e2) {
|
|
|
250
253
|
function x(e2, t2, s2) {
|
|
251
254
|
return new Promise((n2, r2) => {
|
|
252
255
|
var _a;
|
|
253
|
-
const
|
|
256
|
+
const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
|
|
254
257
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
255
258
|
delete a2[e3];
|
|
256
259
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
257
|
-
const e3 = h(
|
|
260
|
+
const e3 = h(i2, a2, null, null, true, t2);
|
|
258
261
|
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
|
|
259
|
-
if (true ===
|
|
262
|
+
if (true === M(t2)) {
|
|
260
263
|
const e4 = q(t2);
|
|
261
264
|
e4 && l(e4) ? e4.then((e5) => {
|
|
262
265
|
e5 ? O(t2).then((e6) => {
|
|
@@ -265,10 +268,10 @@ function x(e2, t2, s2) {
|
|
|
265
268
|
}) : O(t2).then((e5) => {
|
|
266
269
|
n2(e5);
|
|
267
270
|
});
|
|
268
|
-
} else r2(new Error(
|
|
269
|
-
} else r2(new Error(
|
|
271
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
272
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
270
273
|
} else {
|
|
271
|
-
if (true ===
|
|
274
|
+
if (true === M(t2)) {
|
|
272
275
|
const e3 = q(t2);
|
|
273
276
|
e3 && l(e3) ? e3.then((e4) => {
|
|
274
277
|
e4 ? O(t2).then((e5) => {
|
|
@@ -277,33 +280,33 @@ function x(e2, t2, s2) {
|
|
|
277
280
|
}) : O(t2).then((e4) => {
|
|
278
281
|
n2(e4);
|
|
279
282
|
});
|
|
280
|
-
} else r2(new Error(
|
|
283
|
+
} else r2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
281
284
|
}
|
|
282
285
|
});
|
|
283
286
|
}
|
|
284
|
-
function
|
|
287
|
+
function T(e2, t2, s2) {
|
|
285
288
|
if (!t2) return s2;
|
|
286
289
|
s2 || (s2 = {});
|
|
287
|
-
const n2 = u(e2), r2 = Object.keys(t2),
|
|
290
|
+
const n2 = u(e2), r2 = Object.keys(t2), o2 = t2;
|
|
288
291
|
return r2.forEach((e3) => {
|
|
289
292
|
if ("__subRules" === e3) {
|
|
290
|
-
const e4 =
|
|
293
|
+
const e4 = o2.__subRules;
|
|
291
294
|
Object.keys(e4).forEach((t3) => {
|
|
292
295
|
s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
|
|
293
296
|
});
|
|
294
|
-
} else _(
|
|
297
|
+
} else _(o2[e3]), n2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
|
|
295
298
|
}), b(s2);
|
|
296
299
|
}
|
|
297
|
-
function
|
|
300
|
+
function M(e2) {
|
|
298
301
|
var _a;
|
|
299
302
|
if (!e2) return true;
|
|
300
303
|
if (u(e2)) return true;
|
|
301
304
|
const s2 = e2.tableUuids;
|
|
302
305
|
if (!s2) return true;
|
|
303
306
|
for (let r2 = 0; r2 < s2.length; r2++) {
|
|
304
|
-
const
|
|
305
|
-
if (l2 && l2.size > 0 && l2.has(
|
|
306
|
-
const a2 = n(e2,
|
|
307
|
+
const i2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
|
|
308
|
+
if (l2 && l2.size > 0 && l2.has(i2)) continue;
|
|
309
|
+
const a2 = n(e2, i2);
|
|
307
310
|
if (a2) {
|
|
308
311
|
if (a2.getConfigure()) {
|
|
309
312
|
const s3 = a2.getConfigure();
|
|
@@ -311,16 +314,16 @@ function T(e2) {
|
|
|
311
314
|
const n2 = a2.getTableData();
|
|
312
315
|
if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
|
|
313
316
|
try {
|
|
314
|
-
d(e2,
|
|
317
|
+
d(e2, i2);
|
|
315
318
|
} catch (e3) {
|
|
316
319
|
}
|
|
317
|
-
return t({ showClose: true, message:
|
|
320
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
|
|
318
321
|
}
|
|
319
322
|
}
|
|
320
323
|
}
|
|
321
324
|
if (false === a2.validatorSunTableListData()) {
|
|
322
325
|
try {
|
|
323
|
-
d(e2,
|
|
326
|
+
d(e2, i2);
|
|
324
327
|
} catch (e3) {
|
|
325
328
|
}
|
|
326
329
|
return false;
|
|
@@ -333,26 +336,26 @@ function j(e2) {
|
|
|
333
336
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
334
337
|
const t2 = {}, s2 = Object.keys(e2);
|
|
335
338
|
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
336
|
-
const r2 = s2[n2],
|
|
337
|
-
N(
|
|
339
|
+
const r2 = s2[n2], o2 = e2[r2];
|
|
340
|
+
N(o2), r2.indexOf(".") > 0 ? g(r2, t2, o2) : o2 && o2.length > 0 && (t2[r2] = [...o2]);
|
|
338
341
|
}
|
|
339
342
|
return t2;
|
|
340
343
|
}
|
|
341
344
|
function N(e2, t2) {
|
|
342
345
|
e2.forEach((e3) => {
|
|
343
346
|
e3.message;
|
|
344
|
-
const t3 = e3.label, s2 =
|
|
345
|
-
e3.required && (e3.message =
|
|
347
|
+
const t3 = e3.label, s2 = o().t(t3);
|
|
348
|
+
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 }));
|
|
346
349
|
});
|
|
347
350
|
}
|
|
348
351
|
function A(e2) {
|
|
349
|
-
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 =
|
|
352
|
+
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), r2 = e2.entity.context, o2 = e2.entity.task;
|
|
350
353
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
351
354
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
352
355
|
});
|
|
353
|
-
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2,
|
|
356
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, o2, r2);
|
|
354
357
|
const a2 = e2.customRules;
|
|
355
|
-
return l2 =
|
|
358
|
+
return l2 = T(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
356
359
|
}
|
|
357
360
|
function q(e2) {
|
|
358
361
|
const t2 = [];
|
|
@@ -368,7 +371,7 @@ function q(e2) {
|
|
|
368
371
|
}), r2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
369
372
|
t3.includes(false) ? e3(false) : e3(true);
|
|
370
373
|
}).catch((t3) => {
|
|
371
|
-
e3(false);
|
|
374
|
+
console.error(t3), e3(false);
|
|
372
375
|
}) : e3(true);
|
|
373
376
|
}) : null;
|
|
374
377
|
}
|
|
@@ -380,10 +383,10 @@ function S(e2, t2) {
|
|
|
380
383
|
s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
|
|
381
384
|
}), u(e2)) {
|
|
382
385
|
let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
|
|
383
|
-
t3 =
|
|
386
|
+
t3 = T(e2, n2, t3), e2.workflowRules = t3;
|
|
384
387
|
} else {
|
|
385
388
|
let t3 = e2.rules ? e2.rules : {};
|
|
386
|
-
t3 =
|
|
389
|
+
t3 = T(e2, n2, t3), e2.rules = t3;
|
|
387
390
|
}
|
|
388
391
|
const r2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
389
392
|
r2 && r2.length > 0 && L(e2, r2[0]), t2.forEach((t3) => {
|
|
@@ -405,16 +408,16 @@ function L(e2, t2) {
|
|
|
405
408
|
}
|
|
406
409
|
function V(e2, t2, r2) {
|
|
407
410
|
var _a;
|
|
408
|
-
let
|
|
409
|
-
if (r2 ? (
|
|
410
|
-
const l2 = e2.code, a2 = e2.version, u2 =
|
|
411
|
+
let o2, i2;
|
|
412
|
+
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;
|
|
413
|
+
const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
|
|
411
414
|
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]) {
|
|
412
415
|
const s2 = e2.workflowRules.subRules[r2];
|
|
413
416
|
t2.forEach((e3) => {
|
|
414
417
|
s2[e3.name] = e3;
|
|
415
418
|
});
|
|
416
419
|
}
|
|
417
|
-
|
|
420
|
+
o2.dynamicControlTableEdit(e2, t2, u2);
|
|
418
421
|
}
|
|
419
422
|
function D(e2, t2, s2) {
|
|
420
423
|
var _a, _b, _c;
|
|
@@ -422,8 +425,8 @@ function D(e2, t2, s2) {
|
|
|
422
425
|
const n2 = t2.getConfigure();
|
|
423
426
|
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)) {
|
|
424
427
|
t2.changeOperationAddState(false);
|
|
425
|
-
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version,
|
|
426
|
-
t2.dynamicControlTableEdit(e2,
|
|
428
|
+
const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, o2 = c(n3, r2, s3), i2 = [{ name: "_all_fields", disabled: true }];
|
|
429
|
+
t2.dynamicControlTableEdit(e2, i2, o2);
|
|
427
430
|
}
|
|
428
431
|
}
|
|
429
432
|
}
|
|
@@ -451,7 +454,7 @@ export {
|
|
|
451
454
|
N as i18nValidatePropRulesMessage,
|
|
452
455
|
j as i18nValidateRulesMessage,
|
|
453
456
|
J as isNotNeedValidateRequired,
|
|
454
|
-
|
|
457
|
+
T as packageCustomRules,
|
|
455
458
|
_ as packageCustomValidator,
|
|
456
459
|
g as setObjectPropRule,
|
|
457
460
|
S as updateFormItemEditState,
|