ztxkui 4.2.18-9 → 4.2.18-91

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 (259) hide show
  1. package/dist/App.js +315 -291
  2. package/dist/Demo.js +58 -42
  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 +74 -70
  14. package/dist/DemoCom/TableDemo1.js +34 -33
  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 +103 -29
  21. package/dist/TableDemo/EditableTable.js +177 -91
  22. package/dist/TableDemo/ModalTable.js +25 -24
  23. package/dist/TableDemo/ProEditableTable.d.ts +21 -0
  24. package/dist/TableDemo/ProEditableTable.js +483 -0
  25. package/dist/TableDemo/data.d.ts +15 -0
  26. package/dist/TableDemo/data.js +44 -11
  27. package/dist/TableDemo/index.js +5 -4
  28. package/dist/TreeDemo.js +8 -7
  29. package/dist/TreeSelectDemo.js +10 -7
  30. package/dist/UI/Form/index.d.ts +3 -0
  31. package/dist/UI/Form/index.js +346 -0
  32. package/dist/UI/index.d.ts +2 -0
  33. package/dist/UI/index.js +10 -0
  34. package/dist/UploadDemo.js +12 -17
  35. package/dist/components/Button/button.js +3 -2
  36. package/dist/components/Collapse/collapse.js +2 -1
  37. package/dist/components/EnhanceSelect/index.d.ts +5 -1
  38. package/dist/components/EnhanceSelect/index.js +179 -32
  39. package/dist/components/EnhanceTree/index.js +4 -3
  40. package/dist/components/EnhanceTreeSelect/index.js +11 -5
  41. package/dist/components/Export/export.js +5 -4
  42. package/dist/components/Input/input.d.ts +3 -0
  43. package/dist/components/Input/input.js +53 -3
  44. package/dist/components/InputNumber/input-number.js +3 -2
  45. package/dist/components/NumberCase/index.js +9 -7
  46. package/dist/components/Print/print.js +4 -3
  47. package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
  48. package/dist/components/PrintContainer/PrintModal.js +4 -3
  49. package/dist/components/PrintContainer/handle.d.ts +2 -4
  50. package/dist/components/PrintContainer/handle.js +3 -2
  51. package/dist/components/PrintContainer/lodop.js +2 -1
  52. package/dist/components/PrintContainer/print-container.js +74 -73
  53. package/dist/components/PrintContainer/service.js +5 -4
  54. package/dist/components/ProForm/hooks.d.ts +23 -0
  55. package/dist/components/ProForm/hooks.js +209 -0
  56. package/dist/components/ProForm/index.d.ts +6 -0
  57. package/dist/components/ProForm/index.js +101 -0
  58. package/dist/components/ProForm/interface.d.ts +169 -0
  59. package/dist/components/ProForm/interface.js +1 -0
  60. package/dist/components/ProForm/item.d.ts +13 -0
  61. package/dist/components/ProForm/item.js +221 -0
  62. package/dist/components/ProForm/items.d.ts +5 -0
  63. package/dist/components/ProForm/items.js +36 -0
  64. package/dist/components/ProForm/search-drawer.d.ts +12 -0
  65. package/dist/components/ProForm/search-drawer.js +202 -0
  66. package/dist/components/ProForm/setting.d.ts +5 -0
  67. package/dist/components/ProForm/setting.js +13 -0
  68. package/dist/components/ProFormList/index.d.ts +12 -0
  69. package/dist/components/ProFormList/index.js +34 -0
  70. package/dist/components/ProTable/hooks.d.ts +28 -0
  71. package/dist/components/ProTable/hooks.js +279 -0
  72. package/dist/components/ProTable/index.d.ts +8 -0
  73. package/dist/components/ProTable/index.js +77 -0
  74. package/dist/components/ProTable/interface.d.ts +51 -0
  75. package/dist/components/ProTable/interface.js +1 -0
  76. package/dist/components/RangePicker/range-picker.js +5 -2
  77. package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
  78. package/dist/components/SortableCancel/sortable-cancel.js +2 -2
  79. package/dist/components/Table/components/FillDown.d.ts +8 -0
  80. package/dist/components/Table/components/FillDown.js +11 -0
  81. package/dist/components/Table/components/FilterDropdown.d.ts +15 -0
  82. package/dist/components/Table/components/FilterDropdown.js +93 -0
  83. package/dist/components/Table/constants.d.ts +2 -0
  84. package/dist/components/Table/constants.js +2 -0
  85. package/dist/components/Table/hooks/useColumns.d.ts +25 -8
  86. package/dist/components/Table/hooks/useColumns.js +704 -180
  87. package/dist/components/Table/hooks/useDropRef.js +4 -2
  88. package/dist/components/Table/hooks/useInnerPagination.js +1 -0
  89. package/dist/components/Table/hooks/useSelectSubtotal.d.ts +4 -0
  90. package/dist/components/Table/hooks/useSelectSubtotal.js +182 -0
  91. package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
  92. package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
  93. package/dist/components/Table/index.d.ts +11 -0
  94. package/dist/components/Table/table-adddel-column.d.ts +8 -5
  95. package/dist/components/Table/table-adddel-column.js +16 -5
  96. package/dist/components/Table/table-dynamic.js +165 -18
  97. package/dist/components/Table/table-enhance-cell.d.ts +7 -3
  98. package/dist/components/Table/table-enhance-cell.js +214 -109
  99. package/dist/components/Table/table-enhance-row.d.ts +4 -4
  100. package/dist/components/Table/table-enhance-row.js +10 -11
  101. package/dist/components/Table/table-headTooltip.d.ts +6 -0
  102. package/dist/components/Table/table-headTooltip.js +13 -0
  103. package/dist/components/Table/table-resizable-title.d.ts +4 -5
  104. package/dist/components/Table/table-resizable-title.js +33 -6
  105. package/dist/components/Table/table-sort.d.ts +11 -0
  106. package/dist/components/Table/table-sort.js +66 -0
  107. package/dist/components/Table/table.d.ts +30 -4
  108. package/dist/components/Table/table.js +526 -180
  109. package/dist/components/Table/utils/dom.d.ts +26 -0
  110. package/dist/components/Table/utils/dom.js +123 -0
  111. package/dist/components/Table/utils/filterHandle.d.ts +1 -0
  112. package/dist/components/Table/utils/filterHandle.js +66 -0
  113. package/dist/components/Table/utils/getSummaryData.d.ts +2 -1
  114. package/dist/components/Table/utils/getSummaryData.js +282 -25
  115. package/dist/components/Table/utils/shallowEqual.d.ts +2 -0
  116. package/dist/components/Table/utils/shallowEqual.js +35 -0
  117. package/dist/components/Table/utils/validate.d.ts +1 -1
  118. package/dist/components/Table/utils/validate.js +30 -11
  119. package/dist/components/TreeSelect/index.d.ts +15 -0
  120. package/dist/components/TreeSelect/index.js +29 -0
  121. package/dist/components/Upload/upload-table.js +31 -26
  122. package/dist/components/Upload/upload.js +23 -18
  123. package/dist/components/Upload/utils.js +11 -10
  124. package/dist/components/UploadSingle/upload-single.js +5 -4
  125. package/dist/components/Watermark/index.d.ts +2 -0
  126. package/dist/components/Watermark/index.js +2 -0
  127. package/dist/components/Watermark/interface.d.ts +20 -0
  128. package/dist/components/Watermark/interface.js +1 -0
  129. package/dist/components/Watermark/utils.d.ts +1 -0
  130. package/dist/components/Watermark/utils.js +70 -0
  131. package/dist/components/Watermark/water.d.ts +50 -0
  132. package/dist/components/Watermark/water.js +66 -0
  133. package/dist/components/Watermark/watermark-div.d.ts +4 -0
  134. package/dist/components/Watermark/watermark-div.js +41 -0
  135. package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
  136. package/dist/components/Watermark/watermark-shadow.js +116 -0
  137. package/dist/components/Watermark/watermark.d.ts +3 -0
  138. package/dist/components/Watermark/watermark.js +102 -0
  139. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
  140. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
  141. package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
  142. package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
  143. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
  144. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
  145. package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
  146. package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
  147. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
  148. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
  149. package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
  150. package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
  151. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
  152. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
  153. package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
  154. package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
  155. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
  156. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
  157. package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
  158. package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
  159. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
  160. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
  161. package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
  162. package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
  163. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
  164. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
  165. package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
  166. package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
  167. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
  168. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
  169. package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
  170. package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
  171. package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
  172. package/dist/components/WorkflowPrintContainer/images.js +2 -0
  173. package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
  174. package/dist/components/WorkflowPrintContainer/index.js +2 -0
  175. package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
  176. package/dist/components/WorkflowPrintContainer/service.js +101 -0
  177. package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
  178. package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
  179. package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
  180. package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
  181. package/dist/components/business/Analyse/index.js +12 -11
  182. package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
  183. package/dist/components/business/CodeQuery/component/TableList.js +5 -4
  184. package/dist/components/business/CodeQuery/hooks.js +2 -1
  185. package/dist/components/business/CodeQuery/index.js +2 -1
  186. package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
  187. package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
  188. package/dist/components/business/Common/UserInfo/index.js +7 -4
  189. package/dist/components/business/Common/UserPassword/index.d.ts +1 -0
  190. package/dist/components/business/Common/UserPassword/index.js +39 -18
  191. package/dist/components/business/Common/validatePassword.d.ts +1 -1
  192. package/dist/components/business/Common/validatePassword.js +17 -7
  193. package/dist/components/business/DetailCard/index.js +7 -6
  194. package/dist/components/business/DetailHeader/index.js +7 -6
  195. package/dist/components/business/DetailList/index.js +5 -4
  196. package/dist/components/business/DgColumns/index.js +12 -11
  197. package/dist/components/business/ExportButton/index.js +6 -5
  198. package/dist/components/business/Footer/index.js +4 -1
  199. package/dist/components/business/GridList/item.d.ts +1 -1
  200. package/dist/components/business/List/item.d.ts +1 -1
  201. package/dist/components/business/NewList/item.d.ts +1 -1
  202. package/dist/components/business/NewList/item.js +1 -1
  203. package/dist/components/business/OperationBtnGroup/index.js +17 -16
  204. package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
  205. package/dist/components/business/SearchContainer/hooks/useToggle.js +5 -4
  206. package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
  207. package/dist/components/business/SearchContainer/record-common-item.js +82 -0
  208. package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
  209. package/dist/components/business/SearchContainer/record-common-list.js +64 -0
  210. package/dist/components/business/SearchContainer/search-container.d.ts +13 -0
  211. package/dist/components/business/SearchContainer/search-container.js +32 -3
  212. package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
  213. package/dist/components/business/SearchContainer/search-drawer.js +139 -13
  214. package/dist/components/business/SearchContainer/search-item.js +33 -2
  215. package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
  216. package/dist/components/business/SearchContainer/search-left.js +11 -3
  217. package/dist/components/business/SearchContainer/search-right.js +23 -4
  218. package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +15 -0
  219. package/dist/components/business/SearchContainer/useRecordCommonInit.js +242 -0
  220. package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +7 -0
  221. package/dist/components/business/SearchContainer/useRecordCommonSearch.js +140 -0
  222. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +31 -0
  223. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
  224. package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
  225. package/dist/components/business/Signatures/components/CompareResult.js +7 -6
  226. package/dist/components/business/Signatures/components/DetailTable.js +37 -34
  227. package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
  228. package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
  229. package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
  230. package/dist/components/business/Signatures/index.js +64 -53
  231. package/dist/components/business/SortList/sort-drawer.js +5 -4
  232. package/dist/components/business/Template/index.js +11 -10
  233. package/dist/components/utils/MyStorage.d.ts +36 -0
  234. package/dist/components/utils/MyStorage.js +120 -0
  235. package/dist/components/utils/ZtxkContext.d.ts +34 -0
  236. package/dist/components/utils/ZtxkContext.js +13 -0
  237. package/dist/components/utils/fetch.d.ts +10 -0
  238. package/dist/components/utils/fetch.js +119 -0
  239. package/dist/components/utils/index.d.ts +1 -0
  240. package/dist/components/utils/index.js +20 -0
  241. package/dist/components/utils/processNumber.d.ts +12 -0
  242. package/dist/components/utils/processNumber.js +106 -0
  243. package/dist/components/utils/upload.js +6 -3
  244. package/dist/components/utils/useBaseContext.d.ts +5 -0
  245. package/dist/components/utils/useBaseContext.js +10 -0
  246. package/dist/components/utils/useLastest.d.ts +2 -0
  247. package/dist/components/utils/useLastest.js +6 -0
  248. package/dist/components/utils/useMemoizedFn.d.ts +4 -0
  249. package/dist/components/utils/useMemoizedFn.js +19 -0
  250. package/dist/constants.d.ts +1 -1
  251. package/dist/constants.js +1 -1
  252. package/dist/index.css +1011 -7
  253. package/dist/index.css.map +1 -1
  254. package/dist/index.d.ts +10 -1
  255. package/dist/index.js +200 -84
  256. package/dist/locales/en-US.json +818 -0
  257. package/dist/locales/zh-CN.json +818 -0
  258. package/dist/request.js +6 -5
  259. package/package.json +7 -2
