ztxkui 4.2.18-21 → 4.2.18-220

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 (416) hide show
  1. package/dist/App.js +315 -291
  2. package/dist/Demo.js +64 -43
  3. package/dist/DemoCom/BasicDemo.js +57 -56
  4. package/dist/DemoCom/CodeQueryDemo.js +3 -2
  5. package/dist/DemoCom/CollapseDemo.js +28 -27
  6. package/dist/DemoCom/DragSort.js +11 -10
  7. package/dist/DemoCom/FormDemo.js +36 -30
  8. package/dist/DemoCom/PrintContainerDemo.js +151 -150
  9. package/dist/DemoCom/PrintDemo.js +15 -14
  10. package/dist/DemoCom/SinaturesDemo.js +9 -8
  11. package/dist/DemoCom/SyhDemo.js +21 -20
  12. package/dist/DemoCom/TableAnalyse.js +34 -33
  13. package/dist/DemoCom/TableDemo.js +73 -69
  14. package/dist/DemoCom/TableDemo1.js +84 -34
  15. package/dist/DemoCom/TableDetail.d.ts +9 -0
  16. package/dist/DemoCom/TableDetail.js +259 -0
  17. package/dist/DemoCom/TestCom.js +22 -19
  18. package/dist/DemoCom/data.d.ts +110 -0
  19. package/dist/DemoCom/data.js +2308 -0
  20. package/dist/TableDemo/BasicTable.js +225 -25
  21. package/dist/TableDemo/EditableTable.js +146 -72
  22. package/dist/TableDemo/ModalTable.js +25 -24
  23. package/dist/TableDemo/ProEditableTable.js +30 -29
  24. package/dist/TableDemo/data.d.ts +34 -0
  25. package/dist/TableDemo/data.js +387 -10
  26. package/dist/TableDemo/index.js +3 -3
  27. package/dist/TreeDemo.js +8 -7
  28. package/dist/TreeSelectDemo.js +12 -8
  29. package/dist/UI/Form/index.d.ts +3 -0
  30. package/dist/UI/Form/index.js +347 -0
  31. package/dist/UI/Input/index.d.ts +17 -0
  32. package/dist/UI/Input/index.js +74 -0
  33. package/dist/UI/InputNumber/index.d.ts +3 -0
  34. package/dist/UI/InputNumber/index.js +45 -0
  35. package/dist/UI/OldForm/index.d.ts +9 -0
  36. package/dist/UI/OldForm/index.js +302 -0
  37. package/dist/UI/Select/EmpForQuitDemo.d.ts +15 -0
  38. package/dist/UI/Select/EmpForQuitDemo.js +120 -0
  39. package/dist/UI/Select/index.d.ts +10 -0
  40. package/dist/UI/Select/index.js +207 -0
  41. package/dist/UI/Table/BusinessListDemo.d.ts +15 -0
  42. package/dist/UI/Table/BusinessListDemo.js +227 -0
  43. package/dist/UI/Table/BusinessMemberDemo.d.ts +18 -0
  44. package/dist/UI/Table/BusinessMemberDemo.js +181 -0
  45. package/dist/UI/Table/index.d.ts +10 -0
  46. package/dist/UI/Table/index.js +850 -0
  47. package/dist/UI/TreeSelect/index.d.ts +3 -0
  48. package/dist/UI/TreeSelect/index.js +120 -0
  49. package/dist/UI/index.d.ts +2 -0
  50. package/dist/UI/index.js +34 -0
  51. package/dist/UploadDemo.js +27 -23
  52. package/dist/components/Button/button.d.ts +6 -0
  53. package/dist/components/Button/button.js +11 -4
  54. package/dist/components/Collapse/collapse.js +2 -1
  55. package/dist/components/DatePicker/data-picker.d.ts +3 -1
  56. package/dist/components/EnhanceSelect/index.d.ts +11 -1
  57. package/dist/components/EnhanceSelect/index.js +231 -49
  58. package/dist/components/EnhanceTree/index.js +4 -3
  59. package/dist/components/EnhanceTreeSelect/index.d.ts +5 -1
  60. package/dist/components/EnhanceTreeSelect/index.js +57 -7
  61. package/dist/components/Export/export.js +5 -4
  62. package/dist/components/Form/form.d.ts +11 -1
  63. package/dist/components/Form/form.js +5 -3
  64. package/dist/components/Input/input.d.ts +5 -3
  65. package/dist/components/Input/input.js +72 -3
  66. package/dist/components/InputNumber/input-number.js +3 -2
  67. package/dist/components/Layout/layout.d.ts +4 -4
  68. package/dist/components/Menu/menu.d.ts +1 -1
  69. package/dist/components/NumberCase/index.js +9 -7
  70. package/dist/components/Print/print.js +4 -3
  71. package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
  72. package/dist/components/PrintContainer/PrintModal.js +4 -3
  73. package/dist/components/PrintContainer/handle.d.ts +2 -4
  74. package/dist/components/PrintContainer/handle.js +3 -2
  75. package/dist/components/PrintContainer/lodop.js +2 -1
  76. package/dist/components/PrintContainer/print-container.js +74 -73
  77. package/dist/components/PrintContainer/service.js +5 -4
  78. package/dist/components/ProForm/hooks.d.ts +23 -0
  79. package/dist/components/ProForm/hooks.js +209 -0
  80. package/dist/components/ProForm/index.d.ts +9 -0
  81. package/dist/components/ProForm/index.js +168 -0
  82. package/dist/components/ProForm/interface.d.ts +200 -0
  83. package/dist/components/ProForm/interface.js +1 -0
  84. package/dist/components/ProForm/item.d.ts +13 -0
  85. package/dist/components/ProForm/item.js +222 -0
  86. package/dist/components/ProForm/items.d.ts +5 -0
  87. package/dist/components/ProForm/items.js +36 -0
  88. package/dist/components/ProForm/record-common-list.d.ts +18 -0
  89. package/dist/components/ProForm/record-common-list.js +83 -0
  90. package/dist/components/ProForm/search-drawer.d.ts +14 -0
  91. package/dist/components/ProForm/search-drawer.js +237 -0
  92. package/dist/components/ProForm/setting.d.ts +5 -0
  93. package/dist/components/ProForm/setting.js +12 -0
  94. package/dist/components/ProForm/useCommonSearch.d.ts +35 -0
  95. package/dist/components/ProForm/useCommonSearch.js +352 -0
  96. package/dist/components/ProFormList/index.d.ts +12 -0
  97. package/dist/components/ProFormList/index.js +34 -0
  98. package/dist/components/RangePicker/range-picker.js +5 -2
  99. package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
  100. package/dist/components/SortableCancel/sortable-cancel.js +2 -2
  101. package/dist/components/Table/components/FillDown.js +2 -1
  102. package/dist/components/Table/components/FilterDropdown.d.ts +1 -0
  103. package/dist/components/Table/components/FilterDropdown.js +36 -12
  104. package/dist/components/Table/hooks/useColumns.d.ts +5 -0
  105. package/dist/components/Table/hooks/useColumns.js +396 -22
  106. package/dist/components/Table/hooks/useDropRef.js +2 -1
  107. package/dist/components/Table/hooks/useScuRfresh.d.ts +3 -0
  108. package/dist/components/Table/hooks/useScuRfresh.js +22 -0
  109. package/dist/components/Table/hooks/useSelectSubtotal.js +5 -1
  110. package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
  111. package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
  112. package/dist/components/Table/index.d.ts +4 -0
  113. package/dist/components/Table/table-adddel-column.js +4 -3
  114. package/dist/components/Table/table-dynamic.d.ts +1 -0
  115. package/dist/components/Table/table-dynamic.js +447 -60
  116. package/dist/components/Table/table-enhance-cell.d.ts +3 -0
  117. package/dist/components/Table/table-enhance-cell.js +28 -8
  118. package/dist/components/Table/table-menu.d.ts +7 -0
  119. package/dist/components/Table/table-menu.js +359 -0
  120. package/dist/components/Table/table-resizable-title.js +1 -0
  121. package/dist/components/Table/table-sort.js +4 -3
  122. package/dist/components/Table/table.d.ts +16 -0
  123. package/dist/components/Table/table.js +241 -65
  124. package/dist/components/Table/utils/dom.js +2 -1
  125. package/dist/components/Table/utils/filterHandle.d.ts +1 -1
  126. package/dist/components/Table/utils/filterHandle.js +27 -12
  127. package/dist/components/Table/utils/getSummaryData.d.ts +1 -1
  128. package/dist/components/Table/utils/getSummaryData.js +279 -24
  129. package/dist/components/Table/utils/shallowEqual.js +2 -1
  130. package/dist/components/Table/utils/validate.js +25 -6
  131. package/dist/components/Tabs/tabs.d.ts +2 -0
  132. package/dist/components/Tabs/tabs.js +3 -1
  133. package/dist/components/TranslationButton/DownFile.d.ts +7 -0
  134. package/dist/components/TranslationButton/DownFile.js +95 -0
  135. package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
  136. package/dist/components/TranslationButton/PreviewFile.js +73 -0
  137. package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
  138. package/dist/components/TranslationButton/TranslationButton.js +245 -0
  139. package/dist/components/TranslationButton/hooks.d.ts +8 -0
  140. package/dist/components/TranslationButton/hooks.js +139 -0
  141. package/dist/components/TranslationButton/index.d.ts +4 -0
  142. package/dist/components/TranslationButton/index.js +4 -0
  143. package/dist/components/TreeSelect/index.d.ts +19 -0
  144. package/dist/components/TreeSelect/index.js +88 -0
  145. package/dist/components/Upload/upload-table.js +31 -26
  146. package/dist/components/Upload/upload.d.ts +20 -1
  147. package/dist/components/Upload/upload.js +172 -27
  148. package/dist/components/Upload/utils.d.ts +9 -2
  149. package/dist/components/Upload/utils.js +153 -38
  150. package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
  151. package/dist/components/UploadCustom/hooks/useDg.js +55 -0
  152. package/dist/components/UploadSingle/upload-single.js +5 -4
  153. package/dist/components/Watermark/index.d.ts +2 -0
  154. package/dist/components/Watermark/index.js +2 -0
  155. package/dist/components/Watermark/interface.d.ts +20 -0
  156. package/dist/components/Watermark/interface.js +1 -0
  157. package/dist/components/Watermark/utils.d.ts +1 -0
  158. package/dist/components/Watermark/utils.js +70 -0
  159. package/dist/components/Watermark/water.d.ts +50 -0
  160. package/dist/components/Watermark/water.js +66 -0
  161. package/dist/components/Watermark/watermark-div.d.ts +4 -0
  162. package/dist/components/Watermark/watermark-div.js +41 -0
  163. package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
  164. package/dist/components/Watermark/watermark-shadow.js +116 -0
  165. package/dist/components/Watermark/watermark.d.ts +3 -0
  166. package/dist/components/Watermark/watermark.js +102 -0
  167. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
  168. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
  169. package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
  170. package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
  171. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
  172. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
  173. package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
  174. package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
  175. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
  176. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
  177. package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
  178. package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
  179. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
  180. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
  181. package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
  182. package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
  183. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
  184. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
  185. package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
  186. package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
  187. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
  188. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
  189. package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
  190. package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
  191. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
  192. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
  193. package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
  194. package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
  195. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
  196. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
  197. package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
  198. package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
  199. package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
  200. package/dist/components/WorkflowPrintContainer/images.js +2 -0
  201. package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
  202. package/dist/components/WorkflowPrintContainer/index.js +2 -0
  203. package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
  204. package/dist/components/WorkflowPrintContainer/service.js +101 -0
  205. package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
  206. package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
  207. package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
  208. package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
  209. package/dist/components/ZtIcon/index.js +2 -0
  210. package/dist/components/business/Analyse/index.js +12 -11
  211. package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
  212. package/dist/components/business/CodeQuery/component/TableList.js +5 -4
  213. package/dist/components/business/CodeQuery/hooks.js +2 -1
  214. package/dist/components/business/CodeQuery/index.js +2 -1
  215. package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
  216. package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
  217. package/dist/components/business/Common/UserInfo/index.js +5 -4
  218. package/dist/components/business/Common/UserPassword/index.js +14 -11
  219. package/dist/components/business/Common/validatePassword.d.ts +1 -1
  220. package/dist/components/business/Common/validatePassword.js +17 -7
  221. package/dist/components/business/DetailCard/index.js +7 -6
  222. package/dist/components/business/DetailHeader/index.js +7 -6
  223. package/dist/components/business/DetailList/index.js +5 -4
  224. package/dist/components/business/DgColumns/index.js +12 -11
  225. package/dist/components/business/ExportButton/index.js +6 -5
  226. package/dist/components/business/Footer/index.js +4 -1
  227. package/dist/components/business/GridList/item.d.ts +1 -1
  228. package/dist/components/business/List/item.d.ts +1 -1
  229. package/dist/components/business/NewList/item.d.ts +1 -1
  230. package/dist/components/business/NewList/item.js +1 -1
  231. package/dist/components/business/OperationBtnGroup/index.js +17 -16
  232. package/dist/components/business/SearchContainer/hooks/useDynamic.d.ts +2 -1
  233. package/dist/components/business/SearchContainer/hooks/useDynamic.js +6 -3
  234. package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
  235. package/dist/components/business/SearchContainer/hooks/useToggle.js +31 -12
  236. package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
  237. package/dist/components/business/SearchContainer/record-common-item.js +83 -0
  238. package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
  239. package/dist/components/business/SearchContainer/record-common-list.js +95 -0
  240. package/dist/components/business/SearchContainer/search-container.d.ts +22 -0
  241. package/dist/components/business/SearchContainer/search-container.js +66 -3
  242. package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
  243. package/dist/components/business/SearchContainer/search-drawer.js +167 -13
  244. package/dist/components/business/SearchContainer/search-item.js +48 -5
  245. package/dist/components/business/SearchContainer/search-left.d.ts +8 -0
  246. package/dist/components/business/SearchContainer/search-left.js +105 -68
  247. package/dist/components/business/SearchContainer/search-right.d.ts +4 -0
  248. package/dist/components/business/SearchContainer/search-right.js +62 -5
  249. package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +18 -0
  250. package/dist/components/business/SearchContainer/useRecordCommonInit.js +258 -0
  251. package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +8 -0
  252. package/dist/components/business/SearchContainer/useRecordCommonSearch.js +145 -0
  253. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +37 -0
  254. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
  255. package/dist/components/business/SearchContainer/useTemplate.d.ts +20 -0
  256. package/dist/components/business/SearchContainer/useTemplate.js +347 -0
  257. package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
  258. package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
  259. package/dist/components/business/Signatures/components/CodeModal.js +157 -0
  260. package/dist/components/business/Signatures/components/CompareResult.js +7 -6
  261. package/dist/components/business/Signatures/components/DetailTable.js +37 -34
  262. package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
  263. package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
  264. package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
  265. package/dist/components/business/Signatures/index.js +64 -53
  266. package/dist/components/business/SortList/sort-drawer.js +5 -4
  267. package/dist/components/business/Template/index.js +11 -10
  268. package/dist/components/electron-signatures/content.d.ts +9 -0
  269. package/dist/components/electron-signatures/content.js +1146 -0
  270. package/dist/components/electron-signatures/demoComponents/coUseDetail.d.ts +8 -0
  271. package/dist/components/electron-signatures/demoComponents/coUseDetail.js +255 -0
  272. package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
  273. package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
  274. package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
  275. package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
  276. package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
  277. package/dist/components/electron-signatures/demoComponents/index.js +30 -0
  278. package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
  279. package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
  280. package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
  281. package/dist/components/electron-signatures/demoComponents/making.js +211 -0
  282. package/dist/components/electron-signatures/demoComponents/makingData.d.ts +675 -0
  283. package/dist/components/electron-signatures/demoComponents/makingData.js +1178 -0
  284. package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
  285. package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
  286. package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
  287. package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
  288. package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
  289. package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
  290. package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
  291. package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
  292. package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
  293. package/dist/components/electron-signatures/demoComponents/test.js +119 -0
  294. package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
  295. package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
  296. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
  297. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
  298. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
  299. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
  300. package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
  301. package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
  302. package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
  303. package/dist/components/electron-signatures/electron-signatures-fragment.js +392 -0
  304. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
  305. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +509 -0
  306. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
  307. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
  308. package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
  309. package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +85 -0
  310. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
  311. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
  312. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
  313. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
  314. package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
  315. package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
  316. package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
  317. package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
  318. package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.d.ts +35 -0
  319. package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.js +39 -0
  320. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
  321. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
  322. package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
  323. package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
  324. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
  325. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +43 -0
  326. package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
  327. package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +398 -0
  328. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +24 -0
  329. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +254 -0
  330. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
  331. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +35 -0
  332. package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
  333. package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
  334. package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
  335. package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
  336. package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
  337. package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
  338. package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
  339. package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
  340. package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
  341. package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
  342. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
  343. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +43 -0
  344. package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
  345. package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
  346. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
  347. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
  348. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
  349. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +132 -0
  350. package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
  351. package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
  352. package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
  353. package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
  354. package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +111 -0
  355. package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +436 -0
  356. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
  357. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
  358. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
  359. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
  360. package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
  361. package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
  362. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
  363. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
  364. package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
  365. package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
  366. package/dist/components/electron-signatures/index.d.ts +15 -0
  367. package/dist/components/electron-signatures/index.js +63 -0
  368. package/dist/components/electron-signatures/interface.d.ts +865 -0
  369. package/dist/components/electron-signatures/interface.js +57 -0
  370. package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
  371. package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
  372. package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
  373. package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
  374. package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
  375. package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
  376. package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
  377. package/dist/components/electron-signatures/qunjComponents/qunj-list.js +355 -0
  378. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
  379. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +66 -0
  380. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
  381. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
  382. package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
  383. package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
  384. package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
  385. package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
  386. package/dist/components/electron-signatures/utils.d.ts +26 -0
  387. package/dist/components/electron-signatures/utils.js +67 -0
  388. package/dist/components/utils/MyStorage.d.ts +36 -0
  389. package/dist/components/utils/MyStorage.js +120 -0
  390. package/dist/components/utils/ZtxkContext.d.ts +67 -0
  391. package/dist/components/utils/ZtxkContext.js +20 -0
  392. package/dist/components/utils/checkSealCoUse.d.ts +16 -0
  393. package/dist/components/utils/checkSealCoUse.js +83 -0
  394. package/dist/components/utils/fetch.d.ts +10 -0
  395. package/dist/components/utils/fetch.js +119 -0
  396. package/dist/components/utils/index.d.ts +9 -0
  397. package/dist/components/utils/index.js +11 -0
  398. package/dist/components/utils/processNumber.d.ts +12 -0
  399. package/dist/components/utils/processNumber.js +106 -0
  400. package/dist/components/utils/upload.js +6 -3
  401. package/dist/components/utils/useBaseContext.d.ts +23 -0
  402. package/dist/components/utils/useBaseContext.js +31 -0
  403. package/dist/components/utils/useMemoizedFn.d.ts +4 -0
  404. package/dist/components/utils/useMemoizedFn.js +19 -0
  405. package/dist/components/utils/usePrevious.d.ts +3 -0
  406. package/dist/components/utils/usePrevious.js +13 -0
  407. package/dist/constants.d.ts +1 -1
  408. package/dist/constants.js +1 -1
  409. package/dist/index.css +2205 -58
  410. package/dist/index.css.map +1 -1
  411. package/dist/index.d.ts +12 -1
  412. package/dist/index.js +255 -86
  413. package/dist/locales/en-US.json +828 -0
  414. package/dist/locales/zh-CN.json +828 -0
  415. package/dist/request.js +7 -6
  416. package/package.json +13 -4
