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
@@ -61,6 +61,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
61
61
  to[j] = from[i];
62
62
  return to;
63
63
  };
64
+ import i18next from 'ztxkutils/dist/i18next';
64
65
  /**
65
66
  * @author 陈亚雄
66
67
  * @description 电子签章组件
@@ -271,12 +272,12 @@ var Sinatures = function (_a) {
271
272
  setElectronicList(((_c = (_b = (_a = res.data.data) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.sealInfoList) || []);
272
273
  }
273
274
  else {
274
- message.error(res.data.msg || '出错了');
275
+ message.error(res.data.msg || i18next.t('出错了'));
275
276
  }
276
277
  })
277
278
  .catch(function (error) {
278
279
  var _a, _b;
279
- 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) || '请求失败!');
280
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
280
281
  });
281
282
  }, [deptId, flowId, request]);
282
283
  /** 获取一级责任人名字 */
@@ -291,7 +292,7 @@ var Sinatures = function (_a) {
291
292
  setYjzrr(((_b = res.data.data) === null || _b === void 0 ? void 0 : _b.userName) || '');
292
293
  }
293
294
  else {
294
- message.error(((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.msg) || '出错了');
295
+ message.error(((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.msg) || i18next.t('出错了'));
295
296
  }
296
297
  })
297
298
  .catch(function (error) {
@@ -313,12 +314,12 @@ var Sinatures = function (_a) {
313
314
  }); }));
314
315
  }
315
316
  else {
316
- message.error(res.data.msg || '出错了');
317
+ message.error(res.data.msg || i18next.t('出错了'));
317
318
  }
318
319
  })
319
320
  .catch(function (error) {
320
321
  var _a, _b;
321
- 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) || '请求失败!');
322
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
322
323
  });
323
324
  }, [flowId, request]);
324
325
  useEffect(function () {
@@ -352,7 +353,9 @@ var Sinatures = function (_a) {
352
353
  records === null || records === void 0 ? void 0 : records.forEach(function (item, index) {
353
354
  if (!!item.isElectronicSeal) {
354
355
  if (!item.attachId && !isError) {
355
- message.error("\u7B2C" + (index + 1) + "\u884C\u9644\u4EF6\u6CA1\u6709\u9644\u4EF6id\uFF0C\u65E0\u6CD5\u76D6\u7AE0\uFF01");
356
+ message.error(i18next.t('第{{slot0}}行附件没有附件id,无法盖章!', {
357
+ slot0: index + 1,
358
+ }));
356
359
  isError = true;
357
360
  }
358
361
  else {
@@ -364,7 +367,7 @@ var Sinatures = function (_a) {
364
367
  return;
365
368
  }
366
369
  if (innerElectronicSeal.length === 0) {
367
- message.info('请勾选电子印章!');
370
+ message.info(i18next.t('请勾选电子印章!'));
368
371
  return;
369
372
  }
370
373
  setLoading(true);
@@ -432,13 +435,13 @@ var Sinatures = function (_a) {
432
435
  }
433
436
  }
434
437
  else {
435
- message.error(res.data.msg || '出错了');
438
+ message.error(res.data.msg || i18next.t('出错了'));
436
439
  }
437
440
  })
438
441
  .catch(function (error) {
439
442
  var _a, _b;
440
443
  setLoading(false);
441
- 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) || '请求失败!');
444
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
442
445
  });
443
446
  };
444
447
  /** 查询未确认盖章位置的印章信息列表 */
@@ -472,7 +475,7 @@ var Sinatures = function (_a) {
472
475
  .catch(function (error) {
473
476
  var _a, _b;
474
477
  resolve(false);
475
- 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) || '请求失败!');
478
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
476
479
  });
477
480
  });
478
481
  };
@@ -491,21 +494,21 @@ var Sinatures = function (_a) {
491
494
  window.open(res.data.data.viewUrl);
492
495
  }
493
496
  else {
494
- message.error(res.data.msg || '出错了');
497
+ message.error(res.data.msg || i18next.t('出错了'));
495
498
  }
