ztxkui 10.0.31 → 10.0.33
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/components/EnhanceSelect/index.js +4 -1
- package/dist/components/business/DgColumns/index.js +12 -2
- package/dist/components/business/DgColumns/props.d.ts +2 -0
- package/dist/components/business/Signatures/components/ContractTemplateAttach.d.ts +14 -0
- package/dist/components/business/Signatures/components/ContractTemplateAttach.js +18 -0
- package/package.json +1 -1
|
@@ -958,7 +958,10 @@ function EnhanceSelect(_a) {
|
|
|
958
958
|
onFocus && onFocus(e);
|
|
959
959
|
};
|
|
960
960
|
var onBlurHandle = function (e) {
|
|
961
|
-
|
|
961
|
+
// 这里去掉setState 可能的原因是
|
|
962
|
+
// 点击下拉框底部按钮的时候,下拉框onBlur事件先触发,这里又设置了setState
|
|
963
|
+
// 导致组件更新,点击底部按钮的事件没有触发执行
|
|
964
|
+
// setIsOpen(false);
|
|
962
965
|
onBlur && onBlur(e);
|
|
963
966
|
};
|
|
964
967
|
// 清空数据时
|
|
@@ -23,11 +23,12 @@ import React, { useImperativeHandle, useEffect, useCallback, useState, } from 'r
|
|
|
23
23
|
import { Checkbox, message, Select } from '../../../index';
|
|
24
24
|
// 自定义组件
|
|
25
25
|
import TemplateAttach from '../Signatures/components/TemplateAttach';
|
|
26
|
+
import ContractTemplateAttach from '../Signatures/components/ContractTemplateAttach';
|
|
26
27
|
import CompareResult from '../Signatures/components/CompareResult';
|
|
27
28
|
import { useRecords } from '../Signatures/hooks';
|
|
28
29
|
var Option = Select.Option;
|
|
29
30
|
var DgColumns = function (_a) {
|
|
30
|
-
var ATTACH_TYPE = _a.ATTACH_TYPE, openCustomerModalHandle = _a.openCustomerModalHandle, isEdit = _a.isEdit, request = _a.request, handleRef = _a.handleRef, attachList = _a.attachList, updateAttachList = _a.updateAttachList, filesTableRef = _a.filesTableRef, attachType_Filter_List = _a.attachType_Filter_List;
|
|
31
|
+
var ATTACH_TYPE = _a.ATTACH_TYPE, openCustomerModalHandle = _a.openCustomerModalHandle, openContractTemplateModalHandle = _a.openContractTemplateModalHandle, isEdit = _a.isEdit, request = _a.request, handleRef = _a.handleRef, attachList = _a.attachList, updateAttachList = _a.updateAttachList, filesTableRef = _a.filesTableRef, attachType_Filter_List = _a.attachType_Filter_List;
|
|
31
32
|
var columns = getColumns();
|
|
32
33
|
// 组件内部管理的数组
|
|
33
34
|
var _b = useRecords(attachList), records = _b.records, setRecords = _b.setRecords;
|
|
@@ -88,7 +89,7 @@ var DgColumns = function (_a) {
|
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
|
-
title: '
|
|
92
|
+
title: '客户样板',
|
|
92
93
|
key: 'templateAttachId',
|
|
93
94
|
dataIndex: 'templateAttachId',
|
|
94
95
|
width: 220,
|
|
@@ -96,6 +97,15 @@ var DgColumns = function (_a) {
|
|
|
96
97
|
return record.attachType === '001' ? (React.createElement(TemplateAttach, { record: record, index: index, openCustomerModalHandle: openCustomerModalHandle, isEdit: isEdit })) : ('');
|
|
97
98
|
},
|
|
98
99
|
},
|
|
100
|
+
{
|
|
101
|
+
title: '合同模板',
|
|
102
|
+
key: 'contractTemplateId',
|
|
103
|
+
dataIndex: 'contractTemplateId',
|
|
104
|
+
width: 220,
|
|
105
|
+
render: function (text, record, index) {
|
|
106
|
+
return record.attachType === '001' ? (React.createElement(ContractTemplateAttach, { record: record, index: index, openContractTemplateModalHandle: openContractTemplateModalHandle, isEdit: isEdit })) : ('');
|
|
107
|
+
},
|
|
108
|
+
},
|
|
99
109
|
{
|
|
100
110
|
title: '合同对比结果',
|
|
101
111
|
width: 100,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 肖景予
|
|
3
|
+
* @description 合同模板
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
interface IProps {
|
|
7
|
+
record: any;
|
|
8
|
+
index: number;
|
|
9
|
+
/** 点击合同模版 */
|
|
10
|
+
openContractTemplateModalHandle?: any;
|
|
11
|
+
isEdit: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const ContractTemplateAttach: React.FC<IProps>;
|
|
14
|
+
export default ContractTemplateAttach;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 肖景予
|
|
3
|
+
* @description 合同模板
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
// ztxkui公共组件
|
|
7
|
+
import { Button } from '../../../../index';
|
|
8
|
+
var ContractTemplateAttach = function (_a) {
|
|
9
|
+
var record = _a.record, openContractTemplateModalHandle = _a.openContractTemplateModalHandle, index = _a.index, isEdit = _a.isEdit;
|
|
10
|
+
return (React.createElement("div", null,
|
|
11
|
+
React.createElement("div", { style: { textOverflow: 'ellipsis', overflow: 'hidden' }, title: record.contractTemplateName || '' }, record.contractTemplateName || ''),
|
|
12
|
+
React.createElement("div", null,
|
|
13
|
+
React.createElement(Button, { type: "link", disabled: !isEdit, onClick: function () {
|
|
14
|
+
openContractTemplateModalHandle &&
|
|
15
|
+
openContractTemplateModalHandle(index);
|
|
16
|
+
} }, "\u9009\u62E9\u6BD4\u5BF9\u6A21\u677F"))));
|
|
17
|
+
};
|
|
18
|
+
export default ContractTemplateAttach;
|