ztxkui 3.8.2 → 3.8.3
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/DemoCom/BasicDemo.js +4 -1
- package/dist/DemoCom/FormDemo.js +1 -0
- package/dist/DemoCom/TableDemo.js +4 -2
- package/dist/components/Input/input.js +5 -0
- package/dist/components/business/DgColumns/index.js +1 -7
- package/dist/components/business/Signatures/components/CompareResult.d.ts +0 -2
- package/dist/components/business/Signatures/components/CompareResult.js +1 -1
- package/dist/components/business/Signatures/components/DetailTable.d.ts +2 -0
- package/dist/components/business/Signatures/components/DetailTable.js +40 -2
- package/dist/components/business/Signatures/components/TemplateAttach.js +1 -1
- package/dist/components/business/Signatures/index.js +4 -8
- package/package.json +1 -1
|
@@ -56,6 +56,7 @@ function BasicDemo() {
|
|
|
56
56
|
dayjs('2022-05-31'),
|
|
57
57
|
]), rangeValue = _b[0], setRangeValue = _b[1];
|
|
58
58
|
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
|
59
|
+
var _d = useState(), iValue = _d[0], setIValue = _d[1];
|
|
59
60
|
return (React.createElement(Container, { loading: loading, isFlex: true },
|
|
60
61
|
React.createElement(Button, { onClick: function () {
|
|
61
62
|
setLoading(true);
|
|
@@ -176,6 +177,8 @@ function BasicDemo() {
|
|
|
176
177
|
} }, "\u8DF3\u8F6C"),
|
|
177
178
|
React.createElement(Button, { type: "link", onClick: function () {
|
|
178
179
|
console.log(111);
|
|
179
|
-
|
|
180
|
+
console.log(iValue);
|
|
181
|
+
}, showCopy: true }, "\u6211\u662F\u4E00\u4E2A\u94FE\u63A51111111111111111111"),
|
|
182
|
+
React.createElement(Input, { value: iValue, onChange: function (e) { return setIValue(e.target.value); } })));
|
|
180
183
|
}
|
|
181
184
|
export default BasicDemo;
|
package/dist/DemoCom/FormDemo.js
CHANGED
|
@@ -130,6 +130,7 @@ var FormDemo = function () {
|
|
|
130
130
|
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
131
131
|
var _a;
|
|
132
132
|
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
133
|
+
console.log(form.getFieldsValue());
|
|
133
134
|
}, onResetHandle: function () { } })))));
|
|
134
135
|
};
|
|
135
136
|
export default FormDemo;
|
|
@@ -588,14 +588,16 @@ var TableDemo = function () {
|
|
|
588
588
|
},
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
|
-
title: '编辑字段
|
|
591
|
+
title: '编辑字段11',
|
|
592
592
|
width: 220,
|
|
593
593
|
dataIndex: 'test3',
|
|
594
594
|
key: 'test3',
|
|
595
595
|
// 普通的输入框
|
|
596
596
|
editable: true,
|
|
597
|
+
required: true,
|
|
597
598
|
validate: {
|
|
598
599
|
validate: function (value, record, index, title) {
|
|
600
|
+
console.log(value);
|
|
599
601
|
if (Object.keys(tableConfig).length === 2 || !value) {
|
|
600
602
|
return Promise.reject({
|
|
601
603
|
errorFields: [
|
|
@@ -916,7 +918,7 @@ var TableDemo = function () {
|
|
|
916
918
|
// initColumns={columns}
|
|
917
919
|
columns: columns, dataSource: records, rowKey: "id", tableHandleRef: tableHandleRef,
|
|
918
920
|
// 配置表格列
|
|
919
|
-
configInfo
|
|
921
|
+
// configInfo={tableConfig}
|
|
920
922
|
// 添加动态列配置
|
|
921
923
|
showColumnDynamic: true, showColumnDynamicKey: "testkey",
|
|
922
924
|
// onDynamicChange={onDynamicChange}
|
|
@@ -14,6 +14,11 @@ import Modal from '../Modal';
|
|
|
14
14
|
import { Input as AntInput } from 'antd';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
function Input(props) {
|
|
17
|
+
// const onBlur = (e) => {
|
|
18
|
+
// props.onBlur && props.onBlur(e);
|
|
19
|
+
// e.target.value = e.target.value.trim();
|
|
20
|
+
// props.onChange && props.onChange(e);
|
|
21
|
+
// };
|
|
17
22
|
return React.createElement(AntInput, __assign({}, props));
|
|
18
23
|
}
|
|
19
24
|
var TextArea = React.forwardRef(function (props, ref) {
|
|
@@ -40,12 +40,6 @@ var DgColumns = function (_a) {
|
|
|
40
40
|
return newRecords;
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
/** 获取taskId */
|
|
44
|
-
var getTaskId = function (id, index) {
|
|
45
|
-
handleRef.current.setTemplateData({
|
|
46
|
-
taskId: id,
|
|
47
|
-
}, index);
|
|
48
|
-
};
|
|
49
43
|
var dgColumns = [
|
|
50
44
|
{
|
|
51
45
|
title: '存入样板',
|
|
@@ -74,7 +68,7 @@ var DgColumns = function (_a) {
|
|
|
74
68
|
key: 'compareAttachId',
|
|
75
69
|
fixed: 'left',
|
|
76
70
|
render: function (text, record, index) {
|
|
77
|
-
return record.attachType === '001' ? (React.createElement(CompareResult, { record: record, index: index, request: request
|
|
71
|
+
return record.attachType === '001' ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
|
|
78
72
|
},
|
|
79
73
|
},
|
|
80
74
|
];
|
|
@@ -7,7 +7,7 @@ import React, { useState } from 'react';
|
|
|
7
7
|
// ztxkui公共组件
|
|
8
8
|
import { Button, message } from '../../../../index';
|
|
9
9
|
var CompareResult = function (_a) {
|
|
10
|
-
var record = _a.record, index = _a.index, request = _a.request
|
|
10
|
+
var record = _a.record, index = _a.index, request = _a.request;
|
|
11
11
|
// 设置查看比对结果按钮的loading状态
|
|
12
12
|
var _b = useState(false), resultLoading = _b[0], setResultLoading = _b[1];
|
|
13
13
|
var viewCompareResult = function () {
|
|
@@ -15,10 +15,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
15
15
|
};
|
|
16
16
|
import React, { memo } from 'react';
|
|
17
17
|
import { Table, Button } from '../../../../index';
|
|
18
|
+
import { Switch } from 'antd';
|
|
18
19
|
// 自定义组件
|
|
19
20
|
import AttachOperation from './AttachOperation';
|
|
21
|
+
import CompareResult from './CompareResult';
|
|
20
22
|
var DetailTable = function (_a) {
|
|
21
|
-
var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus, showContranctNum = _a.showContranctNum;
|
|
23
|
+
var needQj = _a.needQj, needQys = _a.needQys, records = _a.records, qunjSeal = _a.qunjSeal, electronicSeal = _a.electronicSealIdList, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, token = _a.token, viewSealPageFn = _a.viewSealPageFn, contractId = _a.contractId, electronicList = _a.electronicList, sealList = _a.sealList, querySealStatus = _a.querySealStatus, showContranctNum = _a.showContranctNum, request = _a.request, needSaveTemplate = _a.needSaveTemplate;
|
|
22
24
|
var authToken = token || '';
|
|
23
25
|
/** 下载水印附件 */
|
|
24
26
|
var downFileFn = function (_record) {
|
|
@@ -71,6 +73,42 @@ var DetailTable = function (_a) {
|
|
|
71
73
|
React.createElement(AttachOperation, { ZT_API_BASEURL: ZT_API_BASEURL, ZT_FILE_BASEURL: ZT_FILE_BASEURL, token: authToken, attachId: record === null || record === void 0 ? void 0 : record.attachId, attachName: record === null || record === void 0 ? void 0 : record.attachName, attachSize: record === null || record === void 0 ? void 0 : record.attachSize })));
|
|
72
74
|
},
|
|
73
75
|
},
|
|
76
|
+
{
|
|
77
|
+
title: '合同',
|
|
78
|
+
key: 'needDg',
|
|
79
|
+
dataIndex: 'needDg',
|
|
80
|
+
children: [
|
|
81
|
+
{
|
|
82
|
+
title: '合同比对模板',
|
|
83
|
+
key: 'templateAttachId',
|
|
84
|
+
dataIndex: 'templateAttachId',
|
|
85
|
+
width: 160,
|
|
86
|
+
render: function (text, record, index) {
|
|
87
|
+
return record.attachTypeName === '合同本身' ? (React.createElement(React.Fragment, null,
|
|
88
|
+
React.createElement("div", { style: { textOverflow: 'ellipsis', overflow: 'hidden' }, title: record.templateAttachName || '' }, record.templateAttachName || ''),
|
|
89
|
+
React.createElement("div", null, record.templateCrNo || ''))) : ('');
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: '合同比对结果',
|
|
94
|
+
key: 'compareAttachId',
|
|
95
|
+
dataIndex: 'compareAttachId',
|
|
96
|
+
width: 100,
|
|
97
|
+
render: function (text, record, index) {
|
|
98
|
+
return record.attachTypeName === '合同本身' ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: '保存为模板',
|
|
103
|
+
key: 'templateAttachId',
|
|
104
|
+
dataIndex: 'templateAttachId',
|
|
105
|
+
width: 90,
|
|
106
|
+
render: function (text, record, index) {
|
|
107
|
+
return needSaveTemplate ? (React.createElement(Switch, { checked: !!record.isCustomerReference, disabled: true })) : ('');
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
74
112
|
{
|
|
75
113
|
title: '水印',
|
|
76
114
|
key: 'isWatermark',
|
|
@@ -84,7 +122,7 @@ var DetailTable = function (_a) {
|
|
|
84
122
|
title: '电子印章',
|
|
85
123
|
key: 'electronicSeal',
|
|
86
124
|
dataIndex: 'electronicSeal',
|
|
87
|
-
width:
|
|
125
|
+
width: 230,
|
|
88
126
|
render: function (value, row, index) {
|
|
89
127
|
var obj = {
|
|
90
128
|
children: (React.createElement("div", { style: { height: '100%', padding: '10px 0' } },
|
|
@@ -13,6 +13,6 @@ var TemplateAttach = function (_a) {
|
|
|
13
13
|
React.createElement("div", null,
|
|
14
14
|
React.createElement(Button, { type: "link", disabled: !isEdit, onClick: function () {
|
|
15
15
|
openCustomerModalHandle && openCustomerModalHandle(index);
|
|
16
|
-
} }, "\u9009\u62E9\u6BD4\u5BF9\u6A21\
|
|
16
|
+
} }, "\u9009\u62E9\u6BD4\u5BF9\u6A21\u677F"))));
|
|
17
17
|
};
|
|
18
18
|
export default TemplateAttach;
|
|
@@ -240,12 +240,6 @@ var Sinatures = function (_a) {
|
|
|
240
240
|
getQunjSealList();
|
|
241
241
|
}
|
|
242
242
|
}, [getElectronicList, getQunjSealList, needQj, needQys]);
|
|
243
|
-
/** 获取taskId */
|
|
244
|
-
var getTaskId = function (id, index) {
|
|
245
|
-
handleRef.current.setTemplateData({
|
|
246
|
-
taskId: id,
|
|
247
|
-
}, index);
|
|
248
|
-
};
|
|
249
243
|
/** 指定签署位置 */
|
|
250
244
|
var checkSealFn = function () {
|
|
251
245
|
// 已勾选的附件中存在attachId为空的标识
|
|
@@ -424,11 +418,11 @@ var Sinatures = function (_a) {
|
|
|
424
418
|
dataIndex: 'compareAttachId',
|
|
425
419
|
width: 150,
|
|
426
420
|
render: function (text, record, index) {
|
|
427
|
-
return record.attachTypeName === '合同本身' ? (React.createElement(CompareResult, { record: record, index: index, request: request
|
|
421
|
+
return record.attachTypeName === '合同本身' ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
|
|
428
422
|
},
|
|
429
423
|
},
|
|
430
424
|
{
|
|
431
|
-
title: '
|
|
425
|
+
title: '保存为模板',
|
|
432
426
|
key: 'templateAttachId',
|
|
433
427
|
dataIndex: 'templateAttachId',
|
|
434
428
|
width: 110,
|
|
@@ -763,6 +757,8 @@ var Sinatures = function (_a) {
|
|
|
763
757
|
needQj: needQj,
|
|
764
758
|
needQys: needQys,
|
|
765
759
|
showContranctNum: showContranctNum,
|
|
760
|
+
request: request,
|
|
761
|
+
needSaveTemplate: NEED_SAVE_TEMPLATE.includes("" + flowId),
|
|
766
762
|
};
|
|
767
763
|
return (React.createElement(React.Fragment, null, isEdit ? (React.createElement(Table, { columns: columnsLast, rowKey: "attachId", dataSource: records, scroll: { x: 'max-content' } })) : (React.createElement(DetailTable, __assign({}, detail)))));
|
|
768
764
|
};
|