@@ -0,0 +1,259 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description 基础表格,充当列表
4
+ */
5
+ import React from 'react';
6
+ // redux
7
+ // ztxkui公共组件
8
+ import { Table, NumberCase } from '../index';
9
+ // 路由配置
10
+ // store
11
+ // 自定义组件
12
+ // 其他文件
13
+ import { dataSource } from './data';
14
+ import { toThousand } from 'ztxkutils/dist/tools';
15
+ var tableConfigInfo = {
16
+ test1: {
17
+ isDisplay: false,
18
+ isChangeable: true,
19
+ isRequired: false,
20
+ },
21
+ };
22
+ var BasicTable = function (_a) {
23
+ var dynamicKey = _a.dynamicKey;
24
+ console.log(toThousand(10000.2312));
25
+ console.log(toThousand(toThousand(100.2312)));
26
+ var columns = [
27
+ {
28
+ title: '序号',
29
+ width: 62,
30
+ key: 'index',
31
+ render: function (_text, _record, index) { return "" + (index + 1); },
32
+ },
33
+ {
34
+ title: '测试111',
35
+ width: 100,
36
+ dataIndex: 'test1',
37
+ key: 'test1',
38
+ },
39
+ {
40
+ title: '测试22233',
41
+ width: 100,
42
+ dataIndex: 'test2233',
43
+ key: 'test2233',
44
+ render: function (text, record, index) {
45
+ return 1;
46
+ },
47
+ },
48
+ {
49
+ title: '地址',
50
+ width: 100,
51
+ dataIndex: 'address',
52
+ key: 'address',
53
+ render: function (text, record, index) {
54
+ return record.addressAll + record.address;
55
+ },
56
+ },
57
+ // {
58
+ // title: '库存总计',
59
+ // children: [
60
+ // {
61
+ // title: '财务库存数量',
62
+ // width: 120,
63
+ // dataIndex: 'totalFinanceAvailQuantity',
64
+ // key: 'totalFinanceAvailQuantity',
65
+ // render: (text, record, index) => {
66
+ // if (index % 2 === 0) {
67
+ // return `${index + 2}`;
68
+ // }
69
+ // return `${index + 1}/${index + 2}`;
70
+ // },
71
+ // },
72
+ // {
73
+ // title: '业务库存数量',
74
+ // width: 120,
75
+ // dataIndex: 'totalBusiAvailQuantity',
76
+ // key: 'totalBusiAvailQuantity',
77
+ // render: (text) => 2,
78
+ // },
79
+ // {
80
+ // title: '财务库存金额(不含税)',
81
+ // width: 120,
82
+ // dataIndex: 'totalFinanceStockAmount',
83
+ // key: 'totalFinanceStockAmount',
84
+ // },
85
+ // {
86
+ // title: '业务库存金额(不含税)',
87
+ // width: 120,
88
+ // dataIndex: 'totalBusiStockAmount',
89
+ // key: 'totalBusiStockAmount',
90
+ // },
91
+ // ],
92
+ // },
93
+ // {
94
+ // title: '库存总计1',
95
+ // children: [
96
+ // {
97
+ // title: '财务库存数量',
98
+ // width: 120,
99
+ // dataIndex: 'totalFinanceAvailQuantity',
100
+ // key: 'totalFinanceAvailQuantity',
101
+ // render: (text) => 1,
102
+ // },
103
+ // {
104
+ // title: '业务库存数量',
105
+ // width: 120,
106
+ // dataIndex: 'totalBusiAvailQuantity',
107
+ // key: 'totalBusiAvailQuantity',
108
+ // render: (text) => 2,
109
+ // },
110
+ // {
111
+ // title: '财务库存金额(不含税)',
112
+ // width: 120,
113
+ // dataIndex: 'totalFinanceStockAmount',
114
+ // key: 'totalFinanceStockAmount',
115
+ // },
116
+ // {
117
+ // title: '业务库存金额(不含税)',
118
+ // width: 120,
119
+ // dataIndex: 'totalBusiStockAmount',
120
+ // key: 'totalBusiStockAmount',
121
+ // },
122
+ // ],
123
+ // },
124
+ {
125
+ title: '测试2123',
126
+ width: 100,
127
+ dataIndex: 'test2',
128
+ key: 'test2',
129
+ hideColumn: true,
130
+ },
131
+ {
132
+ title: '测试3',
133
+ width: 100,
134
+ dataIndex: 'test3',
135
+ key: 'test3',
136
+ sorter: false,
137
+ onCell: function () {
138
+ return {
139
+ className: 'test',
140
+ };
141
+ },
142
+ },
143
+ {
144
+ title: '测试4',
145
+ width: 100,
146
+ dataIndex: 'test4',
147
+ key: 'test4',
148
+ },
149
+ {
150
+ title: '测试5',
151
+ width: 100,
152
+ dataIndex: 'test5',
153
+ key: 'test5',
154
+ },
155
+ {
156
+ title: '测试6',
157
+ width: 100,
158
+ dataIndex: 'test6',
159
+ key: 'test6',
160
+ },
161
+ {
162
+ title: '测试7',
163
+ width: 100,
164
+ dataIndex: 'test7',
165
+ key: 'test7',
166
+ },
167
+ {
168
+ title: '测试8',
169
+ width: 100,
170
+ dataIndex: 'test8',
171
+ key: 'test8',
172
+ },
173
+ {
174
+ title: '测试9',
175
+ width: 100,
176
+ dataIndex: 'test9',
177
+ key: 'test9',
178
+ },
179
+ {
180
+ title: '数量',
181
+ width: 100,
182
+ dataIndex: 'test10',
183
+ key: 'test10',
184
+ align: 'center',
185
+ render: function (text, record, index) { return (React.createElement(NumberCase, { num: text }, text)); },
186
+ },
187
+ {
188
+ title: '数量11',
189
+ width: 100,
190
+ dataIndex: 'test101',
191
+ key: 'test101',
192
+ align: 'center',
193
+ },
194
+ {
195
+ title: '测试11',
196
+ width: 100,
197
+ dataIndex: 'test11',
198
+ key: 'test11',
199
+ },
200
+ ];
201
+ // const columns1: ColumnsType<any> = [
202
+ // {
203
+ // title: '流程ID',
204
+ // width: 80,
205
+ // align: 'center',
206
+ // dataIndex: 'associatedProcessInstId',
207
+ // key: 'associatedProcessInstId',
208
+ // },
209
+ // {
210
+ // title: '待退货款N',
211
+ // width: 140,
212
+ // dataIndex: 'pendingRefundAmountTotal',
213
+ // key: 'pendingRefundAmountTotal',
214
+ // render: (text) => toThousand(exactRound(text, 2)),
215
+ // },
216
+ // // {
217
+ // // title: '流程模板',
218
+ // // width: 300,
219
+ // // dataIndex: 'associatedProcessDefName',
220
+ // // key: 'associatedProcessDefName',
221
+ // // },
222
+ // {
223
+ // title: '流程申请人',
224
+ // width: 120,
225
+ // align: 'center',
226
+ // dataIndex: 'associatedProcessApplyPersonName',
227
+ // key: 'associatedProcessApplyPersonName',
228
+ // },
229
+ // {
230
+ // title: '流程申请时间',
231
+ // width: 140,
232
+ // align: 'center',
233
+ // dataIndex: 'associatedProcessApplyTime',
234
+ // key: 'associatedProcessApplyTime',
235
+ // },
236
+ // ];
237
+ return (React.createElement("div", null,
238
+ React.createElement("div", null,
239
+ "\u57FA\u7840\u5C55\u793A\u8868\u683C1\uFF1B",
240
+ React.createElement("br", null),
241
+ React.createElement("b", null, "\u52A8\u6001\u5217\u914D\u7F6E\uFF1B"),
242
+ "\u5982\u679C\u9700\u8981\u7F13\u5B58\u4F4F\u52A8\u6001\u5217\u914D\u7F6E\uFF0C\u9700\u8981\u4F20\u5165showColumnDynamicKey\uFF1B \u8868\u683C\u5185\u90E8\u8FDB\u884C\u4E86\u4F18\u5316\uFF0C\u6570\u636E\u5C06\u5B58\u50A8\u5728\u672C\u5730\u7F13\u5B58\u4E2D\uFF0C\u53EF\u4EE5\u4E0D\u7528\u901A\u8FC7\u5916\u754C\u4F20\u5165\u914D\u7F6E",
243
+ React.createElement("br", null),
244
+ React.createElement("b", null, "\u5217\u4F38\u7F29\uFF1B"),
245
+ "isResizableColumn\u5C5E\u6027\u9ED8\u8BA4\u4E3Atrue\uFF0C\u5982\u679C\u4E0D\u9700\u8981\u5217\u4F38\u7F29\u53EF\u4EE5\u4F20\u5165false"),
246
+ React.createElement(Table, { dataSource: dataSource, columns: columns, rowKey: "id", scroll: { y: 500 },
247
+ // isContextMenu
248
+ showColumnDynamic: true, showColumnDynamicKey: dynamicKey || 'symbol-id-1', configInfo: tableConfigInfo, isNumberInputAlignRight: true, isNumberInputThousandth: true, virtualTableKey: "virtualTableKey",
249
+ // isSort={false}
250
+ // isFilter={false}
251
+ summaryConfig: [
252
+ {
253
+ type: 'subtotal',
254
+ fields: ['test10', 'test101'],
255
+ title: '小计',
256
+ },
257
+ ] })));
258
+ };
259
+ export default BasicTable;
@@ -45,6 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
+ import i18next from 'ztxkutils/dist/i18next';
48
49
  import React, { useMemo, useEffect, useState, useImperativeHandle, useCallback, memo, useRef, } from 'react';
