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,63 @@
1
+ import { graph } from '../../service';
2
+ import React, { memo, useEffect, useCallback } from 'react';
3
+ var Gragh = function (_a) {
4
+ var request = _a.request, processInstId = _a.processInstId, refresh = _a.refresh, onClickNode = _a.onClickNode;
5
+ function clear() {
6
+ // 获取 div 标签
7
+ var processgraph = window.document.getElementById('processgraph');
8
+ // 需要删除dom下的所有子元素,否则流程图会累加
9
+ // 获取 div 标签下的所有子节点
10
+ var pObjs = processgraph.childNodes;
11
+ for (var i = pObjs.length - 1; i >= 0; i--) {
12
+ // 一定要倒序,正序是删不干净的,可自行尝试
13
+ processgraph.removeChild(pObjs[i]);
14
+ }
15
+ }
16
+ var initGraph = function (data) {
17
+ var minY = 0;
18
+ var minX = 0;
19
+ var states = data === null || data === void 0 ? void 0 : data.states;
20
+ for (var key in states) {
21
+ minY = states[key].y < minY ? states[key].y : minY;
22
+ minX = states[key].x < minX ? states[key].x : minX;
23
+ }
24
+ for (var key in states) {
25
+ states[key].y = states[key].y - minY;
26
+ states[key].x = states[key].x - minX + 300;
27
+ }
28
+ };
29
+ var getProcessGraph = useCallback(function (request, params) {
30
+ graph(request, params)
31
+ .then(function (res) {
32
+ if (res.data.data) {
33
+ clear();
34
+ initGraph(res.data.data);
35
+ var win = window;
36
+ var nui = win.nui;
37
+ nui.parse();
38
+ var processImg_1 = nui.get('processgraph');
39
+ processImg_1.setCallback(function () {
40
+ processImg_1.load(res.data.data);
41
+ });
42
+ processImg_1.setClickCallback(function (id, name) {
43
+ onClickNode && onClickNode({ id: id, name: name });
44
+ });
45
+ processImg_1.load(res.data.data);
46
+ }
47
+ })
48
+ .catch(function (err) { });
49
+ }, [onClickNode]);
50
+ useEffect(function () {
51
+ clear();
52
+ if (processInstId) {
53
+ getProcessGraph(request, { procInstId: processInstId });
54
+ }
55
+ }, [processInstId, refresh, getProcessGraph, request]);
56
+ return (React.createElement("div", { style: {
57
+ width: '100%',
58
+ border: '2px solid #f0f0f0',
59
+ height: '600px',
60
+ } },
61
+ React.createElement("div", { id: "processgraph", className: "nui-bps-processgraph" })));
62
+ };
63
+ export default memo(Gragh);
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ data: any;
4
+ showStatus?: boolean;
5
+ showProcessStatus?: boolean;
6
+ showPrintDate?: boolean;
7
+ titleStyle?: any;
8
+ offsetHeight?: number;
9
+ priority?: any;
10
+ }
11
+ declare const _default: React.NamedExoticComponent<IProps>;
12
+ export default _default;
@@ -0,0 +1,109 @@
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, { memo } from 'react';
14
+ import { DONE, TO_DO, TO_TAKE, REJECT_TO_EDIT, DRAWBACK_TO_EDIT, REJECTED, CANCELED, TERMINATED, NOT_STARTED, PROCESS_DISCARD, SUSPENDED, PROCESS_DONE, PROCESS_DRAWBACK, PROCESS_REJECTED, IN_APPROVAL, } from '../workflow-print-container';
15
+ import dayjs from 'dayjs';
16
+ import ZtIcon from '../../ZtIcon';
17
+ import { Divider } from 'antd';
18
+ import { lbpmDiscardStatus, lbpmProcessStatus } from '../images';
19
+ var Header = function (_a) {
20
+ var data = _a.data, _b = _a.showStatus, showStatus = _b === void 0 ? false : _b, _c = _a.showProcessStatus, showProcessStatus = _c === void 0 ? false : _c, showPrintDate = _a.showPrintDate, titleStyle = _a.titleStyle, _d = _a.offsetHeight, offsetHeight = _d === void 0 ? 0 : _d, priority = _a.priority;
21
+ //审批状态
22
+ var getDealType = function (taskStatus) {
23
+ if (DONE === taskStatus) {
24
+ return ['status-pass', i18next.t('本环节已审批通过')];
25
+ }
26
+ else if (TO_DO === taskStatus || TO_TAKE === taskStatus) {
27
+ return ['status-ing', i18next.t('审批中')];
28
+ }
29
+ else if (REJECT_TO_EDIT === taskStatus) {
30
+ return ['status-reject', i18next.t('已驳回至起草,待修改表单')];
31
+ }
32
+ else if (DRAWBACK_TO_EDIT === taskStatus) {
33
+ return ['status-reject', i18next.t('已撤回至起草,待修改表单')];
34
+ }
35
+ else if (REJECTED === taskStatus) {
36
+ return ['status-reject', i18next.t('已驳回至上一环节')];
37
+ }
38
+ else if (CANCELED === taskStatus) {
39
+ return ['status-terminated', i18next.t('已取消')];
40
+ }
41
+ else if (TERMINATED === taskStatus) {
42
+ return ['status-terminated', i18next.t('已废弃')];
43
+ }
44
+ return ['status-terminated', i18next.t('未知')];
45
+ };
46
+ // 流程状态
47
+ var getProcessType = function (processStatus) {
48
+ if (NOT_STARTED === processStatus) {
49
+ return ['status-terminated', i18next.t('未启动')];
50
+ }
51
+ else if (IN_APPROVAL === processStatus) {
52
+ return ['status-ing', i18next.t('审批中')];
53
+ }
54
+ else if (PROCESS_REJECTED === processStatus) {
55
+ return ['status-reject', i18next.t('已驳回')];
56
+ }
57
+ else if (PROCESS_DRAWBACK === processStatus) {
58
+ return ['status-reject', i18next.t('已撤回')];
59
+ }
60
+ else if (SUSPENDED === processStatus) {
61
+ return ['status-terminated', i18next.t('已挂起')];
62
+ }
63
+ else if (PROCESS_DONE === processStatus) {
64
+ return ['status-pass', i18next.t('已办结')];
65
+ }
66
+ else if (PROCESS_DISCARD === processStatus) {
67
+ return ['status-terminated', i18next.t('已废弃')];
68
+ }
69
+ return ['status-terminated', i18next.t('未知')];
70
+ };
71
+ var getPriorityStatus = function (priority) {
72
+ if ('60' === String(priority)) {
73
+ return ['priority-common', i18next.t('一般')];
74
+ }
75
+ else if ('80' === String(priority)) {
76
+ return ['priority-impatient', i18next.t('急')];
77
+ }
78
+ else if ('100' === String(priority)) {
79
+ return ['priority-emergent', i18next.t('紧急')];
80
+ }
81
+ return ['priority-common', i18next.t('一般')];
82
+ };
83
+ return (React.createElement(React.Fragment, null,
84
+ React.createElement("div", { id: "wf-wrapper", className: "wf-wrapper", style: titleStyle
85
+ ? __assign({}, titleStyle) : { position: 'relative' } },
86
+ React.createElement("div", { className: "wf-task-header-container" },
87
+ React.createElement("div", { className: "wf-task-header" },
88
+ React.createElement(ZtIcon, { type: "iconwenjian1", style: { fontSize: '24px', marginRight: '10px' } }),
89
+ React.createElement("div", { className: "title" }, i18next.t('{{slot0}}详情', {
90
+ slot0: (data === null || data === void 0 ? void 0 : data.taskName) ? data === null || data === void 0 ? void 0 : data.taskName : '',
91
+ })),
92
+ showStatus ? (React.createElement("div", { className: getDealType(data.status)[0] }, getDealType(data.status)[1])) : null,
93
+ showProcessStatus ? (React.createElement("div", { className: getProcessType(data.processInstState)[0] }, getProcessType(data.processInstState)[1])) : null,
94
+ priority ? (React.createElement("div", { className: getPriorityStatus(priority)[0] }, getPriorityStatus(priority)[1])) : null),
95
+ React.createElement("div", null, (data === null || data === void 0 ? void 0 : data.processTypeName) ? data === null || data === void 0 ? void 0 : data.processTypeName : '')),
96
+ React.createElement("div", { className: "wf-task-process-status" },
97
+ React.createElement("div", { className: "lbpm-process-status", style: { backgroundImage: "url(" + lbpmProcessStatus + ")" } }),
98
+ 7 === (data === null || data === void 0 ? void 0 : data.processInstState) ? (React.createElement("div", { className: "lbpm-flow-info" },
99
+ React.createElement("div", { className: "lbpm-process-status", style: { backgroundImage: "url(" + lbpmProcessStatus + ")" } }))) : 8 === (data === null || data === void 0 ? void 0 : data.processInstState) ? (React.createElement("div", { className: "lbpm-flow-info" },
100
+ React.createElement("div", { className: "lbpm-discard-status", style: { backgroundImage: "url(" + lbpmDiscardStatus + ")" } }))) : null),
101
+ showPrintDate ? (React.createElement("div", { className: "print-date", style: { top: offsetHeight - 16 } },
102
+ i18next.t('打印日期:'),
103
+ dayjs().format('YYYY-MM-DD'))) : null),
104
+ React.createElement(Divider, { style: {
105
+ margin: '0 0 0 0',
106
+ marginTop: offsetHeight,
107
+ } })));
108
+ };
109
+ export default memo(Header);
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request: any;
4
+ OuterComponent: React.ComponentType<any>;
5
+ type?: string;
6
+ data: any;
7
+ approve?: string;
8
+ toEdit?: boolean;
9
+ refresh?: number;
10
+ refreshGragh?: number;
11
+ showBizForm: boolean;
12
+ getAttachIds?: (attachIds: any) => void;
13
+ showCfg?: any;
14
+ editOpinionAuth?: boolean;
15
+ iframeRefresh?: any;
16
+ }
17
+ declare const _default: React.NamedExoticComponent<IProps>;
18
+ export default _default;
@@ -0,0 +1,243 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo, useState, useEffect, useCallback, Suspense } from 'react';
3
+ import { Tabs } from 'antd';
4
+ import AssociationList from './association';
5
+ import TrailList from './trail';
6
+ import SendAroundList from './send';
7
+ import { fetchAttachList, fetchPreviewData } from '../service';
8
+ import Collapse from '../../Collapse';
9
+ import ZtUpload from './Upload';
10
+ import Gragh from './Gragh/Gragh';
11
+ import PreviewList from './previewTable';
12
+ import AttentionList from './attention';
13
+ import AuditList from './audit';
14
+ var Panel = Collapse.Panel;
15
+ var TabPane = Tabs.TabPane;
16
+ var ProcessDetail = function (_a) {
17
+ var request = _a.request, OuterComponent = _a.OuterComponent, type = _a.type, data = _a.data, approve = _a.approve, toEdit = _a.toEdit, showBizForm = _a.showBizForm, refresh = _a.refresh, refreshGragh = _a.refreshGragh, getAttachIds = _a.getAttachIds, _b = _a.showCfg, showCfg = _b === void 0 ? {} : _b, _c = _a.editOpinionAuth, editOpinionAuth = _c === void 0 ? false : _c, _d = _a.iframeRefresh, iframeRefresh = _d === void 0 ? 1 : _d;
18
+ var detailShown = showCfg.detailShown, approvalRecordsShown = showCfg.approvalRecordsShown, relatedProcessesShown = showCfg.relatedProcessesShown, attachShown = showCfg.attachShown, circulationRecordsShown = showCfg.circulationRecordsShown;
19
+ var _e = useState([]), attachData = _e[0], setAttachData = _e[1];
20
+ // UPDATE:获取当前路由对应得按钮权限
21
+ // 第二个参数:btnAuthCode,为在菜单管理配置对应按钮的code
22
+ // const {
23
+ // btnAuth,
24
+ // authResult: [
25
+ // attachAddBtnAuth,
26
+ // attachDelBtnAuth,
27
+ // attachDownloadBtnAuth,
28
+ // associationAddBtnAuth,
29
+ // attentionAddBtnAuth,
30
+ // ],
31
+ // } = useBtnAuth('/workflow/taskList', btnAuthCode);
32
+ var originFileList = [];
33
+ var _f = useState(originFileList), fileList = _f[0], setFileList = _f[1];
34
+ var _g = useState(0), sendTotal = _g[0], setSendTotal = _g[1];
35
+ var _h = useState(1), attentionType = _h[0], setAttentionType = _h[1];
36
+ var _j = useState(1), attentionRefresh = _j[0], setAttentionRefresh = _j[1];
37
+ var _k = useState(1), associationRefresh = _k[0], setAssociationRefresh = _k[1];
38
+ var _l = useState(false), attentionLoading = _l[0], setAttentionLoading = _l[1];
39
+ var _m = useState(false), isAttentionModalVisible = _m[0], setIsAttentionModalVisible = _m[1];
40
+ var _o = useState(320), iframeHeight = _o[0], setIframeHeight = _o[1];
41
+ var _p = useState(''), queryId = _p[0], setQueryId = _p[1];
42
+ var _q = useState(''), queryCode = _q[0], setQueryCode = _q[1];
43
+ var _r = useState(0), refreshContacts = _r[0], setRefreshContacts = _r[1];
44
+ var _s = useState(false), isAssocitionModalVisible = _s[0], setIsAssocitionModalVisible = _s[1];
45
+ var onCloseAssocitionModalHandle = useCallback(function () { return setIsAssocitionModalVisible(false); }, []);
46
+ var onRefreshAssocitionModalHandle = useCallback(function () { return setAssociationRefresh(associationRefresh + 1); }, [associationRefresh]);
47
+ var callRefreshContacts = function () {
48
+ setRefreshContacts(function (value) { return value + 1; });
49
+ };
50
+ useEffect(function () {
51
+ if (Array.isArray(attachData)) {
52
+ var attachList_1 = [];
53
+ attachData.forEach(function (element) {
54
+ var item = Object.assign({
55
+ percent: 100,
56
+ size: element.attachSize,
57
+ response: {
58
+ code: 200,
59
+ success: true,
60
+ data: Object.assign({
61
+ attachId: element.id,
62
+ size: element.attachSize,
63
+ }, element),
64
+ msg: i18next.t('操作成功'),
65
+ },
66
+ }, element);
67
+ item.status = 'done';
68
+ item.name = element.originalName;
69
+ attachList_1.push(item);
70
+ });
71
+ setFileList(attachList_1);
72
+ }
73
+ }, [attachData]);
74
+ useEffect(function () {
75
+ var uids = [];
76
+ if (fileList && fileList.length > 0) {
77
+ fileList.forEach(function (item) {
78
+ var _a, _b;
79
+ uids.push((_b = (_a = item === null || item === void 0 ? void 0 : item.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.attachId);
80
+ });
81
+ }
82
+ getAttachIds && getAttachIds(uids);
83
+ }, [fileList, getAttachIds]);
84
+ function handleCancelAttention() {
85
+ setIsAttentionModalVisible(false);
86
+ }
87
+ /**附件数据获取 */
88
+ useEffect(function () {
89
+ if (data === null || data === void 0 ? void 0 : data.processInstId) {
90
+ fetchAttachList(request, {
91
+ processInstId: data === null || data === void 0 ? void 0 : data.processInstId,
92
+ taskId: type === 'notice' ? '' : data === null || data === void 0 ? void 0 : data.id,
93
+ }).then(function (res) {
94
+ var _a;
95
+ setAttachData((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
96
+ });
97
+ }
98
+ }, [data === null || data === void 0 ? void 0 : data.processInstId, type, data === null || data === void 0 ? void 0 : data.id, request]);
99
+ /**
100
+ * 预览附件回调
101
+ */
102
+ var onPreviewCallback = useCallback(function (file) {
103
+ fetchPreviewData({
104
+ params: { id: file.fileId },
105
+ });
106
+ return true;
107
+ }, []);
108
+ function showAttentionModal() {
109
+ setRefreshContacts(function (value) { return value + 1; });
110
+ setQueryId(data === null || data === void 0 ? void 0 : data.processInstId);
111
+ setQueryCode('ATTENTION');
112
+ setIsAttentionModalVisible(true);
113
+ }
114
+ var _t = useState([]), targetKeys = _t[0], setTargetKeys = _t[1];
115
+ var _u = useState([]), empKeys = _u[0], setEmpKeys = _u[1];
116
+ var onTargetKeys = useCallback(function (empKeys, selectPerson) {
117
+ setEmpKeys(empKeys);
118
+ setTargetKeys(selectPerson);
119
+ }, [setEmpKeys, setTargetKeys]);
120
+ function swapColumns(parentName, columnIndexA, columnIndexB, header) {
121
+ var _a;
122
+ if (header === void 0) { header = false; }
123
+ var parent = document === null || document === void 0 ? void 0 : document.querySelector("." + parentName);
124
+ var table = parent === null || parent === void 0 ? void 0 : parent.querySelector('table');
125
+ if (table instanceof HTMLTableElement) {
126
+ if (header) {
127
+ for (var i = 0; i < 1; i++) {
128
+ var row = table === null || table === void 0 ? void 0 : table.rows[i];
129
+ if (row.cells.length > columnIndexA &&
130
+ row.cells.length > columnIndexB) {
131
+ var temp = row.cells[columnIndexA];
132
+ row.insertBefore(row.cells[columnIndexB], row.cells[columnIndexA]);
133
+ row.insertBefore(temp, row.cells[columnIndexB + 1]);
134
+ }
135
+ }
136
+ }
137
+ else {
138
+ for (var i = 1; i < ((_a = table === null || table === void 0 ? void 0 : table.rows) === null || _a === void 0 ? void 0 : _a.length); i++) {
139
+ var row = table === null || table === void 0 ? void 0 : table.rows[i];
140
+ if (row.cells.length > columnIndexA &&
141
+ row.cells.length > columnIndexB) {
142
+ var temp = row.cells[columnIndexA];
143
+ row.insertBefore(row.cells[columnIndexB], row.cells[columnIndexA]);
144
+ row.insertBefore(temp, row.cells[columnIndexB + 1]);
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ // 不修改附件组件的情况下更改其文件名的默认宽度
151
+ useEffect(function () {
152
+ // 获取第一个class为'flow-attachment'的元素
153
+ var flowAttachment = document.querySelector('.flow-attachment');
154
+ // swapColumns('flow-attachment', 1, 3, true);
155
+ // swapColumns('flow-attachment', 1, 2, true);
156
+ // 在该元素下查找第一个colgroup
157
+ var colgroup = flowAttachment === null || flowAttachment === void 0 ? void 0 : flowAttachment.querySelector('colgroup');
158
+ // 在colgroup内查找所有的col元素
159
+ var cols = colgroup === null || colgroup === void 0 ? void 0 : colgroup.querySelectorAll('col');
160
+ // 设置col元素的宽度为50%
161
+ if (cols && cols.length >= 3) {
162
+ cols[0].style.width = '50%';
163
+ cols[1].style.width = '10%';
164
+ cols[2].style.width = '15%';
165
+ }
166
+ }, []);
167
+ // // 附件加载完之后继续交换数据列
168
+ // useEffect(() => {
169
+ // if (!fileList || fileList.length === 0) {
170
+ // return;
171
+ // }
172
+ // setTimeout(() => {
173
+ // swapColumns('flow-attachment', 1, 3);
174
+ // swapColumns('flow-attachment', 1, 2);
175
+ // }, 500);
176
+ // }, [fileList]);
177
+ // 不修改关联流程的情况下更改其关联流程ID和关联流程名称的默认宽度
178
+ // useEffect(() => {
179
+ // // 获取第一个class为'flow-association'的元素
180
+ // const flowAssociation = document.querySelector('.flow-association');
181
+ // // 在该元素下查找第一个colgroup
182
+ // const colgroup = flowAssociation?.querySelector('colgroup');
183
+ // // 在colgroup内查找所有的col元素
184
+ // const cols = colgroup?.querySelectorAll('col');
185
+ // // 检查是否有至少三个col元素,并设置第三个col的宽度为50%
186
+ // if (cols && cols.length >= 3) {
187
+ // cols[0].style.width = `50%`;
188
+ // cols[1].style.width = '10%';
189
+ // cols[2].style.width = '10%';
190
+ // }
191
+ // }, []);
192
+ return (React.createElement(React.Fragment, null,
193
+ showBizForm && detailShown ? (React.createElement("div", null,
194
+ React.createElement(Suspense, { fallback: React.createElement("div", null, "Loading...") },
195
+ React.createElement(OuterComponent, null)))) : null,
196
+ (approvalRecordsShown ||
197
+ relatedProcessesShown ||
198
+ attachShown ||
199
+ circulationRecordsShown) && (React.createElement(Tabs, { defaultActiveKey: "1", type: "card", className: "workflow-info" },
200
+ React.createElement(TabPane, { tab: i18next.t('基本信息'), key: "1" },
201
+ React.createElement(Collapse, { showHeaderBefore: true, showBackground: true, defaultActiveKey: ['1', '2', '3', '4', '5'] },
202
+ approvalRecordsShown && (React.createElement(Panel, { header: (data === null || data === void 0 ? void 0 : data.nextTip)
203
+ ? i18next.t('审批记录 — 当前正在审批:') + (data === null || data === void 0 ? void 0 : data.nextTip)
204
+ : i18next.t('审批记录'), key: "2" },
205
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
206
+ React.createElement(TrailList, { request: request, appCode: data === null || data === void 0 ? void 0 : data.appCode, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data.id, refresh: refresh, editOpinionAuth: editOpinionAuth })))),
207
+ attachShown && (React.createElement(Panel, { header: i18next.t('流程附件'), key: "3" },
208
+ React.createElement("div", { className: "flow-attachment", style: { paddingTop: '10px', paddingBottom: '10px' } },
209
+ React.createElement(ZtUpload, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, showUploadBtn: false, showDownloadBtn: true, taskId: data === null || data === void 0 ? void 0 : data.id, showPreviewBtn: false, showDeleteBtn: false, isAutoDelete: false, fileList: fileList,
210
+ // apiBaseUrl=""
211
+ // onDownLoadCallbackAfter={onDownloadCallback}
212
+ // onPreviewCallbackBefore={onPreviewCallback}
213
+ showAllDownloadBtn: true })))),
214
+ relatedProcessesShown && (React.createElement(Panel, { header: i18next.t('关联流程'), key: "4" },
215
+ React.createElement("div", { className: "flow-association", style: { paddingTop: '10px', paddingBottom: '10px' } },
216
+ React.createElement(AssociationList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, refresh: associationRefresh, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 })))),
217
+ circulationRecordsShown && (React.createElement(Panel, { header: i18next.t('传阅及抄送记录({{sendTotal}})', {
218
+ sendTotal: sendTotal,
219
+ }), key: "5" },
220
+ React.createElement(SendAroundList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0, setSendTotal: setSendTotal }))))),
221
+ React.createElement(TabPane, { tab: i18next.t('其他信息'), key: "2" },
222
+ React.createElement(Collapse, { showHeaderBefore: true, showBackground: true, defaultActiveKey: ['1', '2'] },
223
+ React.createElement(Panel, { header: i18next.t('流程图'), key: "1" },
224
+ React.createElement(Tabs, { defaultActiveKey: "1", type: "card", style: { paddingTop: '10px', paddingBottom: '10px' } },
225
+ React.createElement(TabPane, { tab: i18next.t('流程图'), key: "1" },
226
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
227
+ React.createElement(Gragh, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, refresh: refreshGragh }))),
228
+ (data === null || data === void 0 ? void 0 : data.status) === 0 ||
229
+ (data === null || data === void 0 ? void 0 : data.status) === 2 ||
230
+ (data === null || data === void 0 ? void 0 : data.status) === 7 ||
231
+ (data === null || data === void 0 ? void 0 : data.status) === 7 ? (React.createElement(TabPane, { tab: i18next.t('剩余审批环节'), key: "2" },
232
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
233
+ React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh, callRefreshContacts: callRefreshContacts, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 })))) : (React.createElement(TabPane, { tab: i18next.t('全部审批环节预演'), key: "2" },
234
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
235
+ React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh, callRefreshContacts: callRefreshContacts, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 })))))),
236
+ React.createElement(Panel, { header: i18next.t('自动抄送'), key: "3" },
237
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
238
+ React.createElement(AttentionList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, refresh: attentionRefresh, callRefreshContacts: callRefreshContacts, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 }))),
239
+ React.createElement(Panel, { header: i18next.t('流程操作'), key: "4" },
240
+ React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
241
+ React.createElement(AuditList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId })))))))));
242
+ };
243
+ export default memo(ProcessDetail);
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { UploadProps } from 'antd/lib/upload';
3
+ interface IProps extends UploadProps {
4
+ request?: any;
5
+ showTable?: boolean;
6
+ showUploadBtn?: boolean;
7
+ processInstId: string;
8
+ taskId: string;
9
+ showDownloadBtn?: boolean;
10
+ showAllDownloadBtn?: boolean;
11
+ showPreviewBtn?: boolean;
12
+ showDeleteBtn?: boolean;
13
+ fileList?: any[];
14
+ isAutoDelete?: boolean;
15
+ /**回调 */
16
+ callback?: (fileList: any) => void;
17
+ onDeleteCallback?: (index: number, file: any) => void;
18
+ }
19
+ declare const ZtUpload: React.FC<IProps>;
20
+ export default ZtUpload;
@@ -0,0 +1,59 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { useMemo, useEffect, useState } from 'react';
24
+ import { getToken } from 'ztxkutils/dist/authority';
25
+ import Upload from '../../../Upload';
26
+ import { fetchAttachList } from '../../service';
27
+ var ZtUpload = function (_a) {
28
+ var request = _a.request, _b = _a.showTable, showTable = _b === void 0 ? true : _b, showUploadBtn = _a.showUploadBtn, showDownloadBtn = _a.showDownloadBtn, showAllDownloadBtn = _a.showAllDownloadBtn, showPreviewBtn = _a.showPreviewBtn, taskId = _a.taskId, showDeleteBtn = _a.showDeleteBtn, processInstId = _a.processInstId, isAutoDelete = _a.isAutoDelete, fileList = _a.fileList, callback = _a.callback, onDeleteCallback = _a.onDeleteCallback, restProps = __rest(_a, ["request", "showTable", "showUploadBtn", "showDownloadBtn", "showAllDownloadBtn", "showPreviewBtn", "taskId", "showDeleteBtn", "processInstId", "isAutoDelete", "fileList", "callback", "onDeleteCallback"]);
29
+ var _c = useState({}), listRecord = _c[0], setListRecord = _c[1];
30
+ var records = listRecord.records, current = listRecord.current, size = listRecord.size, total = listRecord.total, extra = listRecord.extra;
31
+ /**
32
+ * @description 默认要带上用户公司、部门、最近时间
33
+ * UPDATE:这个是列表表单默认的查询条件
34
+ * 设置个性化查询参数,第二个参数为表单的name字段
35
+ */
36
+ var currentParams = useMemo(function () { return ({
37
+ processInstId: processInstId,
38
+ taskId: taskId,
39
+ }); }, [processInstId, taskId]);
40
+ /**
41
+ * @description 发起列表请求
42
+ * 当表单数据发生改变时,页码发生改变时
43
+ */
44
+ useEffect(function () {
45
+ if (currentParams.processInstId) {
46
+ fetchAttachList(request, __assign({ size: size,
47
+ current: current }, currentParams)).then(function (res) {
48
+ var _a;
49
+ setListRecord((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data);
50
+ });
51
+ }
52
+ }, [currentParams, size, current, request]);
53
+ return (React.createElement(Upload, __assign({ method: "post", headers: {
54
+ 'Zmdms-Auth': getToken() || '',
55
+ }, data: {
56
+ system: process.env.REACT_APP_SYSTEM_CODE,
57
+ }, showTable: showTable, showUploadBtn: showUploadBtn, showDownloadBtn: showDownloadBtn, showAllDownloadBtn: showAllDownloadBtn, showPreviewBtn: showPreviewBtn, showDeleteBtn: showDeleteBtn, isAutoDelete: isAutoDelete, callback: callback, onDeleteCallback: onDeleteCallback, originFileList: fileList }, restProps, { apiBaseUrl: '', fileBaseUrl: '' })));
58
+ };
59
+ export default ZtUpload;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ records: any[];
4
+ extra?: any;
5
+ onReload: () => void;
6
+ disable: boolean;
7
+ params?: any;
8
+ }
9
+ declare const _default: React.NamedExoticComponent<IProps>;
10
+ export default _default;
@@ -0,0 +1,75 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import Table from '../../../../Table';
3
+ import React, { memo } from 'react';
4
+ import { Button } from 'antd';
5
+ var TableList = function (_a) {
6
+ /**
7
+ * @description 模态框需要的外部参数
8
+ * UPDATE:针对拥有弹框的模块
9
+ */
10
+ // const modalParams = useMemo(
11
+ // () => ({
12
+ // companyId: params.companyId,
13
+ // depId: params.depId,
14
+ // memberId: params.memberId,
15
+ // status: 50,
16
+ // }),
17
+ // [params.companyId, params.depId, params.memberId]
18
+ // );
19
+ var records = _a.records, onReload = _a.onReload, extra = _a.extra, disable = _a.disable, params = _a.params;
20
+ // UPDATE:表格配置项
21
+ // 与以往不同的是,由于需要满足个性化配置功能,所以每个配置都需要提供一个key值,来做比对选中
22
+ var columns = [
23
+ {
24
+ title: i18next.t('序号'),
25
+ width: 62,
26
+ align: 'center',
27
+ render: function (text, record, index) { return "" + (index + 1); },
28
+ },
29
+ {
30
+ title: i18next.t('流程名称'),
31
+ dataIndex: 'associatedProcessInstName',
32
+ key: 'associatedProcessInstName',
33
+ render: function (text, record, index) { return (React.createElement(Button, { type: "link" }, text)); },
34
+ },
35
+ {
36
+ title: i18next.t('流程ID'),
37
+ width: 80,
38
+ align: 'center',
39
+ dataIndex: 'associatedProcessInstId',
40
+ key: 'associatedProcessInstId',
41
+ },
42
+ // {
43
+ // title: '流程模板',
44
+ // width: 300,
45
+ // dataIndex: 'associatedProcessDefName',
46
+ // key: 'associatedProcessDefName',
47
+ // },
48
+ {
49
+ title: i18next.t('流程申请人'),
50
+ width: 120,
51
+ align: 'center',
52
+ dataIndex: 'associatedProcessApplyPersonName',
53
+ key: 'associatedProcessApplyPersonName',
54
+ },
55
+ {
56
+ title: i18next.t('流程申请时间'),
57
+ width: 140,
58
+ align: 'center',
59
+ dataIndex: 'associatedProcessApplyTime',
60
+ key: 'associatedProcessApplyTime',
61
+ },
62
+ ];
63
+ // // UPDATE:需要跳转的页面,在对应文件配置
64
+ // function goDetailHandle(id) {
65
+ // const patchPage = createPage.getProcessDetail(id);
66
+ // history.push(patchPage.path, '_blank');
67
+ // }
68
+ return (React.createElement("div", null,
69
+ React.createElement(Table, { columns: columns,
70
+ // showColumnDynamicKey="flow-ssociation"
71
+ dataSource: records, rowKey: "id",
72
+ // showColumnDynamic
73
+ initColumns: columns })));
74
+ };
75
+ export default memo(TableList);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ request?: any;
4
+ processInstId: string;
5
+ refresh: number;
6
+ disable: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;