super-page-runtime 2.1.93 → 2.1.95
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 +6 -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/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -303
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +835 -2283
- package/dist/es/components/runtime/utils/events/validator-util.js +236 -555
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +295 -603
- package/dist/es/components/runtime/utils/page-init-util.js +134 -369
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- 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 +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- 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 +37 -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 +54 -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 +48 -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/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.js +208 -439
- 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 +63 -226
- 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 +168 -513
- 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.js +23 -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.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 +311 -800
- 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 +251 -592
- 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 +43 -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 -216
- 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 +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -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 +54 -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 +69 -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 +28 -98
- 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 +22 -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 +52 -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 +58 -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 +34 -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 +66 -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 +91 -243
- 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 +82 -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 +41 -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/object-render.vue.js +133 -252
- 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 +19 -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 +22 -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 +21 -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/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +232 -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/package.json +74 -73
|
@@ -1,154 +1,87 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { disAutoConnect, hiprint } from "vue-plugin-hiprint";
|
|
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 { disAutoConnect as t, hiprint as n } from "vue-plugin-hiprint";
|
|
3
|
+
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
|
+
function a(t2, 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 n.PrintTemplate({ template: a3 }), r = { callback: () => {
|
|
13
|
+
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
|
|
14
|
+
t2.pageContext.pageType ? "list" === t2.pageContext.pageType ? function(e3, t3, n2, a4, s2) {
|
|
15
|
+
if (t3.length > 0) {
|
|
16
|
+
const i3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
17
|
+
t3.forEach((e4) => {
|
|
18
|
+
i3.push(function(e5, t4) {
|
|
19
|
+
return new Promise((n3, a5) => {
|
|
20
|
+
const s3 = e5.field.split("."), i4 = [];
|
|
21
|
+
s3.length < 2 && n3([]);
|
|
22
|
+
try {
|
|
23
|
+
p(s3[1]).then((e6) => {
|
|
24
|
+
t4.forEach((t5, n4) => {
|
|
25
|
+
const a6 = { type: s3[0], name: s3[1], value: null, index: n4 };
|
|
26
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
|
|
27
|
+
}), n3(i4);
|
|
28
|
+
});
|
|
29
|
+
} catch (e6) {
|
|
30
|
+
n3([]);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}(e4, l2));
|
|
34
|
+
}), Promise.all(i3).then((e4) => {
|
|
35
|
+
e4.forEach((e5) => {
|
|
36
|
+
e5.forEach((e6) => {
|
|
37
|
+
const t4 = e6.index, n3 = l2[t4];
|
|
38
|
+
n3[e6.type] || (n3[e6.type] = {}), n3[e6.type][e6.name] = e6.value;
|
|
39
|
+
});
|
|
40
|
+
}), n2.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
|
|
43
|
+
n2.print(e3.selections, a4, s2);
|
|
44
|
+
}(t2, i2, l, c, r) : "form" === t2.pageContext.pageType && s(t2, i2, l, c, r) : s(t2, i2, l, c, r);
|
|
91
45
|
});
|
|
92
46
|
}
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
47
|
+
function s(e2, t2, n2, a2, s2) {
|
|
48
|
+
if (t2.length > 0) {
|
|
49
|
+
const i2 = [];
|
|
50
|
+
t2.forEach((t3) => {
|
|
51
|
+
i2.push(function(e3, t4) {
|
|
52
|
+
return new Promise((n3, a3) => {
|
|
53
|
+
const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
|
|
54
|
+
s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
|
|
55
|
+
try {
|
|
56
|
+
p(i3.name).then((t5) => {
|
|
57
|
+
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
58
|
+
i3.value = o(a4, e3.entity.data), n3(i3);
|
|
59
|
+
});
|
|
60
|
+
} catch (e4) {
|
|
61
|
+
n3(i3);
|
|
105
62
|
}
|
|
106
|
-
|
|
107
|
-
|
|
63
|
+
});
|
|
64
|
+
}(e2.pageContext, t3));
|
|
65
|
+
}), Promise.all(i2).then((t3) => {
|
|
66
|
+
const o2 = {};
|
|
67
|
+
t3.forEach((e3) => {
|
|
68
|
+
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
108
69
|
});
|
|
109
|
-
const
|
|
110
|
-
Object.assign(
|
|
111
|
-
printTemplate.print(data, options, ext);
|
|
70
|
+
const p2 = {};
|
|
71
|
+
Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, a2, s2);
|
|
112
72
|
});
|
|
113
73
|
} else {
|
|
114
|
-
const
|
|
115
|
-
Object.assign(
|
|
116
|
-
printTemplate.print(data, options, ext);
|
|
74
|
+
const t3 = {};
|
|
75
|
+
Object.assign(t3, e2.pageContext.entity), n2.print(t3, a2, s2);
|
|
117
76
|
}
|
|
118
77
|
}
|
|
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
|
-
);
|
|
78
|
+
function p(t2) {
|
|
79
|
+
const n2 = encodeURIComponent(t2);
|
|
80
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
149
81
|
}
|
|
150
|
-
|
|
82
|
+
t();
|
|
83
|
+
const i = { printLabel: a };
|
|
151
84
|
export {
|
|
152
|
-
|
|
153
|
-
printLabel
|
|
85
|
+
i as default,
|
|
86
|
+
a as printLabel
|
|
154
87
|
};
|