496
499
  })
497
500
  .catch(function (error) {
498
501
  var _a, _b;
499
- 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) || '请求失败!');
502
+ message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
500
503
  });
501
504
  }
502
505
  else {
503
- message.error('缺少合同id');
506
+ message.error(i18next.t('缺少合同id'));
504
507
  }
505
508
  };
506
509
  var columns = [
507
510
  {
508
- title: '序号',
511
+ title: i18next.t('序号'),
509
512
  key: 'orderNum',
510
513
  dataIndex: 'orderNum',
511
514
  width: 62,
@@ -513,14 +516,14 @@ var Sinatures = function (_a) {
513
516
  render: function (text, record, index) { return "" + (index + 1); },
514
517
  },
515
518
  {
516
- title: '附件',
519
+ title: i18next.t('附件'),
517
520
  key: 'attach',
518
521
  dataIndex: 'attach',
519
522
  children: __spreadArray(__spreadArray([], (isOnlyQj
520
523
  ? []
521
524
  : [
522
525
  {
523
- title: '类型',
526
+ title: i18next.t('类型'),
524
527
  key: 'attachTypeName',
525
528
  dataIndex: 'attachTypeName',
526
529
  width: 100,
@@ -529,11 +532,11 @@ var Sinatures = function (_a) {
529
532
  {
530
533
  title: function () {
531
534
  return (React.createElement("div", { className: "seal-file-upload" },
532
- React.createElement("span", null, "\u540D\u79F0"),
535
+ React.createElement("span", null, i18next.t('名称')),
533
536
  React.createElement("span", null, isUpload && (React.createElement(Upload, { apiBaseUrl: ZT_API_BASEURL, method: "post", showTable: false, showTip: false, headers: {
534
537
  'Zmdms-Auth': authToken,
535
538
  }, data: uploadData, authToken: authToken, callback: uploadCallbackFn, originFileList: originFileList, style: { margin: 0 } },
536
- React.createElement(Button, { type: "link" }, "\u6DFB\u52A0\u9644\u4EF6")))),
539
+ React.createElement(Button, { type: "link" }, i18next.t('添加附件'))))),
537
540
  isUpload && (React.createElement(Button, { type: "link", onClick: function () {
538
541
  setIsOnlyQj(true);
539
542
  var onlyQjRecords = [
@@ -545,7 +548,7 @@ var Sinatures = function (_a) {
545
548
  onSigValuesChange(sigValuesChange('fileList', onlyQjRecords));
546
549
  }
547
550
  setRecords(onlyQjRecords);
548
- } }, "\u4EC5\u9700\u8981\u7FA4\u6770\u5370\u7AE0"))));
551
+ } }, i18next.t('仅需要群杰印章')))));
549
552
  },
550
553
  key: 'attachId',
551
554
  dataIndex: 'attachId',
@@ -556,7 +559,9 @@ var Sinatures = function (_a) {
556
559
  var deleteFile = function () {
557
560
  var fileName = record === null || record === void 0 ? void 0 : record.attachName;
558
561
  if (!fileName) {
559
- console.error('没有找到需要删除的文件名!', "serverFileName \u4E3A " + fileName);
562
+ console.error(i18next.t('没有找到需要删除的文件名!'), i18next.t('serverFileName 为 {{fileName}}', {
563
+ fileName: fileName,
564
+ }));
560
565
  return;
561
566
  }
562
567
  setTbLoading(true);
@@ -580,7 +585,7 @@ var Sinatures = function (_a) {
580
585
  return getNewRecord_1(preRecords);
581
586
  });
582
587
  setContractId(null);
583
- message.success('文件删除成功!');
588
+ message.success(i18next.t('文件删除成功!'));
584
589
  }
585
590
  else {
586
591
  setTbLoading(false);
@@ -601,37 +606,37 @@ var Sinatures = function (_a) {
601
606
  React.createElement(AttachOperation, { ZT_API_BASEURL: ZT_API_BASEURL, ZT_FILE_BASEURL: ZT_FILE_BASEURL, token: authToken, attachId: record === null || record === void 0 ? void 0 : record.attachId, attachName: record === null || record === void 0 ? void 0 : record.attachName, attachSize: record === null || record === void 0 ? void 0 : record.attachSize, showDeleteBtn: showDeleteBtn, onDeleteFile: deleteFile })));
602
607
  }
603
608
  else {
604
- return React.createElement(React.Fragment, null, "\u7FA4\u6770");
609
+ return React.createElement(React.Fragment, null, i18next.t('群杰'));
605
610
  }
606
611
  },
