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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 陈亚雄
|
|
3
4
|
* @description
|
|
@@ -10,34 +11,34 @@ import { jsPDF } from 'jspdf';
|
|
|
10
11
|
import html2canvas from 'html2canvas';
|
|
11
12
|
import './style.scss';
|
|
12
13
|
var dataSource = new Array(10).fill('1').map(function (item, index) { return ({
|
|
13
|
-
test1:
|
|
14
|
-
test2:
|
|
15
|
-
test3:
|
|
16
|
-
test4:
|
|
14
|
+
test1: i18next.t('测试一{{index}}', { index: index }),
|
|
15
|
+
test2: i18next.t('测试二{{index}}', { index: index }),
|
|
16
|
+
test3: i18next.t('测试三{{index}}', { index: index }),
|
|
17
|
+
test4: i18next.t('测试四{{index}}', { index: index }),
|
|
17
18
|
id: "" + index,
|
|
18
19
|
}); });
|
|
19
20
|
var PrintDemo = function () {
|
|
20
21
|
var columns = [
|
|
21
22
|
{
|
|
22
|
-
title: '测试一',
|
|
23
|
+
title: i18next.t('测试一'),
|
|
23
24
|
width: 100,
|
|
24
25
|
dataIndex: 'test1',
|
|
25
26
|
key: 'test1',
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
|
-
title: '测试一',
|
|
29
|
+
title: i18next.t('测试一'),
|
|
29
30
|
width: 100,
|
|
30
31
|
dataIndex: 'test2',
|
|
31
32
|
key: 'test2',
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
|
-
title: '测试一',
|
|
35
|
+
title: i18next.t('测试一'),
|
|
35
36
|
width: 100,
|
|
36
37
|
dataIndex: 'test3',
|
|
37
38
|
key: 'test3',
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
|
-
title: '测试一',
|
|
41
|
+
title: i18next.t('测试一'),
|
|
41
42
|
width: 100,
|
|
42
43
|
dataIndex: 'test4',
|
|
43
44
|
key: 'test4',
|
|
@@ -52,7 +53,7 @@ var PrintDemo = function () {
|
|
|
52
53
|
'@media print{ .test1, .test2 { display: none; } }';
|
|
53
54
|
document.head.appendChild(styleDom);
|
|
54
55
|
window.print();
|
|
55
|
-
} },
|
|
56
|
+
} }, i18next.t('打印')),
|
|
56
57
|
React.createElement(Button, { onClick: function () {
|
|
57
58
|
// a4纸的尺寸[595.28, 841.89]
|
|
58
59
|
html2canvas(document.getElementById('test111')).then(function (canvas) {
|
|
@@ -86,9 +87,9 @@ var PrintDemo = function () {
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
pdf.save('新的.pdf');
|
|
90
|
+
pdf.save(i18next.t('新的.pdf'));
|
|
90
91
|
});
|
|
91
|
-
} },
|
|
92
|
+
} }, i18next.t('转pdf')),
|
|
92
93
|
React.createElement(Print, { showWater: true })),
|
|
93
94
|
React.createElement("div", { className: "print-container printArea", id: "test111" },
|
|
94
95
|
React.createElement(ZtIcon, { type: "iconwenjian1" }),
|
|
@@ -405,9 +406,9 @@ var PrintDemo = function () {
|
|
|
405
406
|
React.createElement("div", null, "asdasdasdasd"),
|
|
406
407
|
React.createElement("div", null, "asdasdasdasd"),
|
|
407
408
|
React.createElement("div", null, "asdasdasdasd"),
|
|
408
|
-
React.createElement("iframe", { style: { width: '1000px', height: '400px' }, title:
|
|
409
|
-
React.createElement("div", { className: "test1" },
|
|
410
|
-
React.createElement("div", { className: "test2" },
|
|
409
|
+
React.createElement("iframe", { style: { width: '1000px', height: '400px' }, title: i18next.t('测试iframe打印'), src: "http://localhost:8787/print" })),
|
|
410
|
+
React.createElement("div", { className: "test1" }, i18next.t('我是多余的数据 我是多余的数据')),
|
|
411
|
+
React.createElement("div", { className: "test2" }, i18next.t('我是多余的数据 我是多余的数据')),
|
|
411
412
|
React.createElement(Footer, { footerDom: [
|
|
412
413
|
{
|
|
413
414
|
render: function () { return React.createElement(Print, { key: 1, showWater: true }); },
|
|
@@ -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
|
/**
|
|
49
50
|
* @author 陈亚雄
|
|
50
51
|
* @description
|
|
@@ -129,20 +130,20 @@ function myRequest(options) {
|
|
|
129
130
|
var list = [
|
|
130
131
|
{
|
|
131
132
|
attachId: '1326475920778194945',
|
|
132
|
-
attachName: '源文件.jpg',
|
|
133
|
+
attachName: i18next.t('源文件.jpg'),
|
|
133
134
|
templateAttachId: '1326465400842948610',
|
|
134
|
-
templateAttachName: '模板文件.jpg',
|
|
135
|
+
templateAttachName: i18next.t('模板文件.jpg'),
|
|
135
136
|
attachType: '001',
|
|
136
|
-
attachTypeName: '合同本身',
|
|
137
|
+
attachTypeName: i18next.t('合同本身'),
|
|
137
138
|
isCustomerReference: true,
|
|
138
139
|
isWatermark: true,
|
|
139
140
|
isElectronicSeal: true,
|
|
140
141
|
},
|
|
141
142
|
{
|
|
142
143
|
attachId: '1540242898414874626',
|
|
143
|
-
attachName: '源文件1.jpg',
|
|
144
|
+
attachName: i18next.t('源文件1.jpg'),
|
|
144
145
|
templateAttachId: '1540242898414874626',
|
|
145
|
-
templateAttachName: '模板文件1.jpg',
|
|
146
|
+
templateAttachName: i18next.t('模板文件1.jpg'),
|
|
146
147
|
},
|
|
147
148
|
];
|
|
148
149
|
/** 已选中群杰印章信息 */
|
|
@@ -152,12 +153,12 @@ var qunjSeal = {
|
|
|
152
153
|
isTakeOut: '1',
|
|
153
154
|
details: [
|
|
154
155
|
{
|
|
155
|
-
sealName: '浙商中拓(物流金融业务专用章)',
|
|
156
|
+
sealName: i18next.t('浙商中拓(物流金融业务专用章)'),
|
|
156
157
|
sealNo: '2021030911448826',
|
|
157
158
|
sealCount: 2,
|
|
158
159
|
},
|
|
159
160
|
{
|
|
160
|
-
sealName: '浙商中拓集团(湖南)有限公司合同专用章(杭州)',
|
|
161
|
+
sealName: i18next.t('浙商中拓集团(湖南)有限公司合同专用章(杭州)'),
|
|
161
162
|
sealNo: '202003041053255P',
|
|
162
163
|
sealCount: 3,
|
|
163
164
|
},
|
|
@@ -207,6 +208,6 @@ var SinaturesDemo = function () {
|
|
|
207
208
|
React.createElement("button", { onClick: function () {
|
|
208
209
|
var _a;
|
|
209
210
|
console.log((_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.getData());
|
|
210
|
-
} },
|
|
211
|
+
} }, i18next.t('获取数据'))));
|
|
211
212
|
};
|
|
212
213
|
export default SinaturesDemo;
|
package/dist/DemoCom/SyhDemo.js
CHANGED
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
/**
|
|
13
14
|
* @description
|
|
14
15
|
*/
|
|
@@ -32,7 +33,7 @@ var aa = [
|
|
|
32
33
|
key: '1460583429813227521',
|
|
33
34
|
parentId: '1460582731688103938',
|
|
34
35
|
remark: null,
|
|
35
|
-
label: '合同工',
|
|
36
|
+
label: i18next.t('合同工'),
|
|
36
37
|
value: '1',
|
|
37
38
|
children: [
|
|
38
39
|
{
|
|
@@ -41,7 +42,7 @@ var aa = [
|
|
|
41
42
|
key: '1460582731776184321',
|
|
42
43
|
parentId: '1460583429813227521',
|
|
43
44
|
remark: null,
|
|
44
|
-
label: '合同制',
|
|
45
|
+
label: i18next.t('合同制'),
|
|
45
46
|
value: '11',
|
|
46
47
|
},
|
|
47
48
|
{
|
|
@@ -50,7 +51,7 @@ var aa = [
|
|
|
50
51
|
key: '1460582731797155842',
|
|
51
52
|
parentId: '1460583429813227521',
|
|
52
53
|
remark: null,
|
|
53
|
-
label: '退休返聘',
|
|
54
|
+
label: i18next.t('退休返聘'),
|
|
54
55
|
value: '16',
|
|
55
56
|
},
|
|
56
57
|
],
|
|
@@ -62,7 +63,7 @@ var aa = [
|
|
|
62
63
|
key: '1460583501221253121',
|
|
63
64
|
parentId: '1460582731688103938',
|
|
64
65
|
remark: null,
|
|
65
|
-
label: '非合同工',
|
|
66
|
+
label: i18next.t('非合同工'),
|
|
66
67
|
value: '2',
|
|
67
68
|
children: [
|
|
68
69
|
{
|
|
@@ -71,7 +72,7 @@ var aa = [
|
|
|
71
72
|
key: '1460582731784572929',
|
|
72
73
|
parentId: '1460583501221253121',
|
|
73
74
|
remark: null,
|
|
74
|
-
label: '非全日制',
|
|
75
|
+
label: i18next.t('非全日制'),
|
|
75
76
|
value: '12',
|
|
76
77
|
},
|
|
77
78
|
{
|
|
@@ -80,7 +81,7 @@ var aa = [
|
|
|
80
81
|
key: '1460582731792961538',
|
|
81
82
|
parentId: '1460583501221253121',
|
|
82
83
|
remark: null,
|
|
83
|
-
label: '临时协议',
|
|
84
|
+
label: i18next.t('临时协议'),
|
|
84
85
|
value: '13',
|
|
85
86
|
},
|
|
86
87
|
{
|
|
@@ -89,7 +90,7 @@ var aa = [
|
|
|
89
90
|
key: '1460582731792961539',
|
|
90
91
|
parentId: '1460583501221253121',
|
|
91
92
|
remark: null,
|
|
92
|
-
label: '劳务派遣',
|
|
93
|
+
label: i18next.t('劳务派遣'),
|
|
93
94
|
value: '15',
|
|
94
95
|
},
|
|
95
96
|
{
|
|
@@ -98,7 +99,7 @@ var aa = [
|
|
|
98
99
|
key: '1460582731797155843',
|
|
99
100
|
parentId: '1460583501221253121',
|
|
100
101
|
remark: null,
|
|
101
|
-
label: '外包协议',
|
|
102
|
+
label: i18next.t('外包协议'),
|
|
102
103
|
value: '22',
|
|
103
104
|
},
|
|
104
105
|
],
|
|
@@ -118,14 +119,14 @@ var SyhDemo = function () {
|
|
|
118
119
|
}, [records]);
|
|
119
120
|
var columns = [
|
|
120
121
|
{
|
|
121
|
-
title: '序号',
|
|
122
|
+
title: i18next.t('序号'),
|
|
122
123
|
width: 38,
|
|
123
124
|
fixed: 'left',
|
|
124
125
|
key: 'index',
|
|
125
126
|
render: function (text, _record, index) { return "" + (index + 1); },
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
|
-
title: '测试1',
|
|
129
|
+
title: i18next.t('测试1'),
|
|
129
130
|
width: 100,
|
|
130
131
|
dataIndex: 'test1',
|
|
131
132
|
key: 'test1',
|
|
@@ -148,7 +149,7 @@ var SyhDemo = function () {
|
|
|
148
149
|
},
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
|
-
title: '测试2',
|
|
152
|
+
title: i18next.t('测试2'),
|
|
152
153
|
width: 100,
|
|
153
154
|
dataIndex: 'test2',
|
|
154
155
|
key: 'test2',
|
|
@@ -159,7 +160,7 @@ var SyhDemo = function () {
|
|
|
159
160
|
},
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
|
-
title: '测试3',
|
|
163
|
+
title: i18next.t('测试3'),
|
|
163
164
|
width: 100,
|
|
164
165
|
dataIndex: 'test3',
|
|
165
166
|
key: 'test3',
|
|
@@ -182,7 +183,7 @@ var SyhDemo = function () {
|
|
|
182
183
|
},
|
|
183
184
|
},
|
|
184
185
|
{
|
|
185
|
-
title: '测试4',
|
|
186
|
+
title: i18next.t('测试4'),
|
|
186
187
|
width: 100,
|
|
187
188
|
dataIndex: 'text4Start',
|
|
188
189
|
key: 'text4Start',
|
|
@@ -235,21 +236,21 @@ var SyhDemo = function () {
|
|
|
235
236
|
React.createElement(Form, { name: "syh-demo", form: form },
|
|
236
237
|
React.createElement(SearchContainer, null,
|
|
237
238
|
React.createElement(SearchLeft, null,
|
|
238
|
-
React.createElement(SearchItem, { width: "half", name: "a", label:
|
|
239
|
+
React.createElement(SearchItem, { width: "half", name: "a", label: i18next.t('第一') },
|
|
239
240
|
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, onChange: function (e) {
|
|
240
241
|
console.log(e.target.value);
|
|
241
242
|
} })),
|
|
242
|
-
React.createElement(SearchItem, { width: "half", name: "b", label:
|
|
243
|
+
React.createElement(SearchItem, { width: "half", name: "b", label: i18next.t('第二') },
|
|
243
244
|
React.createElement(Input, null)),
|
|
244
|
-
React.createElement(SearchItem, { width: "half", name: "c", label:
|
|
245
|
+
React.createElement(SearchItem, { width: "half", name: "c", label: i18next.t('第三') },
|
|
245
246
|
React.createElement(Input, null)),
|
|
246
|
-
React.createElement(SearchItem, { width: "half", name: "d", label:
|
|
247
|
+
React.createElement(SearchItem, { width: "half", name: "d", label: i18next.t('第四') },
|
|
247
248
|
React.createElement(Input, null)),
|
|
248
|
-
React.createElement(SearchItem, { width: "half", name: "e", label:
|
|
249
|
+
React.createElement(SearchItem, { width: "half", name: "e", label: i18next.t('第五') },
|
|
249
250
|
React.createElement(Input, null)),
|
|
250
|
-
React.createElement(SearchItem, { name: "f", label:
|
|
251
|
+
React.createElement(SearchItem, { name: "f", label: i18next.t('第六') },
|
|
251
252
|
React.createElement(Cascader, { options: aa })),
|
|
252
|
-
React.createElement(SearchItem, { name: "g", label:
|
|
253
|
+
React.createElement(SearchItem, { name: "g", label: i18next.t('第七') },
|
|
253
254
|
React.createElement(TextArea, { maxLength: 6 }))),
|
|
254
255
|
React.createElement(SearchRight, { onResetHandle: function () { }, onSearchHandle: function () { } }))),
|
|
255
256
|
React.createElement(Table, { columns: columns, dataSource: records, rowKey: "id", onEditableSave: onEditableSaveHandle })));
|
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
/**
|
|
13
14
|
* @description 一个抽屉组件,提供配置字段展示信息
|
|
14
15
|
*/
|
|
@@ -19,127 +20,127 @@ import dayjs from 'dayjs';
|
|
|
19
20
|
var fields = [
|
|
20
21
|
{
|
|
21
22
|
key: 'companyName',
|
|
22
|
-
title: '公司名称',
|
|
23
|
+
title: i18next.t('公司名称'),
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
key: 'depName',
|
|
26
|
-
title: '部门名称',
|
|
27
|
+
title: i18next.t('部门名称'),
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
key: 'packageNo',
|
|
30
|
-
title: '系统批次号',
|
|
31
|
+
title: i18next.t('系统批次号'),
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
key: 'brand',
|
|
34
|
-
title: '品名',
|
|
35
|
+
title: i18next.t('品名'),
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
key: 'texture',
|
|
38
|
-
title: '材质',
|
|
39
|
+
title: i18next.t('材质'),
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
key: 'specification',
|
|
42
|
-
title: '规格',
|
|
43
|
+
title: i18next.t('规格'),
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
key: 'placesteel',
|
|
46
|
-
title: '产地',
|
|
47
|
+
title: i18next.t('产地'),
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
key: 'qualityLevelName',
|
|
50
|
-
title: '质量等级',
|
|
51
|
+
title: i18next.t('质量等级'),
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
key: 'packageTypeName',
|
|
54
|
-
title: '批次类型',
|
|
55
|
+
title: i18next.t('批次类型'),
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
58
|
key: 'busiNatureName',
|
|
58
|
-
title: '业务性质',
|
|
59
|
+
title: i18next.t('业务性质'),
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
62
|
key: 'supplierMemberName',
|
|
62
|
-
title: '供应商名称',
|
|
63
|
+
title: i18next.t('供应商名称'),
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
key: 'checkinTypeName',
|
|
66
|
-
title: '入库方式',
|
|
67
|
+
title: i18next.t('入库方式'),
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
key: 'pcNo',
|
|
70
|
-
title: '采购合同号',
|
|
71
|
+
title: i18next.t('采购合同号'),
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
74
|
key: 'pcSubNo',
|
|
74
|
-
title: '采购合同子项号',
|
|
75
|
+
title: i18next.t('采购合同子项号'),
|
|
75
76
|
},
|
|
76
77
|
{
|
|
77
78
|
key: 'poNo',
|
|
78
|
-
title: '采购订单号',
|
|
79
|
+
title: i18next.t('采购订单号'),
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
key: 'poSubNo',
|
|
82
|
-
title: '采购订单子项号',
|
|
83
|
+
title: i18next.t('采购订单子项号'),
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
key: 'quantityUnitName',
|
|
86
|
-
title: '数量单位',
|
|
87
|
+
title: i18next.t('数量单位'),
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
key: 'currencyName',
|
|
90
|
-
title: '币种',
|
|
91
|
+
title: i18next.t('币种'),
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
94
|
key: '0-7',
|
|
94
|
-
title: '0-7天',
|
|
95
|
+
title: i18next.t('0-7天'),
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
key: '8-15',
|
|
98
|
-
title: '8-15天',
|
|
99
|
+
title: i18next.t('8-15天'),
|
|
99
100
|
},
|
|
100
101
|
{
|
|
101
102
|
key: '16-30',
|
|
102
|
-
title: '16-30天',
|
|
103
|
+
title: i18next.t('16-30天'),
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
106
|
key: '31-60',
|
|
106
|
-
title: '31-60天',
|
|
107
|
+
title: i18next.t('31-60天'),
|
|
107
108
|
},
|
|
108
109
|
{
|
|
109
110
|
key: '61-90',
|
|
110
|
-
title: '61-90天',
|
|
111
|
+
title: i18next.t('61-90天'),
|
|
111
112
|
},
|
|
112
113
|
{
|
|
113
114
|
key: '91-120',
|
|
114
|
-
title: '91-120天',
|
|
115
|
+
title: i18next.t('91-120天'),
|
|
115
116
|
},
|
|
116
117
|
{
|
|
117
118
|
key: '121-180',
|
|
118
|
-
title: '121-180天',
|
|
119
|
+
title: i18next.t('121-180天'),
|
|
119
120
|
},
|
|
120
121
|
{
|
|
121
122
|
key: '181-360',
|
|
122
|
-
title: '181-360天',
|
|
123
|
+
title: i18next.t('181-360天'),
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
key: '361',
|
|
126
|
-
title: '≥361天',
|
|
127
|
+
title: i18next.t('≥361天'),
|
|
127
128
|
},
|
|
128
129
|
{
|
|
129
130
|
key: 'availQuantity',
|
|
130
|
-
title: '库存数量',
|
|
131
|
+
title: i18next.t('库存数量'),
|
|
131
132
|
},
|
|
132
133
|
{
|
|
133
134
|
key: 'availMoney',
|
|
134
|
-
title: '库存金额',
|
|
135
|
+
title: i18next.t('库存金额'),
|
|
135
136
|
},
|
|
136
137
|
{
|
|
137
138
|
key: 'freeQuantity',
|
|
138
|
-
title: '库存可供数量',
|
|
139
|
+
title: i18next.t('库存可供数量'),
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
key: 'freeMoney',
|
|
142
|
-
title: '库存可供金额',
|
|
143
|
+
title: i18next.t('库存可供金额'),
|
|
143
144
|
},
|
|
144
145
|
];
|
|
145
146
|
var rowFields = [
|
|
@@ -249,7 +250,7 @@ var TableAnalyse = function () {
|
|
|
249
250
|
var numberArr = ['availQuantity', 'freeQuantity'];
|
|
250
251
|
// 增加汇总字段
|
|
251
252
|
newColumns.push({
|
|
252
|
-
title: '汇总',
|
|
253
|
+
title: i18next.t('汇总'),
|
|
253
254
|
dataIndex: 'ageAnalisysAll',
|
|
254
255
|
key: 'ageAnalisysAll',
|
|
255
256
|
children: valueFields.map(function (valueField) { return ({
|
|
@@ -276,7 +277,7 @@ var TableAnalyse = function () {
|
|
|
276
277
|
});
|
|
277
278
|
};
|
|
278
279
|
return (React.createElement(React.Fragment, null,
|
|
279
|
-
React.createElement(Button, { type: "primary", onClick: function () { return setVisible(true); } },
|
|
280
|
+
React.createElement(Button, { type: "primary", onClick: function () { return setVisible(true); } }, i18next.t('自定义分析')),
|
|
280
281
|
React.createElement(Table, { columns: columns, dataSource: dataSource, rowKey: "id" }),
|
|
281
282
|
React.createElement(Analyse, { fields: fields, rowFields: rowFields, colFields: colFields, valueFields: valueFields, visible: visible, onClose: function () { return setVisible(false); }, onChange: onAnalyseChangeHandle })));
|
|
282
283
|
};
|