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,85 @@
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, useRef } from 'react';
14
+ import { Button } from '../../../index';
15
+ import { Switch } from 'antd';
16
+ import { sealFileBatchDownload, preCanDownload, } from '../../Upload/utils';
17
+ import { isFlowCompleted } from '../utils';
18
+ /**
19
+ * 下载电子印章相关逻辑
20
+ */
21
+ var ElectronSealDownload = function (props) {
22
+ var request = props.request, docAttachMap = props.docAttachMap, record = props.record, fileFieldsNameRef = props.fileFieldsNameRef, flowStatus = props.flowStatus, checked = props.checked;
23
+ var _a = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, attachId = _a.attachId, attachName = _a.attachName, _isElectronicSeal = _a.isElectronicSeal, _doubleSignedSealInfoDTOList = _a.doubleSignedSealInfoDTOList, _b = _a.fmsIsPushBank, fmsIsPushBank = _b === void 0 ? 'fmsIsPushBank' : _b, _c = _a.fmsIsElectronicSeal, fmsIsElectronicSeal = _c === void 0 ? 'fmsIsElectronicSeal' : _c;
24
+ // 电子签章件key值
25
+ var isElectronicSealKey = _isElectronicSeal || 'isElectronicSeal';
26
+ var doubleSignedSealInfoDTOListKey = _doubleSignedSealInfoDTOList || 'doubleSignedSealInfoDTOList';
27
+ // 下载电子印章件
28
+ var sealNoCompressBatchDownloadRef = useRef(null);
29
+ var onDownLoadHand = function () {
30
+ var qysAttachVOList = [
31
+ {
32
+ fileName: record === null || record === void 0 ? void 0 : record[attachName],
33
+ attachId: record === null || record === void 0 ? void 0 : record[attachId],
34
+ },
35
+ ];
36
+ var params = {
37
+ docAttachMap: docAttachMap,
38
+ qysAttachVOList: qysAttachVOList,
39
+ };
40
+ if (!preCanDownload(sealNoCompressBatchDownloadRef.current, function () {
41
+ sealNoCompressBatchDownloadRef.current = null;
42
+ })) {
43
+ return;
44
+ }
45
+ sealNoCompressBatchDownloadRef.current = sealFileBatchDownload(request, params, { isCompress: false });
46
+ };
47
+ // 下载双签件
48
+ var sealDoubleElectronicSealDownloadRef = useRef({});
49
+ var onDoubleElectronicSealDownLoadHand = function () {
50
+ var doubleSignedSealInfoDTOList = record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey];
51
+ if (Array.isArray(doubleSignedSealInfoDTOList)) {
52
+ doubleSignedSealInfoDTOList.forEach(function (item, index) {
53
+ var _a;
54
+ var docAttachMap = item.docAttachMap, qysAttachVOList = item.qysAttachVOList;
55
+ var params = {
56
+ docAttachMap: docAttachMap,
57
+ qysAttachVOList: (_a = qysAttachVOList === null || qysAttachVOList === void 0 ? void 0 : qysAttachVOList.map) === null || _a === void 0 ? void 0 : _a.call(qysAttachVOList, function (item) { return (__assign(__assign({}, item), { fileName: item.fileName || item.attachName })); }),
58
+ };
59
+ if (!preCanDownload(sealDoubleElectronicSealDownloadRef.current[index], function () {
60
+ sealDoubleElectronicSealDownloadRef.current[index] = null;
61
+ })) {
62
+ return;
63
+ }
64
+ sealDoubleElectronicSealDownloadRef.current[index] =
65
+ sealFileBatchDownload(request, params, { isCompress: false });
66
+ });
67
+ }
68
+ };
69
+ // 是否显示下载电子印章件
70
+ var isElectronicSeal = (record === null || record === void 0 ? void 0 : record[isElectronicSealKey]) + '' === '1';
71
+ // 是否显示下载双签件
72
+ var isDoubleElectronicSeal = (record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey]) &&
73
+ Array.isArray(record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey]) &&
74
+ (record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey].length) > 0;
75
+ return (React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
76
+ isElectronicSeal && isFlowCompleted(flowStatus) ? (React.createElement(Button, { type: "link", onClick: onDownLoadHand }, i18next.t('下载电子签章件'))) : null,
77
+ isDoubleElectronicSeal && isFlowCompleted(flowStatus) ? (React.createElement(Button, { type: "link", onClick: onDoubleElectronicSealDownLoadHand }, (record === null || record === void 0 ? void 0 : record[fmsIsPushBank]) + '' === '1' &&
78
+ (record === null || record === void 0 ? void 0 : record[fmsIsElectronicSeal]) + '' === '1'
79
+ ? i18next.t('下载三签件')
80
+ : i18next.t('下载双签件'))) : null,
81
+ (isElectronicSeal || isDoubleElectronicSeal) &&
82
+ !isFlowCompleted(flowStatus) ? (React.createElement("div", null,
83
+ React.createElement(Switch, { disabled: true, checked: checked }))) : null));
84
+ };
85
+ export default memo(ElectronSealDownload);
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ firstLevelPersonName?: string;
4
+ checked?: any;
5
+ onChange?: any;
6
+ isEdit: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo } from 'react';
3
+ import { Checkbox } from '../../../index';
4
+ var ElectronSealFirstLevelPerson = function (_a) {
5
+ var firstLevelPersonName = _a.firstLevelPersonName, checked = _a.checked, onChange = _a.onChange, isEdit = _a.isEdit;
6
+ // const title = `是否加盖经济责任人手签章${
7
+ // firstLevelPersonName ? `(经济责任人: ${firstLevelPersonName})` : ''
8
+ // }`;
9
+ // 20240923 文字修改
10
+ var title = i18next.t('加盖经济责任人个人签名{{slot0}}', {
11
+ slot0: firstLevelPersonName ? "\uFF08" + firstLevelPersonName + "\uFF09" : '',
12
+ });
13
+ return firstLevelPersonName ? (React.createElement("div", { className: "electron-seal--first-level-person", title: title },
14
+ React.createElement(Checkbox, { checked: checked, onChange: onChange, disabled: !isEdit }, title))) : null;
15
+ };
16
+ export default memo(ElectronSealFirstLevelPerson);
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isShowFms?: boolean;
4
+ fmsIsElectronicSeal?: boolean;
5
+ fmsIsElectronicSealLabel?: string;
6
+ isShowBank?: boolean;
7
+ fmsIsPushBank?: boolean;
8
+ fmsIsElectronicSealPushLabel?: string;
9
+ isShowOpeningContractSeal?: boolean;
10
+ openingContractSeal?: boolean;
11
+ openingContractSealLabel?: string;
12
+ isElectronicSeal?: boolean;
13
+ }
14
+ declare const _default: React.NamedExoticComponent<IProps>;
15
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import React, { memo } from 'react';
2
+ import { Switch } from 'antd';
3
+ import { Checkbox } from '../../../index';
4
+ /**
5
+ * 是否盖电子印章相关逻辑
6
+ */
7
+ var ElectronSealItem = function (props) {
8
+ var isShowFms = props.isShowFms, fmsIsElectronicSeal = props.fmsIsElectronicSeal, fmsIsElectronicSealLabel = props.fmsIsElectronicSealLabel, isShowBank = props.isShowBank, fmsIsPushBank = props.fmsIsPushBank, fmsIsElectronicSealPushLabel = props.fmsIsElectronicSealPushLabel, isShowOpeningContractSeal = props.isShowOpeningContractSeal, openingContractSeal = props.openingContractSeal, openingContractSealLabel = props.openingContractSealLabel, isElectronicSeal = props.isElectronicSeal;
9
+ return (React.createElement(React.Fragment, null,
10
+ React.createElement("div", null, React.createElement(Switch, { disabled: true, checked: !!isElectronicSeal })),
11
+ React.createElement("div", { className: "electron-seal--any" },
12
+ React.createElement("div", null, isShowFms || fmsIsElectronicSeal ? (React.createElement(Checkbox, { disabled: true, checked: !!fmsIsElectronicSeal }, fmsIsElectronicSealLabel)) : null),
13
+ React.createElement("div", null, isShowBank || fmsIsPushBank ? (React.createElement(Checkbox, { disabled: true, checked: !!fmsIsPushBank }, fmsIsElectronicSealPushLabel)) : null),
14
+ React.createElement("div", null, isShowOpeningContractSeal || openingContractSeal ? (React.createElement(Checkbox, { disabled: true, checked: !!openingContractSeal }, openingContractSealLabel)) : null))));
15
+ };
16
+ export default memo(ElectronSealItem);
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ needQys?: boolean;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ onChange?: (checked: boolean, event: any) => void;
7
+ /** 是否显示产融平台 */
8
+ isShowFms?: boolean;
9
+ isShowBank?: boolean;
10
+ fmsIsElectronicSeal?: boolean;
11
+ fmsIsElectronicSealLabel?: string;
12
+ fmsIsPushBank?: boolean;
13
+ fmsIsElectronicSealPushLabel?: string;
14
+ onFmsIsElectronicSealChange?: any;
15
+ isShowOpeningContractSeal?: boolean;
16
+ openingContractSeal?: any;
17
+ openingContractSealLabel?: any;
18
+ }
19
+ declare const _default: React.NamedExoticComponent<IProps>;
20
+ export default _default;
@@ -0,0 +1,47 @@
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, { memo } from 'react';
24
+ import { Switch } from 'antd';
25
+ import { Checkbox } from '../../../index';
26
+ /**
27
+ * 是否盖电子印章相关逻辑
28
+ */
29
+ var ElectronSealItem = function (props) {
30
+ var needQys = props.needQys, fmsIsElectronicSeal = props.fmsIsElectronicSeal, fmsIsElectronicSealLabel = props.fmsIsElectronicSealLabel, fmsIsPushBank = props.fmsIsPushBank, fmsIsElectronicSealPushLabel = props.fmsIsElectronicSealPushLabel, onFmsIsElectronicSealChange = props.onFmsIsElectronicSealChange, isShowFms = props.isShowFms, isShowBank = props.isShowBank, isShowOpeningContractSeal = props.isShowOpeningContractSeal, openingContractSeal = props.openingContractSeal, openingContractSealLabel = props.openingContractSealLabel, resetProps = __rest(props, ["needQys", "fmsIsElectronicSeal", "fmsIsElectronicSealLabel", "fmsIsPushBank", "fmsIsElectronicSealPushLabel", "onFmsIsElectronicSealChange", "isShowFms", "isShowBank", "isShowOpeningContractSeal", "openingContractSeal", "openingContractSealLabel"]);
31
+ return (React.createElement(React.Fragment, null,
32
+ needQys && React.createElement(Switch, __assign({}, resetProps)),
33
+ React.createElement("div", { className: "electron-seal--any" },
34
+ isShowFms ? (React.createElement(Checkbox, { checked: fmsIsElectronicSeal, disabled: resetProps.disabled, onChange: function (e) {
35
+ onFmsIsElectronicSealChange &&
36
+ onFmsIsElectronicSealChange(e.target.checked, 'fmsElectron');
37
+ } }, fmsIsElectronicSealLabel)) : null,
38
+ isShowBank ? (React.createElement(Checkbox, { checked: fmsIsPushBank, disabled: resetProps.disabled, onChange: function (e) {
39
+ onFmsIsElectronicSealChange &&
40
+ onFmsIsElectronicSealChange(e.target.checked, 'fmsPush');
41
+ } }, fmsIsElectronicSealPushLabel)) : null,
42
+ isShowOpeningContractSeal ? (React.createElement(Checkbox, { checked: openingContractSeal, disabled: resetProps.disabled, onChange: function (e) {
43
+ onFmsIsElectronicSealChange &&
44
+ onFmsIsElectronicSealChange(e.target.checked, 'openingContractSeal');
45
+ } }, openingContractSealLabel)) : null)));
46
+ };
47
+ export default memo(ElectronSealItem);
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ sealList?: any;
4
+ value?: any;
5
+ defaultValue?: any;
6
+ onChange?: any;
7
+ isEdit: boolean;
8
+ style?: any;
9
+ }
10
+ declare const _default: React.NamedExoticComponent<IProps>;
11
+ export default _default;
@@ -0,0 +1,191 @@
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
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
24
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
25
+ to[j] = from[i];
26
+ return to;
27
+ };
28
+ import React, { memo, useMemo, useState, useContext, useEffect, useRef, } from 'react';
29
+ import { Checkbox, Collapse } from '../../../index';
30
+ import { ElectronSignaturesContext } from '..';
31
+ import useBaseContext from '../../utils/useBaseContext';
32
+ /** 公司简称优先排序关键词(按指定顺序排前) */
33
+ var PRIORITY_OWNERS = ['浙商中拓', '浙江中拓', '湖南中拓', '海南中拓'];
34
+ /** 按优先级排序公司简称列表 */
35
+ function sortOwners(owners) {
36
+ var prioritized = PRIORITY_OWNERS.filter(function (o) { return owners.includes(o); });
37
+ var rest = owners.filter(function (o) { return !PRIORITY_OWNERS.includes(o); });
38
+ return __spreadArray(__spreadArray([], prioritized), rest);
39
+ }
40
+ /** 公司简称 fallback 到全称 */
41
+ function getOwnerShortName(item) {
42
+ return (item === null || item === void 0 ? void 0 : item.ownerShortName) || (item === null || item === void 0 ? void 0 : item.ownerName) || '';
43
+ }
44
+ /** 印章简称 fallback 到全称 */
45
+ function getSealShortName(item) {
46
+ return (item === null || item === void 0 ? void 0 : item.sealShortName) || (item === null || item === void 0 ? void 0 : item.sealName) || '';
47
+ }
48
+ /**
49
+ * 电子签章选择列表
50
+ */
51
+ var ElectronSealList = function (_a) {
52
+ var sealList = _a.sealList, onChange = _a.onChange, isEdit = _a.isEdit, value = _a.value, resetProp = __rest(_a, ["sealList", "onChange", "isEdit", "value"]);
53
+ var isNewElectronSealStyle = useContext(ElectronSignaturesContext).isNewElectronSealStyle;
54
+ var _b = useBaseContext().electronSealTabTrigger, electronSealTabTrigger = _b === void 0 ? 'hover' : _b;
55
+ // 新版:以公司简称维度拆分数据
56
+ var _c = useMemo(function () {
57
+ if (!Array.isArray(sealList)) {
58
+ return {
59
+ ownerList: [],
60
+ ownerMap: {},
61
+ };
62
+ }
63
+ var map = {};
64
+ sealList.forEach(function (item) {
65
+ var name = getOwnerShortName(item);
66
+ if (!map[name])
67
+ map[name] = [];
68
+ map[name].push(item);
69
+ });
70
+ return {
71
+ ownerList: sortOwners(Object.keys(map)),
72
+ ownerMap: map,
73
+ };
74
+ }, [sealList]), ownerList = _c.ownerList, ownerMap = _c.ownerMap;
75
+ // 旧版:以 ownerName 维度拆分数据
76
+ var _d = useMemo(function () {
77
+ if (!Array.isArray(sealList)) {
78
+ return { ownerNameList: [], ownerNameResult: {} };
79
+ }
80
+ var list = Array.from(new Set(sealList.map(function (item) { return item.ownerName; })));
81
+ var result = {};
82
+ list.forEach(function (ownerName) {
83
+ result[ownerName] = sealList.filter(function (item) { return item.ownerName === ownerName; });
84
+ });
85
+ return { ownerNameList: list, ownerNameResult: result };
86
+ }, [sealList]), ownerNameList = _d.ownerNameList, ownerNameResult = _d.ownerNameResult;
87
+ // 新版:当前选中的公司(默认第一个)
88
+ var _e = useState(ownerList[0]), selectedOwner = _e[0], setSelectedOwner = _e[1];
89
+ useEffect(function () {
90
+ // 公司列表变化时,重置选中公司为第一个
91
+ if (ownerList.length > 0 && !ownerList.includes(selectedOwner)) {
92
+ setSelectedOwner(ownerList[0]);
93
+ }
94
+ }, [ownerList, selectedOwner]);
95
+ // 悬浮延迟切换:停留 400ms 才切换,快速划过(如跨行移动)不触发
96
+ var hoverTimerRef = useRef(null);
97
+ useEffect(function () {
98
+ return function () { return clearTimeout(hoverTimerRef.current); };
99
+ }, []);
100
+ var handleOwnerHover = function (owner) {
101
+ if (selectedOwner === owner)
102
+ return;
103
+ clearTimeout(hoverTimerRef.current);
104
+ hoverTimerRef.current = setTimeout(function () {
105
+ setSelectedOwner(owner);
106
+ }, 400);
107
+ };
108
+ var clearHoverTimer = function () {
109
+ clearTimeout(hoverTimerRef.current);
110
+ };
111
+ // 新版:当前选中公司下的印章列表
112
+ var currentSeals = ownerMap[selectedOwner] || [];
113
+ // 新版:sealId → 公司简称 映射,用于统计每个公司选中了几个印章
114
+ var sealIdToOwner = useMemo(function () {
115
+ var map = {};
116
+ Object.keys(ownerMap).forEach(function (owner) {
117
+ ownerMap[owner].forEach(function (item) {
118
+ map[item.sealId] = owner;
119
+ });
120
+ });
121
+ return map;
122
+ }, [ownerMap]);
123
+ // 新版:每个公司下选中的印章数量
124
+ var ownerSelectedCount = useMemo(function () {
125
+ var countMap = {};
126
+ if (Array.isArray(value)) {
127
+ value.forEach(function (sealId) {
128
+ var owner = sealIdToOwner[sealId];
129
+ if (owner) {
130
+ countMap[owner] = (countMap[owner] || 0) + 1;
131
+ }
132
+ });
133
+ }
134
+ return countMap;
135
+ }, [value, sealIdToOwner]);
136
+ // 新版:已选印章完整信息列表
137
+ var selectedSealList = useMemo(function () {
138
+ if (!Array.isArray(value) || !Array.isArray(sealList)) {
139
+ return [];
140
+ }
141
+ return value
142
+ .map(function (id) { return sealList.find(function (item) { return item.sealId === id; }); })
143
+ .filter(Boolean);
144
+ }, [value, sealList]);
145
+ // ========= 旧版渲染(手风琴模式) =========
146
+ if (!isNewElectronSealStyle) {
147
+ return ownerNameList.length === 0 ? null : (React.createElement(Checkbox.Group, __assign({ value: value, onChange: function (e) {
148
+ onChange && onChange(e);
149
+ }, disabled: !isEdit, className: "electron-seal-list--wrap" }, resetProp),
150
+ React.createElement(Collapse, { defaultActiveKey: ownerNameList.map(function (item, index) { return index; }), style: { width: '100%' } }, ownerNameList.map(function (ownerName, index) {
151
+ var _a;
152
+ return (React.createElement(Collapse.Panel, { key: index, header: React.createElement("div", { className: "electron-seal-list--owner-name" }, ownerName) }, (_a = ownerNameResult[ownerName]) === null || _a === void 0 ? void 0 : _a.map(function (item) {
153
+ return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId }, item.sealName));
154
+ })));
155
+ }))));
156
+ }
157
+ // ========= 新版渲染(三段式布局) =========
158
+ if (ownerList.length === 0) {
159
+ return null;
160
+ }
161
+ return (React.createElement("div", __assign({ className: "electron-seal-list-new--wrap" }, resetProp),
162
+ React.createElement("div", { className: "seal-owner-tabs" }, ownerList.map(function (owner) {
163
+ var _a, _b;
164
+ var count = ownerSelectedCount[owner] || 0;
165
+ return (React.createElement("div", __assign({ key: owner, className: "seal-owner-tab " + (selectedOwner === owner ? 'seal-owner-tab--active' : ''), title: ((_b = (_a = ownerMap[owner]) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.ownerName) || owner }, (electronSealTabTrigger === 'hover'
166
+ ? {
167
+ onMouseEnter: function () { return handleOwnerHover(owner); },
168
+ onMouseLeave: clearHoverTimer,
169
+ }
170
+ : { onClick: function () { return setSelectedOwner(owner); } })),
171
+ React.createElement("span", { className: "seal-owner-tab--name" }, owner),
172
+ count > 0 && (React.createElement("span", { className: "seal-owner-tab--count" }, count))));
173
+ })),
174
+ React.createElement("div", { className: "seal-list-current" }, currentSeals.map(function (item) {
175
+ var checked = Array.isArray(value) && value.includes(item.sealId);
176
+ return (React.createElement(Checkbox, { key: item.sealId, checked: checked, disabled: !isEdit, onChange: function () {
177
+ var newValue = checked
178
+ ? (value || []).filter(function (id) { return id !== item.sealId; })
179
+ : __spreadArray(__spreadArray([], (value || [])), [item.sealId]);
180
+ onChange && onChange(newValue);
181
+ } },
182
+ React.createElement("span", { title: item.sealName }, getSealShortName(item))));
183
+ })),
184
+ React.createElement("div", { className: "seal-selected-summary" },
185
+ React.createElement("div", { className: "seal-selected-title" }, "\u5DF2\u9009\u5370\u7AE0"),
186
+ selectedSealList.length > 0 ? (selectedSealList.map(function (item) { return (React.createElement("div", { key: item.sealId, className: "seal-selected-item", title: ((item.ownerName || '') + " " + (item.sealName || '')).trim() },
187
+ getOwnerShortName(item),
188
+ " ",
189
+ getSealShortName(item))); })) : (React.createElement("div", { className: "seal-selected-empty" }, "\u6682\u672A\u9009\u62E9\u5370\u7AE0")))));
190
+ };
191
+ export default memo(ElectronSealList);
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ interface IPersonalSignUser {
3
+ userId: number;
4
+ userName: string;
5
+ }
6
+ interface IPersonalSignItem {
7
+ /** 唯一标识 */
8
+ id: number | string;
9
+ /** 展示文案 如"请部门经理签字" */
10
+ displayText: string;
11
+ /** user=指定用户 role_line=角色线 null=仅展示文字 */
12
+ configType?: 'user' | 'role_line' | null;
13
+ /** 配置值 用户id或角色线id */
14
+ configValue?: string | number | null;
15
+ /** 配置名称 用户名或角色线名称 */
16
+ configValueName?: string;
17
+ /** 后端展开好的最终签署用户列表 */
18
+ signUsers?: IPersonalSignUser[];
19
+ }
20
+ interface IProps {
21
+ /** 个人签署配置列表 */
22
+ personalSignList?: IPersonalSignItem[];
23
+ /** 已勾选的手签用户id列表 */
24
+ value?: Array<number | string>;
25
+ /** 是否可编辑 */
26
+ isEdit?: boolean;
27
+ onChange?: (userIds: Array<number | string>) => void;
28
+ }
29
+ /**
30
+ * 个人签署(手签章)选择
31
+ * 每条配置展示 displayText 文案,signUsers 渲染用户多选框;
32
+ * signUsers 为空的配置仅展示文字
33
+ */
34
+ declare const ElectronSealPersonalSign: React.FC<IProps>;
35
+ export default ElectronSealPersonalSign;
@@ -0,0 +1,39 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
2
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
3
+ to[j] = from[i];
4
+ return to;
5
+ };
6
+ import React from 'react';
7
+ import { Checkbox } from 'antd';
8
+ import i18next from 'ztxkutils/dist/i18next';
9
+ /**
10
+ * 个人签署(手签章)选择
11
+ * 每条配置展示 displayText 文案,signUsers 渲染用户多选框;
12
+ * signUsers 为空的配置仅展示文字
13
+ */
14
+ var ElectronSealPersonalSign = function (props) {
15
+ var personalSignList = props.personalSignList, _a = props.value, value = _a === void 0 ? [] : _a, isEdit = props.isEdit, onChange = props.onChange;
16
+ if (!Array.isArray(personalSignList) || personalSignList.length === 0) {
17
+ return null;
18
+ }
19
+ var checkedList = value || [];
20
+ /** 勾选/取消某个手签用户 */
21
+ var handleUserChange = function (userId, checked) {
22
+ var newUserIds = checked
23
+ ? Array.from(new Set(__spreadArray(__spreadArray([], checkedList), [userId])))
24
+ : checkedList.filter(function (item) { return item !== userId; });
25
+ onChange === null || onChange === void 0 ? void 0 : onChange(newUserIds);
26
+ };
27
+ return (React.createElement("div", { className: "electron-seal--personal-sign" }, personalSignList.map(function (item) {
28
+ var signUsers = Array.isArray(item.signUsers) ? item.signUsers : [];
29
+ return (React.createElement("div", { key: item.id, className: "electron-seal--personal-sign__item", title: item.displayText },
30
+ React.createElement("div", { className: "electron-seal--personal-sign__text" }, i18next.t(item.displayText)),
31
+ signUsers.length > 0 && (React.createElement("div", { className: "electron-seal--personal-sign__users" }, signUsers.map(function (user) {
32
+ var checked = checkedList.includes(user.userId);
33
+ return (React.createElement(Checkbox, { key: user.userId, checked: checked, disabled: !isEdit, onChange: function (e) {
34
+ return handleUserChange(user.userId, e.target.checked);
35
+ } }, i18next.t(user.userName)));
36
+ })))));
37
+ })));
38
+ };
39
+ export default ElectronSealPersonalSign;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { SpinProps } from 'antd/es/spin';
3
+ import { IElectronSignaturesItem, ITrackItem } from '../interface';
4
+ interface IProps {
5
+ /** 附件相关数据 */
6
+ records?: IElectronSignaturesItem['fileList'];
7
+ setLoading?: React.Dispatch<React.SetStateAction<SpinProps | undefined>>;
8
+ /** 当前同类型数据的合同id */
9
+ contractId?: IElectronSignaturesItem['contractId'];
10
+ appointSignLocation?: ITrackItem['appointSignLocation'];
11
+ viewSignPage?: ITrackItem['viewSignPage'];
12
+ isEdit?: boolean;
13
+ }
14
+ declare const _default: React.NamedExoticComponent<IProps>;
15
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo } from 'react';
3
+ import { Button } from '../../../index';
4
+ var ElectronSealSetting = function (_a) {
5
+ var records = _a.records, setLoading = _a.setLoading, contractId = _a.contractId, appointSignLocation = _a.appointSignLocation, viewSignPage = _a.viewSignPage, isEdit = _a.isEdit;
6
+ return (React.createElement("div", { className: "electron-seal-setting--wrap" },
7
+ isEdit ? (React.createElement(Button, { type: "link", onClick: function () { return appointSignLocation === null || appointSignLocation === void 0 ? void 0 : appointSignLocation(); } }, i18next.t('指定签署位置'))) : null,
8
+ contractId ? (React.createElement(Button, { type: "link", onClick: viewSignPage }, i18next.t('预览盖章效果'))) : !isEdit ? (React.createElement("div", null, i18next.t('合同id未生成'))) : null));
9
+ };
10
+ export default memo(ElectronSealSetting);
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ modalHandleRef?: any;
4
+ appointSignLocation?: any;
5
+ }
6
+ declare const _default: React.NamedExoticComponent<IProps>;
7
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React, { memo, useImperativeHandle, useState } from 'react';
3
+ import { Modal, Button, Checkbox } from '../../../index';
4
+ /**
5
+ * 最终电子印章验证框
6
+ */
7
+ var LastQysModal = function (props) {
8
+ var modalHandleRef = props.modalHandleRef, appointSignLocation = props.appointSignLocation;
9
+ var _a = useState(), visible = _a[0], setVisible = _a[1];
10
+ var _b = useState([]), unSealList = _b[0], setUnSealList = _b[1];
11
+ var _c = useState([]), needReSealList = _c[0], setNeedReSealList = _c[1];
12
+ useImperativeHandle(modalHandleRef, function () {
13
+ return {
14
+ setInfo: function (visible, info) {
15
+ setVisible(visible);
16
+ setUnSealList(info.unSealList);
17
+ setNeedReSealList(info.unSealList.map(function (item) { return item.sealId; }));
18
+ },
19
+ clear: function () {
20
+ setVisible(false);
21
+ setUnSealList([]);
22
+ setNeedReSealList([]);
23
+ },
24
+ };
25
+ });
26
+ return (React.createElement(Modal, { title: i18next.t('下列印章未确认盖章位置,如不需要请取消勾选。'), width: 800, closable: false, visible: visible, loading: false, onCancel: function () {
27
+ setVisible(false);
28
+ }, footer: React.createElement(React.Fragment, null,
29
+ React.createElement(Button, { type: "primary", onClick: function () {
30
+ appointSignLocation({
31
+ needReSealList: needReSealList,
32
+ });
33
+ } }, needReSealList.length > 0
34
+ ? i18next.t('指定签署位置')
35
+ : i18next.t('确定'))) },
36
+ React.createElement(Checkbox.Group, { defaultValue: unSealList.map(function (item) { return item.sealId; }), value: needReSealList, onChange: function (e) {
37
+ setNeedReSealList(e);
38
+ }, className: "flex-checkbox-group" }, unSealList.map(function (item) {
39
+ return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId, style: { width: '100%', margin: '0 8px' } }, item.sealName));
40
+ }))));
41
+ };
42
+ export default memo(LastQysModal);
@@ -0,0 +1,3 @@
1
+ export default function useCheckedSealInfoList(request: any): {
2
+ getNoSealInfoList: (this: any, data: any) => Promise<unknown>;
3
+ };
@@ -0,0 +1,43 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ /**
3
+ * 验证契约锁是否全部盖章
4
+ */
5
+ import useMemoizedFn from '../../utils/useMemoizedFn';
6
+ import { message } from '../../../index';
7
+ export default function useCheckedSealInfoList(request) {
8
+ var getNoSealInfoList = useMemoizedFn(function (data) {
9
+ return new Promise(function (resolve, reject) {
10
+ request({
11
+ url: '/api/zmdms-resource/seal/query-unconfirmed-position-seal-list',
12
+ data: data,
13
+ method: 'POST',
14
+ })
15
+ .then(function (res) {
16
+ var _a;
17
+ if ((res === null || res === void 0 ? void 0 : res.status) === 200 && ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.code) === 200) {
18
+ var noSealList = res.data.data;
19
+ if (Array.isArray(noSealList) && noSealList.length > 0) {
20
+ resolve(noSealList);
21
+ }
22
+ else {
23
+ resolve([]);
24
+ }
25
+ }
26
+ else {
27
+ message.error(res.data.msg || i18next.t('校验未盖章电子印章接口调用失败!'));
28
+ reject(res.data.msg || i18next.t('校验未盖章电子印章接口调用失败!'));
29
+ }
30
+ })
31
+ .catch(function (error) {
32
+ var _a, _b, _c, _d;
33
+ 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) ||
34
+ i18next.t('校验未盖章电子印章接口调用失败!'));
35
+ reject(((_d = (_c = error === null || error === void 0 ? void 0 : error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.msg) ||
36
+ i18next.t('校验未盖章电子印章接口调用失败!'));
37
+ });
38
+ });
39
+ });
40
+ return {
41
+ getNoSealInfoList: getNoSealInfoList,
42
+ };
43
+ }