@@ -0,0 +1,14 @@
1
+ export function detailRequest(request: any, params: any): any;
2
+ export function detailBatchRequest(request: any, data: any): any;
3
+ export function noticeDetailRequest(request: any, data: any): any;
4
+ export function fetchAttachList(request: any, params: any): any;
5
+ export function fetchDownloadData(request: any, params: any): any;
6
+ export function fetchPreviewData(request: any, params: any): any;
7
+ export function graph(request: any, params: any): any;
8
+ export function queryOpinionHistoryRequest(request: any, taskId: any): any;
9
+ export function fetchTrailList(request: any, params: any): any;
10
+ export function fetchAssociationList(request: any, params: any): any;
11
+ export function fetchSendList(request: any, params: any): any;
12
+ export function fetchPreviewList(request: any, params: any): any;
13
+ export function fetchAttentionList(request: any, params: any): any;
14
+ export function fetchAuditList(request: any, params: any): any;
@@ -0,0 +1,101 @@
1
+ // 查询任务详情
2
+ export function detailRequest(request, params) {
3
+ return request === null || request === void 0 ? void 0 : request({
4
+ url: '/api/zmdms-workflow-client/wf/task/detail',
5
+ method: 'GET',
6
+ params: params,
7
+ });
8
+ }
9
+ // 批量查询任务详情
10
+ export function detailBatchRequest(request, data) {
11
+ return request === null || request === void 0 ? void 0 : request({
12
+ url: '/api/zmdms-workflow-client/wf/task/detail-batch',
13
+ method: 'POST',
14
+ data: data,
15
+ });
16
+ }
17
+ // 查询通知详情
18
+ export function noticeDetailRequest(request, data) {
19
+ return request === null || request === void 0 ? void 0 : request({
20
+ url: "/api/zmdms-workflow-client/wf/notice/detail-read",
21
+ method: 'GET',
22
+ params: data,
23
+ });
24
+ }
25
+ // 附件列表不分页
26
+ export function fetchAttachList(request, params) {
27
+ return request === null || request === void 0 ? void 0 : request({
28
+ url: '/api/zmdms-workflow-client/wf/attach/list',
29
+ method: 'GET',
30
+ params: params,
31
+ });
32
+ }
33
+ // 下载附件
34
+ export function fetchDownloadData(request, params) {
35
+ return request === null || request === void 0 ? void 0 : request({
36
+ url: "/api/zmdms-workflow-client/wf/attach/download/" + (params === null || params === void 0 ? void 0 : params.id),
37
+ method: 'POST',
38
+ });
39
+ }
40
+ // 预览附件
41
+ export function fetchPreviewData(request, params) {
42
+ return request === null || request === void 0 ? void 0 : request({
43
+ url: "/api/zmdms-workflow-client/wf/attach/preview/" + (params === null || params === void 0 ? void 0 : params.id),
44
+ method: 'POST',
45
+ });
46
+ }
47
+ // 获取流程图
48
+ export function graph(request, params) {
49
+ return request === null || request === void 0 ? void 0 : request({
50
+ url: "/api/zmdms-workflow-client/wf/process-inst/process-graph?procInstId=" + params.procInstId,
51
+ method: 'GET',
52
+ });
53
+ }
54
+ export function queryOpinionHistoryRequest(request, taskId) {
55
+ return request === null || request === void 0 ? void 0 : request({
56
+ url: "/api/zmdms-workflow-client/wf/trail/query-opinion-his/" + taskId,
57
+ method: 'GET',
58
+ });
59
+ }
60
+ export function fetchTrailList(request, params) {
61
+ return request === null || request === void 0 ? void 0 : request({
62
+ url: '/api/zmdms-workflow-client/wf/trail/page',
63
+ method: 'GET',
64
+ params: params,
65
+ });
66
+ }
67
+ export function fetchAssociationList(request, params) {
68
+ return request === null || request === void 0 ? void 0 : request({
69
+ url: '/api/zmdms-workflow-client/wf/association/list',
70
+ method: 'POST',
71
+ params: params,
72
+ });
73
+ }
74
+ export function fetchSendList(request, params) {
75
+ return request === null || request === void 0 ? void 0 : request({
76
+ url: '/api/zmdms-workflow-client/wf/notice/page-distribute',
77
+ method: 'GET',
78
+ params: params,
79
+ });
80
+ }
81
+ export function fetchPreviewList(request, params) {
82
+ return request === null || request === void 0 ? void 0 : request({
83
+ url: "/api/zmdms-workflow-client/wf/process-inst/preview/" + params.processInstId,
84
+ method: 'POST',
85
+ params: params,
86
+ });
87
+ }
88
+ export function fetchAttentionList(request, params) {
89
+ return request === null || request === void 0 ? void 0 : request({
90
+ url: "/api/zmdms-workflow-client/wf/process-inst/preview/" + params.processInstId,
91
+ method: 'POST',
92
+ params: params,
93
+ });
94
+ }
95
+ export function fetchAuditList(request, params) {
96
+ return request === null || request === void 0 ? void 0 : request({
97
+ url: '/api/zmdms-workflow-client/wf/operation-log/page',
98
+ method: 'GET',
99
+ params: params,
100
+ });
101
+ }
@@ -0,0 +1,14 @@
1
+ import { IFooterDom } from '../business/Footer';
2
+ interface IUsePagination {
3
+ setListCurrentPage: any;
4
+ setListPageSize: any;
5
+ total: number;
6
+ current: number;
7
+ size: number;
8
+ isDispatch?: boolean;
9
+ }
10
+ /**
11
+ * @description 获取底部分页组件的内容
12
+ */
13
+ declare function usePagination({ setListCurrentPage, setListPageSize, total, current, size, }: IUsePagination): IFooterDom[];
14
+ export default usePagination;
@@ -0,0 +1,22 @@
1
+ import { useMemo, useCallback } from 'react';
2
+ /**
3
+ * @description 获取底部分页组件的内容
4
+ */
5
+ function usePagination(_a) {
6
+ var setListCurrentPage = _a.setListCurrentPage, setListPageSize = _a.setListPageSize, total = _a.total, current = _a.current, size = _a.size;
7
+ var onPaginationChange = useCallback(function (current, size) {
8
+ setListCurrentPage(current);
9
+ setListPageSize(size);
10
+ }, [setListCurrentPage, setListPageSize]);
11
+ var footerDom = useMemo(function () { return [
12
+ {
13
+ DOMType: 'pagination',
14
+ total: total,
15
+ current: current,
16
+ pageSize: size,
17
+ onChange: onPaginationChange,
18
+ },
19
+ ]; }, [total, size, current, onPaginationChange]);
20
+ return footerDom;
21
+ }
22
+ export default usePagination;
@@ -0,0 +1,100 @@
1
+ import React from 'react';
2
+ /**
3
+ * 任务状态:待办
4
+ */
5
+ export declare const TO_DO = 0;
6
+ /**
7
+ * 任务状态:已办
8
+ */
9
+ export declare const DONE = 1;
10
+ /**
11
+ * 任务状态:待领取
12
+ */
13
+ export declare const TO_TAKE = 2;
14
+ /**
15
+ * 任务状态:取消
16
+ */
17
+ export declare const CANCELED = 3;
18
+ /**
19
+ * 任务状态:终止
20
+ */
21
+ export declare const TERMINATED = 4;
22
+ /**
23
+ * 任务状态:驳回
24
+ */
25
+ export declare const REJECTED = 5;
26
+ /**
27
+ * 任务状态:驳回待修改
28
+ */
29
+ export declare const REJECT_TO_EDIT = 6;
30
+ /**
31
+ * 任务状态:撤回待修改
32
+ */
33
+ export declare const DRAWBACK_TO_EDIT = 7;
34
+ /**
35
+ * 流程状态:未启动
36
+ */
37
+ export declare const NOT_STARTED = 1;
38
+ /**
39
+ * 流程状态:审批中
40
+ */
41
+ export declare const IN_APPROVAL = 2;
42
+ /**
43
+ * 流程状态:已挂起
44
+ */
45
+ export declare const SUSPENDED = 3;
46
+ /**
47
+ * 流程状态:已办结
48
+ */
49
+ export declare const PROCESS_DONE = 7;
50
+ /**
51
+ * 流程状态:已废弃
52
+ */
53
+ export declare const PROCESS_DISCARD = 8;
54
+ /**
55
+ * 流程状态:已驳回
56
+ */
57
+ export declare const PROCESS_REJECTED = 9;
58
+ /**
59
+ * 流程状态:已撤回
60
+ */
61
+ export declare const PROCESS_DRAWBACK = 10;
62
+ export interface IProps {
63
+ /** 请求方法 */
64
+ request?: any;
65
+ /** 流程任务id */
66
+ taskId?: string;
67
+ /** 流程实例id */
68
+ processInstId?: string;
69
+ /** 是否是通知 */
70
+ isNotice?: boolean;
71
+ /** 标题是否可勾选展示 */
72
+ titleCheckable?: boolean;
73
+ /** 标题是否默认展示 */
74
+ showTitle?: boolean;
75
+ /** 详情是否可勾选展示 */
76
+ detailCheckable?: boolean;
77
+ /** 详情是否默认展示 */
78
+ showDetail?: boolean;
79
+ /** 审批记录是否可勾选展示 */
80
+ approvalRecordsCheckable?: boolean;
81
+ /** 审批记录是否默认展示 */
82
+ showApprovalRecords?: boolean;
83
+ /** 流程附件是否可勾选展示 */
84
+ attachCheckable?: boolean;
85
+ /** 流程附件是否默认展示 */
86
+ showAttach?: boolean;
87
+ /** 关联流程是否可勾选展示 */
88
+ relatedProcessesCheckable?: boolean;
89
+ /** 关联流程是否默认展示 */
90
+ showRelatedProcesses?: boolean;
91
+ /** 传阅及抄送记录是否可勾选展示 */
92
+ circulationRecordsCheckable?: boolean;
93
+ /** 传阅及抄送记录是否默认展示 */
94
+ showCirculationRecords?: boolean;
95
+ getComponet?: (any: any) => any;
96
+ /** 获得流程的一些信息 */
97
+ getProcessInfo?: (data: any) => any;
98
+ }
99
+ declare const WorkflowPrintContainer: React.FC<IProps>;
100
+ export default WorkflowPrintContainer;
@@ -0,0 +1,236 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import i18next from 'ztxkutils/dist/i18next';
13
+ import React from 'react';
14
+ import { Checkbox } from 'antd';
15
+ import { useEffect, useState } from 'react';
16
+ import { Typography } from 'antd';
17
+ import Header from './component/Header';
18
+ import ProcessDetail from './component/ProcessDetail';
19
+ import { detailBatchRequest, detailRequest, fetchTrailList, noticeDetailRequest, } from './service';
20
+ import Container from '../business/Container/container';
21
+ var Title = Typography.Title;
22
+ var Paragraph = Typography.Paragraph;
23
+ /**
24
+ * 任务状态:待办
25
+ */
26
+ export var TO_DO = 0;
27
+ /**
28
+ * 任务状态:已办
29
+ */
30
+ export var DONE = 1;
31
+ /**
32
+ * 任务状态:待领取
33
+ */
34
+ export var TO_TAKE = 2;
35
+ /**
36
+ * 任务状态:取消
37
+ */
38
+ export var CANCELED = 3;
39
+ /**
40
+ * 任务状态:终止
41
+ */
42
+ export var TERMINATED = 4;
43
+ /**
44
+ * 任务状态:驳回
45
+ */
46
+ export var REJECTED = 5;
47
+ /**
48
+ * 任务状态:驳回待修改
49
+ */
50
+ export var REJECT_TO_EDIT = 6;
51
+ /**
52
+ * 任务状态:撤回待修改
53
+ */
54
+ export var DRAWBACK_TO_EDIT = 7;
55
+ /**
56
+ * 流程状态:未启动
57
+ */
58
+ export var NOT_STARTED = 1;
59
+ /**
60
+ * 流程状态:审批中
61
+ */
62
+ export var IN_APPROVAL = 2;
63
+ /**
64
+ * 流程状态:已挂起
65
+ */
66
+ export var SUSPENDED = 3;
67
+ /**
68
+ * 流程状态:已办结
69
+ */
70
+ export var PROCESS_DONE = 7;
71
+ /**
72
+ * 流程状态:已废弃
73
+ */
74
+ export var PROCESS_DISCARD = 8;
75
+ /**
76
+ * 流程状态:已驳回
77
+ */
78
+ export var PROCESS_REJECTED = 9;
79
+ /**
80
+ * 流程状态:已撤回
81
+ */
82
+ export var PROCESS_DRAWBACK = 10;
83
+ var WorkflowPrintContainer = function (_a) {
84
+ var request = _a.request, taskId = _a.taskId, processInstId = _a.processInstId, _b = _a.isNotice, isNotice = _b === void 0 ? false : _b, _c = _a.titleCheckable, titleCheckable = _c === void 0 ? true : _c, _d = _a.showTitle, showTitle = _d === void 0 ? true : _d, _e = _a.detailCheckable, detailCheckable = _e === void 0 ? true : _e, _f = _a.showDetail, showDetail = _f === void 0 ? true : _f, _g = _a.approvalRecordsCheckable, approvalRecordsCheckable = _g === void 0 ? true : _g, _h = _a.showApprovalRecords, showApprovalRecords = _h === void 0 ? true : _h, _j = _a.attachCheckable, attachCheckable = _j === void 0 ? true : _j, _k = _a.showAttach, showAttach = _k === void 0 ? true : _k, _l = _a.relatedProcessesCheckable, relatedProcessesCheckable = _l === void 0 ? true : _l, _m = _a.showRelatedProcesses, showRelatedProcesses = _m === void 0 ? true : _m, _o = _a.circulationRecordsCheckable, circulationRecordsCheckable = _o === void 0 ? true : _o, _p = _a.showCirculationRecords, showCirculationRecords = _p === void 0 ? true : _p, getComponet = _a.getComponet, getProcessInfo = _a.getProcessInfo;
85
+ var _q = useState(isNotice), noticeInfoShown = _q[0], setNoticeInfoShown = _q[1];
86
+ // 标题
87
+ var _r = useState(showTitle), titleShown = _r[0], setTitleShown = _r[1];
88
+ useEffect(function () {
89
+ setTitleShown(showTitle);
90
+ }, [showTitle]);
91
+ // 详情
92
+ var _s = useState(showDetail), detailShown = _s[0], setDetailShown = _s[1];
93
+ useEffect(function () {
94
+ setDetailShown(showDetail);
95
+ }, [showDetail]);
96
+ // 审批记录
97
+ var _t = useState(showApprovalRecords), approvalRecordsShown = _t[0], setApprovalRecordsShown = _t[1];
98
+ useEffect(function () {
99
+ setApprovalRecordsShown(showApprovalRecords);
100
+ }, [showApprovalRecords]);
101
+ // 附件
102
+ var _u = useState(showAttach), attachShown = _u[0], setAttachShown = _u[1];
103
+ useEffect(function () {
104
+ setAttachShown(showAttach);
105
+ }, [showAttach]);
106
+ // 关联流程
107
+ var _v = useState(showRelatedProcesses), relatedProcessesShown = _v[0], setRelatedProcessesShown = _v[1];
108
+ useEffect(function () {
109
+ setRelatedProcessesShown(showRelatedProcesses);
110
+ }, [showRelatedProcesses]);
111
+ // 传阅及抄送记录
112
+ var _w = useState(showCirculationRecords), circulationRecordsShown = _w[0], setCirculationRecordsShown = _w[1];
113
+ useEffect(function () {
114
+ setCirculationRecordsShown(showCirculationRecords);
115
+ }, [showCirculationRecords]);
116
+ var _x = useState([]), batchData = _x[0], setBatchData = _x[1];
117
+ useEffect(function () {
118
+ getProcessInfo && getProcessInfo(batchData);
119
+ }, [batchData, getProcessInfo]);
120
+ useEffect(function () {
121
+ /**详情数据获取 */
122
+ if (isNotice) {
123
+ // 如果是通知类型
124
+ noticeDetailRequest(request, { id: taskId }).then(function (res) {
125
+ var _a;
126
+ setBatchData([__assign({}, (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data)] || []);
127
+ });
128
+ }
129
+ else if (taskId) {
130
+ detailBatchRequest(request, taskId).then(function (res) {
131
+ var _a;
132
+ setBatchData(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || []);
133
+ });
134
+ }
135
+ else if (processInstId) {
136
+ detailRequest(request, { processInstId: processInstId }).then(function (res) {
137
+ fetchTrailList(request, {
138
+ processInstId: processInstId,
139
+ size: 500,
140
+ current: 1,
141
+ }).then(function (res2) {
142
+ var _a, _b, _c;
143
+ setBatchData([
144
+ __assign(__assign({}, (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || [])), { trailList: ((_c = (_b = res2 === null || res2 === void 0 ? void 0 : res2.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.records) || [] }),
145
+ ]);
146
+ });
147
+ });
148
+ }
149
+ }, [request, taskId, processInstId, isNotice]);
150
+ // const getOutComponent = () => {
151
+ // return getComponet
152
+ // ? getComponet(url)
153
+ // : lazy(() => import(baseUrl + url)) || <></>;
154
+ // };
155
+ var FallbackComponent = function () { return React.createElement("div", null); };
156
+ /**
157
+ * 创建一个懒加载组件
158
+ * @param {Object} data - 包含 url 的数据对象
159
+ * @returns {React.LazyExoticComponent} - 懒加载组件
160
+ */
161
+ function createLazyComponent(data) {
162
+ if (getComponet) {
163
+ var module_1 = getComponet(data);
164
+ // 返回默认导出或整个模块
165
+ return module_1;
166
+ }
167
+ }
168
+ var getContent = function (data) {
169
+ var _a, _b;
170
+ var needHighlight = (_b = (_a = data === null || data === void 0 ? void 0 : data.noticeTitle) === null || _a === void 0 ? void 0 : _a.startsWith) === null || _b === void 0 ? void 0 : _b.call(_a, i18next.t('请留意审批意见'));
171
+ return (React.createElement("div", null,
172
+ noticeInfoShown && (React.createElement(React.Fragment, null,
173
+ React.createElement(Title, { level: 4 },
174
+ i18next.t('通知类型:'), data === null || data === void 0 ? void 0 :
175
+ data.noticeType),
176
+ React.createElement(Title, { level: 5 },
177
+ i18next.t('主题:'), data === null || data === void 0 ? void 0 :
178
+ data.noticeTitle),
179
+ React.createElement(Paragraph, { style: needHighlight ? { color: 'red' } : undefined },
180
+ i18next.t('内容:'), data === null || data === void 0 ? void 0 :
181
+ data.noticeContent))),
182
+ titleShown && (React.createElement(Header, { data: __assign(__assign({}, data), { taskName: data === null || data === void 0 ? void 0 : data.processInstName }) })),
183
+ React.createElement(ProcessDetail, { request: request, type: 'notice', data: data, showBizForm: true, toEdit: false, OuterComponent: createLazyComponent(data), showCfg: {
184
+ detailShown: detailShown,
185
+ approvalRecordsShown: approvalRecordsShown,
186
+ relatedProcessesShown: relatedProcessesShown,
187
+ attachShown: attachShown,
188
+ circulationRecordsShown: circulationRecordsShown,
189
+ } })));
190
+ };
191
+ return (React.createElement(React.Fragment, null,
192
+ React.createElement(Container, { className: "hr-print-container" },
193
+ React.createElement("div", { id: "printInfoRef", style: { position: 'relative', width: '100%', padding: '0 20px' } },
194
+ React.createElement("div", { className: "hiddenPrint" },
195
+ React.createElement("div", { style: {
196
+ display: 'flex',
197
+ justifyContent: 'space-around',
198
+ margin: '0 auto',
199
+ flexWrap: 'wrap',
200
+ width: '1000px',
201
+ } },
202
+ isNotice && (React.createElement(Checkbox, { onChange: function (e) {
203
+ var _a;
204
+ setNoticeInfoShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
205
+ }, checked: noticeInfoShown }, i18next.t('通知标题'))),
206
+ titleCheckable && (React.createElement(Checkbox, { onChange: function (e) {
207
+ var _a;
208
+ setTitleShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
209
+ }, checked: titleShown }, i18next.t('标题'))),
210
+ detailCheckable && (React.createElement(Checkbox, { onChange: function (e) {
211
+ var _a;
212
+ setDetailShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
213
+ }, checked: detailShown }, i18next.t('详情'))),
214
+ approvalRecordsCheckable && (React.createElement(Checkbox, { onChange: function (e) {
215
+ var _a;
216
+ setApprovalRecordsShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
217
+ }, checked: approvalRecordsShown }, i18next.t('审批记录'))),
218
+ attachCheckable && (React.createElement(Checkbox, { onChange: function (e) {
219
+ var _a;
220
+ setAttachShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
221
+ }, checked: attachShown }, i18next.t('流程附件'))),
222
+ relatedProcessesCheckable && (React.createElement(Checkbox, { onChange: function (e) {
223
+ var _a;
224
+ setRelatedProcessesShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
225
+ }, checked: relatedProcessesShown }, i18next.t('关联流程'))),
226
+ circulationRecordsCheckable && (React.createElement(Checkbox, { onChange: function (e) {
227
+ var _a;
228
+ setCirculationRecordsShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
229
+ }, checked: circulationRecordsShown }, i18next.t('传阅及抄送记录'))))),
230
+ React.createElement("div", { className: "print-detail", style: { width: '1000px', margin: '0px auto' } }, batchData === null || batchData === void 0 ? void 0 : batchData.map(function (item, index) {
231
+ return (React.createElement(React.Fragment, null,
232
+ getContent(item),
233
+ index === batchData.length - 1 ? null : (React.createElement("div", { className: "break-before" }))));
234
+ }))))));
235
+ };
236
+ export default WorkflowPrintContainer;
@@ -6,6 +6,8 @@ var IconFont = createFromIconfontCN({
6
6
  // '//at.alicdn.com/t/font_1808087_cq3yc9wfqnl.js',
7
7
  // '//at.alicdn.com/t/font_1808087_rnzqhjbqpc.js',
8
8
  '//at.alicdn.com/t/c/font_1808087_c6pzljolojq.js',
9
+ '/icon/icon.js',
10
+ '/icon/ztxk-webui-icon.js',
9
11
  ],
10
12
  });
11
13
  export default IconFont;
@@ -1,3 +1,4 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
1
2
  /**
2
3
  * @description 一个抽屉组件,提供配置字段展示信息
3
4
  */
@@ -167,13 +168,13 @@ var Analyse = function (_a) {
167
168
  * @description 底部按钮
168
169
  */
169
170
  var footerDom = function () { return (React.createElement(React.Fragment, null,
170
- React.createElement(Button, { type: "default", onClick: onCloseHandle }, "\u53D6\u6D88"),
171
- React.createElement(Button, { type: "default", onClick: onResetHandle }, "\u91CD\u7F6E"),
172
- React.createElement(Button, { type: "primary", onClick: onSureHandle }, "\u786E\u5B9A"))); };
173
- return (React.createElement(Drawer, { title: "\u81EA\u5B9A\u4E49\u5206\u6790\u8BBE\u7F6E", placement: "right", width: 500, visible: visible, closable: false, maskClosable: false, footer: footerDom(), className: "analyse-drawer" },
171
+ React.createElement(Button, { type: "default", onClick: onCloseHandle }, i18next.t('取消')),
172
+ React.createElement(Button, { type: "default", onClick: onResetHandle }, i18next.t('重置')),
173
+ React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('确定')))); };
174
+ return (React.createElement(Drawer, { title: i18next.t('自定义分析设置'), placement: "right", width: 500, visible: visible, closable: false, maskClosable: false, footer: footerDom(), className: "analyse-drawer" },
174
175
  React.createElement("div", { className: "analyse-container" },
175
176
  React.createElement("div", { className: "analyse-container__left" },
176
- React.createElement("div", { className: "analyse-fields--header" }, "\u9009\u62E9\u9700\u8981\u5C55\u793A\u7684\u5B57\u6BB5"),
177
+ React.createElement("div", { className: "analyse-fields--header" }, i18next.t('选择需要展示的字段')),
177
178
  React.createElement(Checkbox.Group, { className: "analyse-fields---container", value: checkedList, onChange: onChangeHandle }, Array.isArray(insideFields) &&
178
179
  insideFields.map(function (field) { return (React.createElement("div", { key: field.key },
179
180
  React.createElement(Checkbox, { value: field.key }, field.title))); }))),
@@ -181,22 +182,22 @@ var Analyse = function (_a) {
181
182
  React.createElement("div", { className: "analyse-container__right" },
182
183
  React.createElement("div", { className: "analyse-container__right--fields" },
183
184
  React.createElement("div", { className: "analyse-fields--header" },
184
- React.createElement("span", null, "\u884C\u5B57\u6BB5"),
185
- React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('row'); } }, "\u56DE\u5230\u521D\u59CB\u987A\u5E8F")),
185
+ React.createElement("span", null, i18next.t('行字段')),
186
+ React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('row'); } }, i18next.t('回到初始顺序'))),
186
187
  React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideRowFields) &&
