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.
- package/dist/App.js +315 -291
- package/dist/Demo.js +58 -42
- package/dist/DemoCom/BasicDemo.js +57 -56
- package/dist/DemoCom/CodeQueryDemo.js +3 -2
- package/dist/DemoCom/CollapseDemo.js +28 -27
- package/dist/DemoCom/DragSort.js +11 -10
- package/dist/DemoCom/FormDemo.js +36 -30
- package/dist/DemoCom/PrintContainerDemo.js +151 -150
- package/dist/DemoCom/PrintDemo.js +15 -14
- package/dist/DemoCom/SinaturesDemo.js +9 -8
- package/dist/DemoCom/SyhDemo.js +21 -20
- package/dist/DemoCom/TableAnalyse.js +34 -33
- package/dist/DemoCom/TableDemo.js +74 -70
- package/dist/DemoCom/TableDemo1.js +34 -33
- package/dist/DemoCom/TableDetail.d.ts +9 -0
- package/dist/DemoCom/TableDetail.js +259 -0
- package/dist/DemoCom/TestCom.js +22 -19
- package/dist/DemoCom/data.d.ts +110 -0
- package/dist/DemoCom/data.js +2308 -0
- package/dist/TableDemo/BasicTable.js +103 -29
- package/dist/TableDemo/EditableTable.js +177 -91
- package/dist/TableDemo/ModalTable.js +25 -24
- package/dist/TableDemo/ProEditableTable.d.ts +21 -0
- package/dist/TableDemo/ProEditableTable.js +483 -0
- package/dist/TableDemo/data.d.ts +15 -0
- package/dist/TableDemo/data.js +44 -11
- package/dist/TableDemo/index.js +5 -4
- package/dist/TreeDemo.js +8 -7
- package/dist/TreeSelectDemo.js +10 -7
- package/dist/UI/Form/index.d.ts +3 -0
- package/dist/UI/Form/index.js +346 -0
- package/dist/UI/index.d.ts +2 -0
- package/dist/UI/index.js +10 -0
- package/dist/UploadDemo.js +12 -17
- package/dist/components/Button/button.js +3 -2
- package/dist/components/Collapse/collapse.js +2 -1
- package/dist/components/EnhanceSelect/index.d.ts +5 -1
- package/dist/components/EnhanceSelect/index.js +179 -32
- package/dist/components/EnhanceTree/index.js +4 -3
- package/dist/components/EnhanceTreeSelect/index.js +11 -5
- package/dist/components/Export/export.js +5 -4
- package/dist/components/Input/input.d.ts +3 -0
- package/dist/components/Input/input.js +53 -3
- package/dist/components/InputNumber/input-number.js +3 -2
- package/dist/components/NumberCase/index.js +9 -7
- package/dist/components/Print/print.js +4 -3
- package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
- package/dist/components/PrintContainer/PrintModal.js +4 -3
- package/dist/components/PrintContainer/handle.d.ts +2 -4
- package/dist/components/PrintContainer/handle.js +3 -2
- package/dist/components/PrintContainer/lodop.js +2 -1
- package/dist/components/PrintContainer/print-container.js +74 -73
- package/dist/components/PrintContainer/service.js +5 -4
- package/dist/components/ProForm/hooks.d.ts +23 -0
- package/dist/components/ProForm/hooks.js +209 -0
- package/dist/components/ProForm/index.d.ts +6 -0
- package/dist/components/ProForm/index.js +101 -0
- package/dist/components/ProForm/interface.d.ts +169 -0
- package/dist/components/ProForm/interface.js +1 -0
- package/dist/components/ProForm/item.d.ts +13 -0
- package/dist/components/ProForm/item.js +221 -0
- package/dist/components/ProForm/items.d.ts +5 -0
- package/dist/components/ProForm/items.js +36 -0
- package/dist/components/ProForm/search-drawer.d.ts +12 -0
- package/dist/components/ProForm/search-drawer.js +202 -0
- package/dist/components/ProForm/setting.d.ts +5 -0
- package/dist/components/ProForm/setting.js +13 -0
- package/dist/components/ProFormList/index.d.ts +12 -0
- package/dist/components/ProFormList/index.js +34 -0
- package/dist/components/ProTable/hooks.d.ts +28 -0
- package/dist/components/ProTable/hooks.js +279 -0
- package/dist/components/ProTable/index.d.ts +8 -0
- package/dist/components/ProTable/index.js +77 -0
- package/dist/components/ProTable/interface.d.ts +51 -0
- package/dist/components/ProTable/interface.js +1 -0
- package/dist/components/RangePicker/range-picker.js +5 -2
- package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
- package/dist/components/SortableCancel/sortable-cancel.js +2 -2
- package/dist/components/Table/components/FillDown.d.ts +8 -0
- package/dist/components/Table/components/FillDown.js +11 -0
- package/dist/components/Table/components/FilterDropdown.d.ts +15 -0
- package/dist/components/Table/components/FilterDropdown.js +93 -0
- package/dist/components/Table/constants.d.ts +2 -0
- package/dist/components/Table/constants.js +2 -0
- package/dist/components/Table/hooks/useColumns.d.ts +25 -8
- package/dist/components/Table/hooks/useColumns.js +704 -180
- package/dist/components/Table/hooks/useDropRef.js +4 -2
- package/dist/components/Table/hooks/useInnerPagination.js +1 -0
- package/dist/components/Table/hooks/useSelectSubtotal.d.ts +4 -0
- package/dist/components/Table/hooks/useSelectSubtotal.js +182 -0
- package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
- package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
- package/dist/components/Table/index.d.ts +11 -0
- package/dist/components/Table/table-adddel-column.d.ts +8 -5
- package/dist/components/Table/table-adddel-column.js +16 -5
- package/dist/components/Table/table-dynamic.js +165 -18
- package/dist/components/Table/table-enhance-cell.d.ts +7 -3
- package/dist/components/Table/table-enhance-cell.js +214 -109
- package/dist/components/Table/table-enhance-row.d.ts +4 -4
- package/dist/components/Table/table-enhance-row.js +10 -11
- package/dist/components/Table/table-headTooltip.d.ts +6 -0
- package/dist/components/Table/table-headTooltip.js +13 -0
- package/dist/components/Table/table-resizable-title.d.ts +4 -5
- package/dist/components/Table/table-resizable-title.js +33 -6
- package/dist/components/Table/table-sort.d.ts +11 -0
- package/dist/components/Table/table-sort.js +66 -0
- package/dist/components/Table/table.d.ts +30 -4
- package/dist/components/Table/table.js +526 -180
- package/dist/components/Table/utils/dom.d.ts +26 -0
- package/dist/components/Table/utils/dom.js +123 -0
- package/dist/components/Table/utils/filterHandle.d.ts +1 -0
- package/dist/components/Table/utils/filterHandle.js +66 -0
- package/dist/components/Table/utils/getSummaryData.d.ts +2 -1
- package/dist/components/Table/utils/getSummaryData.js +282 -25
- package/dist/components/Table/utils/shallowEqual.d.ts +2 -0
- package/dist/components/Table/utils/shallowEqual.js +35 -0
- package/dist/components/Table/utils/validate.d.ts +1 -1
- package/dist/components/Table/utils/validate.js +30 -11
- package/dist/components/TreeSelect/index.d.ts +15 -0
- package/dist/components/TreeSelect/index.js +29 -0
- package/dist/components/Upload/upload-table.js +31 -26
- package/dist/components/Upload/upload.js +23 -18
- package/dist/components/Upload/utils.js +11 -10
- package/dist/components/UploadSingle/upload-single.js +5 -4
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/components/Watermark/index.js +2 -0
- package/dist/components/Watermark/interface.d.ts +20 -0
- package/dist/components/Watermark/interface.js +1 -0
- package/dist/components/Watermark/utils.d.ts +1 -0
- package/dist/components/Watermark/utils.js +70 -0
- package/dist/components/Watermark/water.d.ts +50 -0
- package/dist/components/Watermark/water.js +66 -0
- package/dist/components/Watermark/watermark-div.d.ts +4 -0
- package/dist/components/Watermark/watermark-div.js +41 -0
- package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
- package/dist/components/Watermark/watermark-shadow.js +116 -0
- package/dist/components/Watermark/watermark.d.ts +3 -0
- package/dist/components/Watermark/watermark.js +102 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
- package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
- package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/images.js +2 -0
- package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/index.js +2 -0
- package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/service.js +101 -0
- package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
- package/dist/components/business/Analyse/index.js +12 -11
- package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
- package/dist/components/business/CodeQuery/component/TableList.js +5 -4
- package/dist/components/business/CodeQuery/hooks.js +2 -1
- package/dist/components/business/CodeQuery/index.js +2 -1
- package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
- package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
- package/dist/components/business/Common/UserInfo/index.js +7 -4
- package/dist/components/business/Common/UserPassword/index.d.ts +1 -0
- package/dist/components/business/Common/UserPassword/index.js +39 -18
- package/dist/components/business/Common/validatePassword.d.ts +1 -1
- package/dist/components/business/Common/validatePassword.js +17 -7
- package/dist/components/business/DetailCard/index.js +7 -6
- package/dist/components/business/DetailHeader/index.js +7 -6
- package/dist/components/business/DetailList/index.js +5 -4
- package/dist/components/business/DgColumns/index.js +12 -11
- package/dist/components/business/ExportButton/index.js +6 -5
- package/dist/components/business/Footer/index.js +4 -1
- package/dist/components/business/GridList/item.d.ts +1 -1
- package/dist/components/business/List/item.d.ts +1 -1
- package/dist/components/business/NewList/item.d.ts +1 -1
- package/dist/components/business/NewList/item.js +1 -1
- package/dist/components/business/OperationBtnGroup/index.js +17 -16
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +5 -4
- package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
- package/dist/components/business/SearchContainer/record-common-item.js +82 -0
- package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
- package/dist/components/business/SearchContainer/record-common-list.js +64 -0
- package/dist/components/business/SearchContainer/search-container.d.ts +13 -0
- package/dist/components/business/SearchContainer/search-container.js +32 -3
- package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-drawer.js +139 -13
- package/dist/components/business/SearchContainer/search-item.js +33 -2
- package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-left.js +11 -3
- package/dist/components/business/SearchContainer/search-right.js +23 -4
- package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +15 -0
- package/dist/components/business/SearchContainer/useRecordCommonInit.js +242 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +7 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.js +140 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +31 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
- package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
- package/dist/components/business/Signatures/components/CompareResult.js +7 -6
- package/dist/components/business/Signatures/components/DetailTable.js +37 -34
- package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
- package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
- package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
- package/dist/components/business/Signatures/index.js +64 -53
- package/dist/components/business/SortList/sort-drawer.js +5 -4
- package/dist/components/business/Template/index.js +11 -10
- package/dist/components/utils/MyStorage.d.ts +36 -0
- package/dist/components/utils/MyStorage.js +120 -0
- package/dist/components/utils/ZtxkContext.d.ts +34 -0
- package/dist/components/utils/ZtxkContext.js +13 -0
- package/dist/components/utils/fetch.d.ts +10 -0
- package/dist/components/utils/fetch.js +119 -0
- package/dist/components/utils/index.d.ts +1 -0
- package/dist/components/utils/index.js +20 -0
- package/dist/components/utils/processNumber.d.ts +12 -0
- package/dist/components/utils/processNumber.js +106 -0
- package/dist/components/utils/upload.js +6 -3
- package/dist/components/utils/useBaseContext.d.ts +5 -0
- package/dist/components/utils/useBaseContext.js +10 -0
- package/dist/components/utils/useLastest.d.ts +2 -0
- package/dist/components/utils/useLastest.js +6 -0
- package/dist/components/utils/useMemoizedFn.d.ts +4 -0
- package/dist/components/utils/useMemoizedFn.js +19 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.css +1011 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +200 -84
- package/dist/locales/en-US.json +818 -0
- package/dist/locales/zh-CN.json +818 -0
- package/dist/request.js +6 -5
- 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;
|
package/dist/DemoCom/TestCom.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 },
|
|
456
|
-
React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title:
|
|
457
|
-
React.createElement(Button, { type: "default", onClick: closeModal },
|
|
458
|
-
React.createElement(Button, { type: "primary", onClick: onSureHandle },
|
|
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:
|
|
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
|
+
}[];
|