@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,95 @@
1
+ import { defineComponent as v, ref as n, createVNode as c, resolveComponent as s, nextTick as g, createElementBlock as h, openBlock as u, createBlock as C, createCommentVNode as D } from "vue";
2
+ import { _ as k } from "./childView.vue_vue_type_style_index_0_lang-CNSgGda3.js";
3
+ import { useRender as T } from "@utogether/utils";
4
+ const E = {
5
+ name: "DictView"
6
+ }, I = /* @__PURE__ */ v({
7
+ ...E,
8
+ setup(y) {
9
+ const o = n(null), a = [{
10
+ field: "dictCode",
11
+ title: "message.udp.dictCode"
12
+ }, {
13
+ field: "dictName",
14
+ title: "message.udp.dictName"
15
+ }, {
16
+ field: "dictType",
17
+ title: "message.udp.dictType"
18
+ }], t = T(), l = [{
19
+ type: "checkbox",
20
+ width: 40,
21
+ align: "center"
22
+ }, {
23
+ field: "dictCode",
24
+ title: "message.udp.dictCode",
25
+ required: !0,
26
+ editRender: t.renderInput()
27
+ }, {
28
+ field: "dictName",
29
+ title: "message.udp.dictCode",
30
+ required: !0,
31
+ editRender: t.renderInput()
32
+ }, {
33
+ field: "dictType",
34
+ title: "message.udp.dictType",
35
+ required: !0,
36
+ editRender: t.renderDict("SU.DICT.TYPE"),
37
+ formatter: ["formatDict", "SU.DICT.TYPE"]
38
+ }, {
39
+ field: "dictDesc",
40
+ title: "message.remark",
41
+ editRender: t.renderInput()
42
+ }, {
43
+ field: "enabled",
44
+ width: 90,
45
+ editRender: t.renderDict({
46
+ code: "SU.ENABLE",
47
+ defaultValue: "1"
48
+ }),
49
+ formatter: ["formatDict", "SU.ENABLE"]
50
+ }, {
51
+ field: "operate",
52
+ width: 80,
53
+ slots: {
54
+ default: ({
55
+ row: e
56
+ }) => e.id ? [c(s("ut-button"), {
57
+ content: "lov",
58
+ onClick: () => m(e)
59
+ }, null)] : null
60
+ }
61
+ }], d = n(!1), r = n(null), m = (e) => {
62
+ g(() => {
63
+ var i;
64
+ d.value = !0, r.value = e, r.value.total = (i = e.children) == null ? void 0 : i.length;
65
+ });
66
+ }, f = () => {
67
+ o.value.refreshData(), d.value = !1;
68
+ }, p = {
69
+ editActived({
70
+ row: e
71
+ }) {
72
+ l[1].editRender.props.disabled = !!e.id;
73
+ }
74
+ };
75
+ return (e, i) => {
76
+ const _ = s("ut-grid");
77
+ return u(), h("div", null, [c(_, {
78
+ ref_key: "xgrid",
79
+ ref: o,
80
+ items: a,
81
+ columns: l,
82
+ url: "/upfm/v1/lov",
83
+ events: p
84
+ }, null, 512), d.value ? (u(), C(k, {
85
+ key: 0,
86
+ show: d.value,
87
+ record: r.value,
88
+ onOnClose: f
89
+ }, null, 8, ["show", "record"])) : D("", !0)]);
90
+ };
91
+ }
92
+ });
93
+ export {
94
+ I as default
95
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as u, ref as s, reactive as m, resolveComponent as f, createBlock as p, openBlock as g } from "vue";
2
+ import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { useRender as h } from "@utogether/utils";
4
+ import { w as z } from "./index-BKIw8tSn.js";
5
+ const k = {
6
+ name: "InvOrganization"
7
+ }, R = /* @__PURE__ */ u({
8
+ ...k,
9
+ setup(w) {
10
+ const r = "/uums/cusOrganization", n = s(null), e = h(), i = [{
11
+ field: "organizationCode"
12
+ }, {
13
+ field: "organizationName"
14
+ }], d = [{
15
+ type: "checkbox",
16
+ width: 40,
17
+ align: "center"
18
+ }, {
19
+ field: "organizationCode",
20
+ width: 120,
21
+ required: !0,
22
+ editRender: e.renderInput()
23
+ }, {
24
+ field: "organizationName",
25
+ minWidth: 120,
26
+ required: !0,
27
+ editRender: e.renderInput()
28
+ }, {
29
+ field: "orgName",
30
+ minWidth: 170,
31
+ required: !0,
32
+ editRender: e.renderBU()
33
+ }, {
34
+ field: "orgCode",
35
+ width: 110
36
+ }, {
37
+ field: "enabled",
38
+ width: 80,
39
+ cellRender: e.renderEnabled(a)
40
+ }];
41
+ async function a(t) {
42
+ const [o] = await _(z().put(r, [t]));
43
+ !o && n.value.refreshData();
44
+ }
45
+ const c = m({
46
+ columns: d
47
+ });
48
+ return (t, o) => {
49
+ const l = f("ut-grid");
50
+ return g(), p(l, {
51
+ ref_key: "xgrid",
52
+ ref: n,
53
+ items: i,
54
+ "default-params": {
55
+ organizationId: "",
56
+ orgId: ""
57
+ },
58
+ columns: c.columns,
59
+ url: r
60
+ }, null, 8, ["columns"]);
61
+ };
62
+ }
63
+ });
64
+ export {
65
+ R as default
66
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as a, ref as m, resolveComponent as s, createBlock as u, openBlock as f } from "vue";
2
+ import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { clone as g } from "xe-utils";
4
+ import { useRender as _ } from "@utogether/utils";
5
+ import { w as h } from "./index-BKIw8tSn.js";
6
+ const k = { name: "OrgUnit" }, $ = /* @__PURE__ */ a({
7
+ ...k,
8
+ setup(R) {
9
+ const r = "/uums/org", t = m(null), i = _(), d = [{ field: "orgCode" }, { field: "orgName" }, { field: "orgAlias" }], l = [
10
+ { type: "checkbox", width: 50, align: "center" },
11
+ { field: "orgCode", required: !0, editRender: { name: "$input" } },
12
+ { field: "orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
13
+ { field: "orgAlias", editRender: { name: "$input" } },
14
+ { field: "orgDesc", editRender: { name: "$input" } },
15
+ { field: "enabled", width: 80, cellRender: i.renderEnabled(c) }
16
+ ];
17
+ async function c({ row: n }) {
18
+ const o = g(n, !0), [e] = await p(h().put(r, [o]));
19
+ !e && t.value.refreshData();
20
+ }
21
+ return (n, o) => {
22
+ const e = s("ut-grid");
23
+ return f(), u(e, {
24
+ ref_key: "xgrid",
25
+ ref: t,
26
+ items: d,
27
+ columns: l,
28
+ url: r
29
+ }, null, 512);
30
+ };
31
+ }
32
+ });
33
+ export {
34
+ $ as default
35
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as w, ref as o, resolveComponent as u, createElementBlock as h, openBlock as x, createVNode as c, withCtx as p, createElementVNode as g, nextTick as V } from "vue";
2
+ import { _ as k } from "./index-BKIw8tSn.js";
3
+ const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
4
+ __name: "Preview",
5
+ setup(T, { expose: d }) {
6
+ const n = o(!1), l = o(!1), r = o(null), s = o(null), i = o(220), v = (t, e) => {
7
+ l.value = !0, r.value = t, s.value = e, V(() => {
8
+ $("#preview_content").html(t.getHtml(e)), l.value = !1;
9
+ });
10
+ }, m = () => {
11
+ r.value.print(s.value, {});
12
+ };
13
+ return d({
14
+ show: (t, e, a = 220) => {
15
+ n.value = !0, i.value = a, v(t, e);
16
+ }
17
+ }), (t, e) => {
18
+ const a = u("ut-button"), _ = u("vxe-modal");
19
+ return x(), h("div", P, [
20
+ c(_, {
21
+ modelValue: n.value,
22
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => n.value = f),
23
+ loading: l.value,
24
+ width: i.value + "mm",
25
+ "min-height": "480",
26
+ "lock-scroll": !1,
27
+ "show-footer": !1
28
+ }, {
29
+ title: p(() => [
30
+ c(a, {
31
+ status: "u-cyan",
32
+ icon: "ri-printer-line",
33
+ content: "print",
34
+ onTap: m
35
+ })
36
+ ]),
37
+ default: p(() => e[1] || (e[1] = [
38
+ g("div", { id: "preview_content" }, null, -1)
39
+ ])),
40
+ _: 1
41
+ }, 8, ["modelValue", "loading", "width"])
42
+ ]);
43
+ };
44
+ }
45
+ }), N = /* @__PURE__ */ k(C, [["__scopeId", "data-v-a7a65711"]]);
46
+ export {
47
+ N as default
48
+ };
@@ -0,0 +1,10 @@
1
+ import { createElementBlock as e, openBlock as r } from "vue";
2
+ import { _ as o } from "./index-BKIw8tSn.js";
3
+ const t = {};
4
+ function c(n, _) {
5
+ return r(), e("div");
6
+ }
7
+ const a = /* @__PURE__ */ o(t, [["render", c]]);
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,165 @@
1
+ import { defineComponent as q, ref as s, createVNode as r, Fragment as A, resolveComponent as l, nextTick as I, createElementBlock as b, openBlock as d, withDirectives as x, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
2
+ import { useRender as S, successMessage as $ } from "@utogether/utils";
3
+ import { useClipboard as M } from "@vueuse/core";
4
+ import { t as V } from "./await-to-js.es5-BtRbN2QH.js";
5
+ import { _ as B } from "./DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js";
6
+ import { w as U } from "./index-BKIw8tSn.js";
7
+ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ q({
8
+ name: "ReportDesign",
9
+ __name: "ReportDesign",
10
+ setup(F) {
11
+ const o = s(null), a = s(!1), i = s(!1), n = S(), t = s({}), {
12
+ copy: v
13
+ } = M(), g = U(), h = [{
14
+ field: "templateCode",
15
+ title: "message.file.templateCode"
16
+ }, {
17
+ field: "templateName",
18
+ title: "message.file.templateName"
19
+ }], u = [
20
+ {
21
+ type: "checkbox",
22
+ width: 50,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "templateCode",
27
+ title: "message.file.templateCode",
28
+ required: !0,
29
+ width: 150,
30
+ editRender: n.renderInput()
31
+ },
32
+ {
33
+ field: "templateName",
34
+ title: "message.file.templateName",
35
+ required: !0,
36
+ width: 240,
37
+ editRender: n.renderInput()
38
+ },
39
+ {
40
+ field: "paperType",
41
+ title: "message.file.paperType",
42
+ width: 120,
43
+ required: !0,
44
+ editRender: n.renderDict({
45
+ code: "SU.PRINT.PAPER",
46
+ defaultValue: "A4"
47
+ }),
48
+ formatter: ["formatDict", "SU.PRINT.PAPER"]
49
+ },
50
+ // { field: 'createdByName', width: 120 },
51
+ {
52
+ field: "remarks",
53
+ title: "message.remark",
54
+ minWidth: 120,
55
+ editRender: n.renderInput()
56
+ },
57
+ // { field: 'enabled', width: 55, formatter: ['formatDict', 'SU.ENABLE'] },
58
+ {
59
+ field: "operate",
60
+ width: 200,
61
+ slots: {
62
+ default: ({
63
+ row: e
64
+ }) => e.id ? r(A, null, [r(l("ut-button"), {
65
+ content: "design",
66
+ icon: "ri-quill-pen-line",
67
+ onTap: () => k(e)
68
+ }, null), r(l("ut-button"), {
69
+ content: "copy",
70
+ status: "warning",
71
+ icon: "ri-file-copy-2-fill",
72
+ onTap: () => R(e)
73
+ }, null), r(l("ut-button"), {
74
+ content: "export",
75
+ status: "u-cyan",
76
+ icon: "ri-folder-download-fill",
77
+ onTap: () => _(e)
78
+ }, null)]) : null
79
+ }
80
+ }
81
+ ], C = [{
82
+ field: "templateCode",
83
+ title: "message.templateCode",
84
+ required: !0,
85
+ itemRender: {
86
+ name: "$input"
87
+ },
88
+ span: 24
89
+ }, {
90
+ field: "templateName",
91
+ title: "message.templateName",
92
+ required: !0,
93
+ itemRender: {
94
+ name: "$input"
95
+ },
96
+ span: 24
97
+ }, {
98
+ field: "paperType",
99
+ width: 100,
100
+ required: !0,
101
+ itemRender: n.renderDict({
102
+ code: "SU.PRINT.PAPER",
103
+ defaultValue: "A4"
104
+ })
105
+ }, {
106
+ field: "remarks",
107
+ title: "message.remark",
108
+ required: !0,
109
+ itemRender: {
110
+ name: "$input"
111
+ },
112
+ span: 24
113
+ }], R = (e) => {
114
+ t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
115
+ }, _ = (e) => {
116
+ v(e.templateContent), $("复制成功,快试试右键粘贴吧");
117
+ }, y = async () => {
118
+ const [e] = await V(g.post(f, [t.value]));
119
+ !e && o.value.refreshData(), i.value = !1;
120
+ }, k = (e) => {
121
+ t.value = e, I(() => {
122
+ a.value = !0;
123
+ });
124
+ }, T = {
125
+ editActived({
126
+ row: e
127
+ }) {
128
+ e.id && (u[1].editRender.props.disabled = !0, o.value.getInstance().refreshColumn());
129
+ }
130
+ }, w = ({
131
+ row: e
132
+ }) => e.enabled !== "1", N = () => {
133
+ t.value = {}, a.value = !1, o.value.refreshData();
134
+ };
135
+ return (e, m) => {
136
+ const D = l("ut-grid"), P = l("ut-modal-form");
137
+ return d(), b("div", null, [x(r(D, {
138
+ ref_key: "xgrid",
139
+ ref: o,
140
+ items: h,
141
+ columns: u,
142
+ checkMethod: w,
143
+ url: f,
144
+ events: T
145
+ }, null, 512), [[E, !a.value]]), a.value ? (d(), p(B, {
146
+ key: 0,
147
+ record: t.value,
148
+ onOnClose: N
149
+ }, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(P, {
150
+ key: 1,
151
+ record: t.value,
152
+ items: C,
153
+ width: 300,
154
+ height: 240,
155
+ "data-status": "update",
156
+ title: "复制模板",
157
+ onConfirm: y,
158
+ onClose: m[0] || (m[0] = (G) => i.value = !1)
159
+ }, null, 8, ["record"])) : c("", !0)]);
160
+ };
161
+ }
162
+ });
163
+ export {
164
+ K as default
165
+ };
@@ -0,0 +1,75 @@
1
+ import { defineComponent as m, reactive as c, watch as f, ref as u, onMounted as p, resolveComponent as h, createElementBlock as _, openBlock as r, withDirectives as w, createBlock as x, createCommentVNode as D, createVNode as R, vShow as C } from "vue";
2
+ import { u as S } from "./index-BKIw8tSn.js";
3
+ import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js";
4
+ import { useRender as N } from "@utogether/utils";
5
+ const T = { name: "ReportQuery" }, O = /* @__PURE__ */ m({
6
+ ...T,
7
+ setup(k) {
8
+ const e = c({
9
+ record: {},
10
+ showChild: !1,
11
+ loading: !1,
12
+ dataStatus: ""
13
+ }), t = S(), a = N();
14
+ f(
15
+ () => t.path,
16
+ () => {
17
+ }
18
+ );
19
+ const d = [
20
+ { field: "templateName" },
21
+ { field: "createdByName" },
22
+ { field: "exportResult", itemRender: a.renderDict("SU.REPORT.EXPORT_STATUS") },
23
+ {
24
+ field: "exportDate",
25
+ itemRender: { name: "#SuDateRange" },
26
+ fromField: "exportDateFrom",
27
+ toField: "exportDateTo"
28
+ },
29
+ {
30
+ field: "creationDate",
31
+ itemRender: { name: "#SuDateRange" },
32
+ fromField: "createDateFrom",
33
+ toField: "createDateTo"
34
+ }
35
+ ], i = [
36
+ { field: "exportNo", title: "message.reportCode", width: 100 },
37
+ { field: "templateName", width: 150 },
38
+ { field: "fileName", width: 150 },
39
+ { field: "exportStatus", width: 90 },
40
+ { field: "exportResult", width: 70 },
41
+ { field: "fileType", width: 80 },
42
+ { field: "exportMsg", minWidth: 100 },
43
+ { field: "createdByName", width: 100 },
44
+ { field: "exportDate", width: 100 },
45
+ { field: "creationDate", width: 100, formatter: ["formatDate"] }
46
+ ], l = u(null), n = () => {
47
+ e.showChild = !1;
48
+ };
49
+ return p(() => {
50
+ var o;
51
+ (o = t == null ? void 0 : t.params) != null && o.isJump && (e.dataStatus = "add", e.showChild = !0);
52
+ }), (o, y) => {
53
+ const s = h("ut-grid");
54
+ return r(), _("div", null, [
55
+ w(R(s, {
56
+ ref_key: "xgrid",
57
+ ref: l,
58
+ tems: d,
59
+ columns: i
60
+ }, null, 512), [
61
+ [C, !e.showChild]
62
+ ]),
63
+ e.showChild ? (r(), x(g, {
64
+ key: 0,
65
+ record: e.record,
66
+ "data-status": e.dataStatus,
67
+ onOnClose: n
68
+ }, null, 8, ["record", "data-status"])) : D("", !0)
69
+ ]);
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ O as default
75
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,177 @@
1
+ import { defineComponent as T, ref as $, computed as S, reactive as I, nextTick as q, onBeforeMount as X, resolveComponent as i, createElementBlock as B, openBlock as D, createVNode as a, withCtx as F, createElementVNode as j } from "vue";
2
+ import { useI18n as z } from "vue-i18n";
3
+ import { clone as A } from "xe-utils";
4
+ import { u as J, w as O } from "./index-BKIw8tSn.js";
5
+ import { templateRef as V } from "@vueuse/core";
6
+ import { useRender as Y } from "@utogether/utils";
7
+ const H = { class: "ut-drawer-template" }, M = { class: "flex" }, ee = /* @__PURE__ */ T({
8
+ __name: "ReportQueryFrom",
9
+ props: {
10
+ show: { type: Boolean, default: !0 },
11
+ record: { default: () => ({}) },
12
+ dataStatus: { default: "add" },
13
+ drawTitle: { default: "报表模板" },
14
+ direction: { default: "rtl" }
15
+ },
16
+ emits: ["onClose"],
17
+ setup(x, { emit: C }) {
18
+ const m = x, { t: h } = z(), d = J();
19
+ let y = {};
20
+ const g = V("xForm", null), E = $(!1), u = Y(), f = O(), N = S(() => {
21
+ const e = {};
22
+ return r.items.length && r.items.filter((t) => t.required).forEach((t) => {
23
+ e[t.field] = [
24
+ {
25
+ required: !0,
26
+ message: `${h("message.required")}${t != null && t.title ? h(t.title) : ""}`
27
+ }
28
+ ];
29
+ }), e;
30
+ }), l = [
31
+ { field: "fileName", title: "message.fileName", span: 24, itemRender: { name: "$input" } },
32
+ {
33
+ field: "templateName",
34
+ required: !0,
35
+ span: 24,
36
+ itemRender: u.renderSelect(
37
+ {
38
+ optionProps: { label: "tempName", value: "tempName" },
39
+ props: { code: "EXP005", fetchField: "tempName" }
40
+ },
41
+ w
42
+ )
43
+ },
44
+ {
45
+ field: "fileType",
46
+ required: !0,
47
+ span: 24,
48
+ itemRender: {
49
+ name: "$select",
50
+ props: {
51
+ options: [],
52
+ disabled: !0
53
+ }
54
+ }
55
+ }
56
+ ];
57
+ function v() {
58
+ return l.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
59
+ }
60
+ function w(e, t, n, o) {
61
+ o === "templateName" && n[o] && b(t);
62
+ }
63
+ function b(e) {
64
+ y = e, l[2].itemRender.props = {
65
+ disabled: !1,
66
+ options: e.exportFileType.split(",").map((t) => ({ label: t, value: t }))
67
+ }, f.post("EXP010", { templateId: e.id }).then((t) => {
68
+ t.list.forEach((n) => {
69
+ const o = {
70
+ field: n.parameterField,
71
+ title: n.parameterName,
72
+ span: 24,
73
+ dynamicsField: "Y",
74
+ itemRender: R(n)
75
+ };
76
+ l.push(o);
77
+ }), q(() => {
78
+ r.items = v();
79
+ });
80
+ });
81
+ }
82
+ const R = (e) => {
83
+ let t = {};
84
+ switch (e.parameterType) {
85
+ case "date":
86
+ t = { name: "$input", props: { type: "date" } };
87
+ break;
88
+ case "number":
89
+ t = { name: "$input", props: { type: "number" } };
90
+ break;
91
+ default:
92
+ e.selectOptions === "Y" ? e.valueType === "0" ? t = u.renderDict(e.serviceCode) : e.valueType === "1" && (t = u.renderSelect(
93
+ {
94
+ optionProps: { label: e.showField, value: e.valueField },
95
+ props: { code: e.serviceCode, fetchField: e.showField }
96
+ },
97
+ w
98
+ )) : t = { name: "$input" };
99
+ break;
100
+ }
101
+ return t;
102
+ }, k = () => {
103
+ g.value.validate(async (e) => {
104
+ if (!e) {
105
+ const { dataStatus: t } = m, { row: n } = r, o = A(n, !0), p = t === "add" ? "EXP011" : "EXP003", c = {};
106
+ l.forEach((s) => {
107
+ s.dynamicsField && (c[s.field] = o[s.field]);
108
+ }), o.templateId = y.id, o.reportData = JSON.stringify(c), await f.post(p, o), _("submit");
109
+ }
110
+ });
111
+ }, P = C;
112
+ function _(e) {
113
+ P("onClose", e);
114
+ }
115
+ const r = I({
116
+ items: v(),
117
+ fetchParamExt: {},
118
+ row: {}
119
+ });
120
+ return X(() => {
121
+ var e;
122
+ r.row = m.record, r.fetchParamExt = { templateId: m.record.id }, (e = d == null ? void 0 : d.params) != null && e.isJump && (r.row = d.params, f.post("EXP005", { tempName: "", pageSize: 1 }).then((t) => {
123
+ t != null && t.list && (l[1].itemRender.props.options = t.list, r.items = v(), b(t == null ? void 0 : t.list[0]));
124
+ }));
125
+ }), (e, t) => {
126
+ const n = i("vxe-form"), o = i("el-divider"), p = i("ut-button"), c = i("el-row"), s = i("el-drawer");
127
+ return D(), B("div", H, [
128
+ a(s, {
129
+ "model-value": e.show,
130
+ title: e.drawTitle,
131
+ "before-close": _,
132
+ "destroy-on-close": "",
133
+ size: "66%"
134
+ }, {
135
+ default: F(() => [
136
+ j("div", M, [
137
+ a(n, {
138
+ ref_key: "xForm",
139
+ ref: g,
140
+ data: r.row,
141
+ rules: N.value,
142
+ items: r.items,
143
+ loading: E.value,
144
+ "title-colon": "",
145
+ "title-align": "right",
146
+ "title-width": "110"
147
+ }, null, 8, ["data", "rules", "items", "loading"])
148
+ ]),
149
+ a(o),
150
+ a(c, {
151
+ type: "flex",
152
+ justify: "end",
153
+ style: { "padding-right": "22px" }
154
+ }, {
155
+ default: F(() => [
156
+ a(p, {
157
+ content: "cancel",
158
+ onClick: t[0] || (t[0] = (Q) => _())
159
+ }),
160
+ a(p, {
161
+ content: "confirm",
162
+ status: "u-cyan",
163
+ onClick: k
164
+ })
165
+ ]),
166
+ _: 1
167
+ })
168
+ ]),
169
+ _: 1
170
+ }, 8, ["model-value", "title"])
171
+ ]);
172
+ };
173
+ }
174
+ });
175
+ export {
176
+ ee as _
177
+ };