super-page-runtime 2.2.23 → 2.2.29-tmp1
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 +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
- package/dist/es/components/runtime/utils/charts/chart-util.js +4 -2
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +194 -182
- package/dist/es/components/runtime/utils/events/print-label.js +38 -37
- package/dist/es/components/runtime/utils/events/standard-event.js +452 -440
- package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
- package/dist/es/components/runtime/utils/page-init-util.js +72 -61
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +23 -23
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
- 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 +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +114 -111
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +39 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +72 -71
- package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -13
- package/dist/es/components/runtime/views/super-page.vue.js +134 -132
- package/package.json +2 -2
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
|
-
function
|
|
5
|
-
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [
|
|
6
|
-
const
|
|
7
|
-
|
|
4
|
+
function s(n2, s2) {
|
|
5
|
+
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [s2]).then((e2) => {
|
|
6
|
+
const s3 = JSON.parse(e2[0].template), r2 = [];
|
|
7
|
+
s3.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 l = new t.PrintTemplate({ template:
|
|
12
|
+
const l = new t.PrintTemplate({ template: s3 }), i = { callback: () => {
|
|
13
|
+
console.log("浏览器打印窗口已打开");
|
|
13
14
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
|
|
14
|
-
n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3,
|
|
15
|
+
n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, s4, a2) {
|
|
15
16
|
if (t2.length > 0) {
|
|
16
|
-
const
|
|
17
|
+
const r3 = [], l2 = JSON.parse(JSON.stringify(e3.selections));
|
|
17
18
|
t2.forEach((e4) => {
|
|
18
|
-
|
|
19
|
-
return new Promise((n4,
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
r3.push(function(e5, t3) {
|
|
20
|
+
return new Promise((n4, s5) => {
|
|
21
|
+
const a3 = e5.field.split("."), r4 = [];
|
|
22
|
+
a3.length < 2 && n4([]);
|
|
22
23
|
try {
|
|
23
|
-
p(
|
|
24
|
+
p(a3[1]).then((e6) => {
|
|
24
25
|
t3.forEach((t4, n5) => {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
}), n4(
|
|
26
|
+
const s6 = { type: a3[0], name: a3[1], value: null, index: n5 };
|
|
27
|
+
s6.value = o(JSON.parse(e6.barcodeModelItems), t4), r4.push(s6);
|
|
28
|
+
}), n4(r4);
|
|
28
29
|
});
|
|
29
30
|
} catch (e6) {
|
|
30
|
-
n4([]);
|
|
31
|
+
console.error("获取条码规则失败:", e6), n4([]);
|
|
31
32
|
}
|
|
32
33
|
});
|
|
33
34
|
}(e4, l2));
|
|
34
|
-
}), Promise.all(
|
|
35
|
+
}), Promise.all(r3).then((e4) => {
|
|
35
36
|
e4.forEach((e5) => {
|
|
36
37
|
e5.forEach((e6) => {
|
|
37
38
|
const t3 = e6.index, n4 = l2[t3];
|
|
38
39
|
n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
|
|
39
40
|
});
|
|
40
|
-
}), n3.print(l2,
|
|
41
|
+
}), n3.print(l2, s4, a2);
|
|
41
42
|
});
|
|
42
|
-
} else n3.print(e3.selections,
|
|
43
|
-
}(n2,
|
|
43
|
+
} else n3.print(e3.selections, s4, a2);
|
|
44
|
+
}(n2, r2, l, c, i) : "form" === n2.pageContext.pageType && a(n2, r2, l, c, i) : a(n2, r2, l, c, i);
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function a(e2, t2, n2, s2, a2) {
|
|
47
48
|
if (t2.length > 0) {
|
|
48
|
-
const
|
|
49
|
+
const r2 = [];
|
|
49
50
|
t2.forEach((t3) => {
|
|
50
|
-
|
|
51
|
-
return new Promise((n3,
|
|
52
|
-
const
|
|
53
|
-
|
|
51
|
+
r2.push(function(e3, t4) {
|
|
52
|
+
return new Promise((n3, s3) => {
|
|
53
|
+
const a3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
|
|
54
|
+
a3.length < 2 && n3(r3), r3.type = a3[0], r3.name = a3[1];
|
|
54
55
|
try {
|
|
55
|
-
p(
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
p(r3.name).then((t5) => {
|
|
57
|
+
const s4 = JSON.parse(t5.barcodeModelItems);
|
|
58
|
+
r3.value = o(s4, e3.entity.data), n3(r3);
|
|
58
59
|
});
|
|
59
60
|
} catch (e4) {
|
|
60
|
-
n3(
|
|
61
|
+
console.error("获取条码规则失败:", e4), n3(r3);
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
}(e2.pageContext, t3));
|
|
64
|
-
}), Promise.all(
|
|
65
|
+
}), Promise.all(r2).then((t3) => {
|
|
65
66
|
const o2 = {};
|
|
66
67
|
t3.forEach((e3) => {
|
|
67
68
|
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
68
69
|
});
|
|
69
70
|
const p2 = {};
|
|
70
|
-
Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2,
|
|
71
|
+
Object.assign(p2, e2.pageContext.entity, o2), n2.print(p2, s2, a2);
|
|
71
72
|
});
|
|
72
73
|
} else {
|
|
73
74
|
const t3 = {};
|
|
74
|
-
Object.assign(t3, e2.pageContext.entity), n2.print(t3,
|
|
75
|
+
Object.assign(t3, e2.pageContext.entity), n2.print(t3, s2, a2);
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
function p(t2) {
|
|
@@ -79,8 +80,8 @@ function p(t2) {
|
|
|
79
80
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
80
81
|
}
|
|
81
82
|
n();
|
|
82
|
-
const
|
|
83
|
+
const r = { printLabel: s };
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
r as default,
|
|
86
|
+
s as printLabel
|
|
86
87
|
};
|