607
612
  },
608
613
  ]),
609
614
  },
610
615
  {
611
- title: '合同',
616
+ title: i18next.t('合同'),
612
617
  key: 'needDg',
613
618
  dataIndex: 'needDg',
614
619
  children: [
615
620
  {
616
- title: '合同比对模板',
621
+ title: i18next.t('合同比对模板'),
617
622
  key: 'templateAttachId',
618
623
  dataIndex: 'templateAttachId',
619
624
  width: 150,
620
625
  render: function (text, record, index) {
621
- return record.attachTypeName === '合同本身' ? (React.createElement(TemplateAttach, { record: record, index: index, openCustomerModalHandle: openCustomerModalHandle, isEdit: isEdit })) : ('');
626
+ return record.attachTypeName === i18next.t('合同本身') ? (React.createElement(TemplateAttach, { record: record, index: index, openCustomerModalHandle: openCustomerModalHandle, isEdit: isEdit })) : ('');
622
627
  },
623
628
  },
624
629
  {
625
- title: '合同比对结果',
630
+ title: i18next.t('合同比对结果'),
626
631
  key: 'compareAttachId',
627
632
  dataIndex: 'compareAttachId',
628
633
  width: 150,
629
634
  render: function (text, record, index) {
630
- return record.attachTypeName === '合同本身' ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
635
+ return record.attachTypeName === i18next.t('合同本身') ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
631
636
  },
632
637
  },
633
638
  {
634
- title: '保存为模板',
639
+ title: i18next.t('保存为模板'),
635
640
  key: 'templateAttachId',
636
641
  dataIndex: 'templateAttachId',
637
642
  width: 110,
@@ -644,7 +649,7 @@ var Sinatures = function (_a) {
644
649
  ],
645
650
  },
646
651
  {
647
- title: isEdit ? '添加水印' : '水印',
652
+ title: isEdit ? i18next.t('添加水印') : i18next.t('水印'),
648
653
  key: 'isWatermark',
649
654
  dataIndex: 'isWatermark',
650
655
  width: 60,
@@ -655,13 +660,13 @@ var Sinatures = function (_a) {
655
660
  },
656
661
  },
657
662
  {
658
- title: '电子印章',
663
+ title: i18next.t('电子印章'),
659
664
  key: 'needQys',
660
665
  dataIndex: 'needQys',
661
666
  width: 610,
662
667
  children: [
663
668
  {
664
- title: '盖电子印章',
669
+ title: i18next.t('盖电子印章'),
665
670
  key: 'isElectronicSeal',
666
671
  dataIndex: 'isElectronicSeal',
667
672
  width: 110,
@@ -672,14 +677,16 @@ var Sinatures = function (_a) {
672
677
  },
673
678
  },
674
679
  {
675
- title: '选择电子印章',
680
+ title: i18next.t('选择电子印章'),
676
681
  key: 'electronicSeal',
677
682
  dataIndex: 'electronicSeal',
678
683
  width: 360,
679
684
  render: function (value, row, index) {
680
685
  // 是否有勾选加盖电子印章
681
686
  var hasElectronicSeal = records === null || records === void 0 ? void 0 : records.some(function (item) { return !!item.isElectronicSeal; });
682
- var _label = "\u662F\u5426\u52A0\u76D6\u7ECF\u6D4E\u8D23\u4EFB\u4EBA\u624B\u7B7E\u7AE0" + (yjzrr ? "\uFF08\u7ECF\u6D4E\u8D23\u4EFB\u4EBA: " + yjzrr + "\uFF09" : '');
687
+ var _label = i18next.t('是否加盖经济责任人手签章{{slot0}}', {
688
+ slot0: yjzrr ? "\uFF08\u7ECF\u6D4E\u8D23\u4EFB\u4EBA: " + yjzrr + "\uFF09" : '',
689
+ });
683
690
  var obj = {
684
691
  children: (React.createElement("div", { style: { height: '100%' } },
685
692
  React.createElement("div", { style: __assign({ height: '36px', borderBottom: '1px solid #EBEBEB', marginBottom: '5px', paddingLeft: '8px', lineHeight: '36px' }, (yjzrr ? {} : { display: 'none' })), title: _label },
@@ -698,7 +705,7 @@ var Sinatures = function (_a) {
698
705
  },
699
706
  },
700
707
  {
701
- title: '电子印章设置',
708
+ title: i18next.t('电子印章设置'),
702
709
  key: 'setElectronicSeal',
703
710
  dataIndex: 'setElectronicSeal',
704
711
  width: 180,
@@ -712,8 +719,8 @@ var Sinatures = function (_a) {
712
719
  } },
713
720
  React.createElement(Button, { type: "link", style: __assign({}, (checkSealVisible && isEdit
714
721
  ? {}
715
- : { display: 'none' })), size: "small", loading: loading, onClick: checkSealFn }, "\u6307\u5B9A\u7B7E\u7F72\u4F4D\u7F6E"),
716
- React.createElement(Button, { type: "link", style: __assign({}, (contractId ? {} : { display: 'none' })), size: "small", onClick: viewSealPageFn }, "\u9884\u89C8\u76D6\u7AE0\u6548\u679C"))) : (React.createElement(React.Fragment, null));
722
+ : { display: 'none' })), size: "small", loading: loading, onClick: checkSealFn }, i18next.t('指定签署位置')),
723
+ React.createElement(Button, { type: "link", style: __assign({}, (contractId ? {} : { display: 'none' })), size: "small", onClick: viewSealPageFn }, i18next.t('预览盖章效果')))) : (React.createElement(React.Fragment, null));
717
724
  };