49
50
  import Form from '../components/Form';
50
51
  import SearchContainer from '../components/business/SearchContainer';
@@ -246,7 +247,7 @@ var MaterialComp = function (_a) {
246
247
  }
247
248
  })
248
249
  .catch(function (err) {
249
- message.error("\u6839\u636E\u7269\u6599\u53D6\u914D\u7F6E\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u5207\u6362\u91CD\u8BD5!");
250
+ message.error(i18next.t('根据物料取配置信息失败,请切换重试!', {}));
250
251
  });
251
252
  }
252
253
  else {
@@ -336,37 +337,37 @@ var MaterialComp = function (_a) {
336
337
  }, [getKey]);
337
338
  return onlyDetail ? (React.createElement(Row, null,
338
339
  (value === null || value === void 0 ? void 0 : value[getKey('brand')]) ? (React.createElement(Col, { span: 8 },
339
- "\u54C1\u540D\uFF1A",
340
+ i18next.t('品名:'),
340
341
  (value === null || value === void 0 ? void 0 : value[getKey('brand')]) || '')) : (''),
341
342
  (value === null || value === void 0 ? void 0 : value[getKey('texture')]) ? (React.createElement(Col, { span: 8 },
342
- "\u6750\u8D28\uFF1A",
343
+ i18next.t('材质:'),
343
344
  (value === null || value === void 0 ? void 0 : value[getKey('texture')]) || '')) : (''),
344
345
  (value === null || value === void 0 ? void 0 : value[getKey('specification')]) ? (React.createElement(Col, { span: 8 },
345
- "\u89C4\u683C\uFF1A",
346
+ i18next.t('规格:'),
346
347
  (value === null || value === void 0 ? void 0 : value[getKey('specification')]) || '')) : (''),
347
348
  (value === null || value === void 0 ? void 0 : value[getKey('placesteel')]) ? (React.createElement(Col, { span: 8 },
348
- "\u4EA7\u5730\uFF1A",
349
+ i18next.t('产地:'),
349
350
  (value === null || value === void 0 ? void 0 : value[getKey('placesteel')]) || '')) : (''),
350
351
  (value === null || value === void 0 ? void 0 : value[getKey('productModel')]) ? (React.createElement(Col, { span: 8 },
351
- "\u578B\u53F7\uFF1A",
352
+ i18next.t('型号:'),
352
353
  (value === null || value === void 0 ? void 0 : value[getKey('productModel')]) || '')) : (''),
353
354
  (value === null || value === void 0 ? void 0 : value[getKey('workmanship')]) ? (React.createElement(Col, { span: 8 },
354
- "\u5DE5\u827A\uFF1A",
355
+ i18next.t('工艺:'),
355
356
  (value === null || value === void 0 ? void 0 : value[getKey('workmanship')]) || '')) : (''),
356
357
  (value === null || value === void 0 ? void 0 : value[getKey('packingMethod')]) ? (React.createElement(Col, { span: 8 },
357
- "\u5305\u88C5\u65B9\u5F0F\uFF1A",
358
+ i18next.t('包装方式:'),
358
359
  (value === null || value === void 0 ? void 0 : value[getKey('packingMethod')]) || '')) : (''),
359
360
  (value === null || value === void 0 ? void 0 : value[getKey('variety')]) ? (React.createElement(Col, { span: 8 },
360
- "\u54C1\u724C\uFF1A",
361
+ i18next.t('品牌:'),
361
362
  (value === null || value === void 0 ? void 0 : value[getKey('variety')]) || '')) : (''),
362
363
  (value === null || value === void 0 ? void 0 : value[getKey('trademark')]) ? (React.createElement(Col, { span: 8 },
363
- "\u724C\u53F7\uFF1A",
364
+ i18next.t('牌号:'),
364
365
  (value === null || value === void 0 ? void 0 : value[getKey('trademark')]) || '')) : (''),
365
366
  (value === null || value === void 0 ? void 0 : value[getKey('strengthGrade')]) ? (React.createElement(Col, { span: 8 },
366
- "\u5F3A\u5EA6\u7B49\u7EA7\uFF1A",
367
+ i18next.t('强度等级:'),
367
368
  (value === null || value === void 0 ? void 0 : value[getKey('strengthGrade')]) || '')) : (''),
368
369
  (value === null || value === void 0 ? void 0 : value[getKey('purpose')]) ? (React.createElement(Col, { span: 8 },
369
- "\u7528\u9014\uFF1A",
370
+ i18next.t('用途:'),
370
371
  (value === null || value === void 0 ? void 0 : value[getKey('purpose')]) || '')) : (''))) : (React.createElement(Form, { name: "test-list", form: form, className: "table-form" },
371
372
  React.createElement(SearchContainer, null,
372
373
  React.createElement(SearchLeft, { configInfo: configInfo }, Object.keys(aboutFieldObj).map(function (key) {
@@ -402,7 +403,7 @@ var SpecificationsComp = function (_a) {
402
403
  * @description 模态框设置
403
404
  */
404
405
  var dataConfig = function () {
405
- console.log('当前产品层次对应的规格配置', config);
406
+ console.log(i18next.t('当前产品层次对应的规格配置'), config);
406
407
  };
407
408
  /**
408
409
  * @description 模态框关闭隐藏
@@ -436,7 +437,7 @@ var SpecificationsComp = function (_a) {
436
437
  closeModal();
437
438
  }
438
439
  else {
439
- message.info('请填写相关信息!');
440
+ message.info(i18next.t('请填写相关信息!'));
440
441
  }
441
442
  return [3 /*break*/, 3];
442
443
  case 2:
@@ -452,10 +453,10 @@ var SpecificationsComp = function (_a) {
452
453
  }); };
453
454
  return (React.createElement(React.Fragment, null,
454
455
  React.createElement(EnhanceSelect, { url: listDataAbout[objKey].url, params: newParams, defaultList: defaultList, dataKey: "id", titleKey: "specificationName", mustHasParams: "materialId", disabled: disabled, value: value, onChange: onChange, dropdownMatchSelectWidth: 130, isCatch: true, method: "GET", request: request }),
455
- React.createElement(Button, { type: "primary", size: "small", disabled: disabled, onClick: openModal }, "\u65B0\u5EFA"),
456
- React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title: "\u9009\u62E9\u89C4\u683C", width: "60%", footer: React.createElement(React.Fragment, null,
457
- React.createElement(Button, { type: "default", onClick: closeModal }, "\u53D6\u6D88"),
458
- React.createElement(Button, { type: "primary", onClick: onSureHandle }, "\u6DFB\u52A0")) },
456
+ React.createElement(Button, { type: "primary", size: "small", disabled: disabled, onClick: openModal }, i18next.t('新建')),
457
+ React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title: i18next.t('选择规格'), width: "60%", footer: React.createElement(React.Fragment, null,
458
+ React.createElement(Button, { type: "default", onClick: closeModal }, i18next.t('取消')),
459
+ React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('添加'))) },
459
460
  React.createElement(Form, { form: form, name: "specifications-form" },
460
461
  React.createElement(SearchContainer, null,
461
462
  React.createElement(SearchLeft, null, Array.isArray(config) &&
@@ -463,7 +464,9 @@ var SpecificationsComp = function (_a) {
463
464
  React.createElement(SearchItem, { label: item.fieldName, name: item.fieldName, rules: [
464
465
  {
465
466
  required: item.isRequired === '1',
466
- message: item.fieldName + "\u672A\u586B!",
467
+ message: i18next.t('{{slot0}}未填!', {
468
+ slot0: item.fieldName,
469
+ }),
467
470
  },
468
471
  ] },
469
472
  React.createElement(Input, { prefix: item.prefix, suffix: item.postfix && item.unit ? (React.createElement("span", null, item.postfix + " " + item.unit)) : item.postfix ? (item.postfix) : (item.unit) })),
@@ -0,0 +1,110 @@
1
+ export declare const dataSource: ({
2
+ id: string;
3
+ test1: string;
4
+ test3: string;
5
+ test4: string;
6
+ test5: string;
7
+ 'test5-001': number;
8
+ 'test5-002': number;
9
+ test6: string;
10
+ test7: string;
11
+ test8: string;
12
+ test9: string;
13
+ test10: string;
14
+ test101: string;
15
+ test2233: {
16
+ name: string;
17
+ }[];
18
+ address: string;
19
+ addressAll: string;
20
+ } | {
21
+ id: string;
22
+ test1: string;
23
+ test3: string;
24
+ test4: string;
25
+ test5: string;
26
+ 'test5-001': number;
27
+ 'test5-002': number;
28
+ test6: string;
29
+ test7: string;
30
+ test8: string;
31
+ test9: string;
32
+ test10: string;
33
+ test101: string;
34
+ address: string;
35
+ addressAll: string;
36
+ test2233?: undefined;
37
+ })[];
38
+ export declare const dataSource5: {
39
+ id: string;
40
+ test1: string;
41
+ test3: string;
42
+ test4: string;
43
+ test5: string;
44
+ 'test5-001': number;
45
+ 'test5-002': number;
46
+ test6: string;
47
+ test7: string;
48
+ test8: string;
49
+ test9: string;
50
+ test10: string;
51
+ }[];
52
+ export declare const dataSource2: ({
53
+ id: string;
54
+ test1: string;
55
+ test3: string;
56
+ test4: string;
57
+ test5: string;
58
+ 'test5-001': number;
59
+ 'test5-002': number;
60
+ test6: string;
61
+ test7: string;
62
+ test8: string;
63
+ test9: string;
64
+ test10: string;
65
+ test101: string;
66
+ test2233: {
67
+ name: string;
68
+ }[];
69
+ address: string;
70
+ addressAll: string;
71
+ } | {
72
+ id: string;
73
+ test1: string;
74
+ test3: string;
75
+ test4: string;
76
+ test5: string;
77
+ 'test5-001': number;
78
+ 'test5-002': number;
79
+ test6: string;
80
+ test7: string;
81
+ test8: string;
82
+ test9: string;
83
+ test10: string;
84
+ test101: string;
85
+ address: string;
86
+ addressAll: string;
87
+ test2233?: undefined;
88
+ })[];
89
+ export declare const dataSource3: {
90
+ id: string;
91
+ test1: string;
92
+ test3: string;
93
+ test4: string;
94
+ test5: string;
95
+ 'test5-001': number;
96
+ 'test5-002': number;
97
+ test6: string;
98
+ test7: string;
99
+ test8: string;
100
+ test9: string;
101
+ test10: string;
102
+ }[];
103
+ export declare const data111: {
104
+ id: string;
105
+ pendingRefundAmountTotal: string;
106
+ }[];
107
+ export declare const list1: {
108
+ name: string;
109
+ id: string;
110
+ }[];