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

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 (161) hide show
  1. package/dist/403-gdcH0-Bo.js +65 -0
  2. package/dist/404-Se2SF97M.js +65 -0
  3. package/dist/500-B6j9AqLo.js +67 -0
  4. package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -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-BzSVBSC4.js +25 -0
  9. package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-BkgseHo8.js +25 -0
  12. package/dist/DepartmentPanel-Sen93_2M.js +249 -0
  13. package/dist/DesignPanel-pqDcwaFC.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
  15. package/dist/DictView-CJLG4LlE.js +110 -0
  16. package/dist/InvOrganization-D0Jq1IAa.js +74 -0
  17. package/dist/Org-CO_1WT39.js +39 -0
  18. package/dist/Preview-DLI4Bwel.js +48 -0
  19. package/dist/ReportDefine-Cw46OnJ_.js +10 -0
  20. package/dist/ReportDesign-D4sHTXT7.js +165 -0
  21. package/dist/ReportQuery-DtOCvQSN.js +74 -0
  22. package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
  24. package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
  25. package/dist/Role-Df77BBD-.js +25 -0
  26. package/dist/RoleAssign-BrunouML.js +26 -0
  27. package/dist/RolePanel-DSVwqhiD.js +4 -0
  28. package/dist/RolePanel-HLA7XBlN.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
  32. package/dist/Staff-BeL1xcRf.js +26 -0
  33. package/dist/StaffInfo-CIfnltyX.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
  35. package/dist/StaffPanel-BV2CHWac.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
  37. package/dist/SysUser-DPfNvthk.js +15 -0
  38. package/dist/SysUserPanel-CoLKYlQE.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
  40. package/dist/SystemMenu-sdj1dRDA.js +156 -0
  41. package/dist/UserInfo-CTX4hhFl.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
  43. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  44. package/dist/childView-BDmWwJO5.js +4 -0
  45. package/dist/childView-Dx3ACtHa.js +4 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
  47. package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
  48. package/dist/code-rule-cvN4gYC_.js +148 -0
  49. package/dist/core.es.js +24 -6
  50. package/dist/cron-task-B0TkxFdp.js +135 -0
  51. package/dist/flow-task-PoDnE_kE.js +10 -0
  52. package/dist/frameView-5cy5BSgS.js +43 -0
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/index-C5WRTwvI.js +3006 -0
  55. package/dist/layout-home-DrARg-3o.js +232 -0
  56. package/dist/layoutView-25v_ngk5.js +3191 -0
  57. package/dist/log-in-Bmz5Uhbt.js +116 -0
  58. package/dist/log-out-B-8m3oNj.js +130 -0
  59. package/dist/login-Cmp2RvvW.js +217 -0
  60. package/dist/login-log-CVvRgZSu.js +70 -0
  61. package/dist/lov-view-BATtzw2X.js +99 -0
  62. package/dist/menuInfo-BIvrE7nm.js +4 -0
  63. package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
  64. package/dist/pda-app-CzHVyeEa.js +707 -0
  65. package/dist/redirect-DTz8GSnv.js +15 -0
  66. package/dist/resource-Y5lGB38n.js +97 -0
  67. package/dist/su-welcome-CXA6OzBw.js +878 -0
  68. package/dist/sys-config-CqO03LeC.js +385 -0
  69. package/dist/udp-core.css +1 -2
  70. package/dist/useNav-C-rCgubt.js +84 -0
  71. package/dist/utogether-MlnyYtNS.js +4 -0
  72. package/dist/wecom-push-B75FLee5.js +70 -0
  73. package/index.ts +3 -2
  74. package/package.json +1 -1
  75. package/src/App.vue +79 -78
  76. package/src/api/index.ts +1 -1
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/layout/components/lay-panel/index.vue +2 -6
  79. package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
  80. package/src/main.ts +25 -23
  81. package/src/router/index.ts +156 -187
  82. package/src/store/modules/system.ts +7 -0
  83. package/src/style/vxetable.scss +372 -364
  84. package/src/utils/authority/index.ts +46 -29
  85. package/src/utils/udp/http/index.ts +115 -64
  86. package/src/utils/udp/http/types.d.ts +15 -14
  87. package/src/views/login/login-view.vue +4 -21
  88. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  89. package/src/views/system/sys/sys-config.vue +344 -344
  90. package/src/views/uhome/components/home-todo.vue +179 -178
  91. package/src/views/ulogin/login.vue +5 -9
  92. package/tsconfig.json +2 -3
  93. package/types/global.d.ts +234 -234
  94. package/vite.config.ts +2 -1
  95. package/dist/403-D6Wb3JJh.js +0 -72
  96. package/dist/404-B_HNbPNV.js +0 -72
  97. package/dist/500-BMemTTy1.js +0 -77
  98. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  99. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  100. package/dist/Company-BLXSfow0.js +0 -21
  101. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  102. package/dist/DataSet-CuGZcKC-.js +0 -141
  103. package/dist/Department-oFhsa7cd.js +0 -21
  104. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  105. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  106. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  107. package/dist/DictView-CC5yMzOq.js +0 -100
  108. package/dist/File-WJXjGYxr.js +0 -89
  109. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  110. package/dist/Org-HgnOWubi.js +0 -76
  111. package/dist/Preview-CAzWxLmP.js +0 -45
  112. package/dist/ReIcon-DecitXmg.js +0 -413
  113. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  114. package/dist/ReportDesign-DwchGG2P.js +0 -158
  115. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  116. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  117. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  118. package/dist/Role-Be8WfdCA.js +0 -21
  119. package/dist/RoleAssign-CtehGAUf.js +0 -22
  120. package/dist/RolePanel-CAwITg_q.js +0 -131
  121. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  122. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  123. package/dist/Staff-V2YsNKcj.js +0 -22
  124. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  125. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  126. package/dist/SysUser-Dxyj5w5m.js +0 -12
  127. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  128. package/dist/SystemMenu-BBHREM8T.js +0 -154
  129. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  130. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  131. package/dist/api-BFNxcxSN.js +0 -30
  132. package/dist/authority-BJFEUdrh.js +0 -20
  133. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  134. package/dist/childView-BBjPEraB.js +0 -184
  135. package/dist/childView-DNqG2UVm.js +0 -181
  136. package/dist/code-rule-QFrhqFrW.js +0 -151
  137. package/dist/contant-Q77dU_V3.js +0 -4
  138. package/dist/cron-task-BpUDKEAU.js +0 -131
  139. package/dist/flow-task-DAc2NrDU.js +0 -11
  140. package/dist/frameView-Di0zJZUR.js +0 -39
  141. package/dist/layout-home-BVp7vYLR.js +0 -239
  142. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  143. package/dist/log-in-BrNB0mLz.js +0 -117
  144. package/dist/log-out-dYfqvzy6.js +0 -111
  145. package/dist/login-D_Hjy3Jd.js +0 -231
  146. package/dist/login-log-CJak-ANA.js +0 -79
  147. package/dist/lov-view-DM5Nm5tW.js +0 -95
  148. package/dist/menuInfo-BlOY1KZW.js +0 -346
  149. package/dist/mitt-CQgI7DYU.js +0 -27
  150. package/dist/pda-app-CA7YI37u.js +0 -589
  151. package/dist/redirect-N0k4tImU.js +0 -16
  152. package/dist/resource-CfQTHFcs.js +0 -94
  153. package/dist/su-welcome-DVD3S_du.js +0 -799
  154. package/dist/sys-config-Ddb3vBpK.js +0 -316
  155. package/dist/system-Cm3lyBas.js +0 -1528
  156. package/dist/udp-core-DaQd5CF1.js +0 -2028
  157. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  158. package/dist/useNav-BhOJIdrJ.js +0 -106
  159. package/dist/utogether-l7JXs4Lv.js +0 -4
  160. package/dist/water-mark-WDQZ9YqB.js +0 -119
  161. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -1,1196 +0,0 @@
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 };