718
725
  var obj = {
719
726
  children: React.createElement(Comp, null),
@@ -726,14 +733,14 @@ var Sinatures = function (_a) {
726
733
  ],
727
734
  },
728
735
  {
729
- title: function () { return (React.createElement("div", { style: { width: '100%', textAlign: 'center' } }, "\u7FA4\u6770\u5370\u7AE0")); },
736
+ title: function () { return (React.createElement("div", { style: { width: '100%', textAlign: 'center' } }, i18next.t('群杰印章'))); },
730
737
  key: 'qunJ',
731
738
  dataIndex: 'qunJ',
732
739
  width: 620,
733
740
  children: [
734
741
  {
735
742
  title: function () {
736
- return (React.createElement(Checkbox, { checked: checked, disabled: !isEdit, onChange: function (e) { return needQjSealFn(e); } }, "\u7FA4\u6770\u5370\u7AE0-\u7528\u5370\u7533\u8BF7"));
743
+ return (React.createElement(Checkbox, { checked: checked, disabled: !isEdit, onChange: function (e) { return needQjSealFn(e); } }, i18next.t('群杰印章-用印申请')));
737
744
  },
738
745
  key: 'qunjSeal',
739
746
  dataIndex: 'qunjSeal',
@@ -862,7 +869,7 @@ var Sinatures = function (_a) {
862
869
  }
863
870
  }
864
871
  if (filelist.every(function (item) { return item.status === 'error'; })) {
865
- message.error('文件上传失败!');
872
+ message.error(i18next.t('文件上传失败!'));
866
873
  }
867
874
  }, [records, setRecords, sigValuesChange]);
