@utogether/udp-core 1.0.0

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 (343) hide show
  1. package/build/index.ts +90 -0
  2. package/build/plugins.ts +26 -0
  3. package/dist/403-B1R-4vXw.js +64 -0
  4. package/dist/404-fXPl8csw.js +64 -0
  5. package/dist/500-eI5842YB.js +66 -0
  6. package/dist/AuthorityInfo-CfVH6PaB.js +4 -0
  7. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +102 -0
  8. package/dist/AuthorityPanel-BaLMwMgW.js +4 -0
  9. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js +107 -0
  10. package/dist/Company-CYC9Avfz.js +25 -0
  11. package/dist/CompanyPanel-B4MzoqN_.js +206 -0
  12. package/dist/DataSet-DT-rGICv.js +147 -0
  13. package/dist/Department-B4BNSiYx.js +25 -0
  14. package/dist/DepartmentPanel-zJO89L2O.js +224 -0
  15. package/dist/DesignPanel-S8P0J97f.js +4 -0
  16. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js +1015 -0
  17. package/dist/DictView-bIS5-rK-.js +95 -0
  18. package/dist/InvOrganization-MuM2jtsG.js +66 -0
  19. package/dist/Org-kXHSjsgJ.js +35 -0
  20. package/dist/Preview-CRyiwUIR.js +48 -0
  21. package/dist/ReportDefine-WZYIx8Sm.js +10 -0
  22. package/dist/ReportDesign-D-7GKgpb.js +165 -0
  23. package/dist/ReportQuery-BIIJny6w.js +75 -0
  24. package/dist/ReportQueryFrom-OoUl7N2O.js +4 -0
  25. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js +177 -0
  26. package/dist/ReportTemplate-Cfeq9US-.js +161 -0
  27. package/dist/Role-BwTV2QMH.js +25 -0
  28. package/dist/RoleAssign-De1JjOun.js +26 -0
  29. package/dist/RolePanel-E3RcdByM.js +4 -0
  30. package/dist/RolePanel-pUBXsqCM.js +4 -0
  31. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js +148 -0
  32. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +126 -0
  33. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js +100 -0
  34. package/dist/Staff-Czm7A8vI.js +25 -0
  35. package/dist/StaffInfo-DJzvBuxy.js +4 -0
  36. package/dist/StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js +108 -0
  37. package/dist/StaffPanel-CHk60LEz.js +4 -0
  38. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js +114 -0
  39. package/dist/SysUser-BGwbttRn.js +15 -0
  40. package/dist/SysUserPanel-BCbKoLKt.js +4 -0
  41. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +289 -0
  42. package/dist/SystemMenu-BkqZSDKl.js +151 -0
  43. package/dist/UserInfo-BsyAcT2d.js +4 -0
  44. package/dist/UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js +158 -0
  45. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  46. package/dist/childView-CF83nhxb.js +4 -0
  47. package/dist/childView-CyuLTUqC.js +4 -0
  48. package/dist/childView.vue_vue_type_style_index_0_lang-CNSgGda3.js +187 -0
  49. package/dist/childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js +144 -0
  50. package/dist/code-rule-Bz-gnktN.js +147 -0
  51. package/dist/core.es.js +13 -0
  52. package/dist/core.umd.js +173 -0
  53. package/dist/cron-task-CIifSUdW.js +135 -0
  54. package/dist/frameView-_d2mqjjQ.js +43 -0
  55. package/dist/img/l_img.svg +1 -0
  56. package/dist/img/minicolors.png +0 -0
  57. package/dist/img/v_img.svg +1 -0
  58. package/dist/index-BKIw8tSn.js +9195 -0
  59. package/dist/layoutView-DLKVepB8.js +3317 -0
  60. package/dist/log-in-e7D5Ss1P.js +110 -0
  61. package/dist/log-out--RRncZhN.js +120 -0
  62. package/dist/login-LREiDfFU.js +251 -0
  63. package/dist/login-log-CvVnyGi3.js +68 -0
  64. package/dist/lov-view-DDrIVILB.js +97 -0
  65. package/dist/menuInfo-B1FUV-Sk.js +4 -0
  66. package/dist/menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js +338 -0
  67. package/dist/pda-app-CRhVGijN.js +2209 -0
  68. package/dist/redirect-DiaNDu8F.js +15 -0
  69. package/dist/resource-BCwx9fEv.js +97 -0
  70. package/dist/su-welcome-189A7N4r.js +526 -0
  71. package/dist/sys-config-BZ3sejow.js +277 -0
  72. package/dist/udp-core.css +9 -0
  73. package/dist/utogether-r08LNiIZ.js +182 -0
  74. package/index.ts +36 -0
  75. package/package.json +16 -0
  76. package/public/img/l_img.svg +1 -0
  77. package/public/img/minicolors.png +0 -0
  78. package/public/img/v_img.svg +1 -0
  79. package/src/App.vue +70 -0
  80. package/src/api/http.ts +50 -0
  81. package/src/api/index.ts +31 -0
  82. package/src/api/mock.ts +20 -0
  83. package/src/api/user.ts +43 -0
  84. package/src/assets/images/avatars.jpg +0 -0
  85. package/src/assets/images/empty.png +0 -0
  86. package/src/assets/images/login.png +0 -0
  87. package/src/assets/images/logo.png +0 -0
  88. package/src/assets/images/mask-text.jpg +0 -0
  89. package/src/assets/images/minicolors.png +0 -0
  90. package/src/assets/images/utogether.png +0 -0
  91. package/src/assets/images/welcome.png +0 -0
  92. package/src/assets/status/403.svg +1 -0
  93. package/src/assets/status/404.svg +1 -0
  94. package/src/assets/status/500.svg +1 -0
  95. package/src/assets/svg/back_top.svg +1 -0
  96. package/src/assets/svg/bg.svg +1 -0
  97. package/src/assets/svg/close.svg +1 -0
  98. package/src/assets/svg/close_all.svg +1 -0
  99. package/src/assets/svg/close_left.svg +1 -0
  100. package/src/assets/svg/close_other.svg +1 -0
  101. package/src/assets/svg/close_right.svg +1 -0
  102. package/src/assets/svg/dark.svg +1 -0
  103. package/src/assets/svg/day.svg +1 -0
  104. package/src/assets/svg/enter_outlined.svg +1 -0
  105. package/src/assets/svg/exit_screen.svg +1 -0
  106. package/src/assets/svg/full_screen.svg +1 -0
  107. package/src/assets/svg/globalization.svg +1 -0
  108. package/src/assets/svg/loading.svg +17 -0
  109. package/src/assets/svg/mdi_keyboard_esc.svg +1 -0
  110. package/src/assets/svg/refresh.svg +1 -0
  111. package/src/assets/svg/system.svg +1 -0
  112. package/src/components/ReCountTo/README.md +2 -0
  113. package/src/components/ReCountTo/index.ts +18 -0
  114. package/src/components/ReCountTo/src/normal/index.tsx +165 -0
  115. package/src/components/ReCountTo/src/normal/props.ts +37 -0
  116. package/src/components/ReCountTo/src/rebound/index.tsx +67 -0
  117. package/src/components/ReCountTo/src/rebound/props.ts +14 -0
  118. package/src/components/ReCountTo/src/rebound/rebound.css +77 -0
  119. package/src/components/ReCropper/index.ts +14 -0
  120. package/src/components/ReCropper/src/index.tsx +141 -0
  121. package/src/components/ReFlicker/index.css +39 -0
  122. package/src/components/ReFlicker/index.ts +50 -0
  123. package/src/components/ReFlop/index.ts +14 -0
  124. package/src/components/ReFlop/src/Filpper.tsx +99 -0
  125. package/src/components/ReFlop/src/filpper.css +184 -0
  126. package/src/components/ReFlop/src/index.vue +126 -0
  127. package/src/components/ReFlowChart/index.ts +24 -0
  128. package/src/components/ReFlowChart/src/Control.vue +139 -0
  129. package/src/components/ReFlowChart/src/DataDialog.vue +12 -0
  130. package/src/components/ReFlowChart/src/NodePanel.vue +151 -0
  131. package/src/components/ReFlowChart/src/adpterForTurbo.ts +160 -0
  132. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +49 -0
  133. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  134. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +61 -0
  135. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +58 -0
  136. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +47 -0
  137. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  138. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  139. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  140. package/src/components/ReFlowChart/src/config.ts +62 -0
  141. package/src/components/ReIcon/index.ts +12 -0
  142. package/src/components/ReIcon/src/Icon.vue +81 -0
  143. package/src/components/ReIcon/src/hooks.ts +63 -0
  144. package/src/components/ReIcon/src/iconfont.ts +45 -0
  145. package/src/components/ReIcon/src/iconifyIconOffline.ts +36 -0
  146. package/src/components/ReIcon/src/iconifyIconOnline.ts +28 -0
  147. package/src/components/ReIcon/src/offlineIcon.ts +64 -0
  148. package/src/components/ReIcon/src/types.ts +20 -0
  149. package/src/components/ReSplitPane/index.css +49 -0
  150. package/src/components/ReSplitPane/index.tsx +119 -0
  151. package/src/components/ReSplitPane/resizer.css +45 -0
  152. package/src/components/ReSplitPane/resizer.tsx +30 -0
  153. package/src/components/SuCharts/index.ts +36 -0
  154. package/src/components/SuCharts/src/EchartBar.vue +134 -0
  155. package/src/components/SuCharts/src/UserInfo.vue +78 -0
  156. package/src/components/SuCharts/src/echart-line.vue +85 -0
  157. package/src/components/SuCharts/src/echart-pie.vue +95 -0
  158. package/src/components/SuCommon/card/components/Card.vue +148 -0
  159. package/src/components/SuCommon/card/components/DialogForm.vue +127 -0
  160. package/src/components/SuCommon/card/index.vue +142 -0
  161. package/src/components/SuCommon/icon-select/index.vue +241 -0
  162. package/src/components/SuCommon/table/index.vue +208 -0
  163. package/src/components/SuCommon/utils/index.ts +103 -0
  164. package/src/components/SuCommon/utils/slot.tsx +50 -0
  165. package/src/components/SuFloatButton/index.vue +159 -0
  166. package/src/components/SuQrcode/index.ts +14 -0
  167. package/src/components/SuQrcode/src/index.scss +9 -0
  168. package/src/components/SuQrcode/src/index.tsx +236 -0
  169. package/src/components/SuScrollTree/ScrollPanel.vue +175 -0
  170. package/src/components/SuTable/SuTable.vue +334 -0
  171. package/src/components/SuTypeit/index.ts +51 -0
  172. package/src/config/index.ts +35 -0
  173. package/src/contant/index.ts +20 -0
  174. package/src/directives/elResizeDetector/index.ts +33 -0
  175. package/src/directives/index.ts +11 -0
  176. package/src/directives/permission/index.ts +29 -0
  177. package/src/layout/components/lay-chrome/index.vue +30 -0
  178. package/src/layout/components/lay-content/index.vue +143 -0
  179. package/src/layout/components/lay-navbar/index.vue +237 -0
  180. package/src/layout/components/lay-notice/data.ts +59 -0
  181. package/src/layout/components/lay-notice/index.vue +83 -0
  182. package/src/layout/components/lay-notice/noticeItem.vue +160 -0
  183. package/src/layout/components/lay-notice/noticeList.vue +19 -0
  184. package/src/layout/components/lay-panel/index.vue +150 -0
  185. package/src/layout/components/lay-search/components/SearchFooter.vue +67 -0
  186. package/src/layout/components/lay-search/components/SearchModal.vue +189 -0
  187. package/src/layout/components/lay-search/components/SearchResult.vue +132 -0
  188. package/src/layout/components/lay-search/components/index.ts +10 -0
  189. package/src/layout/components/lay-search/index.vue +25 -0
  190. package/src/layout/components/lay-select-org/index.vue +69 -0
  191. package/src/layout/components/lay-setting/index.vue +510 -0
  192. package/src/layout/components/lay-sidebar/breadCrumb.vue +131 -0
  193. package/src/layout/components/lay-sidebar/extraIcon.vue +25 -0
  194. package/src/layout/components/lay-sidebar/hamBurger.vue +72 -0
  195. package/src/layout/components/lay-sidebar/horizontal.vue +191 -0
  196. package/src/layout/components/lay-sidebar/mixNav.vue +258 -0
  197. package/src/layout/components/lay-sidebar/sidebar-logo.vue +98 -0
  198. package/src/layout/components/lay-sidebar/sidebarItem.vue +205 -0
  199. package/src/layout/components/lay-sidebar/vertical.vue +94 -0
  200. package/src/layout/components/lay-tag/index.scss +375 -0
  201. package/src/layout/components/lay-tag/index.vue +625 -0
  202. package/src/layout/frameView.vue +71 -0
  203. package/src/layout/hooks/useBoolean.ts +33 -0
  204. package/src/layout/hooks/useDataThemeChange.ts +142 -0
  205. package/src/layout/hooks/useLayout.ts +65 -0
  206. package/src/layout/hooks/useNav.ts +173 -0
  207. package/src/layout/hooks/useTag.ts +233 -0
  208. package/src/layout/hooks/useTranslationLang.ts +51 -0
  209. package/src/layout/layoutView.vue +215 -0
  210. package/src/layout/redirect.vue +30 -0
  211. package/src/layout/routerView/parent.vue +23 -0
  212. package/src/layout/types.ts +92 -0
  213. package/src/main.ts +108 -0
  214. package/src/plugins/echarts/index.ts +58 -0
  215. package/src/plugins/echarts/theme.json +394 -0
  216. package/src/plugins/i18n/en.ts +289 -0
  217. package/src/plugins/i18n/index.ts +76 -0
  218. package/src/plugins/i18n/module/u-report.ts +64 -0
  219. package/src/plugins/i18n/module/u-workflow.ts +71 -0
  220. package/src/plugins/i18n/module/umsg.ts +28 -0
  221. package/src/plugins/i18n/zh.ts +337 -0
  222. package/src/plugins/vxe-table/index.ts +46 -0
  223. package/src/plugins/vxe-table/render.tsx +397 -0
  224. package/src/router/createComponent.tsx +25 -0
  225. package/src/router/index.ts +183 -0
  226. package/src/router/modules/error.ts +32 -0
  227. package/src/router/modules/home.ts +32 -0
  228. package/src/router/modules/nested.ts +93 -0
  229. package/src/router/modules/remaining.ts +83 -0
  230. package/src/router/modules/tabs.ts +55 -0
  231. package/src/router/utils.ts +377 -0
  232. package/src/store/index.ts +9 -0
  233. package/src/store/modules/app.ts +69 -0
  234. package/src/store/modules/epTheme.ts +49 -0
  235. package/src/store/modules/multiTags.ts +109 -0
  236. package/src/store/modules/permission.ts +103 -0
  237. package/src/store/modules/settings.ts +40 -0
  238. package/src/store/modules/system.ts +180 -0
  239. package/src/store/modules/types.ts +49 -0
  240. package/src/style/button.scss +78 -0
  241. package/src/style/clear-mixin.scss +28 -0
  242. package/src/style/dark.scss +218 -0
  243. package/src/style/element-plus.scss +206 -0
  244. package/src/style/index.scss +76 -0
  245. package/src/style/login.css +336 -0
  246. package/src/style/login2.css +106 -0
  247. package/src/style/print-lock.css +375 -0
  248. package/src/style/reset.scss +272 -0
  249. package/src/style/sidebar.scss +770 -0
  250. package/src/style/suprint.css +985 -0
  251. package/src/style/tailwind.css +68 -0
  252. package/src/style/theme.scss +143 -0
  253. package/src/style/transition.scss +42 -0
  254. package/src/style/vxetable.scss +256 -0
  255. package/src/utils/authority/index.ts +29 -0
  256. package/src/utils/browers.ts +59 -0
  257. package/src/utils/dataFormat/index.ts +223 -0
  258. package/src/utils/http/index.ts +297 -0
  259. package/src/utils/http/types.d.ts +46 -0
  260. package/src/utils/index.ts +47 -0
  261. package/src/utils/lifecycle.ts +20 -0
  262. package/src/utils/mitt.ts +19 -0
  263. package/src/utils/propTypes.ts +47 -0
  264. package/src/utils/storage/index.ts +51 -0
  265. package/src/views/components/contextmenu/basic.vue +74 -0
  266. package/src/views/components/contextmenu/context-menu.vue +40 -0
  267. package/src/views/components/contextmenu/menuDynamic.vue +99 -0
  268. package/src/views/components/contextmenu/menuGroup.vue +71 -0
  269. package/src/views/components/count-to/index.vue +43 -0
  270. package/src/views/components/cropping/index.vue +59 -0
  271. package/src/views/components/cropping/picture.jpeg +0 -0
  272. package/src/views/components/split-pane/index.vue +82 -0
  273. package/src/views/components/video/index.vue +57 -0
  274. package/src/views/error/403.vue +50 -0
  275. package/src/views/error/404.vue +50 -0
  276. package/src/views/error/500.vue +52 -0
  277. package/src/views/login/login-view.vue +314 -0
  278. package/src/views/login/utils/motion.ts +47 -0
  279. package/src/views/login/utils/rule.ts +70 -0
  280. package/src/views/login/utils/verifyCode.ts +52 -0
  281. package/src/views/organization/company/Company.vue +56 -0
  282. package/src/views/organization/company/CompanyPanel.vue +259 -0
  283. package/src/views/organization/department/Department.vue +58 -0
  284. package/src/views/organization/department/DepartmentPanel.vue +283 -0
  285. package/src/views/organization/inv-org/InvOrganization.vue +53 -0
  286. package/src/views/organization/org/Org.vue +43 -0
  287. package/src/views/organization/staff/Staff.vue +58 -0
  288. package/src/views/organization/staff/StaffInfo.vue +163 -0
  289. package/src/views/organization/staff/StaffPanel.vue +144 -0
  290. package/src/views/system/cron/cron-task.vue +157 -0
  291. package/src/views/system/menu/AuthorityPanel.vue +140 -0
  292. package/src/views/system/menu/SystemMenu.vue +191 -0
  293. package/src/views/system/menu/menuInfo.vue +368 -0
  294. package/src/views/system/role/AuthorityInfo.vue +147 -0
  295. package/src/views/system/role/Role.vue +57 -0
  296. package/src/views/system/role/RolePanel.vue +191 -0
  297. package/src/views/system/role/UserInfo.vue +193 -0
  298. package/src/views/system/role-assign/RoleAssign.vue +57 -0
  299. package/src/views/system/role-assign/RolePanel.vue +136 -0
  300. package/src/views/system/sys/sys-config.vue +291 -0
  301. package/src/views/system/sysUser/SysUser.vue +45 -0
  302. package/src/views/system/sysUser/SysUserPanel.vue +278 -0
  303. package/src/views/uapp/pda/pda-app.vue +176 -0
  304. package/src/views/udev/coderule/code-rule.vue +121 -0
  305. package/src/views/udev/dict/DictView.vue +106 -0
  306. package/src/views/udev/dict/childView.vue +222 -0
  307. package/src/views/udev/lov/childView.vue +180 -0
  308. package/src/views/udev/lov/lov-view.vue +91 -0
  309. package/src/views/ufile/aggregation/File.vue +87 -0
  310. package/src/views/ufile/file/water-mark.vue +103 -0
  311. package/src/views/uhome/components/menu-favorite.vue +331 -0
  312. package/src/views/uhome/su-welcome.vue +339 -0
  313. package/src/views/ulogin/login.vue +316 -0
  314. package/src/views/umsg/monitor/msg-monitor.vue +36 -0
  315. package/src/views/umsg/msg/TemplateContent.vue +103 -0
  316. package/src/views/umsg/msg/msg-template.vue +66 -0
  317. package/src/views/umsg/send/childView.vue +142 -0
  318. package/src/views/umsg/send/msg-send.vue +95 -0
  319. package/src/views/upms/interface/log-in.vue +106 -0
  320. package/src/views/upms/interface/log-out.vue +107 -0
  321. package/src/views/upms/user/login-log.vue +60 -0
  322. package/src/views/urpt/dataSet/DataSet.vue +139 -0
  323. package/src/views/urpt/design/DesignPanel.vue +526 -0
  324. package/src/views/urpt/design/Preview.vue +65 -0
  325. package/src/views/urpt/design/ReportDesign.vue +249 -0
  326. package/src/views/urpt/design/bg.png +0 -0
  327. package/src/views/urpt/design/panel.ts +841 -0
  328. package/src/views/urpt/design/print-data.ts +59 -0
  329. package/src/views/urpt/query/ReportQuery.vue +122 -0
  330. package/src/views/urpt/query/ReportQueryFrom.vue +252 -0
  331. package/src/views/urpt/report-request/ReportDefine.vue +10 -0
  332. package/src/views/urpt/static-resource/resource.vue +116 -0
  333. package/src/views/urpt/template/ReportTemplate.vue +198 -0
  334. package/tsconfig.json +30 -0
  335. package/types/env.d.ts +1 -0
  336. package/types/global-components.d.ts +12 -0
  337. package/types/global.d.ts +236 -0
  338. package/types/image.d.ts +7 -0
  339. package/types/index.d.ts +73 -0
  340. package/types/router.d.ts +107 -0
  341. package/types/shims-tsx.d.ts +22 -0
  342. package/types/shims-vue.d.ts +20 -0
  343. package/vite.config.ts +73 -0
