@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.28

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.
Files changed (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -0,0 +1,1097 @@
1
+ import { defineComponent as nt, ref as g, reactive as q, onMounted as ot, onBeforeUnmount as pt, resolveComponent as r, resolveDirective as at, withDirectives as rt, openBlock as T, createElementBlock as J, createVNode as l, withCtx as i, createElementVNode as e, Fragment as st, renderList as dt, unref as ct, createBlock as A, toDisplayString as B, withModifiers as ut, createCommentVNode as R, createTextVNode as j, nextTick as ht } from "vue";
2
+ import { VxeUI as I } from "vxe-pc-ui";
3
+ import { useGlobal as mt } from "@utogether/utils";
4
+ import { h as ft, i as gt, j as yt } from "./index-BpdTDaTk.js";
5
+ import { clone as vt } from "xe-utils";
6
+ import xt from "./Preview-jonigfMQ.js";
7
+ const wt = {
8
+ panels: [
9
+ {
10
+ index: 0,
11
+ height: 148,
12
+ width: 210,
13
+ paperHeader: -1.5,
14
+ paperFooter: 380,
15
+ printElements: [
16
+ {
17
+ options: {
18
+ left: 540,
19
+ top: 10.5,
20
+ height: 35,
21
+ width: 33,
22
+ borderColor: "#f20000",
23
+ coordinateSync: !0,
24
+ widthHeightSync: !0
25
+ },
26
+ printElementType: { title: "椭圆", type: "oval" }
27
+ },
28
+ {
29
+ options: {
30
+ left: 454.5,
31
+ top: 15,
32
+ height: 18,
33
+ width: 74,
34
+ title: "8888888",
35
+ fontSize: 18,
36
+ fontWeight: "600",
37
+ color: "#2935e3",
38
+ textAlign: "center",
39
+ lineHeight: 16
40
+ },
41
+ printElementType: { title: "文本", type: "text" }
42
+ },
43
+ {
44
+ options: {
45
+ left: 424.5,
46
+ top: 15,
47
+ height: 19,
48
+ width: 24,
49
+ title: "NO",
50
+ fontSize: 18,
51
+ color: "#2935e3",
52
+ textAlign: "center",
53
+ lineHeight: 15
54
+ },
55
+ printElementType: { title: "文本", type: "text" }
56
+ },
57
+ {
58
+ options: {
59
+ left: 190.5,
60
+ top: 15,
61
+ height: 21,
62
+ width: 226,
63
+ title: "上海增值税普通发票",
64
+ fontSize: 18,
65
+ fontWeight: "600",
66
+ letterSpacing: 2.5,
67
+ color: "#cc5a5a",
68
+ textAlign: "center",
69
+ lineHeight: 18
70
+ },
71
+ printElementType: { title: "文本", type: "text" }
72
+ },
73
+ {
74
+ options: {
75
+ left: 244.5,
76
+ top: 19.5,
77
+ height: 51,
78
+ width: 112,
79
+ borderColor: "#eb1111",
80
+ borderWidth: "2"
81
+ },
82
+ printElementType: { title: "椭圆", type: "oval" }
83
+ },
84
+ {
85
+ options: {
86
+ left: 90,
87
+ top: 19.5,
88
+ height: 21,
89
+ width: 96,
90
+ title: "8888888",
91
+ fontSize: 19,
92
+ letterSpacing: 1,
93
+ color: "#2935e3",
94
+ textAlign: "center",
95
+ lineHeight: 18
96
+ },
97
+ printElementType: { title: "文本", type: "text" }
98
+ },
99
+ {
100
+ options: {
101
+ left: 19.5,
102
+ top: 19.5,
103
+ height: 61,
104
+ width: 65,
105
+ title: "031001800204",
106
+ textType: "qrcode"
107
+ },
108
+ printElementType: { title: "文本", type: "text" }
109
+ },
110
+ {
111
+ options: { left: 250.5, top: 25.5, height: 42, width: 104, borderColor: "#f00505" },
112
+ printElementType: { title: "椭圆", type: "oval" }
113
+ },
114
+ {
115
+ options: { left: 190.5, top: 45, height: 10, width: 228, borderColor: "#b5a8a8" },
116
+ printElementType: { title: "横线", type: "hline" }
117
+ },
118
+ {
119
+ options: { left: 190.5, top: 49.5, height: 10, width: 228, borderColor: "#baafaf" },
120
+ printElementType: { title: "横线", type: "hline" }
121
+ },
122
+ {
123
+ options: {
124
+ left: 244.5,
125
+ top: 55.5,
126
+ height: 22,
127
+ width: 120,
128
+ title: "发票联",
129
+ fontSize: 18,
130
+ fontWeight: "600",
131
+ letterSpacing: 8,
132
+ color: "#cc5a5a",
133
+ textAlign: "center",
134
+ lineHeight: 18
135
+ },
136
+ printElementType: { title: "文本", type: "text" }
137
+ },
138
+ {
139
+ options: {
140
+ left: 510,
141
+ top: 55.5,
142
+ height: 13,
143
+ width: 69,
144
+ title: "2019年05月09日",
145
+ color: "#2935e3"
146
+ },
147
+ printElementType: { title: "文本", type: "text" }
148
+ },
149
+ {
150
+ options: {
151
+ left: 445.5,
152
+ top: 55.5,
153
+ height: 15,
154
+ width: 57,
155
+ title: "开票日期:",
156
+ color: "#cc5a5a",
157
+ lineHeight: 13
158
+ },
159
+ printElementType: { title: "文本", type: "text" }
160
+ },
161
+ {
162
+ options: {
163
+ left: 90,
164
+ top: 64.5,
165
+ height: 15,
166
+ width: 141,
167
+ title: "校验码:123456 788942 52344",
168
+ color: "#2935e3",
169
+ textAlign: "center",
170
+ lineHeight: 13
171
+ },
172
+ printElementType: { title: "文本", type: "text" }
173
+ },
174
+ {
175
+ options: { left: 400, top: 90, height: 60, width: 10, borderColor: "#cc5a5a" },
176
+ printElementType: { title: "竖线", type: "vline" }
177
+ },
178
+ {
179
+ options: { left: 35, top: 90, height: 60, width: 10, borderColor: "#cc5a5a" },
180
+ printElementType: { title: "竖线", type: "vline" }
181
+ },
182
+ {
183
+ options: { left: 420, top: 90, height: 61, width: 10, borderColor: "#cc5a5a" },
184
+ printElementType: { title: "竖线", type: "vline" }
185
+ },
186
+ {
187
+ options: { left: 10.5, top: 90, height: 282, width: 572, borderColor: "#cc5a5a" },
188
+ printElementType: { title: "矩形", type: "rect" }
189
+ },
190
+ {
191
+ options: {
192
+ left: 405,
193
+ top: 94.5,
194
+ height: 55,
195
+ width: 13,
196
+ title: "密码区",
197
+ fontSize: 13,
198
+ color: "#cc5a5a",
199
+ lineHeight: 18
200
+ },
201
+ printElementType: { title: "文本", type: "text" }
202
+ },
203
+ {
204
+ options: { left: 424.5, top: 94.5, height: 50, width: 152, title: "", color: "#2935e3" },
205
+ printElementType: { title: "文本", type: "text" }
206
+ },
207
+ {
208
+ options: {
209
+ left: 15,
210
+ top: 94.5,
211
+ height: 53,
212
+ width: 15,
213
+ title: "购买方",
214
+ fontSize: 13,
215
+ color: "#cc5a5a",
216
+ lineHeight: 18
217
+ },
218
+ printElementType: { title: "文本", type: "text" }
219
+ },
220
+ {
221
+ options: {
222
+ left: 45,
223
+ top: 100.5,
224
+ height: 10,
225
+ width: 348,
226
+ title: "名称:北京地铁税务局有限公司",
227
+ color: "#2935e3"
228
+ },
229
+ printElementType: { title: "文本", type: "text" }
230
+ },
231
+ {
232
+ options: {
233
+ left: 45,
234
+ top: 115.5,
235
+ height: 10,
236
+ width: 347,
237
+ title: "纳税人识别号:999999999999999999",
238
+ color: "#2935e3"
239
+ },
240
+ printElementType: { title: "文本", type: "text" }
241
+ },
242
+ {
243
+ options: {
244
+ left: 45,
245
+ top: 130.5,
246
+ height: 10,
247
+ width: 347,
248
+ title: "地址、电话:18888888888",
249
+ color: "#2935e3"
250
+ },
251
+ printElementType: { title: "文本", type: "text" }
252
+ },
253
+ {
254
+ options: { left: 345, top: 150, height: 190, width: 10, borderColor: "#cc5a5a" },
255
+ printElementType: { title: "竖线", type: "vline" }
256
+ },
257
+ {
258
+ options: { left: 409.5, top: 150, height: 190, width: 10, borderColor: "#cc5a5a" },
259
+ printElementType: { title: "竖线", type: "vline" }
260
+ },
261
+ {
262
+ options: { left: 295.5, top: 150, height: 190, width: 10, borderColor: "#cc5a5a" },
263
+ printElementType: { title: "竖线", type: "vline" }
264
+ },
265
+ {
266
+ options: { left: 480, top: 150, height: 190, width: 10, borderColor: "#cc5a5a" },
267
+ printElementType: { title: "竖线", type: "vline" }
268
+ },
269
+ {
270
+ options: { left: 215, top: 150, height: 224, width: 10, borderColor: "#cc5a5a" },
271
+ printElementType: { title: "竖线", type: "vline" }
272
+ },
273
+ {
274
+ options: { left: 520.5, top: 150, height: 190, width: 10, borderColor: "#cc5a5a" },
275
+ printElementType: { title: "竖线", type: "vline" }
276
+ },
277
+ {
278
+ options: { left: 10, top: 150, height: 10, width: 574, borderColor: "#cc5a5a" },
279
+ printElementType: { title: "横线", type: "hline" }
280
+ },
281
+ {
282
+ options: {
283
+ left: 300,
284
+ top: 160.5,
285
+ height: 10,
286
+ width: 36,
287
+ title: "单位",
288
+ fontSize: 13,
289
+ color: "#cc5a5a",
290
+ textAlign: "center"
291
+ },
292
+ printElementType: { title: "文本", type: "text" }
293
+ },
294
+ {
295
+ options: {
296
+ left: 349.5,
297
+ top: 160.5,
298
+ height: 11,
299
+ width: 51,
300
+ title: "数量",
301
+ fontSize: 13,
302
+ color: "#cc5a5a",
303
+ textAlign: "center"
304
+ },
305
+ printElementType: { title: "文本", type: "text" }
306
+ },
307
+ {
308
+ options: {
309
+ left: 225,
310
+ top: 160.5,
311
+ height: 10,
312
+ width: 62,
313
+ title: "规格名称",
314
+ fontSize: 13,
315
+ color: "#cc5a5a",
316
+ textAlign: "center"
317
+ },
318
+ printElementType: { title: "文本", type: "text" }
319
+ },
320
+ {
321
+ options: {
322
+ left: 420,
323
+ top: 160.5,
324
+ height: 10,
325
+ width: 53,
326
+ title: "单价",
327
+ fontSize: 13,
328
+ color: "#cc5a5a",
329
+ textAlign: "center"
330
+ },
331
+ printElementType: { title: "文本", type: "text" }
332
+ },
333
+ {
334
+ options: {
335
+ left: 484.5,
336
+ top: 160.5,
337
+ height: 10,
338
+ width: 32,
339
+ title: "税率",
340
+ fontSize: 13,
341
+ color: "#cc5a5a",
342
+ textAlign: "center"
343
+ },
344
+ printElementType: { title: "文本", type: "text" }
345
+ },
346
+ {
347
+ options: {
348
+ left: 525,
349
+ top: 160.5,
350
+ height: 10,
351
+ width: 52,
352
+ title: "税额",
353
+ fontSize: 13,
354
+ color: "#cc5a5a",
355
+ textAlign: "center"
356
+ },
357
+ printElementType: { title: "文本", type: "text" }
358
+ },
359
+ {
360
+ options: {
361
+ left: 19.5,
362
+ top: 160.5,
363
+ height: 10,
364
+ width: 184,
365
+ title: "货物或应税劳务、服务名称",
366
+ fontSize: 13,
367
+ color: "#cc5a5a",
368
+ textAlign: "center"
369
+ },
370
+ printElementType: { title: "文本", type: "text" }
371
+ },
372
+ {
373
+ options: {
374
+ left: 40.5,
375
+ top: 175.5,
376
+ height: 12,
377
+ width: 120,
378
+ title: "*餐饮服务*餐费",
379
+ color: "#2935e3"
380
+ },
381
+ printElementType: { title: "文本", type: "text" }
382
+ },
383
+ {
384
+ options: { left: 10.5, top: 340.5, height: 10, width: 574, borderColor: "#cc5a5a" },
385
+ printElementType: { title: "横线", type: "hline" }
386
+ },
387
+ {
388
+ options: {
389
+ left: 225,
390
+ top: 349.5,
391
+ height: 14,
392
+ width: 229,
393
+ title: "壹佰贰拾元整",
394
+ color: "#2935e3"
395
+ },
396
+ printElementType: { title: "文本", type: "text" }
397
+ },
398
+ {
399
+ options: {
400
+ left: 460.5,
401
+ top: 349.5,
402
+ height: 13,
403
+ width: 58,
404
+ title: "(小写)",
405
+ fontSize: 13,
406
+ color: "#cc5a5a"
407
+ },
408
+ printElementType: { title: "文本", type: "text" }
409
+ },
410
+ {
411
+ options: {
412
+ left: 520.5,
413
+ top: 349.5,
414
+ height: 13,
415
+ width: 48,
416
+ title: "¥100.00",
417
+ color: "#2935e3"
418
+ },
419
+ printElementType: { title: "文本", type: "text" }
420
+ },
421
+ {
422
+ options: {
423
+ left: 15,
424
+ top: 349.5,
425
+ height: 14,
426
+ width: 193,
427
+ title: "价税合计(大写)",
428
+ fontSize: 13,
429
+ color: "#cc5a5a",
430
+ textAlign: "center"
431
+ },
432
+ printElementType: { title: "文本", type: "text" }
433
+ },
434
+ {
435
+ options: { left: 300, top: 385.5, height: 10, width: 39, title: "开票人:", color: "#cc5a5a" },
436
+ printElementType: { title: "文本", type: "text" }
437
+ },
438
+ {
439
+ options: {
440
+ left: 190.5,
441
+ top: 385.5,
442
+ height: 10,
443
+ width: 103,
444
+ title: "轩大可",
445
+ color: "#2935e3"
446
+ },
447
+ printElementType: { title: "文本", type: "text" }
448
+ },
449
+ {
450
+ options: { left: 150, top: 385.5, height: 10, width: 33, title: "复核:", color: "#cc5a5a" },
451
+ printElementType: { title: "文本", type: "text" }
452
+ },
453
+ {
454
+ options: { left: 345, top: 385.5, height: 10, width: 86, title: "张天天", color: "#2935e3" },
455
+ printElementType: { title: "文本", type: "text" }
456
+ },
457
+ {
458
+ options: { left: 64.5, top: 385.5, height: 10, width: 78, title: "轩天天", color: "#2935e3" },
459
+ printElementType: { title: "文本", type: "text" }
460
+ },
461
+ {
462
+ options: {
463
+ left: 439.5,
464
+ top: 385.5,
465
+ height: 10,
466
+ width: 40,
467
+ title: "销售方:",
468
+ color: "#cc5a5a"
469
+ },
470
+ printElementType: { title: "文本", type: "text" }
471
+ },
472
+ {
473
+ options: { left: 15, top: 385.5, height: 10, width: 44, title: "收款人:", color: "#cc5a5a" },
474
+ printElementType: { title: "文本", type: "text" }
475
+ }
476
+ ],
477
+ paperNumberLeft: 565.5,
478
+ paperNumberTop: 394.5,
479
+ paperNumberDisabled: !0
480
+ }
481
+ ]
482
+ }, Tt = () => {
483
+ const b = {
484
+ name: "深圳友聚信息技术有限公司",
485
+ barcode: "https://www.u-together.cn/",
486
+ qrcode: "https://www.u-together.cn/",
487
+ date: E("1949-10-01", "2100-12-31"),
488
+ t1: "文本标题",
489
+ t2: "文本内容123456789",
490
+ lt1: "长文本内容1234567890qwertyuiopasdfghjklzxcvbnm",
491
+ list: [],
492
+ signature: "张三丰"
493
+ };
494
+ for (let m = 0; m < 30; m++)
495
+ b.list.push({
496
+ id: m,
497
+ name: "王小可",
498
+ date: E("1949-10-01", "2100-12-31"),
499
+ number: Math.floor(Math.random() * 1e3 + 100)
500
+ });
501
+ function E(m, u) {
502
+ const C = new Date(m).getTime(), z = new Date(u).getTime(), V = C + Math.random() * (z - C);
503
+ return new Date(V);
504
+ }
505
+ return b;
506
+ }, bt = { class: "ut-design-panel" }, Et = { class: "flex justify-between" }, St = { style: { float: "left" } }, _t = { style: { float: "right", "font-size": "13px", color: "var(--el-text-color-secondary)" } }, Ct = {
507
+ class: "flex justify-center mb-1",
508
+ style: { width: "100%" }
509
+ }, kt = /* @__PURE__ */ nt({
510
+ __name: "DesignPanel",
511
+ props: {
512
+ record: { default: () => ({}) }
513
+ },
514
+ emits: ["onClose"],
515
+ setup(b, { emit: E }) {
516
+ const m = b;
517
+ let { $printPlugin: u } = mt();
518
+ const z = ft().getDataDict, V = yt();
519
+ let s = null;
520
+ const N = g(!1), y = g(!1), v = g(!1), x = g(!1), k = g(null), S = g(""), f = g({}), d = q({}), h = q({ max: 5, min: 0.5, value: 1, ration: "100%" }), L = () => {
521
+ y.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
522
+ }, H = async (o) => {
523
+ const t = f.value;
524
+ let p = S.value;
525
+ if (!p) {
526
+ const w = s.getJson();
527
+ p = JSON.stringify(w);
528
+ }
529
+ t.templateContent = p, x.value = !0;
530
+ const [M, P] = await gt(V.put("/urpt/v1/printTemplate", [t]));
531
+ x.value = !1, M || (S.value = "", f.value = P[0]), o && o();
532
+ }, D = () => {
533
+ W("onClose");
534
+ }, W = E, O = (o) => {
535
+ let t = h.value;
536
+ o === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
537
+ }, F = async () => {
538
+ await I.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
539
+ }, Y = async () => {
540
+ v.value = !0;
541
+ }, G = async () => {
542
+ await I.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (H(D), v.value = !1);
543
+ }, K = async () => {
544
+ N.value = !0, ht(() => {
545
+ k.value.show(s, Tt(), d.width || 220);
546
+ });
547
+ }, Q = (o) => {
548
+ if (o !== "customize") {
549
+ const { width: t, height: p } = X(o);
550
+ d.width = t, d.height = p, s.setPaper(d.width, d.height);
551
+ } else
552
+ y.value = !0;
553
+ }, X = (o) => ({
554
+ A3: { width: 420, height: 296.6 },
555
+ A4: { width: 210, height: 296.6 },
556
+ A5: { width: 210, height: 147.6 },
557
+ bisect: { width: 241, height: 140 },
558
+ trisection: { width: 241, height: 93 }
559
+ })[o];
560
+ return ot(() => {
561
+ const { record: o } = m;
562
+ x.value = !0, f.value = vt(o, !0);
563
+ const t = o.templateContent ? JSON.parse(o.templateContent) : wt;
564
+ $("#hiprint-printTemplate").empty(), u.print.init({
565
+ providers: [new u.provider()],
566
+ // host: 'http://localhost:17521', // 可在此处设置连接地址与端口号
567
+ // token: 'token', // 可在此处设置连接 token
568
+ // lang: 'en',
569
+ fontList: [
570
+ // { title: '微软雅黑', value: 'Microsoft YaHei' },
571
+ { title: "黑体", value: "STHeitiSC-Light" },
572
+ { title: "思源黑体", value: "SourceHanSansCN-Normal" },
573
+ { title: "王羲之书法体", value: "王羲之书法体" },
574
+ { title: "宋体", value: "SimSun" },
575
+ { title: "华为楷体", value: "STKaiti" },
576
+ { title: "cursive", value: "cursive" }
577
+ ],
578
+ willOutOfBounds: !0,
579
+ // 是否允许组件内的控件超出范围
580
+ qtDesigner: !0
581
+ // 是否开启类似QT Designer的唯一field生成模式
582
+ }), u.print.setConfig(), u.print.setConfig({
583
+ movingDistance: 2.5,
584
+ text: {
585
+ supportOptions: [
586
+ { name: "styler", hidden: !0 },
587
+ { name: "formatter", hidden: !0 }
588
+ ]
589
+ }
590
+ }), u.print.PrintElementTypeManager.buildByHtml($(".ep-draggable-item")), s = new u.print.PrintTemplate({
591
+ template: t,
592
+ settingContainer: "#PrintElementOptionSetting",
593
+ paginationContainer: ".hiprint-printPagination",
594
+ history: !1
595
+ // 是否需要 撤销重做功能
596
+ }), s.design("#hiprint-printTemplate", { grid: !0 }), h.value = s.editingPanel.scale || 1, x.value = !1;
597
+ }), pt(() => {
598
+ u = null, s = null;
599
+ }), (o, t) => {
600
+ const p = r("ut-button"), M = r("el-option"), P = r("el-select"), w = r("vxe-input"), Z = r("el-popover"), U = r("vxe-button"), tt = r("el-space"), c = r("el-row"), a = r("el-col"), _ = r("el-card"), et = r("vxe-textarea"), lt = r("vxe-modal"), it = at("spinning");
601
+ return rt((T(), J("div", bt, [
602
+ l(_, { class: "design-panel-contain" }, {
603
+ default: i(() => [
604
+ l(tt, {
605
+ style: { "margin-bottom": "10px" },
606
+ fill: ""
607
+ }, {
608
+ default: i(() => [
609
+ e("div", Et, [
610
+ e("div", null, [
611
+ l(p, {
612
+ icon: "ri-eye-line ri-1x",
613
+ content: "preview",
614
+ onTap: K
615
+ }),
616
+ l(P, {
617
+ modelValue: f.value.paperType,
618
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => f.value.paperType = n),
619
+ size: "small",
620
+ placeholder: "Select Paper",
621
+ class: "ml-1 mr-1",
622
+ style: { width: "100px !important" },
623
+ onChange: t[1] || (t[1] = (n) => Q(f.value.paperType))
624
+ }, {
625
+ default: i(() => [
626
+ (T(!0), J(st, null, dt(ct(z)["SU.PRINT.PAPER"].children, (n) => (T(), A(M, {
627
+ key: n.dictCode,
628
+ label: n.dictName,
629
+ value: n.dictCode
630
+ }, {
631
+ default: i(() => [
632
+ e("span", St, B(n.dictName), 1),
633
+ e("span", _t, B(n.dictDesc), 1)
634
+ ]),
635
+ _: 2
636
+ }, 1032, ["label", "value"]))), 128))
637
+ ]),
638
+ _: 1
639
+ }, 8, ["modelValue"]),
640
+ f.value.paperType === "customize" ? (T(), A(Z, {
641
+ key: 0,
642
+ visible: y.value,
643
+ "onUpdate:visible": t[5] || (t[5] = (n) => y.value = n),
644
+ title: "设置纸张宽高(mm)",
645
+ width: "300",
646
+ size: "small",
647
+ effect: "light",
648
+ trigger: "click"
649
+ }, {
650
+ reference: i(() => [
651
+ l(p, {
652
+ icon: "ri-font-size",
653
+ content: "customSize",
654
+ onTap: t[4] || (t[4] = ut((n) => y.value = !0, ["stop"]))
655
+ })
656
+ ]),
657
+ default: i(() => [
658
+ e("div", null, [
659
+ e("div", Ct, [
660
+ l(w, {
661
+ modelValue: d.width,
662
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => d.width = n),
663
+ type: "number",
664
+ class: "w-40",
665
+ placeholder: "宽(mm)"
666
+ }, null, 8, ["modelValue"]),
667
+ t[15] || (t[15] = e("div", { class: "flex items-center justify-center w-8" }, "~", -1)),
668
+ l(w, {
669
+ modelValue: d.height,
670
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => d.height = n),
671
+ type: "number",
672
+ class: "w-40",
673
+ placeholder: "高(mm)"
674
+ }, null, 8, ["modelValue"])
675
+ ]),
676
+ l(p, {
677
+ style: { width: "100%" },
678
+ content: "confirm",
679
+ onTap: L
680
+ })
681
+ ])
682
+ ]),
683
+ _: 1
684
+ }, 8, ["visible"])) : R("", !0),
685
+ l(p, {
686
+ status: "u-cyan",
687
+ icon: "ri-upload-2-line",
688
+ content: "importJSON",
689
+ auth: "import",
690
+ onTap: t[6] || (t[6] = (n) => Y())
691
+ }),
692
+ l(U, {
693
+ icon: "ri-indeterminate-circle-line ",
694
+ class: "design-custom-button",
695
+ onClick: t[7] || (t[7] = (n) => O("N"))
696
+ }),
697
+ l(w, {
698
+ modelValue: h.ration,
699
+ "onUpdate:modelValue": t[8] || (t[8] = (n) => h.ration = n),
700
+ disabled: "",
701
+ align: "center",
702
+ style: { width: "70px", "margin-left": "10px" }
703
+ }, null, 8, ["modelValue"]),
704
+ l(U, {
705
+ icon: "ri-add-circle-fill ",
706
+ class: "design-custom-button",
707
+ onClick: t[9] || (t[9] = (n) => O("Y"))
708
+ }),
709
+ l(p, {
710
+ status: "danger",
711
+ icon: "ri-delete-bin-5-fill",
712
+ content: "repaint",
713
+ auth: "repaint",
714
+ onTap: t[10] || (t[10] = (n) => F())
715
+ })
716
+ ]),
717
+ e("div", null, [
718
+ l(p, {
719
+ icon: "ri-save-3-fill",
720
+ content: "save",
721
+ onTap: t[11] || (t[11] = (n) => H())
722
+ }),
723
+ l(p, {
724
+ status: "info",
725
+ icon: "ri-reply-fill",
726
+ content: "back",
727
+ onTap: D
728
+ })
729
+ ])
730
+ ]),
731
+ t[16] || (t[16] = e("div", { style: { "font-size": "12px", color: "red", "text-align": "center" } }, " 温馨提示: 蓝色线(页眉)以下,每张纸打印都会重复打印到页面底部;红色线(页尾)以下,每张纸打印都会重复打印到页面底部 ", -1))
732
+ ]),
733
+ _: 1
734
+ }),
735
+ l(c, null, {
736
+ default: i(() => [
737
+ l(a, { span: 3 }, {
738
+ default: i(() => [
739
+ l(_, { class: "ut-design-item" }, {
740
+ default: i(() => [
741
+ l(c, null, {
742
+ default: i(() => [
743
+ l(a, {
744
+ span: 24,
745
+ class: "rect-printElement-types hiprintEpContainer"
746
+ }, {
747
+ default: i(() => [
748
+ l(c, { class: "drag_item_title" }, {
749
+ default: i(() => [...t[17] || (t[17] = [
750
+ j("拖拽组件列表", -1)
751
+ ])]),
752
+ _: 1
753
+ }),
754
+ l(c, { style: { height: "60px" } }, {
755
+ default: i(() => [
756
+ l(a, {
757
+ span: 12,
758
+ class: "drag_item_box"
759
+ }, {
760
+ default: i(() => [...t[18] || (t[18] = [
761
+ e("div", null, [
762
+ e("a", {
763
+ class: "ep-draggable-item",
764
+ tid: "defaultModule.text"
765
+ }, [
766
+ e("span", {
767
+ class: "ri-text",
768
+ "ariel-hidden": "true"
769
+ }),
770
+ e("p", { class: "glyphicon-class" }, "文本")
771
+ ])
772
+ ], -1)
773
+ ])]),
774
+ _: 1
775
+ }),
776
+ l(a, {
777
+ span: 12,
778
+ class: "drag_item_box"
779
+ }, {
780
+ default: i(() => [...t[19] || (t[19] = [
781
+ e("div", null, [
782
+ e("a", {
783
+ class: "ep-draggable-item",
784
+ tid: "defaultModule.image"
785
+ }, [
786
+ e("span", {
787
+ class: "ri-image-line",
788
+ "ariel-hidden": "true"
789
+ }),
790
+ e("p", { class: "glyphicon-class" }, "图片")
791
+ ])
792
+ ], -1)
793
+ ])]),
794
+ _: 1
795
+ })
796
+ ]),
797
+ _: 1
798
+ }),
799
+ l(c, { style: { height: "60px" } }, {
800
+ default: i(() => [
801
+ l(a, {
802
+ span: 12,
803
+ class: "drag_item_box",
804
+ tid: "defaultModule.text"
805
+ }, {
806
+ default: i(() => [...t[20] || (t[20] = [
807
+ e("div", null, [
808
+ e("a", {
809
+ class: "ep-draggable-item",
810
+ tid: "defaultModule.longText"
811
+ }, [
812
+ e("span", {
813
+ class: "ri-line-height",
814
+ "ariel-hidden": "true"
815
+ }),
816
+ e("p", { class: "glyphicon-class" }, "长文")
817
+ ])
818
+ ], -1)
819
+ ])]),
820
+ _: 1
821
+ }),
822
+ l(a, {
823
+ span: 12,
824
+ class: "drag_item_box"
825
+ }, {
826
+ default: i(() => [...t[21] || (t[21] = [
827
+ e("div", null, [
828
+ e("a", {
829
+ class: "ep-draggable-item",
830
+ tid: "defaultModule.table"
831
+ }, [
832
+ e("span", {
833
+ class: "ri-table-line",
834
+ "ariel-hidden": "true"
835
+ }),
836
+ e("p", { class: "glyphicon-class" }, "表格")
837
+ ])
838
+ ], -1)
839
+ ])]),
840
+ _: 1
841
+ })
842
+ ]),
843
+ _: 1
844
+ }),
845
+ l(c, { class: "drag_item_title" }, {
846
+ default: i(() => [...t[22] || (t[22] = [
847
+ j("辅助", -1)
848
+ ])]),
849
+ _: 1
850
+ }),
851
+ l(c, { style: { height: "60px" } }, {
852
+ default: i(() => [
853
+ l(a, {
854
+ span: 12,
855
+ class: "drag_item_box",
856
+ tid: "defaultModule.text"
857
+ }, {
858
+ default: i(() => [...t[23] || (t[23] = [
859
+ e("div", null, [
860
+ e("a", {
861
+ class: "ep-draggable-item",
862
+ tid: "defaultModule.hline"
863
+ }, [
864
+ e("span", {
865
+ class: "ri-expand-horizontal-s-fill",
866
+ "ariel-hidden": "true"
867
+ }),
868
+ e("p", { class: "glyphicon-class" }, "横线")
869
+ ])
870
+ ], -1)
871
+ ])]),
872
+ _: 1
873
+ }),
874
+ l(a, {
875
+ span: 12,
876
+ class: "drag_item_box",
877
+ tid: "defaultModule.text"
878
+ }, {
879
+ default: i(() => [...t[24] || (t[24] = [
880
+ e("div", null, [
881
+ e("a", {
882
+ class: "ep-draggable-item",
883
+ tid: "defaultModule.vline"
884
+ }, [
885
+ e("span", {
886
+ class: "ri-expand-vertical-s-fill",
887
+ "ariel-hidden": "true"
888
+ }),
889
+ e("p", { class: "glyphicon-class" }, "竖线")
890
+ ])
891
+ ], -1)
892
+ ])]),
893
+ _: 1
894
+ })
895
+ ]),
896
+ _: 1
897
+ }),
898
+ l(c, { style: { height: "60px" } }, {
899
+ default: i(() => [
900
+ l(a, {
901
+ span: 12,
902
+ class: "drag_item_box",
903
+ tid: "defaultModule.text"
904
+ }, {
905
+ default: i(() => [...t[25] || (t[25] = [
906
+ e("div", null, [
907
+ e("a", {
908
+ class: "ep-draggable-item",
909
+ tid: "defaultModule.rect"
910
+ }, [
911
+ e("span", {
912
+ class: "ri-square-line",
913
+ "ariel-hidden": "true"
914
+ }),
915
+ e("p", { class: "glyphicon-class" }, "矩形")
916
+ ])
917
+ ], -1)
918
+ ])]),
919
+ _: 1
920
+ }),
921
+ l(a, {
922
+ span: 12,
923
+ class: "drag_item_box",
924
+ tid: "defaultModule.text"
925
+ }, {
926
+ default: i(() => [...t[26] || (t[26] = [
927
+ e("div", null, [
928
+ e("a", {
929
+ class: "ep-draggable-item",
930
+ tid: "defaultModule.oval"
931
+ }, [
932
+ e("span", {
933
+ class: "ri-checkbox-blank-circle-line",
934
+ "ariel-hidden": "true"
935
+ }),
936
+ e("p", { class: "glyphicon-class" }, "椭圆")
937
+ ])
938
+ ], -1)
939
+ ])]),
940
+ _: 1
941
+ })
942
+ ]),
943
+ _: 1
944
+ }),
945
+ l(c, { style: { height: "60px" } }, {
946
+ default: i(() => [
947
+ l(a, {
948
+ span: 12,
949
+ class: "drag_item_box",
950
+ tid: "defaultModule.barcode"
951
+ }, {
952
+ default: i(() => [...t[27] || (t[27] = [
953
+ e("div", null, [
954
+ e("a", {
955
+ class: "ep-draggable-item",
956
+ tid: "defaultModule.barcode"
957
+ }, [
958
+ e("span", {
959
+ class: "ri-barcode-line",
960
+ "ariel-hidden": "true"
961
+ }),
962
+ e("p", { class: "glyphicon-class" }, "条形码")
963
+ ])
964
+ ], -1)
965
+ ])]),
966
+ _: 1
967
+ }),
968
+ l(a, {
969
+ span: 12,
970
+ class: "drag_item_box",
971
+ tid: "defaultModule.qrcode"
972
+ }, {
973
+ default: i(() => [...t[28] || (t[28] = [
974
+ e("div", null, [
975
+ e("a", {
976
+ class: "ep-draggable-item",
977
+ tid: "defaultModule.qrcode"
978
+ }, [
979
+ e("span", {
980
+ class: "ri-qr-code-line",
981
+ "ariel-hidden": "true"
982
+ }),
983
+ e("p", { class: "glyphicon-class" }, "二维码")
984
+ ])
985
+ ], -1)
986
+ ])]),
987
+ _: 1
988
+ })
989
+ ]),
990
+ _: 1
991
+ })
992
+ ]),
993
+ _: 1
994
+ })
995
+ ]),
996
+ _: 1
997
+ })
998
+ ]),
999
+ _: 1
1000
+ })
1001
+ ]),
1002
+ _: 1
1003
+ }),
1004
+ l(a, {
1005
+ xs: 15,
1006
+ sm: 15,
1007
+ md: 15,
1008
+ lg: 16,
1009
+ xl: 18
1010
+ }, {
1011
+ default: i(() => [
1012
+ l(_, { class: "card-design" }, {
1013
+ default: i(() => [...t[29] || (t[29] = [
1014
+ e("div", {
1015
+ id: "hiprint-printTemplate",
1016
+ class: "hiprint-printTemplate"
1017
+ }, null, -1)
1018
+ ])]),
1019
+ _: 1
1020
+ })
1021
+ ]),
1022
+ _: 1
1023
+ }),
1024
+ l(a, {
1025
+ xs: 6,
1026
+ sm: 6,
1027
+ md: 6,
1028
+ lg: 5,
1029
+ xl: 3
1030
+ }, {
1031
+ default: i(() => [
1032
+ l(_, { class: "design-setting-panel" }, {
1033
+ default: i(() => [
1034
+ l(c, { class: "hinnn-layout-sider" }, {
1035
+ default: i(() => [...t[30] || (t[30] = [
1036
+ e("div", { id: "PrintElementOptionSetting" }, null, -1)
1037
+ ])]),
1038
+ _: 1
1039
+ })
1040
+ ]),
1041
+ _: 1
1042
+ })
1043
+ ]),
1044
+ _: 1
1045
+ })
1046
+ ]),
1047
+ _: 1
1048
+ })
1049
+ ]),
1050
+ _: 1
1051
+ }),
1052
+ l(lt, {
1053
+ modelValue: v.value,
1054
+ "onUpdate:modelValue": t[14] || (t[14] = (n) => v.value = n),
1055
+ title: "导入模板JSON数据",
1056
+ height: "320",
1057
+ width: "450",
1058
+ "show-footer": ""
1059
+ }, {
1060
+ default: i(() => [
1061
+ t[31] || (t[31] = e("p", { style: { color: "red" } }, "切勿随意修改JSON数据,可能导致模板加载出错", -1)),
1062
+ l(et, {
1063
+ modelValue: S.value,
1064
+ "onUpdate:modelValue": t[12] || (t[12] = (n) => S.value = n),
1065
+ rows: 10,
1066
+ size: "mini"
1067
+ }, null, 8, ["modelValue"])
1068
+ ]),
1069
+ footer: i(() => [
1070
+ l(p, {
1071
+ icon: "ri-close-fill",
1072
+ content: "cancel",
1073
+ onTap: t[13] || (t[13] = (n) => v.value = !1)
1074
+ }),
1075
+ l(p, {
1076
+ icon: "ri-save-3-fill",
1077
+ status: "u-cyan",
1078
+ content: "confirm",
1079
+ onTap: G
1080
+ })
1081
+ ]),
1082
+ _: 1
1083
+ }, 8, ["modelValue"]),
1084
+ N.value ? (T(), A(xt, {
1085
+ key: 0,
1086
+ ref_key: "previewRef",
1087
+ ref: k
1088
+ }, null, 512)) : R("", !0)
1089
+ ])), [
1090
+ [it, x.value]
1091
+ ]);
1092
+ };
1093
+ }
1094
+ });
1095
+ export {
1096
+ kt as _
1097
+ };