868
875
  /** 群杰印章修改 */
@@ -875,18 +882,18 @@ var Sinatures = function (_a) {
875
882
  if (typeof contractNum === 'number' && showContranctNum) {
876
883
  if (totalSealNum > contractNum * 4) {
877
884
  setIsTotalSealNumTooMore(true);
878
- message.warning('您的用印次数远超超过合理次数范围,请修改。');
885
+ message.warning(i18next.t('您的用印次数远超超过合理次数范围,请修改。'));
879
886
  return;
880
887
  }
881
888
  else {
882
889
  setIsTotalSealNumTooMore(false);
883
890
  }
884
891
  if (totalSealNum > contractNum * 3) {
885
- message.warning('您的用印次数超过合理次数范围,请慎重确认!');
892
+ message.warning(i18next.t('您的用印次数超过合理次数范围,请慎重确认!'));
886
893
  return;
887
894
  }
888
895
  if (totalSealNum > contractNum * 2) {
889
- message.warning('您的用印次数已超过2倍合同数量,请确认用印数量是否正确。');
896
+ message.warning(i18next.t('您的用印次数已超过2倍合同数量,请确认用印数量是否正确。'));
890
897
  return;
891
898
  }
892
899
  }
@@ -987,10 +994,10 @@ var Sinatures = function (_a) {
987
994
  !isSure &&
988
995
  !isOnlyQj) {
989
996
  Modal.confirm({
990
- title: '当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?',
991
- okText: '是',
997
+ title: i18next.t('当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?'),
998
+ okText: i18next.t('是'),
992
999
  okType: 'danger',
993
- cancelText: '否',
1000
+ cancelText: i18next.t('否'),
994
1001
  onOk: function () {
995
1002
  setIsSure(true);
996
1003
  },
@@ -1007,30 +1014,32 @@ var Sinatures = function (_a) {
1007
1014
  (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) === 0 &&
1008
1015
  hasElectronicSeal &&
1009
1016
  !isOnlyQj) {
1010
- message.warning('请勾选加盖电子印章所需要的印章列表!');
1017
+ message.warning(i18next.t('请勾选加盖电子印章所需要的印章列表!'));
1011
1018
  return [2 /*return*/, false];
1012
1019
  }
1013
1020
  // 超过4倍禁止提交审批
1014
1021
  if (isEdit && needQj && isTotalSealNumTooMore && showContranctNum) {
1015
- message.warning('您的用印次数远超超过合理次数范围,请修改。');
1022
+ message.warning(i18next.t('您的用印次数远超超过合理次数范围,请修改。'));
1016
1023
  return [2 /*return*/, false];
1017
1024
  }
1018
1025
  // 没有确认盖章
1019
1026
  if (isEdit && needQys && hasElectronicSeal && !contractId && !isOnlyQj) {
1020
- message.warning('请点击确认盖章按钮,确认盖章位置后方可提交!');
1027
+ message.warning(i18next.t('请点击确认盖章按钮,确认盖章位置后方可提交!'));
1021
1028
  return [2 /*return*/, false];
1022
1029
  }
1023
1030
  if (isEdit && checked && needQj) {
1024
1031
  // 合同份数为空
1025
1032
  if (!(innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.contranctNum) && showContranctNum) {
1026
- message.warning('请填写合同份数!');
1033
+ message.warning(i18next.t('请填写合同份数!'));
1027
1034
  return [2 /*return*/, false];
1028
1035
  }
1029
1036
  // 勾选的群杰印章 没有填用印次数
1030
1037
  if (((_a = innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) > 0) {
1031
1038
  innerQunjSeal.details.forEach(function (item) {
1032
1039
  if (!item.sealCount) {
1033
- message.warning("\u8BF7\u586B\u5199" + item.sealName + " \u7684\u7528\u5370\u6B21\u6570\uFF01");
1040
+ message.warning(i18next.t('请填写{{slot0}} 的用印次数!', {
1041
+ slot0: item.sealName,
1042
+ }));
1034
1043
  }
1035
1044
  });
1036
1045
  if (innerQunjSeal.details.filter(function (item) { return !item.sealCount; }).length > 0) {
@@ -1038,7 +1047,7 @@ var Sinatures = function (_a) {
1038
1047
  }
1039
1048
  }
1040
1049
  else {
1041
- message.warning('请选择群杰用印!');
1050
+ message.warning(i18next.t('请选择群杰用印!'));
1042
1051
  return [2 /*return*/, false];
1043
1052
  }
1044
1053
  }
@@ -1074,12 +1083,14 @@ var Sinatures = function (_a) {
1074
1083
  };
1075
1084
  return (React.createElement(React.Fragment, null,
1076
1085
  isEdit ? (React.createElement(Table, { columns: columnsLast, rowKey: "attachId", loading: tbloading, dataSource: records, scroll: { x: 'max-content', y: 400 } })) : (React.createElement(DetailTable, __assign({}, detail, { batchDownloadZipName: batchDownloadZipName }))),
1077
- React.createElement(Modal, { title: "\u4E0B\u5217\u5370\u7AE0\u672A\u786E\u8BA4\u76D6\u7AE0\u4F4D\u7F6E\uFF0C\u5982\u4E0D\u9700\u8981\u8BF7\u53D6\u6D88\u52FE\u9009\u3002", width: 800, closable: false, visible: visible, loading: false, onCancel: function () {
1086
+ React.createElement(Modal, { title: i18next.t('下列印章未确认盖章位置,如不需要请取消勾选。'), width: 800, closable: false, visible: visible, loading: false, onCancel: function () {
1078
1087
  setVisible(false);
1079
1088
  }, footer: React.createElement(React.Fragment, null,
1080
1089
  React.createElement(Button, { type: "primary", onClick: function () {
1081
1090
  checkSealFn('needReSeal');
1082
- } }, needReSealList.length > 0 ? '指定签署位置' : '确定')) },
1091
+ } }, needReSealList.length > 0
1092
+ ? i18next.t('指定签署位置')
1093
+ : i18next.t('确定'))) },
1083
1094
  React.createElement(Checkbox.Group, { defaultValue: unSealList.map(function (item) { return item.sealId; }), value: needReSealList, onChange: needReSealChange, className: "flex-checkbox-group" }, unSealList.map(function (item) {
1084
1095
  return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId, style: { width: '100%', margin: '0 8px' } }, item.sealName));
1085
1096
  })))));
@@ -1,3 +1,4 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
1
2
  import React, { memo, useCallback } from 'react';
2
3
  import { Drawer, Button, Sortable } from '../../../index';
3
4
  import { DndProvider } from 'react-dnd';
@@ -22,10 +23,10 @@ var SortDrawer = function (_a) {
22
23
  }, [onSure, dynamicList]);