@@ -0,0 +1,1015 @@
1
+ import { defineComponent as it, ref as f, reactive as k, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as O, nextTick as ht } from "vue";
2
+ import { VXETable as U } from "vxe-table";
3
+ import { useGlobal as ut } from "@utogether/utils";
4
+ import { t as mt } from "./await-to-js.es5-BtRbN2QH.js";
5
+ import { clone as ft } from "xe-utils";
6
+ import { i as gt, w as yt } from "./index-BKIw8tSn.js";
7
+ import vt from "./Preview-CRyiwUIR.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 R = J;
494
+ let { $printPlugin: u } = ut();
495
+ const I = 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 = k({}), h = k({ 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 U.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
516
+ }, L = async () => {
517
+ y.value = !0;
518
+ }, Y = async () => {
519
+ await U.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 } = R;
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"), M = 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(I)["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, D(o.dictName), 1),
596
+ e("span", Et, D(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
+ onClick: 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"])) : H("", !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(M, {
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(M, {
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
+ O("拖拽组件列表")
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
+ tid: "defaultModule.text"
743
+ }, {
744
+ default: i(() => t[19] || (t[19] = [
745
+ e("div", null, [
746
+ e("a", {
747
+ class: "ep-draggable-item",
748
+ tid: "defaultModule.image"
749
+ }, [
750
+ e("span", {
751
+ class: "ri-image-line",
752
+ "ariel-hidden": "true"
753
+ }),
754
+ e("p", { class: "glyphicon-class" }, "图片")
755
+ ])
756
+ ], -1)
757
+ ])),
758
+ _: 1
759
+ })
760
+ ]),
761
+ _: 1
762
+ }),
763
+ l(c, { style: { height: "60px" } }, {
764
+ default: i(() => [
765
+ l(a, {
766
+ span: 12,
767
+ class: "drag_item_box",
768
+ tid: "defaultModule.text"
769
+ }, {
770
+ default: i(() => t[20] || (t[20] = [
771
+ e("div", null, [
772
+ e("a", {
773
+ class: "ep-draggable-item",
774
+ tid: "defaultModule.longText"
775
+ }, [
776
+ e("span", {
777
+ class: "ri-line-height",
778
+ "ariel-hidden": "true"
779
+ }),
780
+ e("p", { class: "glyphicon-class" }, "长文")
781
+ ])
782
+ ], -1)
783
+ ])),
784
+ _: 1
785
+ }),
786
+ l(a, {
787
+ span: 12,
788
+ class: "drag_item_box",
789
+ tid: "defaultModule.text"
790
+ }, {
791
+ default: i(() => t[21] || (t[21] = [
792
+ e("div", null, [
793
+ e("a", {
794
+ class: "ep-draggable-item",
795
+ tid: "defaultModule.table"
796
+ }, [
797
+ e("span", {
798
+ class: "ri-table-line",
799
+ "ariel-hidden": "true"
800
+ }),
801
+ e("p", { class: "glyphicon-class" }, "表格")
802
+ ])
803
+ ], -1)
804
+ ])),
805
+ _: 1
806
+ })
807
+ ]),
808
+ _: 1
809
+ }),
810
+ l(c, { class: "drag_item_title" }, {
811
+ default: i(() => t[22] || (t[22] = [
812
+ O("辅助")
813
+ ])),
814
+ _: 1
815
+ }),
816
+ l(c, { style: { height: "60px" } }, {
817
+ default: i(() => [
818
+ l(a, {
819
+ span: 12,
820
+ class: "drag_item_box",
821
+ tid: "defaultModule.text"
822
+ }, {
823
+ default: i(() => t[23] || (t[23] = [
824
+ e("div", null, [
825
+ e("a", {
826
+ class: "ep-draggable-item",
827
+ tid: "defaultModule.hline"
828
+ }, [
829
+ e("span", {
830
+ class: "ri-expand-horizontal-s-fill",
831
+ "ariel-hidden": "true"
832
+ }),
833
+ e("p", { class: "glyphicon-class" }, "横线")
834
+ ])
835
+ ], -1)
836
+ ])),
837
+ _: 1
838
+ }),
839
+ l(a, {
840
+ span: 12,
841
+ class: "drag_item_box",
842
+ tid: "defaultModule.text"
843
+ }, {
844
+ default: i(() => t[24] || (t[24] = [
845
+ e("div", null, [
846
+ e("a", {
847
+ class: "ep-draggable-item",
848
+ tid: "defaultModule.vline"
849
+ }, [
850
+ e("span", {
851
+ class: "ri-expand-vertical-s-fill",
852
+ "ariel-hidden": "true"
853
+ }),
854
+ e("p", { class: "glyphicon-class" }, "竖线")
855
+ ])
856
+ ], -1)
857
+ ])),
858
+ _: 1
859
+ })
860
+ ]),
861
+ _: 1
862
+ }),
863
+ l(c, { style: { height: "60px" } }, {
864
+ default: i(() => [
865
+ l(a, {
866
+ span: 12,
867
+ class: "drag_item_box",
868
+ tid: "defaultModule.text"
869
+ }, {
870
+ default: i(() => t[25] || (t[25] = [
871
+ e("div", null, [
872
+ e("a", {
873
+ class: "ep-draggable-item",
874
+ tid: "defaultModule.rect"
875
+ }, [
876
+ e("span", {
877
+ class: "ri-square-line",
878
+ "ariel-hidden": "true"
879
+ }),
880
+ e("p", { class: "glyphicon-class" }, "矩形")
881
+ ])
882
+ ], -1)
883
+ ])),
884
+ _: 1
885
+ }),
886
+ l(a, {
887
+ span: 12,
888
+ class: "drag_item_box",
889
+ tid: "defaultModule.text"
890
+ }, {
891
+ default: i(() => t[26] || (t[26] = [
892
+ e("div", null, [
893
+ e("a", {
894
+ class: "ep-draggable-item",
895
+ tid: "defaultModule.oval"
896
+ }, [
897
+ e("span", {
898
+ class: "ri-checkbox-blank-circle-line",
899
+ "ariel-hidden": "true"
900
+ }),
901
+ e("p", { class: "glyphicon-class" }, "椭圆")
902
+ ])
903
+ ], -1)
904
+ ])),
905
+ _: 1
906
+ })
907
+ ]),
908
+ _: 1
909
+ })
910
+ ]),
911
+ _: 1
912
+ })
913
+ ]),
914
+ _: 1
915
+ })
916
+ ]),
917
+ _: 1
918
+ })
919
+ ]),
920
+ _: 1
921
+ }),
922
+ l(a, {
923
+ xs: 15,
924
+ sm: 15,
925
+ md: 15,
926
+ lg: 16,
927
+ xl: 18
928
+ }, {
929
+ default: i(() => [
930
+ l(b, { class: "card-design" }, {
931
+ default: i(() => t[27] || (t[27] = [
932
+ e("div", {
933
+ id: "hiprint-printTemplate",
934
+ class: "hiprint-printTemplate"
935
+ }, null, -1)
936
+ ])),
937
+ _: 1
938
+ })
939
+ ]),
940
+ _: 1
941
+ }),
942
+ l(a, {
943
+ xs: 6,
944
+ sm: 6,
945
+ md: 6,
946
+ lg: 5,
947
+ xl: 3
948
+ }, {
949
+ default: i(() => [
950
+ l(b, { class: "design-setting-panel" }, {
951
+ default: i(() => [
952
+ l(c, { class: "hinnn-layout-sider" }, {
953
+ default: i(() => t[28] || (t[28] = [
954
+ e("div", { id: "PrintElementOptionSetting" }, null, -1)
955
+ ])),
956
+ _: 1
957
+ })
958
+ ]),
959
+ _: 1
960
+ })
961
+ ]),
962
+ _: 1
963
+ })
964
+ ]),
965
+ _: 1
966
+ })
967
+ ]),
968
+ _: 1
969
+ }),
970
+ l(et, {
971
+ modelValue: y.value,
972
+ "onUpdate:modelValue": t[14] || (t[14] = (o) => y.value = o),
973
+ title: "导入模板JSON数据",
974
+ height: "320",
975
+ width: "450",
976
+ "show-footer": ""
977
+ }, {
978
+ default: i(() => [
979
+ t[29] || (t[29] = e("p", { style: { color: "red" } }, "切勿随意修改JSON数据,可能导致模板加载出错", -1)),
980
+ l(tt, {
981
+ modelValue: T.value,
982
+ "onUpdate:modelValue": t[12] || (t[12] = (o) => T.value = o),
983
+ rows: 10,
984
+ size: "mini"
985
+ }, null, 8, ["modelValue"])
986
+ ]),
987
+ footer: i(() => [
988
+ l(p, {
989
+ icon: "ri-close-fill",
990
+ content: "cancel",
991
+ onTap: t[13] || (t[13] = (o) => y.value = !1)
992
+ }),
993
+ l(p, {
994
+ icon: "ri-save-3-fill",
995
+ status: "u-cyan",
996
+ content: "confirm",
997
+ onTap: Y
998
+ })
999
+ ]),
1000
+ _: 1
1001
+ }, 8, ["modelValue"]),
1002
+ C.value ? (w(), S(vt, {
1003
+ key: 0,
1004
+ ref_key: "previewRef",
1005
+ ref: z
1006
+ }, null, 512)) : H("", !0)
1007
+ ])), [
1008
+ [lt, v.value]
1009
+ ]);
1010
+ };
1011
+ }
1012
+ });
1013
+ export {
1014
+ Nt as _
1015
+ };