super-page-runtime 2.1.933 → 2.2.1
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/_virtual/_plugin-vue_export-helper.js +5 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
- package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
- package/dist/es/components/runtime/utils/barcode-util.js +9 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
- package/dist/es/components/runtime/utils/common-util.js +76 -153
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +343 -727
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
- package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
- package/dist/es/components/runtime/utils/global-refs.js +53 -84
- package/dist/es/components/runtime/utils/i18n-util.js +11 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +132 -370
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +45 -84
- package/dist/es/components/runtime/utils/tree-utils.js +17 -37
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +222 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +3 -2
|
@@ -1,154 +1,86 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { generateCodeByRule } from "../barcode-util.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const barCodeOptions = [];
|
|
11
|
-
templateJson.panels.forEach((panel) => {
|
|
12
|
-
panel.printElements.forEach((element) => {
|
|
13
|
-
if (element.options.textType === "barcode" || element.options.textType === "qrcode") {
|
|
14
|
-
barCodeOptions.push(element.options);
|
|
15
|
-
}
|
|
1
|
+
import e from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
3
|
+
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
|
+
function a(n2, a2) {
|
|
5
|
+
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
|
|
6
|
+
const a3 = JSON.parse(e2[0].template), i2 = [];
|
|
7
|
+
a3.panels.forEach((e3) => {
|
|
8
|
+
e3.printElements.forEach((e4) => {
|
|
9
|
+
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
|
|
16
10
|
});
|
|
17
11
|
});
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
Promise.all(valuePromises).then((allBarValues) => {
|
|
49
|
-
allBarValues.forEach((barValues) => {
|
|
50
|
-
barValues.forEach((item) => {
|
|
51
|
-
const index = item.index;
|
|
52
|
-
const selection = selections[index];
|
|
53
|
-
if (!selection[item.type]) {
|
|
54
|
-
selection[item.type] = {};
|
|
55
|
-
}
|
|
56
|
-
selection[item.type][item.name] = item.value;
|
|
12
|
+
const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
|
|
13
|
+
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
|
|
14
|
+
n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2) {
|
|
15
|
+
if (t2.length > 0) {
|
|
16
|
+
const i3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
17
|
+
t2.forEach((e4) => {
|
|
18
|
+
i3.push(function(e5, t3) {
|
|
19
|
+
return new Promise((n4, a5) => {
|
|
20
|
+
const s3 = e5.field.split("."), i4 = [];
|
|
21
|
+
s3.length < 2 && n4([]);
|
|
22
|
+
try {
|
|
23
|
+
p(s3[1]).then((e6) => {
|
|
24
|
+
t3.forEach((t4, n5) => {
|
|
25
|
+
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
26
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t4), i4.push(a6);
|
|
27
|
+
}), n4(i4);
|
|
28
|
+
});
|
|
29
|
+
} catch (e6) {
|
|
30
|
+
n4([]);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}(e4, l2));
|
|
34
|
+
}), Promise.all(i3).then((e4) => {
|
|
35
|
+
e4.forEach((e5) => {
|
|
36
|
+
e5.forEach((e6) => {
|
|
37
|
+
const t3 = e6.index, n4 = l2[t3];
|
|
38
|
+
n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
|
|
39
|
+
});
|
|
40
|
+
}), n3.print(l2, a4, s2);
|
|
57
41
|
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
printTemplate.print(params.selections, options, ext);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function resloveListData(barCodeOption, selections) {
|
|
66
|
-
return new Promise((reslove, reject) => {
|
|
67
|
-
const fields = barCodeOption.field.split(".");
|
|
68
|
-
const barcodeValues = [];
|
|
69
|
-
if (fields.length < 2) {
|
|
70
|
-
reslove([]);
|
|
71
|
-
}
|
|
72
|
-
try {
|
|
73
|
-
getBarcodeModelsByName(fields[1]).then((res) => {
|
|
74
|
-
selections.forEach((selection, index) => {
|
|
75
|
-
const barcodeValue = {
|
|
76
|
-
type: fields[0],
|
|
77
|
-
name: fields[1],
|
|
78
|
-
value: null,
|
|
79
|
-
index
|
|
80
|
-
// 记录当前行索引
|
|
81
|
-
};
|
|
82
|
-
barcodeValue.value = generateCodeByRule(JSON.parse(res.barcodeModelItems), selection);
|
|
83
|
-
barcodeValues.push(barcodeValue);
|
|
84
|
-
});
|
|
85
|
-
reslove(barcodeValues);
|
|
86
|
-
});
|
|
87
|
-
} catch (error) {
|
|
88
|
-
console.error("获取条码规则失败:", error);
|
|
89
|
-
reslove([]);
|
|
90
|
-
}
|
|
42
|
+
} else n3.print(e3.selections, a4, s2);
|
|
43
|
+
}(n2, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
|
|
91
44
|
});
|
|
92
45
|
}
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
46
|
+
function s(e2, t2, n2, a2, s2) {
|
|
47
|
+
if (t2.length > 0) {
|
|
48
|
+
const i2 = [];
|
|
49
|
+
t2.forEach((t3) => {
|
|
50
|
+
i2.push(function(e3, t4) {
|
|
51
|
+
return new Promise((n3, a3) => {
|
|
52
|
+
const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
|
|
53
|
+
s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
|
|
54
|
+
try {
|
|
55
|
+
p(i3.name).then((t5) => {
|
|
56
|
+
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
57
|
+
i3.value = o(a4, e3.entity.data), n3(i3);
|
|
58
|
+
});
|
|
59
|
+
} catch (e4) {
|
|
60
|
+
n3(i3);
|
|
105
61
|
}
|
|
106
|
-
|
|
107
|
-
|
|
62
|
+
});
|
|
63
|
+
}(e2.pageContext, t3));
|
|
64
|
+
}), Promise.all(i2).then((t3) => {
|
|
65
|
+
const o2 = {};
|
|
66
|
+
t3.forEach((e3) => {
|
|
67
|
+
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
108
68
|
});
|
|
109
|
-
const
|
|
110
|
-
Object.assign(
|
|
111
|
-
printTemplate.print(data, options, ext);
|
|
69
|
+
const p2 = {};
|
|
70
|
+
Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, a2, s2);
|
|
112
71
|
});
|
|
113
72
|
} else {
|
|
114
|
-
const
|
|
115
|
-
Object.assign(
|
|
116
|
-
printTemplate.print(data, options, ext);
|
|
73
|
+
const t3 = {};
|
|
74
|
+
Object.assign(t3, e2.pageContext.entity), n2.print(t3, a2, s2);
|
|
117
75
|
}
|
|
118
76
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const barcodeRule = {
|
|
123
|
-
type: null,
|
|
124
|
-
name: null,
|
|
125
|
-
value: null
|
|
126
|
-
};
|
|
127
|
-
if (fields.length < 2) {
|
|
128
|
-
reslove(barcodeRule);
|
|
129
|
-
}
|
|
130
|
-
barcodeRule.type = fields[0];
|
|
131
|
-
barcodeRule.name = fields[1];
|
|
132
|
-
try {
|
|
133
|
-
getBarcodeModelsByName(barcodeRule.name).then((res) => {
|
|
134
|
-
const rule = JSON.parse(res.barcodeModelItems);
|
|
135
|
-
barcodeRule.value = generateCodeByRule(rule, pageContext.entity.data);
|
|
136
|
-
reslove(barcodeRule);
|
|
137
|
-
});
|
|
138
|
-
} catch (error) {
|
|
139
|
-
console.error("获取条码规则失败:", error);
|
|
140
|
-
reslove(barcodeRule);
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function getBarcodeModelsByName(name) {
|
|
145
|
-
const encodedParam = encodeURIComponent(name);
|
|
146
|
-
return http.get(
|
|
147
|
-
window["$vueApp"].config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${encodedParam}`
|
|
148
|
-
);
|
|
77
|
+
function p(t2) {
|
|
78
|
+
const n2 = encodeURIComponent(t2);
|
|
79
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
149
80
|
}
|
|
150
|
-
|
|
81
|
+
n();
|
|
82
|
+
const i = { printLabel: a };
|
|
151
83
|
export {
|
|
152
|
-
|
|
153
|
-
printLabel
|
|
84
|
+
i as default,
|
|
85
|
+
a as printLabel
|
|
154
86
|
};
|
|
@@ -57,7 +57,7 @@ export declare function getSaveFormRequest(pageContext: PageContext, configureOb
|
|
|
57
57
|
*/
|
|
58
58
|
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
59
59
|
export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any): void;
|
|
60
|
-
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any): void;
|
|
60
|
+
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
|
|
61
61
|
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
62
62
|
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
63
63
|
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
@@ -79,4 +79,4 @@ export declare function refreshPage(pageContext: PageContext, id?: any): void;
|
|
|
79
79
|
* 获得表单数据
|
|
80
80
|
* @param pageContext
|
|
81
81
|
*/
|
|
82
|
-
export declare function getFormData(pageContext: PageContext, id?: any): Promise<unknown>;
|
|
82
|
+
export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
|