23
24
  /**底部按钮 */
24
25
  var renderFooter = function () { return (React.createElement(React.Fragment, null,
25
- React.createElement(Button, { type: "default", onClick: onClose }, "\u53D6\u6D88"),
26
- React.createElement(Button, { type: "default", onClick: onReset }, "\u91CD\u7F6E"),
27
- React.createElement(Button, { type: "primary", onClick: onSureHandle }, "\u786E\u5B9A"))); };
28
- return (React.createElement(Drawer, { className: "sort-drawer", title: "\u5B50\u9879\u6392\u5E8F", placement: "right", visible: visible, closable: false, maskClosable: false, footer: renderFooter() },
26
+ React.createElement(Button, { type: "default", onClick: onClose }, i18next.t('取消')),
27
+ React.createElement(Button, { type: "default", onClick: onReset }, i18next.t('重置')),
28
+ React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('确定')))); };
29
+ return (React.createElement(Drawer, { className: "sort-drawer", title: i18next.t('子项排序'), placement: "right", visible: visible, closable: false, maskClosable: false, footer: renderFooter() },
29
30
  React.createElement(DndProvider, { backend: HTML5Backend, context: window }, dynamicList.map(function (item, index) { return (React.createElement(Sortable, { key: item.sortKey, type: "sort-list-drawer", index: index, onMoveItem: onMoveItem }, item.sortTitle)); }))));