187
188
  insideRowFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "row-field", index: index, onMoveItem: onRowMoveItem },
188
189
  React.createElement("div", null, field.title))); }))),
189
190
  React.createElement("div", { className: "analyse-container__right--fields" },
190
191
  React.createElement("div", { className: "analyse-fields--header" },
191
- React.createElement("span", null, "\u5217\u5B57\u6BB5"),
192
- React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('col'); } }, "\u56DE\u5230\u521D\u59CB\u987A\u5E8F")),
192
+ React.createElement("span", null, i18next.t('列字段')),
193
+ React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('col'); } }, i18next.t('回到初始顺序'))),
193
194
  React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideColFields) &&
194
195
  insideColFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "col-field", index: index, onMoveItem: onColMoveItem },
195
196
  React.createElement("div", null, field.title))); }))),
196
197
  React.createElement("div", { className: "analyse-container__right--fields" },
197
198
  React.createElement("div", { className: "analyse-fields--header" },
198
- React.createElement("span", null, "\u503C\u5B57\u6BB5"),
199
- React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('value'); } }, "\u56DE\u5230\u521D\u59CB\u987A\u5E8F")),
199
+ React.createElement("span", null, i18next.t('值字段')),
200
+ React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('value'); } }, i18next.t('回到初始顺序'))),
200
201
  React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideValueFields) &&
