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

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