ztxkui 10.0.95 → 10.0.97

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.
Files changed (150) hide show
  1. package/dist/components/TranslationButton/DownFile.d.ts +7 -0
  2. package/dist/components/TranslationButton/DownFile.js +97 -0
  3. package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
  4. package/dist/components/TranslationButton/PreviewFile.js +75 -0
  5. package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
  6. package/dist/components/TranslationButton/TranslationButton.js +247 -0
  7. package/dist/components/TranslationButton/demoComponents/index.d.ts +3 -0
  8. package/dist/components/TranslationButton/demoComponents/index.js +9 -0
  9. package/dist/components/TranslationButton/hooks.d.ts +8 -0
  10. package/dist/components/TranslationButton/hooks.js +143 -0
  11. package/dist/components/TranslationButton/index.d.ts +4 -0
  12. package/dist/components/TranslationButton/index.js +4 -0
  13. package/dist/components/Upload/utils.d.ts +8 -1
  14. package/dist/components/Upload/utils.js +56 -4
  15. package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
  16. package/dist/components/UploadCustom/hooks/useDg.js +57 -0
  17. package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
  18. package/dist/components/business/Signatures/components/CodeModal.js +159 -0
  19. package/dist/components/electron-signatures/content.d.ts +9 -0
  20. package/dist/components/electron-signatures/content.js +1126 -0
  21. package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
  22. package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
  23. package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
  24. package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
  25. package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
  26. package/dist/components/electron-signatures/demoComponents/index.js +27 -0
  27. package/dist/components/electron-signatures/demoComponents/index_old.d.ts +3 -0
  28. package/dist/components/electron-signatures/demoComponents/index_old.js +502 -0
  29. package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
  30. package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
  31. package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
  32. package/dist/components/electron-signatures/demoComponents/making.js +211 -0
  33. package/dist/components/electron-signatures/demoComponents/makingData.d.ts +663 -0
  34. package/dist/components/electron-signatures/demoComponents/makingData.js +1164 -0
  35. package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
  36. package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
  37. package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
  38. package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
  39. package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
  40. package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
  41. package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
  42. package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
  43. package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
  44. package/dist/components/electron-signatures/demoComponents/test.js +119 -0
  45. package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
  46. package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
  47. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
  48. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
  49. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
  50. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
  51. package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
  52. package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
  53. package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
  54. package/dist/components/electron-signatures/electron-signatures-fragment.js +344 -0
  55. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
  56. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +513 -0
  57. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
  58. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
  59. package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
  60. package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +89 -0
  61. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
  62. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
  63. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
  64. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
  65. package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
  66. package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
  67. package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
  68. package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
  69. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
  70. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
  71. package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
  72. package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
  73. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
  74. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +45 -0
  75. package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
  76. package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +380 -0
  77. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +20 -0
  78. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +169 -0
  79. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
  80. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +38 -0
  81. package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
  82. package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
  83. package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
  84. package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
  85. package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
  86. package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
  87. package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
  88. package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
  89. package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
  90. package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
  91. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
  92. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +45 -0
  93. package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
  94. package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
  95. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
  96. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
  97. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
  98. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +134 -0
  99. package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
  100. package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
  101. package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
  102. package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
  103. package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +102 -0
  104. package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +365 -0
  105. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
  106. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
  107. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
  108. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
  109. package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
  110. package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
  111. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
  112. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
  113. package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
  114. package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
  115. package/dist/components/electron-signatures/index.d.ts +13 -0
  116. package/dist/components/electron-signatures/index.js +54 -0
  117. package/dist/components/electron-signatures/index_old.d.ts +9 -0
  118. package/dist/components/electron-signatures/index_old.js +966 -0
  119. package/dist/components/electron-signatures/interface.d.ts +849 -0
  120. package/dist/components/electron-signatures/interface.js +57 -0
  121. package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
  122. package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
  123. package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
  124. package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
  125. package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
  126. package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
  127. package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
  128. package/dist/components/electron-signatures/qunjComponents/qunj-list.js +346 -0
  129. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
  130. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +63 -0
  131. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
  132. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
  133. package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
  134. package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
  135. package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
  136. package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
  137. package/dist/components/electron-signatures/utils.d.ts +26 -0
  138. package/dist/components/electron-signatures/utils.js +67 -0
  139. package/dist/components/utils/ZtxkContext.d.ts +16 -0
  140. package/dist/components/utils/ZtxkContext.js +4 -0
  141. package/dist/components/utils/useMemoizedFn.d.ts +6 -0
  142. package/dist/components/utils/useMemoizedFn.js +22 -0
  143. package/dist/components/utils/usePrevious.d.ts +3 -0
  144. package/dist/components/utils/usePrevious.js +13 -0
  145. package/dist/index.css +686 -0
  146. package/dist/index.css.map +1 -1
  147. package/dist/index.d.ts +3 -0
  148. package/dist/index.js +105 -87
  149. package/dist/request.js +1 -1
  150. package/package.json +4 -3
