super-page-runtime 2.3.36 → 2.3.37-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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
- package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- 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 +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- 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 +95 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- 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 +0 -2
- 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 +17 -12
- 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 +9 -11
- 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 +69 -66
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
- 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 +37 -37
- 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 +43 -43
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
- 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 +59 -60
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
- 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 +26 -28
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
- 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 +106 -106
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
- 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 +4 -4
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
- 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 +96 -94
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +27 -22
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +166 -158
- package/package.json +2 -2
|
@@ -8,8 +8,8 @@ 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
|
|
12
|
-
import { caculateShowCondition as
|
|
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";
|
|
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";
|
|
@@ -155,7 +155,7 @@ const Y = { save: function(e2) {
|
|
|
155
155
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
156
156
|
const e4 = a2.fileuploadInfo[0];
|
|
157
157
|
let t2;
|
|
158
|
-
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ?
|
|
158
|
+
t2 = e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
159
159
|
} else {
|
|
160
160
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
161
161
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
@@ -177,7 +177,7 @@ const Y = { save: function(e2) {
|
|
|
177
177
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
178
178
|
const e4 = a2.fileuploadInfo[0];
|
|
179
179
|
let t2;
|
|
180
|
-
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ?
|
|
180
|
+
t2 = e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
181
181
|
} else {
|
|
182
182
|
const i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
183
183
|
let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
@@ -291,8 +291,7 @@ const Y = { save: function(e2) {
|
|
|
291
291
|
let t2 = null;
|
|
292
292
|
try {
|
|
293
293
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
294
|
-
} catch (
|
|
295
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
294
|
+
} catch (e4) {
|
|
296
295
|
}
|
|
297
296
|
U.printLabel(e3, t2);
|
|
298
297
|
}(e2);
|
|
@@ -361,7 +360,7 @@ function z(e2) {
|
|
|
361
360
|
let s2 = null;
|
|
362
361
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
363
362
|
const a2 = s2 ? s2.state : void 0;
|
|
364
|
-
s2 && (s2.state = "disabled"),
|
|
363
|
+
s2 && (s2.state = "disabled"), x(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
365
364
|
s2 && (s2.state = a2);
|
|
366
365
|
}).catch(() => {
|
|
367
366
|
s2 && (s2.state = a2);
|
|
@@ -462,7 +461,7 @@ function ee(e2, o2, s2, a2, i2, r2, l2, u2) {
|
|
|
462
461
|
let u3, p3 = l3 + a3;
|
|
463
462
|
p3 = n(p3, e3, o3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
464
463
|
return u3;
|
|
465
|
-
}(p2, d2, m2, s2,
|
|
464
|
+
}(p2, d2, m2, s2, l2, e2.isTest);
|
|
466
465
|
}
|
|
467
466
|
function te(e2, t2, n2, o2, s2, a2) {
|
|
468
467
|
return ee(e2, t2, n2, o2, s2, a2, null, null);
|
|
@@ -473,10 +472,11 @@ function ne(t2, n2, o2, s2, a2) {
|
|
|
473
472
|
let a3 = n3.props.base.successOperation;
|
|
474
473
|
const i3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
475
474
|
a3 || re.includes(n3.name) || (a3 = "refresh");
|
|
476
|
-
if ("refresh" === a3)
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
if ("refresh" === a3) {
|
|
476
|
+
if (r2) {
|
|
477
|
+
w(t3, r2).refresh();
|
|
478
|
+
}
|
|
479
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
480
480
|
const s4 = e(t3.entity.page);
|
|
481
481
|
let a4 = o3;
|
|
482
482
|
a4 || (a4 = {}), Object.assign(s4, a4), ae(t3, n3, s4, i3);
|
|
@@ -530,7 +530,7 @@ function ie(e2, t2, n2, o2, s2) {
|
|
|
530
530
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
531
531
|
const t4 = e4.source;
|
|
532
532
|
if (!t4) return;
|
|
533
|
-
const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 =
|
|
533
|
+
const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = S(null, i2);
|
|
534
534
|
O(n3.entity, r2, a3);
|
|
535
535
|
});
|
|
536
536
|
}
|
|
@@ -548,7 +548,7 @@ function ce(e2, t2, n2, o2) {
|
|
|
548
548
|
const n3 = y(e2, t2);
|
|
549
549
|
if (n3) {
|
|
550
550
|
w(e2, n3).refresh();
|
|
551
|
-
}
|
|
551
|
+
}
|
|
552
552
|
} else if (a2 && "form" === a2) {
|
|
553
553
|
const t3 = e2.entity.data;
|
|
554
554
|
Ae(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -561,7 +561,7 @@ function le(e2, o2, s2, a2) {
|
|
|
561
561
|
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) {
|
|
562
562
|
const e3 = m2.fileuploadInfo[0];
|
|
563
563
|
let t2;
|
|
564
|
-
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ?
|
|
564
|
+
t2 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), r2(false);
|
|
565
565
|
} else {
|
|
566
566
|
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = f2.props.base.successOperation;
|
|
567
567
|
let w2 = false;
|
|
@@ -620,13 +620,13 @@ function ue(e2, s2) {
|
|
|
620
620
|
I2 && f2.append("functionCode", I2);
|
|
621
621
|
const R2 = Te(a2);
|
|
622
622
|
f2.append("additionalParamMapStr", JSON.stringify(R2));
|
|
623
|
-
const
|
|
624
|
-
f2.append("isPermission",
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
let N2 = t(
|
|
629
|
-
N2 = n(N2,
|
|
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) => {
|
|
630
630
|
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
|
|
631
631
|
else {
|
|
632
632
|
let t2 = false;
|
|
@@ -658,7 +658,7 @@ function de(e2) {
|
|
|
658
658
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
659
659
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
660
660
|
const d2 = Te(t2);
|
|
661
|
-
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
|
|
661
|
+
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]));
|
|
662
662
|
const m2 = n2.props.base.successOperation;
|
|
663
663
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
664
664
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -696,7 +696,7 @@ async function fe(e2, o2) {
|
|
|
696
696
|
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) {
|
|
697
697
|
const e3 = r2.fileuploadInfo[0];
|
|
698
698
|
let t2;
|
|
699
|
-
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ?
|
|
699
|
+
t2 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), a2(false);
|
|
700
700
|
} else if (s2) {
|
|
701
701
|
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
702
702
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
@@ -722,7 +722,7 @@ function ge(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 we(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 ye(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 (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
872
872
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function Se(e2, o2) {
|
|
875
875
|
if (o2) {
|
|
876
876
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
877
877
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -884,14 +884,14 @@ function xe(e2, o2) {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Me(e2) {
|
|
888
888
|
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
889
889
|
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
890
890
|
const r2 = de(e2);
|
|
891
891
|
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
892
892
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function xe(e2, o2) {
|
|
895
895
|
if (o2) {
|
|
896
896
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
897
897
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
@@ -1011,18 +1011,18 @@ function Oe(e2, t2, n2, o2, s2, a2) {
|
|
|
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
|
|
1025
|
+
return i2;
|
|
1026
1026
|
}
|
|
1027
1027
|
function Ue(e2, t2, n2) {
|
|
1028
1028
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1042,7 +1042,7 @@ function Ee(e2, n2, s2) {
|
|
|
1042
1042
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1043
1043
|
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);
|
|
1044
1044
|
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1045
|
-
if (
|
|
1045
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1046
1046
|
const t2 = {};
|
|
1047
1047
|
e3.tableUuids.forEach((e4) => {
|
|
1048
1048
|
const n4 = r(l2, u2, e4);
|
|
@@ -1098,7 +1098,7 @@ function Ee(e2, n2, s2) {
|
|
|
1098
1098
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1099
1099
|
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
1100
|
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),
|
|
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) {
|
|
1102
1102
|
const t2 = {};
|
|
1103
1103
|
e3.tableUuids.forEach((e4) => {
|
|
1104
1104
|
const n4 = r(l2, u2, e4);
|
|
@@ -1198,15 +1198,15 @@ export {
|
|
|
1198
1198
|
ye as doCreateCopyTask,
|
|
1199
1199
|
Fe as doFileTaskFunc,
|
|
1200
1200
|
ue as doImportFinally,
|
|
1201
|
-
|
|
1202
|
-
|
|
1201
|
+
Se as doRemoveSigners,
|
|
1202
|
+
xe as doRemoveTransactors,
|
|
1203
1203
|
ve as doReturnTaskTo,
|
|
1204
1204
|
K as exportFormReport,
|
|
1205
1205
|
Ne as extractWorkflowFunc,
|
|
1206
1206
|
Te as getAdditionalParamMap,
|
|
1207
1207
|
Ee as getFormData,
|
|
1208
1208
|
Re as getRemoveSigner,
|
|
1209
|
-
|
|
1209
|
+
Me as getRemoveTransactor,
|
|
1210
1210
|
te as getSaveFormRequest,
|
|
1211
1211
|
ee as getSaveFormRequestWithRow,
|
|
1212
1212
|
Ie as getTaskInformitions,
|
|
@@ -6,7 +6,8 @@ import { getAdditionalParamMap as l } from "./standard-event.js";
|
|
|
6
6
|
import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
8
|
import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
|
|
9
|
-
|
|
9
|
+
import { scrollIntoComponentWithCode as c, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
|
|
10
|
+
function m(e2, t2, s2) {
|
|
10
11
|
const n2 = {};
|
|
11
12
|
t2 || (t2 = {});
|
|
12
13
|
let r2 = 0;
|
|
@@ -34,10 +35,10 @@ function c(e2, t2, s2) {
|
|
|
34
35
|
r2++;
|
|
35
36
|
}), n2;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
38
|
+
function p(e2, t2, s2, n2, r2, i2) {
|
|
39
|
+
return b(e2, t2, s2, n2, true, r2, i2);
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function g(e2) {
|
|
41
42
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
42
43
|
if (t2.indexOf(".") >= 0) {
|
|
43
44
|
let s2 = [];
|
|
@@ -45,50 +46,57 @@ function m(e2) {
|
|
|
45
46
|
}
|
|
46
47
|
}), e2;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
let f2,
|
|
50
|
-
if (r2 && null !== r2 || !i2 || (
|
|
51
|
-
return new e(
|
|
52
|
-
let
|
|
49
|
+
function b(n2, r2, i2, l2, o2, a2, u2) {
|
|
50
|
+
let f2, d2 = g(r2);
|
|
51
|
+
if (r2 && null !== r2 || !i2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
52
|
+
return new e(d2).validate(n2, { first: true }, (e2, d3) => {
|
|
53
|
+
let m2;
|
|
53
54
|
if (e2) {
|
|
54
|
-
f2 = e2[0].message,
|
|
55
|
-
const n3 = s(u2,
|
|
56
|
-
|
|
55
|
+
f2 = e2[0].message, m2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
|
|
56
|
+
const n3 = s(u2, m2);
|
|
57
|
+
if (n3 && n3.addRequiredClass) {
|
|
58
|
+
n3.addRequiredClass();
|
|
59
|
+
try {
|
|
60
|
+
c(u2, m2);
|
|
61
|
+
} catch (e3) {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
57
64
|
} else f2 = true;
|
|
58
|
-
if (
|
|
59
|
-
if (/[A-Z]+/.test(
|
|
65
|
+
if (m2 && true === o2) {
|
|
66
|
+
if (/[A-Z]+/.test(m2) && void 0 !== n2[m2.toLowerCase()]) {
|
|
60
67
|
const e3 = JSON.parse(JSON.stringify(n2));
|
|
61
|
-
e3[
|
|
68
|
+
e3[m2.toUpperCase()] = n2[m2.toLowerCase()], delete e3[m2.toLowerCase()], f2 = b(e3, r2, i2, l2, false, a2, u2);
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
}), f2;
|
|
65
72
|
}
|
|
66
|
-
function
|
|
67
|
-
const o2 = e2.entity.data, f2 = { ...e2.entity.page, ...o2 },
|
|
68
|
-
return null !=
|
|
73
|
+
function h(e2, n2, r2) {
|
|
74
|
+
const o2 = e2.entity.data, f2 = { ...e2.entity.page, ...o2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
75
|
+
return null != m2 && (r2 = m2), null == r2 && (r2 = false), function(e3, n3, r3, o3) {
|
|
69
76
|
if (e3) {
|
|
70
77
|
return u(o3) ? function(e4, n4, r4) {
|
|
71
78
|
return new Promise((o4, u2) => {
|
|
72
|
-
const f3 = l(n4),
|
|
73
|
-
|
|
79
|
+
const f3 = l(n4), d3 = n4.entity.context, m3 = n4.entity.task, p2 = true, g2 = n4.subTablePageInfo;
|
|
80
|
+
w(e4, n4, r4).then((r5) => {
|
|
74
81
|
if (r5) {
|
|
75
|
-
let l2, u3,
|
|
82
|
+
let l2, u3, b2, h2, y2 = r5;
|
|
76
83
|
const w2 = n4.workflowRules;
|
|
77
84
|
if (w2) {
|
|
78
85
|
if (!function(e5, n5) {
|
|
79
|
-
var _a, _b, _c;
|
|
86
|
+
var _a, _b, _c, _d;
|
|
80
87
|
if (!e5.actionPermissions) return true;
|
|
81
88
|
const r7 = Object.keys(e5.actionPermissions);
|
|
82
89
|
for (let l3 = 0; l3 < r7.length; l3++) {
|
|
83
90
|
const o5 = r7[l3], u4 = e5.actionPermissions[o5];
|
|
84
91
|
if (u4 && u4.notEmpty) {
|
|
92
|
+
if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(o5)) continue;
|
|
85
93
|
let r8 = false;
|
|
86
94
|
if (n5[o5] ? Array.isArray(n5[o5]) && 0 === n5[o5].length && (r8 = true) : r8 = true, r8) {
|
|
87
95
|
const r9 = s(e5, o5);
|
|
88
96
|
if (!r9) return true;
|
|
89
97
|
const l4 = r9.getConfigure();
|
|
90
|
-
if ((
|
|
91
|
-
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (
|
|
98
|
+
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
99
|
+
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;
|
|
92
100
|
}
|
|
93
101
|
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: l4.title ? l4.title : o5 }), type: "warning" }), false;
|
|
94
102
|
}
|
|
@@ -96,18 +104,32 @@ function g(e2, n2, r2) {
|
|
|
96
104
|
}
|
|
97
105
|
return true;
|
|
98
106
|
}(n4, e4)) return void o4(false);
|
|
99
|
-
const r6 = true,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
const r6 = true, c2 = Object.assign({}, w2), R2 = n4.hiddenNotValidatorCodes;
|
|
108
|
+
R2 && R2.size > 0 && R2.forEach((e5) => {
|
|
109
|
+
c2.subRules && delete c2.subRules[e5], c2.rules && delete c2.rules[e5];
|
|
110
|
+
}), c2.subRules && (Object.keys(c2.subRules).length > 0 ? c2.totalSubRules || (c2.totalSubRules = {}) : delete c2.subRules);
|
|
111
|
+
const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, c2, p2, f3, m3, d3, g2, r6);
|
|
112
|
+
y2 = v2.msg, l2 = v2.field, u3 = v2.listCode, b2 = v2.rowIndex, h2 = v2.pageNum;
|
|
113
|
+
} else y2 = true;
|
|
114
|
+
if (true !== y2) {
|
|
115
|
+
if (t({ showClose: true, message: y2 + "", type: "warning" }), u3) {
|
|
106
116
|
const e5 = s(n4, u3);
|
|
107
|
-
|
|
117
|
+
if (e5 && e5.addRequiredClass) {
|
|
118
|
+
e5.addRequiredClass(l2, b2, h2);
|
|
119
|
+
try {
|
|
120
|
+
c(n4, u3), e5.scrollToCell({ fieldName: l2, rowIndex: b2, pageNum: h2 });
|
|
121
|
+
} catch (e6) {
|
|
122
|
+
}
|
|
123
|
+
}
|
|
108
124
|
} else {
|
|
109
125
|
const e5 = s(n4, l2);
|
|
110
|
-
|
|
126
|
+
if (e5 && e5.addRequiredClass) {
|
|
127
|
+
e5.addRequiredClass();
|
|
128
|
+
try {
|
|
129
|
+
c(n4, l2);
|
|
130
|
+
} catch (e6) {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
111
133
|
}
|
|
112
134
|
o4(false);
|
|
113
135
|
} else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, o4(e4);
|
|
@@ -118,7 +140,7 @@ function g(e2, n2, r2) {
|
|
|
118
140
|
});
|
|
119
141
|
}(n3, o3, r3) : function(e4, t2, s2) {
|
|
120
142
|
return new Promise((n4, r4) => {
|
|
121
|
-
|
|
143
|
+
w(e4, t2, s2).then((t3) => {
|
|
122
144
|
if (t3) {
|
|
123
145
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
124
146
|
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
|
|
@@ -132,9 +154,9 @@ function g(e2, n2, r2) {
|
|
|
132
154
|
return new Promise((e4, t2) => {
|
|
133
155
|
e4(true);
|
|
134
156
|
});
|
|
135
|
-
}(r2, f2,
|
|
157
|
+
}(r2, f2, d2, e2);
|
|
136
158
|
}
|
|
137
|
-
function
|
|
159
|
+
function y(e2) {
|
|
138
160
|
return new Promise((t2, s2) => {
|
|
139
161
|
const r2 = [], i2 = e2.customValidatorUuids;
|
|
140
162
|
i2 && i2.forEach((t3) => {
|
|
@@ -145,11 +167,13 @@ function b(e2) {
|
|
|
145
167
|
}) : t2(true);
|
|
146
168
|
});
|
|
147
169
|
}
|
|
148
|
-
function
|
|
170
|
+
function w(e2, s2, r2) {
|
|
149
171
|
return new Promise((l2, a2) => {
|
|
150
|
-
const f2 = JSON.parse(JSON.stringify(e2));
|
|
151
|
-
if (
|
|
152
|
-
|
|
172
|
+
const f2 = JSON.parse(JSON.stringify(e2)), c2 = { ...r2 }, m2 = s2.hiddenNotValidatorCodes;
|
|
173
|
+
if (c2 && m2 && m2.size > 0 && m2.forEach((e3) => {
|
|
174
|
+
delete c2[e3];
|
|
175
|
+
}), c2 && 0 !== Object.keys(c2).length) {
|
|
176
|
+
if (true === p(f2, c2, null, null, true, s2)) {
|
|
153
177
|
const e3 = function(e4) {
|
|
154
178
|
var _a;
|
|
155
179
|
if (!e4) return true;
|
|
@@ -157,16 +181,30 @@ function h(e2, s2, r2) {
|
|
|
157
181
|
const s3 = e4.tableUuids;
|
|
158
182
|
if (!s3) return true;
|
|
159
183
|
for (let r3 = 0; r3 < s3.length; r3++) {
|
|
160
|
-
const l3 = s3[r3], o2 =
|
|
161
|
-
if (o2)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
184
|
+
const l3 = s3[r3], o2 = e4.hiddenNotValidatorCodes;
|
|
185
|
+
if (o2 && o2.size > 0 && o2.has(l3)) continue;
|
|
186
|
+
const a3 = n(e4, l3);
|
|
187
|
+
if (a3) {
|
|
188
|
+
if (a3.getConfigure()) {
|
|
189
|
+
const s4 = a3.getConfigure();
|
|
190
|
+
if ((_a = s4 == null ? void 0 : s4.verification) == null ? void 0 : _a.notEmpty) {
|
|
191
|
+
const n2 = a3.getTableData();
|
|
192
|
+
if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
|
|
193
|
+
try {
|
|
194
|
+
d(e4, l3);
|
|
195
|
+
} catch (e5) {
|
|
196
|
+
}
|
|
197
|
+
return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: s4.title ? s4.title : s4.code }), type: "warning" }), false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (!a3.validatorSunTableListData()) {
|
|
202
|
+
try {
|
|
203
|
+
d(e4, l3);
|
|
204
|
+
} catch (e5) {
|
|
167
205
|
}
|
|
206
|
+
return false;
|
|
168
207
|
}
|
|
169
|
-
if (!o2.validatorSunTableListData()) return false;
|
|
170
208
|
}
|
|
171
209
|
}
|
|
172
210
|
return true;
|
|
@@ -187,16 +225,16 @@ function h(e2, s2, r2) {
|
|
|
187
225
|
}), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
188
226
|
t3.includes(false) ? e6(false) : e6(true);
|
|
189
227
|
}).catch((t3) => {
|
|
190
|
-
|
|
228
|
+
e6(false);
|
|
191
229
|
}) : e6(true);
|
|
192
230
|
});
|
|
193
231
|
return null;
|
|
194
232
|
}(s2);
|
|
195
233
|
e4 && o(e4) ? e4.then((e5) => {
|
|
196
|
-
e5 ?
|
|
234
|
+
e5 ? y(s2).then((e6) => {
|
|
197
235
|
l2(e6);
|
|
198
236
|
}) : l2(false);
|
|
199
|
-
}) :
|
|
237
|
+
}) : y(s2).then((e5) => {
|
|
200
238
|
l2(e5);
|
|
201
239
|
});
|
|
202
240
|
} else a2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
@@ -204,7 +242,7 @@ function h(e2, s2, r2) {
|
|
|
204
242
|
} else l2(true);
|
|
205
243
|
});
|
|
206
244
|
}
|
|
207
|
-
function
|
|
245
|
+
function R(e2, t2, s2) {
|
|
208
246
|
if (!t2) return s2;
|
|
209
247
|
s2 || (s2 = {});
|
|
210
248
|
const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
|
|
@@ -214,35 +252,35 @@ function w(e2, t2, s2) {
|
|
|
214
252
|
Object.keys(e4).forEach((t3) => {
|
|
215
253
|
s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
|
|
216
254
|
});
|
|
217
|
-
} else
|
|
218
|
-
}),
|
|
255
|
+
} else T(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
|
|
256
|
+
}), g(s2);
|
|
219
257
|
}
|
|
220
|
-
function
|
|
258
|
+
function v(e2) {
|
|
221
259
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
222
260
|
const t2 = {}, s2 = Object.keys(e2);
|
|
223
261
|
for (let n2 = 0; n2 < s2.length; n2++) {
|
|
224
262
|
const r2 = s2[n2], i2 = e2[r2];
|
|
225
|
-
|
|
263
|
+
P(i2), r2.indexOf(".") > 0 ? m(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
|
|
226
264
|
}
|
|
227
265
|
return t2;
|
|
228
266
|
}
|
|
229
|
-
function
|
|
267
|
+
function P(e2, t2) {
|
|
230
268
|
e2.forEach((e3) => {
|
|
231
269
|
e3.message;
|
|
232
270
|
const t3 = e3.label, s2 = i().t(t3);
|
|
233
271
|
e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
|
|
234
272
|
});
|
|
235
273
|
}
|
|
236
|
-
function
|
|
274
|
+
function E(e2) {
|
|
237
275
|
const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = l(e2), r2 = e2.entity.context, i2 = e2.entity.task;
|
|
238
276
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
239
277
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
240
278
|
});
|
|
241
279
|
let o2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
|
|
242
280
|
const a2 = e2.customRules;
|
|
243
|
-
return o2 =
|
|
281
|
+
return o2 = R(e2, a2, o2), o2 && (o2.rules || (o2.rules = {}), o2.subRules || (o2.subRules = {})), o2;
|
|
244
282
|
}
|
|
245
|
-
function
|
|
283
|
+
function k(e2, t2) {
|
|
246
284
|
if (!t2) return;
|
|
247
285
|
const n2 = {};
|
|
248
286
|
if (t2.forEach((e3) => {
|
|
@@ -250,30 +288,30 @@ function P(e2, t2) {
|
|
|
250
288
|
s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
|
|
251
289
|
}), u(e2)) {
|
|
252
290
|
let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
|
|
253
|
-
t3 =
|
|
291
|
+
t3 = R(e2, n2, t3), e2.workflowRules = t3;
|
|
254
292
|
} else {
|
|
255
293
|
let t3 = e2.rules ? e2.rules : {};
|
|
256
|
-
t3 =
|
|
294
|
+
t3 = R(e2, n2, t3), e2.rules = t3;
|
|
257
295
|
}
|
|
258
296
|
const r2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
259
|
-
r2 && r2.length > 0 &&
|
|
297
|
+
r2 && r2.length > 0 && O(e2, r2[0]), t2.forEach((t3) => {
|
|
260
298
|
if ("_all_fields" !== t3.name) {
|
|
261
299
|
const n3 = s(e2, t3.name);
|
|
262
|
-
|
|
300
|
+
x(e2, n3, t3);
|
|
263
301
|
}
|
|
264
302
|
});
|
|
265
303
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
304
|
+
function C(e2) {
|
|
305
|
+
O(e2, { disabled: true });
|
|
268
306
|
}
|
|
269
|
-
function
|
|
307
|
+
function O(e2, t2) {
|
|
270
308
|
const s2 = r(e2);
|
|
271
309
|
if (s2) for (const n2 in s2) {
|
|
272
310
|
const r2 = s2[n2];
|
|
273
|
-
|
|
311
|
+
x(e2, r2 ? r2.value : r2, t2);
|
|
274
312
|
}
|
|
275
313
|
}
|
|
276
|
-
function
|
|
314
|
+
function j(e2, t2, r2) {
|
|
277
315
|
var _a;
|
|
278
316
|
let i2, l2;
|
|
279
317
|
if (r2 ? (i2 = s(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? n(e2, l2) : null), !i2) return;
|
|
@@ -286,7 +324,7 @@ function O(e2, t2, r2) {
|
|
|
286
324
|
}
|
|
287
325
|
i2.dynamicControlTableEdit(e2, t2, u2);
|
|
288
326
|
}
|
|
289
|
-
function
|
|
327
|
+
function x(e2, t2, s2) {
|
|
290
328
|
var _a, _b, _c;
|
|
291
329
|
if (t2) {
|
|
292
330
|
const n2 = t2.getConfigure();
|
|
@@ -297,30 +335,30 @@ function C(e2, t2, s2) {
|
|
|
297
335
|
}
|
|
298
336
|
}
|
|
299
337
|
}
|
|
300
|
-
function
|
|
338
|
+
function T(e2) {
|
|
301
339
|
if (!(e2 == null ? void 0 : e2.type)) return;
|
|
302
|
-
const t2 =
|
|
340
|
+
const t2 = N[e2.type];
|
|
303
341
|
t2 && (e2.validator = t2.validator);
|
|
304
342
|
}
|
|
305
|
-
const
|
|
306
|
-
return true ===
|
|
343
|
+
const N = { boolean: { validator: function(e2, t2, s2) {
|
|
344
|
+
return true === M(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
307
345
|
} }, date: { validator: function(e2, t2, s2) {
|
|
308
|
-
if (true !==
|
|
346
|
+
if (true !== M(e2, t2)) return false;
|
|
309
347
|
const n2 = new Date(t2);
|
|
310
348
|
return !isNaN(n2.getTime());
|
|
311
349
|
} }, number: { validator: function(e2, t2, s2) {
|
|
312
|
-
return true ===
|
|
313
|
-
} } },
|
|
350
|
+
return true === M(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
351
|
+
} } }, M = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
314
352
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
353
|
+
C as disabledAllFields,
|
|
354
|
+
j as dynamicControlTableEdit,
|
|
355
|
+
E as getWorkflowRules,
|
|
356
|
+
P as i18nValidatePropRulesMessage,
|
|
357
|
+
v as i18nValidateRulesMessage,
|
|
358
|
+
R as packageCustomRules,
|
|
359
|
+
T as packageCustomValidator,
|
|
360
|
+
m as setObjectPropRule,
|
|
361
|
+
k as updateFormItemEditState,
|
|
362
|
+
h as validateDataModelFunc,
|
|
363
|
+
p as validator
|
|
326
364
|
};
|