201
202
  insideValueFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "value-field", index: index, onMoveItem: onValueMoveItem },
202
203
  React.createElement("div", null, field.title))); }))))))));
@@ -34,6 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
+ import i18next from 'ztxkutils/dist/i18next';
37
38
  import React, { memo, useEffect, useCallback, useState } from 'react';
38
39
  import { Form, Input, message, EnhanceSelect } from '../../../../index';
39
40
  import SearchContainer from '../../SearchContainer';
@@ -107,9 +108,9 @@ var SearchForm = function (_a) {
107
108
  return (React.createElement(Form, { name: "codeQuery-making", form: form },
108
109
  React.createElement(SearchContainer, null,
109
110
  React.createElement(SearchLeft, null,
110
- React.createElement(Item, { name: "type", label: "\u7F16\u7801\u7C7B\u578B", width: "double", rules: [{ required: true, message: '请填写编码类型' }] },
111
+ React.createElement(Item, { name: "type", label: i18next.t('编码类型'), width: "double", rules: [{ required: true, message: i18next.t('请填写编码类型') }] },
111
112
  React.createElement(EnhanceSelect, { list: list, titleKey: "dictValue", dataKey: "dictKey" })),
112
- React.createElement(Item, { name: "name", label: "\u63CF\u8FF0", rules: [{ required: true, message: '请填写描述' }] },
113
+ React.createElement(Item, { name: "name", label: i18next.t('描述'), rules: [{ required: true, message: i18next.t('请填写描述') }] },
113
114
  React.createElement(Input, { allowClear: true }))),
114
115
  React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
115
116
  };
@@ -3,6 +3,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
3
3
  to[j] = from[i];
4
4
  return to;
5
5
  };
6
+ import i18next from 'ztxkutils/dist/i18next';
6
7
  import React from 'react';
7
8
  import { Table } from '../../../../index';
8
9
  var tableScrollHeight = {
@@ -21,7 +22,7 @@ var TableList = function (_a) {
21
22
  // 表格列表配置
22
23
  var columns = __spreadArray(__spreadArray([
23
24
  {
24
- title: '序号',
25
+ title: i18next.t('序号'),
25
26
  width: 60,
26
27
  key: 'index',
27
28
  fixed: 'left',
@@ -29,7 +30,7 @@ var TableList = function (_a) {
29
30
  render: function (text, record, index) { return "" + (index + 1); },
30
31
  },
31
32
  {
32
- title: '编码',
33
+ title: i18next.t('编码'),
33
34
  width: 120,
34
35
  dataIndex: 'code',
35
36
  key: 'code',
@@ -37,7 +38,7 @@ var TableList = function (_a) {
37
38
  ], (type === '01'
38
39
  ? [
39
40
  {
40
- title: '国家',
41
+ title: i18next.t('国家'),
41
42
  width: 100,
42
43
  dataIndex: 'extra',
43
44
  key: 'extra',
@@ -45,7 +46,7 @@ var TableList = function (_a) {
45
46
  ]
46
47
  : [])), [
47
48
  {
48
- title: '描述',
49
+ title: i18next.t('描述'),
49
50
  // width: 160,
50
51
  dataIndex: 'name',
51
52
  key: 'name',
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ import i18next from 'ztxkutils/dist/i18next';
12
13
  import { useCallback, useEffect, useState } from 'react';
13
14
  import { message } from '../../../index';
14
15
  // 每页多少条数据
@@ -37,7 +38,7 @@ export function useCodeQueryList(params, request) {
37
38
  setRecords(records_1);
38
39
  }
39
40
  else {
40
- message.warning((res === null || res === void 0 ? void 0 : res.msg) || '查询失败!');
41
+ message.warning((res === null || res === void 0 ? void 0 : res.msg) || i18next.t('查询失败!'));
41
42
  }
42
43
  setLoading(false);
43
44
  })
@@ -1,3 +1,4 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
1
2
  /**
2
3
  * @author 柴宇峰
3
4
  * @description 编码查询
@@ -32,7 +33,7 @@ var CodeQuery = function (_a) {
32
33
  return (React.createElement(React.Fragment, null,
33
34
  React.createElement(Drawer, { className: "zt-codeQuery-drawer", visible: visible, closable: false, placement: "right", onClose: onCancel, width: "700", title: React.createElement("div", { className: "zt-codeQuery-drawer-title-wrapper" },
34
35
  React.createElement("div", { className: "zt-codeQuery-drawer-title-tag" }),
35
- React.createElement("div", { className: "zt-codeQuery-drawer-title" }, "\u7F16\u7801\u67E5\u8BE2\u5DE5\u5177")), footer: React.createElement(React.Fragment, null,
36
+ React.createElement("div", { className: "zt-codeQuery-drawer-title" }, i18next.t('编码查询工具'))), footer: React.createElement(React.Fragment, null,
36
37
  React.createElement(Footer, { footerDom: footerDom })) },
37
38
  React.createElement(SearchForm, { codeTypeList: codeTypeList, onSearch: onSearchHandle, request: request }),
38
39
  React.createElement(TableList, { records: records, type: params === null || params === void 0 ? void 0 : params.type }))));