@@ -0,0 +1,849 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from 'antd';
3
+ /** 附件的字段说明 */
4
+ export interface IFileFieldsName {
5
+ /** 附件id */
6
+ attachId: string;
7
+ /** 附件名 */
8
+ attachName: string;
9
+ /** 上一版附件id */
10
+ oldVersionId: string;
11
+ /** 上一版附件名 */
12
+ oldVersionName: string;
13
+ /** 附件大小 bite */
14
+ attachSize?: string;
15
+ /** 附件类型code */
16
+ attachType?: string;
17
+ /** 附件类型名 */
18
+ attachTypeName?: string;
19
+ /** 是否存入样板 */
20
+ isCustomerReference?: string;
21
+ /** 模板附件id */
22
+ templateAttachId?: string;
23
+ /** 模板附件名 */
24
+ templateAttachName?: string;
25
+ /** 模板附件大小 */
26
+ templateAttachSize?: string;
27
+ /** 比对结果附件id */
28
+ compareAttachId?: string;
29
+ /** 比对结果附件名 */
30
+ compareAttachName?: string;
31
+ /** 比对结果附件大小 */
32
+ compareAttachSize?: string;
33
+ /** 是否添加水印 */
34
+ isWatermark?: string;
35
+ /** 是否加盖电子印章 */
36
+ isElectronicSeal?: string;
37
+ /** 样板号 */
38
+ templateCrNo?: string;
39
+ /** 外部客户产融平台电子印章是否勾选 1表示勾选,0表示未勾选 */
40
+ fmsIsElectronicSeal?: string;
41
+ /** 是否展示外部客户产融平台电子印章勾选框 这个字段需要调用开发自行传入。用来控制是否显示勾选框逻辑 */
42
+ showFmsIsElectronicSeal?: string;
43
+ /** 是否推送银行是否勾选 */
44
+ fmsIsPushBank?: string;
45
+ /** 是否展示推送银行按钮,这个字段也需要开发自行传入 */
46
+ showFmsIsPushBank?: string;
47
+ /** 是否盖户用合同章是否勾选 */
48
+ openingContractSeal?: string;
49
+ /** 是否展示推送银行按钮,这个字段也需要开发自行传入 */
50
+ showOpeningContractSeal?: string;
51
+ /** 双签件 */
52
+ doubleSignedSealInfoDTOList?: string;
53
+ /** 是否添加群杰印章信息 */
54
+ isQunj?: string;
55
+ /** 群杰印章盖章地点 */
56
+ qunjAddress?: string;
57
+ /** 群杰印章信息 */
58
+ qunjSeal?: string;
59
+ /** 是否替换附件 */
60
+ isReplaceFile?: number;
61
+ /** 是否有添加水印的按钮 */
62
+ showAddWater?: boolean;
63
+ /** 是否为重要文件 */
64
+ isImportant?: string;
65
+ }
66
+ declare const FILE_FIELDS_NAME: IFileFieldsName;
67
+ export { FILE_FIELDS_NAME };
68
+ export interface IElectronSignaturesItem {
69
+ /**
70
+ * 相关数据发生改变时的
71
+ * 回调事件
72
+ */
73
+ onValueChange?: (info: {
74
+ [prop: string]: IChangeValue;
75
+ }) => void;
76
+ /**
77
+ * 附件列表
78
+ */
79
+ fileList?: IFileItem[];
80
+ /**
81
+ * 附件拆分展示规则
82
+ * 需求:”同一类型“的附件,可能要按业务分开成两行显示
83
+ * 开发需要根据 record 行数据 来判断当前行属于哪个key,哪个name
84
+ */
85
+ fileSplitRules?: (record: any) => {
86
+ key: string;
87
+ name: string;
88
+ };
89
+ /**
90
+ * 附件拆分展示规则
91
+ * 如果fileSplitRules 返回了一系列的key,name
92
+ * 这个字段可以传入 ['key1', 'key2', 'key3'] 数据将按这种规则排序展示
93
+ */
94
+ fileSplitStringRules?: string[];
95
+ /**
96
+ * 当前附件上传时的转换
97
+ */
98
+ parseCurrentUploadFile?: (record: any) => any;
99
+ /**
100
+ * 附件字段转换规则
101
+ */
102
+ fileFieldsName?: IFileFieldsName;
103
+ /**
104
+ * 附件类型是否允许修改
105
+ */
106
+ isAllowedPatchFileType?: boolean;
107
+ /**
108
+ * 附件类型字典key值
109
+ */
110
+ fileTypeKey?: string;
111
+ /**
112
+ * 附件类型 需要排除显示的一些字段
113
+ */
114
+ fileTypeFilterList?: string[];
115
+ /**
116
+ * 是否使用外部传入的附件类型列表
117
+ */
118
+ useOutsideFileTypeList?: boolean;
119
+ /**
120
+ * 附件类型展示字段 如果传了这个 那么以这个的值优先
121
+ */
122
+ fileTypeList?: any;
123
+ /**
124
+ * 数据类型(相同类型的数据 会合并起来)
125
+ * 类似指定附件归属的key 一个数据归属是一份数据
126
+ */
127
+ dataType?: string;
128
+ /**
129
+ * 数据类型的名称 用户指定附件归属的展示名称
130
+ */
131
+ dataTypeName?: string;
132
+ /**
133
+ * 附件归属是否增加底色
134
+ */
135
+ isBgColor?: boolean;
136
+ /**
137
+ * 是否可以编辑
138
+ * 1 可以编辑
139
+ * 0 不可编辑
140
+ */
141
+ canEdit?: number;
142
+ /**
143
+ * 是否需要显示达观合同比对功能
144
+ * 1 显示
145
+ * 0 隐藏
146
+ */
147
+ needDg?: number;
148
+ /**
149
+ * 判断是否显示达观相关组件
150
+ * 业务那边有这种判断 只有附加类型是合同本身时 才显示模板比对功能
151
+ */
152
+ isShowContractComparsion?: (record: any, records?: any[]) => boolean;
153
+ /**
154
+ * 是否显示群杰印章 盖物理章使用
155
+ * 1 显示
156
+ * 0 隐藏
157
+ */
158
+ needQj?: number;
159
+ /**
160
+ * 默认是否勾选群杰印章-用印申请
161
+ */
162
+ isDefaultQunj?: boolean;
163
+ /**
164
+ * 群杰印章盖章地点 下拉列表
165
+ */
166
+ qunjAddressList?: any;
167
+ /**
168
+ * 是否显示群杰印章盖章地点
169
+ */
170
+ isQunjAddress?: boolean;
171
+ /**
172
+ * 当前选中的群杰印章盖章地址
173
+ */
174
+ qunjAddress?: any;
175
+ /**
176
+ * 是否显示契约锁电子印章 盖电子章使用
177
+ * 1 显示
178
+ * 0 隐藏
179
+ */
180
+ needQys?: number;
181
+ /**
182
+ * 已选中的电子印章
183
+ * 回显时使用
184
+ */
185
+ electronicSealIdList?: string[];
186
+ /** 已选中群杰印章列表 */
187
+ qunjSeal?: IQunjProps;
188
+ /**
189
+ * 已经盖过章的附件id
190
+ * 其实这个应该是可以通过 docAttachMap 这个数据来取到已经盖了章子的附件
191
+ * 用于校验上传的附件是新增还是删除,组件返回这个参数,需要保存,下次调用组件时传入
192
+ */
193
+ checkAttachIdList?: string[];
194
+ /**
195
+ * 是否默认勾选经济责任人 1为默认勾选 0为不勾选
196
+ */
197
+ isCheckedEconomic?: number;
198
+ /** 合同id */
199
+ contractId?: string;
200
+ /**
201
+ * 后台用于维护 当前合同id下 附件id(key)与文档id(value)的关系map 后台解绑文档时使用
202
+ */
203
+ docAttachMap?: any;
204
+ /**
205
+ * 流程ID 这类流程的一个Key值 加上部门id一起 获取当前的电子印章列表
206
+ */
207
+ flowId?: string;
208
+ /**
209
+ * 流程状态 15 审批中 50 审批完成
210
+ */
211
+ flowStatus?: any;
212
+ /**
213
+ * 部门ID
214
+ */
215
+ deptId?: string;
216
+ /**
217
+ * 二级单元ID
218
+ */
219
+ secondDepId?: string;
220
+ /**
221
+ * 群杰印章查询时替代部门ID参数
222
+ */
223
+ qunjReplaceDeptId?: string;
224
+ /**
225
+ * 群杰印章列表显示过滤方法
226
+ */
227
+ qunjListRenderFilter?: (list: any[]) => any[];
228
+ /**
229
+ * 文档id列表
230
+ */
231
+ documentIdList?: string[];
232
+ /**
233
+ * 点击挑选比对合同 触发事件
234
+ */
235
+ onCheckedComparison?: (info: any) => void;
236
+ /**
237
+ * 是否显示保存为模板
238
+ */
239
+ isShowSaveTemplate?: boolean;
240
+ /**
241
+ * 是否显示选择比对模板
242
+ */
243
+ isShowChioseTemplate?: boolean;
244
+ /** 是否合同本身选择模板做是否必填校验 */
245
+ isChoiseChangeTemplateValid?: boolean;
246
+ /**
247
+ * 公司类型传参,过滤群杰印章列表
248
+ */
249
+ companyTypes?: string;
250
+ /**
251
+ * 当前数据的流程id。用来获取群杰验证码的。
252
+ */
253
+ wfProcessInstId?: string;
254
+ /**
255
+ * 能查看当前数据的群杰验证码的用户id列表。
256
+ * 多个用户用逗号隔开
257
+ */
258
+ verifyUserIds?: string;
259
+ }
260
+ export interface IElectronSignaturesItemPublic {
261
+ /**
262
+ * 前往流程中心用印申请逻辑
263
+ */
264
+ goWorkflowSeal?: any;
265
+ /**
266
+ * 是否显示用印增加申请
267
+ */
268
+ isShowSealApply?: boolean;
269
+ /**
270
+ * 请求方法
271
+ */
272
+ request?: any;
273
+ /**
274
+ * 是否给文档添加翻译功能
275
+ */
276
+ isTranslation?: boolean;
277
+ /**
278
+ * 文档添加翻译功能预览路径
279
+ */
280
+ previewUrl?: string;
281
+ /**
282
+ * 是否开启非受控模式
283
+ * 一般情况下 非受控模式不传入value即可。如果要显示默认值也可以传入defaultValue
284
+ * 但是这个组件的信息过多,这里可以通过传入一个属性控制是否是非受控
285
+ * 非受控的性能往往更好 我们只需要在合适的时机调用组件提供的方法 获取值即可
286
+ */
287
+ isUnControlled?: boolean;
288
+ /**
289
+ * 需要显示合同份数的流程id列表
290
+ * 群杰物理章那里 是否需要计算每个印章的用印次数 不能大于合同总份数的 多少倍
291
+ */
292
+ contractNumFlowIds?: string[];
293
+ /**
294
+ * 上传附件的一些公用配置
295
+ */
296
+ fileUploadProps?: IFileUploadProps;
297
+ /**
298
+ * 群杰印章是否每个文件都需要选择对应的印章
299
+ */
300
+ isSingleQj?: boolean;
301
+ /**
302
+ * 默认不显示群杰印章列表,点击 用印时 才弹框显示
303
+ * 默认按这个模式展示
304
+ */
305
+ isQjUseModal?: boolean;
306
+ /**
307
+ * 当前流程不需要附件水印版,不需要根据部门查公司id
308
+ */
309
+ isNoWatermarkProcess?: boolean;
310
+ /**
311
+ * 当点击仅需要群杰印章时,是否需要删除所有附件信息?
312
+ * 默认不删除
313
+ */
314
+ isDeleteAllFileWhenJustUseQj?: boolean;
315
+ /**
316
+ * 当传入了不需要契约锁时,是否显示契约锁列信息
317
+ * 默认也显示
318
+ */
319
+ isShowQysWhenNeedNotQys?: boolean;
320
+ /**
321
+ * 是否需要契约锁是否由组件内部控制
322
+ * 默认是 true
323
+ * @example 当外部明确知道这个流程不需要契约锁时(切换仅需要群杰、使用契约锁按钮不显示),传递的needQys是0
324
+ * 需要传递这个属性为 false
325
+ * 这个时候。不会显示切换契约锁显示隐藏的按钮
326
+ */
327
+ isControlNeedQys?: boolean;
328
+ /**
329
+ * 切换契约锁、群杰显示
330
+ * 默认不显示
331
+ */
332
+ isToggleQys?: boolean;
333
+ /**
334
+ * 默认是否仅显示群杰印章
335
+ * 默认是false
336
+ * @example 如果默认不需要契约锁。但是允许切换显示隐藏
337
+ * 需要传递这个属性 为 true
338
+ * 这个时候,默认不会显示契约锁,但是可以切换显示隐藏显示出来
339
+ * 当然前提是 isControlNeedQys没有配置false
340
+ */
341
+ defaultJustNeedQj?: boolean;
342
+ /**
343
+ * 是否显示附件归属列
344
+ */
345
+ isShowFileTypeMerge?: boolean;
346
+ /**
347
+ * 是否显示上传附件按钮
348
+ */
349
+ isShowFileUpload?: boolean;
350
+ /**
351
+ * 是否显示上传附件按钮-独立性最强 配置了必定显示上传附件按钮
352
+ */
353
+ isShowFileUploadIndependence?: boolean;
354
+ /**
355
+ * 是否显示批量下载附件原件按钮
356
+ */
357
+ isShowDownloadBatchBtn?: boolean;
358
+ /**
359
+ * 是否显示批量删除按钮
360
+ */
361
+ isShowBatchDeleteBtn?: boolean;
362
+ /**
363
+ * 是否显示批量删除按钮-独立性最强 配置了必定显示批量删除按钮
364
+ */
365
+ isShowBatchDeleteBtnIndependence?: boolean;
366
+ /**
367
+ * 批量删除前的逻辑控制
368
+ */
369
+ beforeBatchDelete?: (record: any) => boolean;
370
+ /**
371
+ * 是否显示批量预览按钮
372
+ */
373
+ isShowBatchPreviewBtn?: boolean;
374
+ /**
375
+ * 是否显示文件比对按钮(这个是整体的文件比对)
376
+ */
377
+ isShowFileComparisonBtn?: boolean;
378
+ /**
379
+ * 是否显示批量使用电子印章(这个组件内部还会判断编辑状态以及该流程是否使用了电子章)
380
+ */
381
+ isShowBatchUseElectronicSealBtn?: boolean;
382
+ /**
383
+ * 是否显示批量盖户用电子章(这个组件内部还会判断编辑状态以及该流程是否使用了盖户用电子章)
384
+ */
385
+ isShowBatchUseOpeningContractSealBtn?: boolean;
386
+ /**
387
+ * 批量下载原件的zip包名
388
+ */
389
+ batchDownloadZipName?: string;
390
+ /**
391
+ * 是否显示批量下载电子签章件按钮
392
+ */
393
+ isShowElectronBatchBtn?: boolean;
394
+ /**
395
+ * 是否显示批量下载双签件
396
+ */
397
+ isShowDoubleSignedBatchBtn?: boolean;
398
+ /**
399
+ * 基地址
400
+ */
401
+ apiBaseUrl?: string;
402
+ /**
403
+ * 附件服务器基地址
404
+ */
405
+ fileBaseUrl?: string;
406
+ /**
407
+ * 需要盖外部客户电子章吗?如果需要的话 可以更改这个文本内容
408
+ */
409
+ fmsIsElectronicSealLabel?: string;
410
+ /**
411
+ * 需要推送银行吗?如果需要的话 可以更改这个文本内容
412
+ */
413
+ fmsIsElectronicSealPushLabel?: string;
414
+ /**
415
+ * 盖户用合同章?如果需要的话,可以更改这个文本内容
416
+ */
417
+ openingContractSealLabel?: string;
418
+ /** 是否显示附件类型 */
419
+ isShowFileType?: boolean;
420
+ /**
421
+ * 附件类型发生改变时触发的方法
422
+ */
423
+ onFileTypeChangeGetItem?: (info: any) => any;
424
+ /**
425
+ * 上传时间取值
426
+ */
427
+ getCreateTimeHand?: (record: any) => any;
428
+ /**
429
+ * 占位符附件数据是否需要删除
430
+ */
431
+ isDeletePlaceholderFileData?: boolean;
432
+ /**
433
+ * 支持无附件选群杰印章
434
+ */
435
+ isSupportNoAttachQj?: boolean;
436
+ /**
437
+ * 当前办理事项id????? 外部传入的 暂时没看到从哪里获取到的
438
+ */
439
+ caseId?: string;
440
+ /**
441
+ * 是否应用 群杰验证码的修改
442
+ */
443
+ isQjVerifyCode?: boolean;
444
+ /**
445
+ * 是否应用 最新的契约锁组件样式
446
+ */
447
+ isNewQys?: boolean;
448
+ /**
449
+ * 是否使用新版电子印章展示样式(公司简称分组 + 三段式布局)
450
+ * 未传时取全局 ZtxkContext 中的 isNewElectronSealStyle
451
+ */
452
+ isNewElectronSealStyle?: boolean;
453
+ /**
454
+ * 是否使用新版群杰印章展示样式(公司分组 + 三段式布局)
455
+ * 未传时取全局 ZtxkContext 中的 isNewQunjSealStyle
456
+ */
457
+ isNewQunjSealStyle?: boolean;
458
+ /**
459
+ * 户用合同章显示的逻辑的控制
460
+ */
461
+ isShowOpeningContractSeal?: (record: any, options: any) => boolean;
462
+ /**
463
+ * 自定义按钮
464
+ */
465
+ customButtons?: React.ReactNode;
466
+ /**
467
+ * 发起用印申请地点
468
+ */
469
+ /**
470
+ * 是否添加标为重要复选框
471
+ */
472
+ isShowImportantCheckbox?: boolean;
473
+ /**
474
+ * 其他列配置
475
+ */
476
+ otherColumns?: any;
477
+ /**
478
+ * 盖户用电子章与契约锁脱离关系
479
+ */
480
+ isShowOpeningContractSealNotRelyQys?: boolean;
481
+ }
482
+ export interface IElectronSignaturesProps extends IElectronSignaturesItem, IElectronSignaturesItemPublic {
483
+ /**
484
+ * 多余配置
485
+ */
486
+ otherOptions?: IElectronSignaturesItem | IElectronSignaturesItem[];
487
+ /**
488
+ * 组件暴露给外部的方法
489
+ */
490
+ electronHandleRef?: any;
491
+ /**
492
+ * 最终校验通过的回调
493
+ */
494
+ isValidateSuccess?: any;
495
+ /** 刷新验证码权限 */
496
+ refreshCode?: boolean;
497
+ /**
498
+ * 表格的scroll配置
499
+ */
500
+ tableScroll?: any;
501
+ /** 电子章下载流程状态 */
502
+ sealDownloadFlowStatus?: any;
503
+ }
504
+ /**
505
+ * 这个是遍历传入props 后 生成的一些属性、方法
506
+ * 每个数据类型都会对应一系列的属性、方法
507
+ */
508
+ export interface ITrackItem {
509
+ /** 当前印章列表数据 */
510
+ electronList?: any;
511
+ /** 当前经济责任人(一级责任人)数据 */
512
+ firstLevelPersonName?: any;
513
+ /** 群杰物理章列表数据 */
514
+ qunjList?: any;
515
+ /** 当前选中的群杰数据 */
516
+ currentQunjSeal?: IQunjProps;
517
+ /** 群杰数据发生改变触发的回调 */
518
+ onQunjSealChange?: (info: IQunjProps) => void;
519
+ /** 是否显示合同份数。目前是通过流程id来做判断的(采购合同 销售合同 双边合同 部门间交易合同 需要展示合同份数 其他的不需要) */
520
+ isContranctNum?: boolean;
521
+ /**
522
+ * 群杰印章盖章地点 下拉列表
523
+ */
524
+ qunjAddressList?: IElectronSignaturesItem['qunjAddressList'];
525
+ /** 当前选中的电子印章数据 */
526
+ currentCheckedElectronicSealIdList?: any;
527
+ /** 电子印章更改时触发 */
528
+ onElectronicSealIdChange?: any;
529
+ /** 当前是否需要经济责任人(一级责任人) */
530
+ currentIsCheckedEconomic?: any;
531
+ /** 经济责任人(一级责任人)是否选中更改时触发 */
532
+ onCheckedEconomicChange?: any;
533
+ /** 当前的附件列表数据 */
534
+ records?: IFileItem[];
535
+ /** 设置当前附件列表数据 */
536
+ setRecords?: any;
537
+ /** 字段对应表 */
538
+ fileFieldsNameRef?: {
539
+ current: IFileFieldsName;
540
+ };
541
+ /** 附件拆分规则 */
542
+ fileSplitRules?: IElectronSignaturesItem['fileSplitRules'];
543
+ /** 附件拆分排序规则 */
544
+ fileSplitStringRules?: IElectronSignaturesItem['fileSplitStringRules'];
545
+ parseCurrentUploadFile?: IElectronSignaturesItem['parseCurrentUploadFile'];
546
+ /** 是否仅选中群杰 */
547
+ isQunjOnlyChecked?: boolean;
548
+ setIsQunjOnlyChecked?: any;
549
+ onClearElectronListData?: any;
550
+ onClearElectronSetting?: any;
551
+ /** 是否能编辑 */
552
+ isEdit?: boolean;
553
+ /** 是否需要契约锁 */
554
+ needQys?: boolean;
555
+ /** 是否需要群杰 */
556
+ needQj?: boolean;
557
+ /** 是否需要达观 */
558
+ needDg?: boolean;
559
+ /** 是否需要达观相关操作,默认附件类型如果是合同本身 需要 */
560
+ isShowContractComparsionHandle?: any;
561
+ /** 是否勾选群杰印章-用印申请 */
562
+ qunjChecked?: boolean;
563
+ /** 切换是否勾选群杰印章-用印申请 */
564
+ setQunjChecked?: (c: boolean) => void;
565
+ /** 当前选中的群杰印章盖章地址 */
566
+ currentQunjAddress?: IElectronSignaturesItem['qunjAddress'];
567
+ /** 群杰印章盖章地址 改变触发 */
568
+ onQunjAddressChange?: any;
569
+ /** 是否显示群杰印章盖章地点 */
570
+ isQunjAddress?: boolean;
571
+ /** 是否盖群杰章 */
572
+ onIsStampQunjChange?: any;
573
+ /** 群杰数据发生改变触发的回调 */
574
+ onQunjAddressSingleChange?: (data: any, index: number, qunjSeal?: any) => void;
575
+ onQunjSealSingleChange?: (info: IQunjProps, index: number) => void;
576
+ /** 是否加盖电子印章 */
577
+ onIsStampElectronChange?: any;
578
+ /** 清空契约锁数据 */
579
+ clearAllElectronDataHandler?: any;
580
+ /** 当前附件列表中是否有数据选择了加盖电子印章 */
581
+ isStampElectron?: boolean;
582
+ /** 当前合同id数据 */
583
+ currentContractId?: any;
584
+ /** 当前合同id下 附件与文档的关联关系 */
585
+ currentDocAttachMap?: any;
586
+ /** 当前文档列表数据 */
587
+ currentDocumentIdList?: any;
588
+ /** 指定签署位置方法 */
589
+ appointSignLocation?: IAppointSignLocationHandle;
590
+ /** 预览盖章效果 */
591
+ viewSignPage?: any;
592
+ /** 查询未确认盖章位置的印章信息列表 */
593
+ checkUnStampedSealList?: any;
594
+ /** 未确认盖章信息的电子印章列表 */
595
+ unElectronicSealList?: any;
596
+ /** 未确认盖章信息的电子印章id列表 */
597
+ unElectronicSealIdList?: any;
598
+ /** 数据类型的名称 用户指定附件归属的展示名称 */
599
+ dataTypeName?: IElectronSignaturesItem['dataTypeName'];
600
+ /**
601
+ * 附件类型列表数据
602
+ */
603
+ fileTypeFetchList?: any;
604
+ /** 是否允许修改附件类型 */
605
+ isAllowedPatchFileType?: IElectronSignaturesItem['isAllowedPatchFileType'];
606
+ /**
607
+ * 基地址
608
+ */
609
+ apiBaseUrl?: IElectronSignaturesItemPublic['apiBaseUrl'];
610
+ /**
611
+ * 附件服务器基地址
612
+ */
613
+ fileBaseUrl?: IElectronSignaturesItemPublic['fileBaseUrl'];
614
+ /**
615
+ * 点击签署位置 实时记录点击时的印章列表
616
+ */
617
+ clickElectronicSealIdList?: string[];
618
+ /** 附件类型是否显示背景颜色 */
619
+ isBgColor?: boolean;
620
+ /**
621
+ * 是否显示保存为模板
622
+ */
623
+ isShowSaveTemplate?: IElectronSignaturesItem['isShowSaveTemplate'];
624
+ /**
625
+ * 是否显示选择比对模板
626
+ */
627
+ isShowChioseTemplate?: IElectronSignaturesItem['isShowChioseTemplate'];
628
+ /**
629
+ * 流程状态
630
+ */
631
+ flowStatus?: IElectronSignaturesItem['flowStatus'];
632
+ /**
633
+ * 当前数据的流程id。用来获取群杰验证码的。
634
+ */
635
+ wfProcessInstId?: string;
636
+ /**
637
+ * 能查看当前数据的群杰验证码的用户id列表。
638
+ * 多个用户用逗号隔开
639
+ */
640
+ verifyUserIds?: string;
641
+ /**
642
+ *
643
+ */
644
+ [prop: string]: any;
645
+ }
646
+ export interface ITrackAllData {
647
+ [prop: string]: ITrackItem;
648
+ }
649
+ export interface IAppointSignLocationOptions {
650
+ callback?: any;
651
+ otherParams?: {
652
+ needYjzrr?: boolean;
653
+ [prop: string]: any;
654
+ };
655
+ /** 是否检测未盖章的印章 */
656
+ isCheckUnStampedSeal?: boolean;
657
+ /** 指定签署位置文本提示 */
658
+ spinningTip?: string;
659
+ }
660
+ /**
661
+ * 指定签署位置方法
662
+ */
663
+ export interface IAppointSignLocationHandle {
664
+ (option?: IAppointSignLocationOptions): void;
665
+ }
666
+ /**
667
+ * 群杰选中数据相关类型
668
+ */
669
+ export interface IQunjProps {
670
+ /**
671
+ * 群杰验证码
672
+ */
673
+ code?: string;
674
+ /**
675
+ * 群杰验证码
676
+ */
677
+ vertifyCode?: number;
678
+ /**
679
+ * 合同份数
680
+ */
681
+ contranctNum?: number | null;
682
+ /**
683
+ * 用印方式 0 内部用印 1 外部用印
684
+ */
685
+ isTakeOut?: number;
686
+ /** 已选印章 */
687
+ details?: ICheckQunjItemProps[];
688
+ }
689
+ /**
690
+ * 已选中的印章数据类型
691
+ */
692
+ export interface ICheckQunjItemProps {
693
+ /** 印章名称 */
694
+ sealName?: string;
695
+ /** 印章编码 */
696
+ sealNo: string;
697
+ /** 该印章的用印次数 */
698
+ sealCount?: number;
699
+ /** 暂时不知道什么意思 可能是后台用于区别的类型 */
700
+ areaType?: number;
701
+ [prop: string]: any;
702
+ }
703
+ /** 回调触发的类型 */
704
+ export interface IChangeValue {
705
+ /** 当前选中的电子印章列表 */
706
+ electronicSealIdList?: string[];
707
+ /**
708
+ * 点击指定签署位置后 记录一次当前选中的电子印章数据
709
+ * 后续做校验的时候 需要比对一下 点击时 跟当前选中时的电子印章是否一致
710
+ */
711
+ clickElectronicSealIdList?: string[];
712
+ /** 经济责任人是否选中 */
713
+ isCheckedEconomic?: boolean;
714
+ /** 合同ID */
715
+ contractId?: IElectronSignaturesItem['contractId'];
716
+ /** 后台用于维护当前合同id下附件id(key)与文档id(value)的关系map 后台解绑文档时使用 */
717
+ docAttachMap?: IElectronSignaturesItem['docAttachMap'];
718
+ /** 文档id 列表 */
719
+ documentIdList?: IElectronSignaturesItem['documentIdList'];
720
+ /** 当前盖过章的附件列表 */
721
+ checkAttachIdList?: IElectronSignaturesItem['checkAttachIdList'];
722
+ fileList?: any;
723
+ /** 当前群杰印章相关数据 */
724
+ qunjSeal?: IElectronSignaturesItem['qunjSeal'];
725
+ /** 当前群杰盖章地点发生改变 */
726
+ qunjAddress?: IElectronSignaturesItem['qunjAddress'];
727
+ /** 合同份数是否合理 */
728
+ qunjCountIsValidate?: boolean;
729
+ }
730
+ export interface IFileItem {
731
+ /** 附件id */
732
+ attachId: string;
733
+ /** 附件名 */
734
+ attachName: string;
735
+ /** 附件大小 bite */
736
+ attachSize?: number;
737
+ /** 附件类型code */
738
+ attachType?: string;
739
+ /** 附件类型名 */
740
+ attachTypeName?: string;
741
+ /** 是否存入样板 */
742
+ isCustomerReference?: number;
743
+ /** 是否显示保存为模板 */
744
+ isHideSaveCustomerReference?: boolean;
745
+ /** 是否显示选择比对模板 */
746
+ isHideChoiseChangeTemplate?: boolean;
747
+ /** 模板附件id */
748
+ templateAttachId?: string;
749
+ /** 模板附件名 */
750
+ templateAttachName?: string;
751
+ /** 模板附件大小 */
752
+ templateAttachSize?: string;
753
+ /** 比对结果附件id */
754
+ compareAttachId?: string;
755
+ /** 比对结果附件名 */
756
+ compareAttachName?: string;
757
+ /** 比对结果附件大小 */
758
+ compareAttachSize?: string;
759
+ /** 是否添加水印 */
760
+ isWatermark?: number;
761
+ /** 是否加盖电子印章 */
762
+ isElectronicSeal?: number;
763
+ /** 样板号 */
764
+ templateCrNo?: string;
765
+ /** 外部客户产融平台电子印章 */
766
+ fmsIsElectronicSeal?: any;
767
+ /** 是否展示外部客户产融平台电子印章勾选框 */
768
+ showFmsIsElectronicSeal?: any;
769
+ /** 双签件 */
770
+ doubleSignedSealInfoDTOList?: any;
771
+ [prop: string]: any;
772
+ }
773
+ export interface IFileUploadProps {
774
+ /** 上传地址 */
775
+ action?: string;
776
+ /** 最大支持上传的文件大小 单位字节 */
777
+ maxSize?: number;
778
+ /** 基地址 */
779
+ apiBaseUrl?: string;
780
+ /** 需要传递的头部参数 */
781
+ headers?: any;
782
+ /** 需要传递的额外参数 */
783
+ data?: any;
784
+ /** 是否上传到外网 */
785
+ isPublic?: boolean;
786
+ /** 附件上传需要支持的附件列表 */
787
+ acceptList?: string[];
788
+ /** 自定义上传前验证 */
789
+ beforeUpload?: any;
790
+ /** 不允许同名附件 */
791
+ disAllowDuplicateFile?: boolean;
792
+ fileList?: any;
793
+ /** 附件发生改变时触发 */
794
+ onFileChange?: any;
795
+ children?: React.ReactNode;
796
+ multiple?: boolean;
797
+ type?: ButtonProps['type'];
798
+ }
799
+ export interface IFileOperationProps {
800
+ /**附件名称 */
801
+ fileName?: string;
802
+ fileId?: string;
803
+ preFileId?: string;
804
+ preFileName?: string;
805
+ records?: any;
806
+ /** 是否有下载的权限 */
807
+ isDownload?: boolean;
808
+ /** 是否有预览的权限 */
809
+ isPreview?: boolean;
810
+ /** 是否有删除的权限 */
811
+ isDelete?: boolean;
812
+ /** 当前编辑状态 */
813
+ isEdit?: boolean;
814
+ /** 是否添加水印 */
815
+ isWater?: boolean;
816
+ /**
817
+ * 基地址
818
+ */
819
+ apiBaseUrl?: IElectronSignaturesItemPublic['apiBaseUrl'];
820
+ /**
821
+ * 附件服务器基地址
822
+ */
823
+ fileBaseUrl?: IElectronSignaturesItemPublic['fileBaseUrl'];
824
+ /** 删除附件触发 */
825
+ onDelete?: any;
826
+ /** 切换添加水印触发 */
827
+ onWatermarkChange?: any;
828
+ /** 公司id */
829
+ organizationId?: string;
830
+ /** 是否替换附件 */
831
+ isReplaceFile?: boolean;
832
+ /** 所有附件 */
833
+ fileList?: IFileItem[];
834
+ /** 替换文件回调 */
835
+ onFileReplace?: any;
836
+ /** 是否有添加水印的按钮 */
837
+ showAddWater?: boolean;
838
+ isTranslation?: boolean;
839
+ request?: any;
840
+ previewUrl?: string;
841
+ record?: any;
842
+ realIndex?: number;
843
+ setRecords?: any;
844
+ isNeedDg?: boolean;
845
+ /** 切换是否标记重要 */
846
+ onImportantChange?: any;
847
+ /** 是否重要 */
848
+ isImportant?: boolean;
849
+ }