30
31
  };
31
32
  export default memo(SortDrawer);
@@ -1,3 +1,4 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
1
2
  /**
2
3
  * @author zyh
3
4
  * @description 客户样板
@@ -23,24 +24,24 @@ var Template = function (_a) {
23
24
  var _d = useState([]), data = _d[0], setData = _d[1];
24
25
  var columns = [
25
26
  {
26
- title: '序号',
27
+ title: i18next.t('序号'),
27
28
  width: 52,
28
29
  render: function (text, record, index) { return "" + (index + 1); },
29
30
  },
30
31
  {
31
- title: '创建时间',
32
+ title: i18next.t('创建时间'),
32
33
  dataIndex: 'createTime',
33
34
  },
34
35
  {
35
- title: '合同号',
36
+ title: i18next.t('合同号'),
36
37
  dataIndex: 'contractNo',
37
38
  },
38
39
  {
39
- title: '创建人',
40
+ title: i18next.t('创建人'),
40
41
  dataIndex: 'createUserName',
41
42
  },
42
43
  {
43
- title: '样板号',
44
+ title: i18next.t('样板号'),
44
45
  dataIndex: 'crNo',
45
46
  },
46
47
  ];
@@ -87,21 +88,21 @@ var Template = function (_a) {
87
88
  }
88
89
  }
89
90
  else {
90
- message.error(res.data.msg || '出错了');
91
+ message.error(res.data.msg || i18next.t('出错了'));
91
92
  }
92
93
  });
93
94
  }, [request, memberId, deptId, form]);
94
- return (React.createElement(Modal, { visible: visible, title: "\u9009\u62E9\u5BA2\u6237\u6837\u677F", width: "70%", maskClosable: false, loading: false, onCancel: openOrCloseModal, onOk: onSure },
95
+ return (React.createElement(Modal, { visible: visible, title: i18next.t('选择客户样板'), width: "70%", maskClosable: false, loading: false, onCancel: openOrCloseModal, onOk: onSure },
95
96
  React.createElement(Form, { name: "contract-compare", form: form },
96
97
  React.createElement(Row, null,
97
98
  React.createElement(Col, { span: 8 },
98
- React.createElement(Form.Item, { name: "Customer", label: "\u5BA2\u5546\u540D\u79F0" },
99
+ React.createElement(Form.Item, { name: "Customer", label: i18next.t('客商名称') },
99
100
  React.createElement(Input, { bordered: false, disabled: true }))),
100
101
  React.createElement(Col, { span: 8 },
101
- React.createElement(Form.Item, { name: "company", label: "\u516C\u53F8\u540D\u79F0" },
102
+ React.createElement(Form.Item, { name: "company", label: i18next.t('公司名称') },
102
103
  React.createElement(Input, { bordered: false, disabled: true }))),
103
104
  React.createElement(Col, { span: 8 },
104
- React.createElement(Form.Item, { name: "departMent", label: "\u90E8\u95E8\u540D\u79F0" },
105
+ React.createElement(Form.Item, { name: "departMent", label: i18next.t('部门名称') },
105
106
  React.createElement(Input, { bordered: false, disabled: true })))),
106
107
  React.createElement(Table, { rowSelection: rowSelection, columns: columns, dataSource: data, rowKey: "id", scroll: { x: undefined } }))));
107
108
  };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IElectronSignaturesProps } from './interface';
3
+ interface IElectronSignaturesContext {
4
+ isQjVerifyCode?: boolean;
5
+ isNewQys?: boolean;
6
+ }
7
+ export declare const ElectronSignaturesContext: React.Context<IElectronSignaturesContext>;
8
+ declare const _default: React.NamedExoticComponent<IElectronSignaturesProps>;
9
+ export default _default;