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