ztxkui 10.0.32 → 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.
@@ -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,
@@ -19,4 +19,6 @@ export interface IProps {
19
19
  filesTableRef: any;
20
20
  /** 附件类型需过滤掉的列表 */
21
21
  attachType_Filter_List: string[];
22
+ /** 点击合同模版 */
23
+ openContractTemplateModalHandle?: any;
22
24
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "10.0.32",
3
+ "version": "10.0.33",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",
@@ -103,4 +103,4 @@
103
103
  "react-dom": ">=16.9.0",
104
104
  "ztxkutils": ">=2.1.1"
105
105
  }
106
- }
106
+ }