super-page-runtime 2.3.47-sit2 → 2.3.47
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 +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime2.vue.js → button-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime2.vue.js → buttongroup-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime2.vue.js → dropdown-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime2.vue.js → exportpdf-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime2.vue.js → printlabel-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime2.vue.js → column-line-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- 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 +9 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search2.vue.js → common-homepage-search.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime2.vue.js → gauge-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime2.vue.js → pie-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime2.vue.js → radar-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime2.vue.js → scatter-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime2.vue.js → table-runtime.vue2.js} +9 -9
- 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/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime2.vue.js → card-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime2.vue.js → collapse-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime2.vue.js → container-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox2.vue.js → FixedBox.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix2.vue.js → YxAffix.vue2.js} +4 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime2.vue.js → flex-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime2.vue.js → form-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime2.vue.js → iframe-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/{tabs-runtime2.vue.js → tabs-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime2.vue.js → tools-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime2.vue.js → barcode-runtime.vue2.js} +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime2.vue.js → table-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/{tree-runtime2.vue.js → tree-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime2.vue.js → checkbox-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime2.vue.js → custom-runtime.vue2.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime2.vue.js → depttree-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime2.vue.js → divider-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime2.vue.js → fileupload-runtime.vue2.js} +7 -5
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime2.vue.js → imageupload-runtime.vue2.js} +5 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime2.vue.js → input-number-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +81 -0
- 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-runtime2.vue.js → label-runtime.vue2.js} +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime2.vue.js → link-runtime.vue2.js} +8 -6
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime2.vue.js → placeholder-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime2.vue.js → radio-runtime.vue2.js} +2 -2
- 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-runtime2.vue.js → richtext-runtime.vue2.js} +4 -4
- 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-runtime2.vue.js → select-runtime.vue2.js} +8 -7
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime2.vue.js → separatelabel-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime2.vue.js → switch-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime2.vue.js → tag-runtime.vue2.js} +3 -3
- 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-runtime2.vue.js → textarea-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +12 -10
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/{workflow-opinion-box2.vue.js → workflow-opinion-box.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime-dialog2.vue.js → extract-workflow-runtime-dialog.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime2.vue.js → extract-workflow-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime2.vue.js → pictureflow-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime2.vue.js → textflow-runtime.vue2.js} +2 -2
- 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-runtime2.vue.js → workflowbutton-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime2.vue.js → workflownode-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +7 -6
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page2.vue.js → super-page.vue2.js} +99 -98
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +0 -80
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb2.vue.js → common-chart-header-breadcrumb.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group2.vue.js → common-chart-header-group.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header2.vue.js → common-chart-header.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render2.vue.js → home-chart-condition-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item2.vue.js → group-column-item.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column2.vue.js → group-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column2.vue.js → normal-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination2.vue.js → table-pageination.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component2.vue.js → event-call-component.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog2.vue.js → export-form-report-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice2.vue.js → file-task-notice.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message2.vue.js → format-file-task-notice-message.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog2.vue.js → remove-signer-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table2.vue.js → remove-signer-table.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog2.vue.js → remove-transactor-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog2.vue.js → save-chart-condition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog2.vue.js → task-informition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime2.vue.js → main-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime2.vue.js → sub-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render2.vue.js → error-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element2.vue.js → title-suffix-element.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render2.vue.js → home-chart-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render2.vue.js → object-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom2.vue.js → page-bottom.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart2.vue.js → home-chart.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog3.vue.js → super-page-dialog.vue3.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getAdditionalParamMap as t, standardEvents as
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, checkAndTipFileUploading as r, dealAfterOperate as u } from "./standard-event.js";
|
|
3
3
|
import { isNotNeedValidateRequired as c, validateDataModelFunc as l } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
|
|
5
5
|
import { ElMessage as f } from "element-plus";
|
|
@@ -24,7 +24,7 @@ function j(e2, n2) {
|
|
|
24
24
|
n3[e4.eventName] = t3;
|
|
25
25
|
} catch (n4) {
|
|
26
26
|
const t4 = `自定义方法${e4.eventName}解析失败,请检查函数体是否正确`;
|
|
27
|
-
f.error(t4);
|
|
27
|
+
console.error(t4, n4), f.error(t4);
|
|
28
28
|
}
|
|
29
29
|
} else {
|
|
30
30
|
let t3 = e4.componentUuid + "_";
|
|
@@ -33,7 +33,7 @@ function j(e2, n2) {
|
|
|
33
33
|
n3[t3] = new Function("params", e4.jsContent);
|
|
34
34
|
} catch (n4) {
|
|
35
35
|
let t4 = "";
|
|
36
|
-
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", f.error(t4);
|
|
36
|
+
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", f.error(t4), console.error(t4, n4);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}), n3;
|
|
@@ -81,89 +81,89 @@ function h(e2) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function y(e2, n2, t2,
|
|
85
|
-
return P(e2, n2, t2,
|
|
84
|
+
function y(e2, n2, t2, o2, i2) {
|
|
85
|
+
return P(e2, n2, t2, o2, true, i2, false);
|
|
86
86
|
}
|
|
87
|
-
function E(e2, n2, t2,
|
|
87
|
+
function E(e2, n2, t2, o2, i2) {
|
|
88
88
|
var _a, _b;
|
|
89
|
-
if (
|
|
89
|
+
if (o2 && "change" === o2) {
|
|
90
90
|
const e3 = n2.subTableWatchProps;
|
|
91
91
|
if (e3) for (const n3 in e3) {
|
|
92
|
-
const
|
|
93
|
-
|
|
92
|
+
const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
93
|
+
o3 && o3.indexOf(i3) >= 0 && d.$emit("_refreshSubTable_" + n3, { propName: i3 });
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return P(e2, n2, t2,
|
|
96
|
+
return P(e2, n2, t2, o2, true, i2, true);
|
|
97
97
|
}
|
|
98
|
-
function N(e2, n2, t2,
|
|
99
|
-
return E(e2, n2, t2, "afterInit",
|
|
98
|
+
function N(e2, n2, t2, o2) {
|
|
99
|
+
return E(e2, n2, t2, "afterInit", o2);
|
|
100
100
|
}
|
|
101
|
-
function w(e2, n2, t2,
|
|
102
|
-
return P(e2, n2, t2,
|
|
101
|
+
function w(e2, n2, t2, o2, i2) {
|
|
102
|
+
return P(e2, n2, t2, o2, false, i2, false);
|
|
103
103
|
}
|
|
104
|
-
function P(e2, t2,
|
|
105
|
-
const s2 =
|
|
104
|
+
function P(e2, t2, o2, u2, c2, l2, a2) {
|
|
105
|
+
const s2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
|
|
106
106
|
let f2;
|
|
107
107
|
if (a2 || !function(e3) {
|
|
108
108
|
return e3 && S.indexOf(e3) >= 0;
|
|
109
109
|
}(u2)) {
|
|
110
110
|
if (f2 = B(t2, s2, u2), c2) {
|
|
111
|
-
return G(t2,
|
|
111
|
+
return G(t2, o2, f2, T(t2, o2, e2, l2));
|
|
112
112
|
}
|
|
113
113
|
return f2;
|
|
114
114
|
}
|
|
115
|
-
!function(e3, t3,
|
|
116
|
-
const u3 =
|
|
115
|
+
!function(e3, t3, o3) {
|
|
116
|
+
const u3 = i(t3, o3.ids);
|
|
117
117
|
if (!u3) return;
|
|
118
118
|
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
119
|
if (r(e3)) return;
|
|
120
|
-
Q(
|
|
121
|
-
if (true ===
|
|
120
|
+
Q(o3).then((i2) => {
|
|
121
|
+
if (true === i2.canExecute) {
|
|
122
122
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
123
|
-
const
|
|
123
|
+
const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r2 = B(e3, i3, "beforeValidateForm");
|
|
124
124
|
let u4;
|
|
125
|
-
if (r2 && (u4 = G(e3, t3, r2,
|
|
125
|
+
if (r2 && (u4 = G(e3, t3, r2, o3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
|
|
126
126
|
n(u4) ? u4.then((n2) => {
|
|
127
|
-
n2 && true === n2 ? U(e3, t3,
|
|
127
|
+
n2 && true === n2 ? U(e3, t3, o3) : e3.canClick = true;
|
|
128
128
|
}).catch((n2) => {
|
|
129
129
|
e3.canClick = true;
|
|
130
|
-
}) : U(e3, t3,
|
|
130
|
+
}) : U(e3, t3, o3);
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
}(t2,
|
|
133
|
+
}(t2, o2, L(e2, t2, o2, l2));
|
|
134
134
|
}
|
|
135
135
|
const S = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
136
136
|
function R(e2, n2) {
|
|
137
137
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
138
138
|
}
|
|
139
|
-
function T(e2, n2, t2,
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
return null != t2 && (
|
|
139
|
+
function T(e2, n2, t2, o2) {
|
|
140
|
+
const i2 = {};
|
|
141
|
+
if (o2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
142
|
+
return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
|
|
143
143
|
}
|
|
144
|
-
function U(e2, t2,
|
|
145
|
-
const
|
|
144
|
+
function U(e2, t2, o2) {
|
|
145
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
146
146
|
let r2 = true;
|
|
147
|
-
(
|
|
148
|
-
const u2 = z(e2,
|
|
147
|
+
(o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
|
|
148
|
+
const u2 = z(e2, i2, "click");
|
|
149
149
|
if (u2) {
|
|
150
150
|
const e3 = u2.isStandard, n2 = u2.event;
|
|
151
151
|
c(e3, n2) && (r2 = false);
|
|
152
152
|
}
|
|
153
|
-
l(e2, t2, u2, r2).then((
|
|
154
|
-
if (!
|
|
155
|
-
const r3 = D(e2, t2,
|
|
153
|
+
l(e2, t2, u2, r2).then((i3) => {
|
|
154
|
+
if (!i3) return void (e2.canClick = true);
|
|
155
|
+
const r3 = D(e2, t2, o2);
|
|
156
156
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
157
|
-
n2 ? q(e2, t2, u2,
|
|
157
|
+
n2 ? q(e2, t2, u2, o2) : e2.canClick = true;
|
|
158
158
|
}).catch((n2) => {
|
|
159
|
-
e2.canClick = true;
|
|
160
|
-
}) : q(e2, t2, u2,
|
|
159
|
+
console.error(n2), e2.canClick = true;
|
|
160
|
+
}) : q(e2, t2, u2, o2) : e2.canClick = true;
|
|
161
161
|
}).catch((n2) => {
|
|
162
|
-
e2.canClick = true;
|
|
162
|
+
console.error(n2), e2.canClick = true;
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function F(e2, n2, t2,
|
|
166
|
-
const r2 = L(e2, n2, t2,
|
|
165
|
+
function F(e2, n2, t2, o2, i2) {
|
|
166
|
+
const r2 = L(e2, n2, t2, i2), u2 = z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2);
|
|
167
167
|
q(n2, function(e3) {
|
|
168
168
|
const n3 = e3 && e3.props ? e3.props.suffixLinkPage : null;
|
|
169
169
|
if (!function(e4) {
|
|
@@ -174,68 +174,68 @@ function F(e2, n2, t2, i2, o2) {
|
|
|
174
174
|
return { ...e3, props: { ...e3.props, linkPage: n3 } };
|
|
175
175
|
}(t2), u2, r2);
|
|
176
176
|
}
|
|
177
|
-
function L(e2, n2, t2,
|
|
178
|
-
const
|
|
177
|
+
function L(e2, n2, t2, o2) {
|
|
178
|
+
const i2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
|
|
179
179
|
if (u2) {
|
|
180
180
|
const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
|
|
181
|
-
|
|
182
|
-
A(n2) && (
|
|
181
|
+
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = m(i2, r2, u2);
|
|
182
|
+
A(n2) && (o2.selections = t3, o2.id = c2 && c2.length > 0 ? c2[0] : null, o2.ids = c2);
|
|
183
183
|
const l2 = e3 ? e3.getTableConfigure() : null;
|
|
184
|
-
|
|
184
|
+
o2.tableConfigure = l2;
|
|
185
185
|
}
|
|
186
|
-
return T(n2, t2, e2,
|
|
186
|
+
return T(n2, t2, e2, o2);
|
|
187
187
|
}
|
|
188
188
|
function D(e2, n2, t2) {
|
|
189
|
-
const
|
|
190
|
-
let
|
|
191
|
-
return
|
|
189
|
+
const o2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
190
|
+
let i2;
|
|
191
|
+
return o2 && (i2 = G(e2, n2, o2, null, t2)), void 0 === i2 || i2;
|
|
192
192
|
}
|
|
193
193
|
function _(e2, n2, t2) {
|
|
194
|
-
const
|
|
195
|
-
d.$emit(
|
|
194
|
+
const o2 = e2.code + "_";
|
|
195
|
+
d.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
196
196
|
}
|
|
197
197
|
function A(e2, n2) {
|
|
198
198
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
199
199
|
}
|
|
200
|
-
function I(e2, t2,
|
|
201
|
-
const
|
|
200
|
+
function I(e2, t2, o2) {
|
|
201
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, i2, "afterClick");
|
|
202
202
|
if (r2) {
|
|
203
|
-
const
|
|
204
|
-
n(
|
|
203
|
+
const i3 = G(e2, t2, r2, null, o2);
|
|
204
|
+
n(i3) ? i3.finally(() => {
|
|
205
205
|
e2.canClick = true;
|
|
206
206
|
}) : e2.canClick = true;
|
|
207
207
|
} else e2.canClick = true;
|
|
208
208
|
}
|
|
209
|
-
function V(e2, n2, t2,
|
|
210
|
-
|
|
209
|
+
function V(e2, n2, t2, o2, i2, r2) {
|
|
210
|
+
o2 ? (e2.result = i2, e2.canClick = true) : u(e2, n2, i2, "", r2);
|
|
211
211
|
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
212
212
|
c2 && G(e2, n2, c2, t2);
|
|
213
213
|
}
|
|
214
|
-
function q(e2, t2,
|
|
214
|
+
function q(e2, t2, o2, i2) {
|
|
215
215
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
216
216
|
if (u2 && u2 instanceof Array) {
|
|
217
217
|
const n2 = function(e3) {
|
|
218
218
|
let n3 = e3 ? e3.row : null;
|
|
219
219
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
220
220
|
return n3;
|
|
221
|
-
}(
|
|
221
|
+
}(i2), o3 = v(e2, t2, u2, n2);
|
|
222
222
|
let c2, l2 = false;
|
|
223
|
-
|
|
223
|
+
o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
|
|
224
224
|
}
|
|
225
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2,
|
|
226
|
-
const r3 =
|
|
225
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, i2)) : function(e3, t3, o3, i3) {
|
|
226
|
+
const r3 = o3, u3 = A(e3);
|
|
227
227
|
if (r3) {
|
|
228
|
-
const
|
|
228
|
+
const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = G(e3, t3, o4, i3);
|
|
229
229
|
if (function(e4, n2) {
|
|
230
230
|
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
|
|
231
231
|
}(c2, l2)) return void (e3.canClick = true);
|
|
232
232
|
n(a2) ? a2.then((n2) => {
|
|
233
|
-
n2 ? V(e3, t3,
|
|
233
|
+
n2 ? V(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
|
|
234
234
|
}).catch((n2) => {
|
|
235
|
-
e3.canClick = true;
|
|
236
|
-
}) : V(e3, t3,
|
|
237
|
-
} else V(e3, t3,
|
|
238
|
-
}(e2, t2,
|
|
235
|
+
console.error(n2), e3.canClick = true;
|
|
236
|
+
}) : V(e3, t3, i3, c2, a2, u3);
|
|
237
|
+
} else V(e3, t3, i3, false, null, u3);
|
|
238
|
+
}(e2, t2, o2, i2);
|
|
239
239
|
}
|
|
240
240
|
function $(e2, n2) {
|
|
241
241
|
const t2 = e2.customEvents;
|
|
@@ -246,10 +246,10 @@ function $(e2, n2) {
|
|
|
246
246
|
}
|
|
247
247
|
function B(e2, n2, t2) {
|
|
248
248
|
if (n2 && t2) {
|
|
249
|
-
const
|
|
250
|
-
if (
|
|
251
|
-
const n3 =
|
|
252
|
-
return n3.isStandard ?
|
|
249
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
250
|
+
if (i2 && i2.length > 0) {
|
|
251
|
+
const n3 = i2[0];
|
|
252
|
+
return n3.isStandard ? o[n3.eventName] : $(e2, n3);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -263,49 +263,49 @@ function H(e2, n2) {
|
|
|
263
263
|
}
|
|
264
264
|
function z(e2, n2, t2) {
|
|
265
265
|
if (n2 && t2) {
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
const n3 =
|
|
269
|
-
return n3.isStandard ? { func:
|
|
266
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
267
|
+
if (i2 && i2.length > 0) {
|
|
268
|
+
const n3 = i2[0];
|
|
269
|
+
return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: $(e2, n3), isStandard: false, event: n3 };
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
function G(e2, n2, t2,
|
|
273
|
+
function G(e2, n2, t2, o2, i2) {
|
|
274
274
|
if (t2) {
|
|
275
|
-
if (
|
|
275
|
+
if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
276
276
|
try {
|
|
277
|
-
return t2.apply(t2, [
|
|
277
|
+
return t2.apply(t2, [o2]);
|
|
278
278
|
} catch (e3) {
|
|
279
|
-
throw function(e4) {
|
|
279
|
+
throw function(e4, n3) {
|
|
280
280
|
var _a, _b, _c, _d;
|
|
281
|
-
let
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
i3 && (
|
|
285
|
-
|
|
286
|
-
}(n2), e3;
|
|
281
|
+
let t3 = "";
|
|
282
|
+
const o3 = (e4 == null ? void 0 : e4.title) || ((_b = (_a = e4 == null ? void 0 : e4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.title), i3 = (e4 == null ? void 0 : e4.label) || ((_d = (_c = e4 == null ? void 0 : e4.props) == null ? void 0 : _c.base) == null ? void 0 : _d.label);
|
|
283
|
+
o3 && (t3 += o3 + "的");
|
|
284
|
+
i3 && (t3 += i3);
|
|
285
|
+
t3 += "事件执行失败,请检查事件函数体是否正确", f.error(t3), console.error(t3, n3);
|
|
286
|
+
}(n2, e3), e3;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
function Q(e2) {
|
|
291
|
-
const n2 = e2.pageContext,
|
|
291
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, i2 = A(n2);
|
|
292
292
|
let r2 = [];
|
|
293
|
-
if (
|
|
293
|
+
if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
294
294
|
else {
|
|
295
295
|
const e3 = n2.entity.data;
|
|
296
296
|
r2.push(e3);
|
|
297
297
|
}
|
|
298
|
-
const u2 =
|
|
299
|
-
return new Promise((e3,
|
|
298
|
+
const u2 = o2.props.base.condition;
|
|
299
|
+
return new Promise((e3, o3) => {
|
|
300
300
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
301
301
|
else {
|
|
302
|
-
const
|
|
302
|
+
const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
303
303
|
let a2, s2, m2 = true;
|
|
304
304
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
305
305
|
const t2 = r2[e4];
|
|
306
306
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
307
307
|
const r3 = u2[e5], f2 = r3.toolTips, p2 = r3.conditionList;
|
|
308
|
-
if (!g(p2, t2,
|
|
308
|
+
if (!g(p2, t2, i3, o4, c2, l2, null, n2)) {
|
|
309
309
|
m2 = false, a2 = f2, s2 = t2;
|
|
310
310
|
break;
|
|
311
311
|
}
|
|
@@ -315,35 +315,35 @@ function Q(e2) {
|
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
|
-
function W(e2, n2, t2,
|
|
319
|
-
var
|
|
320
|
-
n2 && (J("afterGridConfigInit", w(null, (
|
|
318
|
+
function W(e2, n2, t2, o2) {
|
|
319
|
+
var i2;
|
|
320
|
+
n2 && (J("afterGridConfigInit", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "afterGridConfigInit", i2), e2), J("loadBeforeSend", function(e3) {
|
|
321
321
|
return w(null, e3.pageContext, e3.configureObj, "beforeListLoad", e3);
|
|
322
|
-
}({ pageContext: t2, configureObj:
|
|
322
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("beforeRequest", function(e3) {
|
|
323
323
|
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
324
|
-
}({ pageContext: t2, configureObj:
|
|
324
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("gridDataLoaded", function(e3) {
|
|
325
325
|
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
326
|
-
}({ pageContext: t2, configureObj:
|
|
326
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("gridComplete", function(e3) {
|
|
327
327
|
return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
328
|
-
}({ pageContext: t2, configureObj:
|
|
328
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("resizeHeight", function(e3) {
|
|
329
329
|
return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
330
|
-
}({ pageContext: t2, configureObj:
|
|
330
|
+
}({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), J("beforeInsertRow", function(e3) {
|
|
331
331
|
return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
332
|
-
}({ pageContext: t2, configureObj:
|
|
332
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("afterInsertRow", function(e3) {
|
|
333
333
|
return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
334
|
-
}({ pageContext: t2, configureObj:
|
|
334
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeDelete", function(e3) {
|
|
335
335
|
return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
336
|
-
}({ pageContext: t2, configureObj:
|
|
336
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("afterDelete", function(e3) {
|
|
337
337
|
return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
338
|
-
}({ pageContext: t2, configureObj:
|
|
338
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeEdit", function(e3) {
|
|
339
339
|
return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
340
|
-
}({ pageContext: t2, configureObj:
|
|
340
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeRestore", function(e3) {
|
|
341
341
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
342
|
-
}({ pageContext: t2, configureObj:
|
|
342
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeRestoreValidate", function(e3) {
|
|
343
343
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
344
|
-
}({ pageContext: t2, configureObj:
|
|
344
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
345
345
|
n3 && (t3[e3] = n3);
|
|
346
|
-
}("filterDataEvent", w(null, t2,
|
|
346
|
+
}("filterDataEvent", w(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
|
|
347
347
|
}
|
|
348
348
|
function J(e2, n2, t2) {
|
|
349
349
|
n2 && (t2[e2] = n2);
|
|
@@ -372,10 +372,10 @@ function ne(e2, n2, t2) {
|
|
|
372
372
|
function te(e2, n2, t2) {
|
|
373
373
|
return y(null, e2, n2, "header-click", t2);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function oe(e2) {
|
|
376
376
|
return y(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ie(e2, n2, t2) {
|
|
379
379
|
return y(null, e2, n2, "uploaded", t2);
|
|
380
380
|
}
|
|
381
381
|
function re(e2, n2, t2) {
|
|
@@ -395,19 +395,19 @@ function ce(n2) {
|
|
|
395
395
|
}
|
|
396
396
|
return t2;
|
|
397
397
|
}
|
|
398
|
-
function le(e2, n2, t2,
|
|
399
|
-
return G(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption:
|
|
398
|
+
function le(e2, n2, t2, o2, i2) {
|
|
399
|
+
return G(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
|
|
400
400
|
}
|
|
401
401
|
function ae(n2, t2) {
|
|
402
|
-
let
|
|
402
|
+
let o2 = true;
|
|
403
403
|
if (e()) {
|
|
404
404
|
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
405
405
|
if (e2) {
|
|
406
|
-
const n3 = e2.isStandard, t3 = e2.event,
|
|
407
|
-
n3 &&
|
|
406
|
+
const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
|
|
407
|
+
n3 && i2 && (i2.indexOf("Html5Plus") > 0 ? (C.includes(t3.eventName) || x.includes(t3.eventName)) && (o2 = false) : x.includes(t3.eventName) && (o2 = false));
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
return
|
|
410
|
+
return o2;
|
|
411
411
|
}
|
|
412
412
|
export {
|
|
413
413
|
O as appendDefaultMethods,
|
|
@@ -419,9 +419,9 @@ export {
|
|
|
419
419
|
_ as doClickJumpPageEvent,
|
|
420
420
|
F as doSuffixOrPrefixClickEvent,
|
|
421
421
|
re as fileUploadBeforeDelete,
|
|
422
|
-
|
|
422
|
+
oe as fileUploadBeforeUpload,
|
|
423
423
|
ue as fileUploadDeleted,
|
|
424
|
-
|
|
424
|
+
ie as fileUploadUploaded,
|
|
425
425
|
z as getClickEventFuncByType,
|
|
426
426
|
k as getCustomFunc,
|
|
427
427
|
L as getDefaultEventParams,
|
|
@@ -3,26 +3,27 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
4
|
function a(n2, a2) {
|
|
5
5
|
e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/print-models/by-codes", [a2]).then((e2) => {
|
|
6
|
-
const a3 = JSON.parse(e2[0].template),
|
|
6
|
+
const a3 = JSON.parse(e2[0].template), r2 = [];
|
|
7
7
|
a3.panels.forEach((e3) => {
|
|
8
8
|
e3.printElements.forEach((e4) => {
|
|
9
|
-
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType ||
|
|
9
|
+
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
|
|
13
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
14
14
|
a3.panels[0].printElements.forEach((e3) => {
|
|
15
15
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|
|
16
16
|
const t2 = e3.options.field.substring(6);
|
|
17
17
|
f[t2] = e3.options.dateFormat;
|
|
18
18
|
}
|
|
19
|
-
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4,
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
19
|
+
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
|
|
20
|
+
const i2 = JSON.parse(JSON.stringify(e3.selections));
|
|
21
|
+
if (i2.forEach((e4) => {
|
|
22
22
|
Object.keys(t2).forEach((t3) => {
|
|
23
23
|
if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
|
|
24
24
|
e4[t3] = new Date(e4[t3]);
|
|
25
25
|
} catch (e5) {
|
|
26
|
+
console.error(`日期格式化失败: ${e5}`);
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
}), n3.length > 0) {
|
|
@@ -30,70 +31,70 @@ function a(n2, a2) {
|
|
|
30
31
|
n3.forEach((t3) => {
|
|
31
32
|
e4.push(function(e5, t4) {
|
|
32
33
|
return new Promise((n4, a5) => {
|
|
33
|
-
const
|
|
34
|
-
|
|
34
|
+
const s3 = e5.field.split("."), r4 = [];
|
|
35
|
+
s3.length < 2 && n4([]);
|
|
35
36
|
try {
|
|
36
|
-
|
|
37
|
+
p(s3[1]).then((e6) => {
|
|
37
38
|
t4.forEach((t5, n5) => {
|
|
38
|
-
const a6 = { type:
|
|
39
|
-
a6.value = o(JSON.parse(e6.barcodeModelItems), t5),
|
|
40
|
-
}), n4(
|
|
39
|
+
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
40
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
|
|
41
|
+
}), n4(r4);
|
|
41
42
|
});
|
|
42
43
|
} catch (e6) {
|
|
43
|
-
n4([]);
|
|
44
|
+
console.error("获取条码规则失败:", e6), n4([]);
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
}(t3,
|
|
47
|
+
}(t3, i2));
|
|
47
48
|
}), Promise.all(e4).then((e5) => {
|
|
48
49
|
e5.forEach((e6) => {
|
|
49
50
|
e6.forEach((e7) => {
|
|
50
|
-
const t3 = e7.index, n4 =
|
|
51
|
+
const t3 = e7.index, n4 = i2[t3];
|
|
51
52
|
n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
|
|
52
53
|
});
|
|
53
|
-
}), a4.print(
|
|
54
|
+
}), a4.print(i2, s2, r3);
|
|
54
55
|
});
|
|
55
|
-
} else a4.print(
|
|
56
|
-
}(n2, f,
|
|
56
|
+
} else a4.print(i2, s2, r3);
|
|
57
|
+
}(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function s(e2, t2, n2, a2, s2) {
|
|
60
61
|
if (t2.length > 0) {
|
|
61
|
-
const
|
|
62
|
+
const r2 = [];
|
|
62
63
|
t2.forEach((t3) => {
|
|
63
|
-
|
|
64
|
+
r2.push(function(e3, t4) {
|
|
64
65
|
return new Promise((n3, a3) => {
|
|
65
|
-
const
|
|
66
|
-
|
|
66
|
+
const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
|
|
67
|
+
s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
|
|
67
68
|
try {
|
|
68
|
-
|
|
69
|
+
p(r3.name).then((t5) => {
|
|
69
70
|
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
70
|
-
|
|
71
|
+
r3.value = o(a4, e3.entity.data), n3(r3);
|
|
71
72
|
});
|
|
72
73
|
} catch (e4) {
|
|
73
|
-
n3(
|
|
74
|
+
console.error("获取条码规则失败:", e4), n3(r3);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
}(e2.pageContext, t3));
|
|
77
|
-
}), Promise.all(
|
|
78
|
+
}), Promise.all(r2).then((t3) => {
|
|
78
79
|
const o2 = {};
|
|
79
80
|
t3.forEach((e3) => {
|
|
80
81
|
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
81
82
|
});
|
|
82
|
-
const
|
|
83
|
-
Object.assign(
|
|
83
|
+
const p2 = { table: {} };
|
|
84
|
+
Object.assign(p2, e2.pageContext.entity, o2), p2.table = e2.pageContext.entity.data, n2.print(p2, a2, s2);
|
|
84
85
|
});
|
|
85
86
|
} else {
|
|
86
87
|
const t3 = { table: {} };
|
|
87
|
-
Object.assign(t3, e2.pageContext.entity), t3.table = e2.pageContext.entity.data, n2.print(t3, a2,
|
|
88
|
+
Object.assign(t3, e2.pageContext.entity), t3.table = e2.pageContext.entity.data, n2.print(t3, a2, s2);
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function p(t2) {
|
|
91
92
|
const n2 = encodeURIComponent(t2);
|
|
92
93
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/component/setting-barcode-models/by-name?name=${n2}`);
|
|
93
94
|
}
|
|
94
95
|
n();
|
|
95
|
-
const
|
|
96
|
+
const r = { printLabel: a };
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
r as default,
|
|
98
99
|
a as printLabel
|
|
99
100
|
};
|