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,92 @@
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, { useCallback, useMemo, useEffect, memo, useState } from 'react';
14
+ import TableList from './component/TableList';
15
+ import { fetchAssociationList } from '../../service';
16
+ import Footer from '../../../business/Footer';
17
+ import usePagination from '../../usePagination';
18
+ import { message } from 'antd';
19
+ var Association = function (_a) {
20
+ var request = _a.request, processInstId = _a.processInstId, refresh = _a.refresh, disable = _a.disable;
21
+ var _b = useState({}), listRecord = _b[0], setListRecord = _b[1];
22
+ var records = listRecord.records, current = listRecord.current, size = listRecord.size, total = listRecord.total, extra = listRecord.extra;
23
+ var _c = useState(0), listCurrentPage = _c[0], setListCurrentPage = _c[1];
24
+ var _d = useState(10), listPageSize = _d[0], setListPageSize = _d[1];
25
+ useEffect(function () {
26
+ if (current) {
27
+ setListCurrentPage(current);
28
+ }
29
+ }, [current]);
30
+ useEffect(function () {
31
+ if (size) {
32
+ setListPageSize(size);
33
+ }
34
+ }, [size]);
35
+ /**
36
+ * @description 默认要带上用户公司、部门、最近时间
37
+ * UPDATE:这个是列表表单默认的查询条件
38
+ * 设置个性化查询参数,第二个参数为表单的name字段
39
+ */
40
+ var currentParams = useMemo(function () { return ({
41
+ processInstId: processInstId,
42
+ }); }, [processInstId]);
43
+ /**
44
+ * @description 页码改变触发的事件,生成底部分页器
45
+ */
46
+ var footerDom = usePagination({
47
+ setListCurrentPage: setListCurrentPage,
48
+ setListPageSize: setListPageSize,
49
+ total: total,
50
+ current: listCurrentPage,
51
+ size: listPageSize,
52
+ });
53
+ /**
54
+ * @description 发起列表请求
55
+ * 当表单数据发生改变时,页码发生改变时
56
+ */
57
+ useEffect(function () {
58
+ if (currentParams.processInstId) {
59
+ fetchAssociationList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
60
+ .then(function (res) {
61
+ var _a;
62
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
63
+ })
64
+ .catch(function (error) {
65
+ var _a, _b;
66
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
67
+ setListRecord([]);
68
+ });
69
+ }
70
+ }, [currentParams, listPageSize, listCurrentPage, refresh, request]);
71
+ /**
72
+ * @description 重新加载数据
73
+ */
74
+ var onReload = useCallback(function () {
75
+ if (currentParams.processInstId) {
76
+ fetchAssociationList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
77
+ .then(function (res) {
78
+ var _a;
79
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
80
+ })
81
+ .catch(function (error) {
82
+ var _a, _b;
83
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
84
+ setListRecord([]);
85
+ });
86
+ }
87
+ }, [currentParams, listPageSize, listCurrentPage, request]);
88
+ return (React.createElement(React.Fragment, null,
89
+ React.createElement(TableList, { records: records, onReload: onReload, extra: extra, disable: disable }),
90
+ React.createElement(Footer, { footerDom: footerDom })));
91
+ };
92
+ export default memo(Association);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ records: any[];
4
+ extra?: any;
5
+ onReload: () => void;
6
+ disable: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo } from 'react';
3
+ import Table from '../../../../Table';
4
+ var TableList = function (_a) {
5
+ var records = _a.records, onReload = _a.onReload, extra = _a.extra, disable = _a.disable;
6
+ // UPDATE:表格配置项
7
+ // 与以往不同的是,由于需要满足个性化配置功能,所以每个配置都需要提供一个key值,来做比对选中
8
+ var columns = [
9
+ {
10
+ title: i18next.t('序号'),
11
+ width: 62,
12
+ fixed: 'left',
13
+ align: 'center',
14
+ render: function (text, record, index) { return "" + (index + 1); },
15
+ },
16
+ {
17
+ title: i18next.t('人员'),
18
+ align: 'center',
19
+ dataIndex: 'empName',
20
+ key: 'empName',
21
+ },
22
+ {
23
+ title: i18next.t('抄送类型'),
24
+ width: 200,
25
+ align: 'center',
26
+ dataIndex: 'attentionType',
27
+ key: 'attentionType',
28
+ render: function (text, record, index) {
29
+ return text === 0
30
+ ? i18next.t('每步审批结果自动抄送')
31
+ : i18next.t('最终审批结果自动抄送');
32
+ },
33
+ },
34
+ ];
35
+ return (React.createElement("div", null,
36
+ React.createElement(Table, { columns: columns, dataSource: records, rowKey: "id", showColumnDynamic: true, initColumns: columns })));
37
+ };
38
+ export default memo(TableList);
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request?: any;
4
+ processInstId: string;
5
+ refresh: number;
6
+ disable: boolean;
7
+ callRefreshContacts: () => void;
8
+ }
9
+ declare const _default: React.NamedExoticComponent<IProps>;
10
+ export default _default;
@@ -0,0 +1,95 @@
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, { useCallback, useMemo, useEffect, memo, useState } from 'react';
14
+ import TableList from './component/TableList';
15
+ import usePagination from '../../usePagination';
16
+ import { fetchAttentionList } from '../../service';
17
+ import Footer from '../../../business/Footer';
18
+ import { message } from 'antd';
19
+ var AttentionList = function (_a) {
20
+ var request = _a.request, processInstId = _a.processInstId, refresh = _a.refresh, disable = _a.disable, callRefreshContacts = _a.callRefreshContacts;
21
+ var _b = useState({}), listRecord = _b[0], setListRecord = _b[1];
22
+ var records = listRecord.records, current = listRecord.current, size = listRecord.size, total = listRecord.total, extra = listRecord.extra;
23
+ var _c = useState(0), listCurrentPage = _c[0], setListCurrentPage = _c[1];
24
+ var _d = useState(10), listPageSize = _d[0], setListPageSize = _d[1];
25
+ useEffect(function () {
26
+ if (current) {
27
+ setListCurrentPage(current);
28
+ }
29
+ }, [current]);
30
+ useEffect(function () {
31
+ if (size) {
32
+ setListPageSize(size);
33
+ }
34
+ }, [size]);
35
+ /**
36
+ * @description 默认要带上用户公司、部门、最近时间
37
+ * UPDATE:这个是列表表单默认的查询条件
38
+ * 设置个性化查询参数,第二个参数为表单的name字段
39
+ */
40
+ var currentParams = useMemo(function () { return ({
41
+ processInstId: processInstId,
42
+ }); }, [processInstId]);
43
+ /**
44
+ * @description 页码改变触发的事件,生成底部分页器
45
+ */
46
+ var footerDom = usePagination({
47
+ setListCurrentPage: setListCurrentPage,
48
+ setListPageSize: setListPageSize,
49
+ total: total,
50
+ current: listCurrentPage,
51
+ size: listPageSize,
52
+ });
53
+ /**
54
+ * @description 发起列表请求
55
+ * 当表单数据发生改变时,页码发生改变时
56
+ */
57
+ useEffect(function () {
58
+ fetchAttentionList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
59
+ .then(function (res) {
60
+ var _a;
61
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
62
+ })
63
+ .catch(function (error) {
64
+ var _a, _b;
65
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
66
+ setListRecord([]);
67
+ });
68
+ }, [currentParams, refresh, listCurrentPage, listPageSize, request]);
69
+ /**
70
+ * @description 重新加载数据
71
+ */
72
+ var onReload = useCallback(function () {
73
+ fetchAttentionList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
74
+ .then(function (res) {
75
+ var _a;
76
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
77
+ })
78
+ .catch(function (error) {
79
+ var _a, _b;
80
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
81
+ setListRecord([]);
82
+ });
83
+ callRefreshContacts();
84
+ }, [
85
+ currentParams,
86
+ listCurrentPage,
87
+ listPageSize,
88
+ callRefreshContacts,
89
+ request,
90
+ ]);
91
+ return (React.createElement(React.Fragment, null,
92
+ React.createElement(TableList, { records: records, onReload: onReload, extra: extra, disable: disable }),
93
+ React.createElement(Footer, { footerDom: footerDom })));
94
+ };
95
+ export default memo(AttentionList);
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ records: any[];
4
+ extra?: any;
5
+ onReload: () => void;
6
+ }
7
+ declare const _default: React.NamedExoticComponent<IProps>;
8
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo } from 'react';
3
+ import Table from '../../../../Table';
4
+ var TableList = function (_a) {
5
+ var records = _a.records, onReload = _a.onReload, extra = _a.extra;
6
+ // UPDATE:表格配置项
7
+ // 与以往不同的是,由于需要满足个性化配置功能,所以每个配置都需要提供一个key值,来做比对选中
8
+ var columns = [
9
+ {
10
+ title: i18next.t('序号'),
11
+ width: 62,
12
+ fixed: 'left',
13
+ align: 'center',
14
+ render: function (text, record, index) { return "" + (index + 1); },
15
+ },
16
+ {
17
+ title: i18next.t('时间'),
18
+ width: 180,
19
+ dataIndex: 'oprTime',
20
+ key: 'oprTime',
21
+ align: 'center',
22
+ },
23
+ {
24
+ title: i18next.t('人员'),
25
+ width: 150,
26
+ align: 'center',
27
+ dataIndex: 'oprUserName',
28
+ key: 'oprUserName',
29
+ },
30
+ {
31
+ title: i18next.t('执行的操作'),
32
+ width: 180,
33
+ align: 'center',
34
+ dataIndex: 'operation',
35
+ key: 'operation',
36
+ },
37
+ {
38
+ title: i18next.t('对象'),
39
+ dataIndex: 'oprTarget',
40
+ key: 'srcPersonNames',
41
+ },
42
+ {
43
+ title: i18next.t('结果'),
44
+ width: 80,
45
+ align: 'center',
46
+ dataIndex: 'oprResult',
47
+ key: 'oprResult',
48
+ },
49
+ ];
50
+ return (React.createElement("div", null,
51
+ React.createElement(Table, { columns: columns, dataSource: records, rowKey: "id", showColumnDynamic: true, initColumns: columns })));
52
+ };
53
+ export default memo(TableList);
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request?: any;
4
+ processInstId: string;
5
+ }
6
+ declare const _default: React.NamedExoticComponent<IProps>;
7
+ export default _default;
@@ -0,0 +1,88 @@
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, { useCallback, useMemo, useEffect, memo, useState } from 'react';
14
+ import TableList from './component/TableList';
15
+ import usePagination from '../../usePagination';
16
+ import { fetchAuditList } from '../../service';
17
+ import Footer from '../../..//business/Footer';
18
+ import { message } from 'antd';
19
+ var AuditList = function (_a) {
20
+ var request = _a.request, processInstId = _a.processInstId;
21
+ var _b = useState({}), listRecord = _b[0], setListRecord = _b[1];
22
+ var records = listRecord.records, current = listRecord.current, size = listRecord.size, total = listRecord.total, extra = listRecord.extra;
23
+ var _c = useState(0), listCurrentPage = _c[0], setListCurrentPage = _c[1];
24
+ var _d = useState(10), listPageSize = _d[0], setListPageSize = _d[1];
25
+ useEffect(function () {
26
+ if (current) {
27
+ setListCurrentPage(current);
28
+ }
29
+ }, [current]);
30
+ useEffect(function () {
31
+ if (size) {
32
+ setListPageSize(size);
33
+ }
34
+ }, [size]);
35
+ /**
36
+ * @description 默认要带上用户公司、部门、最近时间
37
+ * UPDATE:这个是列表表单默认的查询条件
38
+ * 设置个性化查询参数,第二个参数为表单的name字段
39
+ */
40
+ var currentParams = useMemo(function () { return ({
41
+ processInstId: processInstId,
42
+ }); }, [processInstId]);
43
+ /**
44
+ * @description 页码改变触发的事件,生成底部分页器
45
+ */
46
+ var footerDom = usePagination({
47
+ setListCurrentPage: setListCurrentPage,
48
+ setListPageSize: setListPageSize,
49
+ total: total,
50
+ current: listCurrentPage,
51
+ size: listPageSize,
52
+ });
53
+ /**
54
+ * @description 发起列表请求
55
+ * 当表单数据发生改变时,页码发生改变时
56
+ */
57
+ useEffect(function () {
58
+ fetchAuditList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
59
+ .then(function (res) {
60
+ var _a;
61
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
62
+ })
63
+ .catch(function (error) {
64
+ var _a, _b;
65
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
66
+ setListRecord([]);
67
+ });
68
+ }, [currentParams, listCurrentPage, listPageSize, request]);
69
+ /**
70
+ * @description 重新加载数据
71
+ */
72
+ var onReload = useCallback(function () {
73
+ fetchAuditList(request, __assign({ size: listPageSize, current: listCurrentPage }, currentParams))
74
+ .then(function (res) {
75
+ var _a;
76
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
77
+ })
78
+ .catch(function (error) {
79
+ var _a, _b;
80
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
81
+ setListRecord([]);
82
+ });
83
+ }, [currentParams, listCurrentPage, listPageSize, request]);
84
+ return (React.createElement(React.Fragment, null,
85
+ React.createElement(TableList, { records: records, onReload: onReload, extra: extra }),
86
+ React.createElement(Footer, { footerDom: footerDom })));
87
+ };
88
+ export default memo(AuditList);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ records: any[];
4
+ loading: boolean;
5
+ onReload: () => void;
6
+ disable: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import Table from '../../../../Table';
3
+ import React, { memo } from 'react';
4
+ var TableList = function (_a) {
5
+ var records = _a.records, loading = _a.loading, onReload = _a.onReload, disable = _a.disable;
6
+ // UPDATE:表格配置项
7
+ // 与以往不同的是,由于需要满足个性化配置功能,所以每个配置都需要提供一个key值,来做比对选中
8
+ var columns = [
9
+ {
10
+ title: i18next.t('序号'),
11
+ width: 62,
12
+ fixed: 'left',
13
+ align: 'center',
14
+ render: function (text, record, index) { return "" + (index + 1); },
15
+ },
16
+ // {
17
+ // title: '审批环节',
18
+ // align: 'right',
19
+ // width: 320,
20
+ // dataIndex: 'nodeName',
21
+ // key: 'nodeName',
22
+ // render: (text, record, index) => {
23
+ // return record.nodeName + ' ==> ';
24
+ // },
25
+ // },
26
+ // {
27
+ // title: '审批环节',
28
+ // align: 'left',
29
+ // dataIndex: 'nextNodeName',
30
+ // key: 'nextNodeName',
31
+ // render: (text, record, index) => {
32
+ // return record.nextNodeType === 'manual'
33
+ // ? record.nextNodeName + '【' + record.nextNodePersons + '】'
34
+ // : record.nextNodeName;
35
+ // },
36
+ {
37
+ title: i18next.t('审批环节'),
38
+ align: 'center',
39
+ width: 400,
40
+ dataIndex: 'nextNodeName',
41
+ key: 'nextNodeName',
42
+ },
43
+ {
44
+ title: i18next.t('审批人'),
45
+ align: 'left',
46
+ dataIndex: 'nextNodePersons',
47
+ key: 'nextNodePersons',
48
+ },
49
+ ];
50
+ return (React.createElement("div", null,
51
+ React.createElement(Table, { columns: columns, loading: loading, dataSource: records, rowKey: "id", showColumnDynamic: true, initColumns: columns })));
52
+ };
53
+ export default memo(TableList);
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request?: any;
4
+ processInstId: string;
5
+ taskId: string;
6
+ refresh: number;
7
+ disable: boolean;
8
+ callRefreshContacts: () => void;
9
+ }
10
+ declare const _default: React.NamedExoticComponent<IProps>;
11
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { useCallback, memo, useState, useEffect } from 'react';
3
+ import { message } from 'antd';
4
+ import TableList from './component/TableList';
5
+ import { fetchPreviewList } from '../../service';
6
+ var PreviewList = function (_a) {
7
+ // UPDATE:获取当前路由对应得按钮权限
8
+ var request = _a.request, processInstId = _a.processInstId, taskId = _a.taskId, refresh = _a.refresh, disable = _a.disable, callRefreshContacts = _a.callRefreshContacts;
9
+ var _b = useState(false), loading = _b[0], setLoading = _b[1];
10
+ var _c = useState(null), records = _c[0], setRecords = _c[1];
11
+ /**
12
+ * @description 重新加载数据
13
+ */
14
+ var onReload = useCallback(function () {
15
+ setLoading(true);
16
+ var params = {
17
+ processInstId: processInstId,
18
+ taskId: taskId,
19
+ };
20
+ fetchPreviewList(request, params)
21
+ .then(function (res) {
22
+ if (!res.data.success) {
23
+ message.warning(res.data.message);
24
+ }
25
+ setRecords(res.data.data);
26
+ setLoading(false);
27
+ callRefreshContacts();
28
+ })
29
+ .catch(function (error) {
30
+ var _a, _b;
31
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
32
+ setRecords([]);
33
+ setLoading(false);
34
+ });
35
+ }, [processInstId, taskId, callRefreshContacts, request]);
36
+ useEffect(function () {
37
+ setLoading(true);
38
+ var params = {
39
+ processInstId: processInstId,
40
+ taskId: taskId,
41
+ };
42
+ fetchPreviewList(request, params)
43
+ .then(function (res) {
44
+ if (!res.data.success) {
45
+ message.warning(res.data.message);
46
+ }
47
+ setRecords(res.data.data);
48
+ setLoading(false);
49
+ })
50
+ .catch(function (error) {
51
+ var _a, _b;
52
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
53
+ setRecords([]);
54
+ setLoading(false);
55
+ });
56
+ }, [processInstId, taskId, request]);
57
+ return (React.createElement(React.Fragment, null,
58
+ React.createElement(TableList, { loading: loading, records: records, onReload: onReload, disable: disable })));
59
+ };
60
+ export default memo(PreviewList);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ records: any[];
4
+ extra?: any;
5
+ onReload: () => void;
6
+ disable: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -0,0 +1,50 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import Table from '../../../../Table';
3
+ import React, { memo } from 'react';
4
+ var TableList = function (_a) {
5
+ var records = _a.records, onReload = _a.onReload, extra = _a.extra, disable = _a.disable;
6
+ // UPDATE:表格配置项
7
+ // 与以往不同的是,由于需要满足个性化配置功能,所以每个配置都需要提供一个key值,来做比对选中
8
+ var columns = [
9
+ {
10
+ title: i18next.t('序号'),
11
+ width: 62,
12
+ fixed: 'left',
13
+ align: 'center',
14
+ render: function (text, record, index) { return "" + (index + 1); },
15
+ },
16
+ {
17
+ title: i18next.t('时间'),
18
+ align: 'center',
19
+ dataIndex: 'createTime',
20
+ key: 'createTime',
21
+ },
22
+ {
23
+ title: i18next.t('类型'),
24
+ align: 'center',
25
+ dataIndex: 'noticeType',
26
+ key: 'noticeType',
27
+ },
28
+ {
29
+ title: i18next.t('发起人'),
30
+ align: 'center',
31
+ dataIndex: 'senderName',
32
+ key: 'senderName',
33
+ },
34
+ {
35
+ title: i18next.t('接收对象'),
36
+ align: 'center',
37
+ dataIndex: 'receiverName',
38
+ key: 'receiverName',
39
+ },
40
+ {
41
+ title: i18next.t('备注'),
42
+ align: 'center',
43
+ dataIndex: 'noticeContent',
44
+ key: 'noticeContent',
45
+ },
46
+ ];
47
+ return (React.createElement("div", null,
48
+ React.createElement(Table, { dataSource: records, rowKey: "id", columns: columns, initColumns: columns })));
49
+ };
50
+ export default memo(TableList);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request?: any;
4
+ processInstId: string;
5
+ disable: boolean;
6
+ setSendTotal?: any;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;