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,530 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (_) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import i18next from 'ztxkutils/dist/i18next';
49
+ import React, { useState, useRef, useEffect } from 'react';
50
+ import ElectronSignatures from '../index';
51
+ import request from '../../../request';
52
+ import { newFileList } from './data'; // newFileList
53
+ import dayjs from 'dayjs';
54
+ /**
55
+ * 契约锁编辑模式
56
+ */
57
+ var Making = function () {
58
+ var electronHandleRef = useRef();
59
+ var _a = useState(null), params = _a[0], setParams = _a[1];
60
+ var _b = useState(null), params1 = _b[0], setParams1 = _b[1];
61
+ useEffect(function () {
62
+ // 模拟接口请求
63
+ setTimeout(function () {
64
+ setParams({
65
+ canEdit: 0,
66
+ needDg: 0,
67
+ needQys: 1,
68
+ needQj: 1,
69
+ // 测试数据1
70
+ // fileList: newFileList,
71
+ // deptId: '1514839441650700290',
72
+ // flowId: 'scm_order_logistics_finance',
73
+ // deptId: '1514838856750813185',
74
+ contractId: '3254355788760166727',
75
+ docAttachMap: '{"needYjzrr":true,"8822001570633116257":"3254355785937400132"}',
76
+ checkAttachIdList: ['8822001570633116257'],
77
+ documentIdList: ['3254355785937400132'],
78
+ // qunjAddressList,
79
+ // qunjAddress: { id: '1', name: '杭州' },
80
+ // qunjSeal: {
81
+ // vertifyCode: 800846,
82
+ // contranctNum: null,
83
+ // isTakeOut: 0,
84
+ // details: [
85
+ // {
86
+ // sealNo: 'YZ-2023-003',
87
+ // sealCount: 1,
88
+ // },
89
+ // ],
90
+ // },
91
+ electronicSealIdList: [
92
+ '2969500030189355150',
93
+ '2968818336338210853',
94
+ '2980019871597904544',
95
+ ],
96
+ // flowStatus: 13,
97
+ // 测试数据1
98
+ fileList: newFileList,
99
+ // fileList: [],
100
+ deptId: '1514842546870112258',
101
+ flowId: 'scm_order_logistics_finance',
102
+ // contractId: null,
103
+ // docAttachMap: null,
104
+ // checkAttachIdList: [],
105
+ // documentIdList: [],
106
+ // electronicSealIdList: [],
107
+ // qunjAddress: {
108
+ // id: null,
109
+ // name: null,
110
+ // },
111
+ // qunjAddress: { id: '1', name: '杭州' },
112
+ // qunjSeal: {
113
+ // vertifyCode: null,
114
+ // contranctNum: null,
115
+ // isTakeOut: null,
116
+ // details: [],
117
+ // },
118
+ caseId: 'c4f90c12-8ef0-443b-849f-f5959ec464b2',
119
+ // qunjSeal: {
120
+ // vertifyCode: null,
121
+ // contranctNum: null,
122
+ // isTakeOut: 0,
123
+ // details: [
124
+ // {
125
+ // sealName: '浙商中拓集团(湖南)有限公司合同专用章(杭州)',
126
+ // sealNo: 'YZ-2023-003',
127
+ // areaType: 1,
128
+ // areaTypeName: '\t杭州',
129
+ // useType: 1,
130
+ // useTypeName: '合同专用章',
131
+ // sealCount: 1,
132
+ // },
133
+ // ],
134
+ // },
135
+ qunjSeal: {
136
+ vertifyCode: 747330,
137
+ contranctNum: null,
138
+ isTakeOut: 0,
139
+ details: [
140
+ {
141
+ sealNo: 'YZ-2023-003',
142
+ sealCount: 1,
143
+ },
144
+ ],
145
+ },
146
+ flowStatus: 50,
147
+ wfProcessInstId: 136449,
148
+ verifyUserIds: '1565246142656483330,1467046624988288987,1467046624988289029,1467046624988287202,8727929005011083374,7937915228846497802,7937915228846497802,1236522758363013122',
149
+ });
150
+ // setParams1({
151
+ // canEdit: 0,
152
+ // needDg: 0,
153
+ // needQys: 1,
154
+ // needQj: 1,
155
+ // // 测试数据1
156
+ // // fileList: newFileList,
157
+ // // deptId: '1514839441650700290',
158
+ // // flowId: 'scm_order_logistics_finance',
159
+ // // deptId: '1514838856750813185',
160
+ // contractId: '3254355788760166727',
161
+ // docAttachMap:
162
+ // '{"needYjzrr":true,"8822001570633116257":"3254355785937400132"}',
163
+ // checkAttachIdList: ['8822001570633116257'],
164
+ // documentIdList: ['3254355785937400132'],
165
+ // // qunjAddressList,
166
+ // // qunjAddress: { id: '1', name: '杭州' },
167
+ // // qunjSeal: {
168
+ // // vertifyCode: 800846,
169
+ // // contranctNum: null,
170
+ // // isTakeOut: 0,
171
+ // // details: [
172
+ // // {
173
+ // // sealNo: 'YZ-2023-003',
174
+ // // sealCount: 1,
175
+ // // },
176
+ // // ],
177
+ // // },
178
+ // electronicSealIdList: [
179
+ // '2969500030189355150',
180
+ // '2968818336338210853',
181
+ // '2980019871597904544',
182
+ // ],
183
+ // // flowStatus: 13,
184
+ // // 测试数据1
185
+ // fileList: fileList1,
186
+ // // fileList: [],
187
+ // deptId: '1514842546870112258',
188
+ // flowId: 'scm_order_logistics_finance',
189
+ // // contractId: null,
190
+ // // docAttachMap: null,
191
+ // // checkAttachIdList: [],
192
+ // // documentIdList: [],
193
+ // // electronicSealIdList: [],
194
+ // // qunjAddress: {
195
+ // // id: null,
196
+ // // name: null,
197
+ // // },
198
+ // // qunjAddress: { id: '1', name: '杭州' },
199
+ // // qunjSeal: {
200
+ // // vertifyCode: null,
201
+ // // contranctNum: null,
202
+ // // isTakeOut: null,
203
+ // // details: [],
204
+ // // },
205
+ // caseId: 'c4f90c12-8ef0-443b-849f-f5959ec464b2',
206
+ // // qunjSeal: {
207
+ // // vertifyCode: null,
208
+ // // contranctNum: null,
209
+ // // isTakeOut: 0,
210
+ // // details: [
211
+ // // {
212
+ // // sealName: '浙商中拓集团(湖南)有限公司合同专用章(杭州)',
213
+ // // sealNo: 'YZ-2023-003',
214
+ // // areaType: 1,
215
+ // // areaTypeName: '\t杭州',
216
+ // // useType: 1,
217
+ // // useTypeName: '合同专用章',
218
+ // // sealCount: 1,
219
+ // // },
220
+ // // ],
221
+ // // },
222
+ // qunjSeal: {
223
+ // vertifyCode: 747330,
224
+ // contranctNum: null,
225
+ // isTakeOut: 0,
226
+ // details: [
227
+ // {
228
+ // sealNo: 'YZ-2023-003',
229
+ // sealCount: 1,
230
+ // },
231
+ // ],
232
+ // },
233
+ // flowStatus: 50,
234
+ // });
235
+ // setParams({
236
+ // canEdit: 0,
237
+ // needDg: 0,
238
+ // needQys: 0,
239
+ // needQj: 1,
240
+ // deptId: '7504463040532194928',
241
+ // memberId: '108326037347482205',
242
+ // flowId: 'scm_accounting_fksqd',
243
+ // contractId: null,
244
+ // caseId: 'ee48b117-316d-44c1-9fad-11e9e389968e',
245
+ // docAttachMap: null,
246
+ // checkAttachIdList: [],
247
+ // documentIdList: [],
248
+ // fileList: [
249
+ // {
250
+ // id: null,
251
+ // attachId: '139508453399455849',
252
+ // attachName:
253
+ // '铝锭销售合同(江铜产融-浙商中拓)9.26-10.25-4000吨-双章.pdf',
254
+ // attachTypeName: null,
255
+ // isCustomerReference: null,
256
+ // templateAttachId: null,
257
+ // templateAttachName: null,
258
+ // taskId: null,
259
+ // isWatermark: 0,
260
+ // isElectronicSeal: 0,
261
+ // createTime: '2025-10-15 11:41:34',
262
+ // tid: null,
263
+ // openingContractSeal: null,
264
+ // },
265
+ // {
266
+ // id: null,
267
+ // attachId: '146580868671625537',
268
+ // attachName: '南储(佛山10.15日)重熔用铝锭日均价截图.png',
269
+ // attachTypeName: null,
270
+ // isCustomerReference: null,
271
+ // templateAttachId: null,
272
+ // templateAttachName: null,
273
+ // taskId: null,
274
+ // isWatermark: 0,
275
+ // isElectronicSeal: 0,
276
+ // createTime: '2025-10-15 11:41:34',
277
+ // tid: null,
278
+ // openingContractSeal: null,
279
+ // },
280
+ // {
281
+ // id: null,
282
+ // attachId: '146557096027642086',
283
+ // attachName: '交货明细229.885吨.xlsx',
284
+ // attachTypeName: null,
285
+ // isCustomerReference: null,
286
+ // templateAttachId: null,
287
+ // templateAttachName: null,
288
+ // taskId: null,
289
+ // isWatermark: 0,
290
+ // isElectronicSeal: 0,
291
+ // createTime: '2025-10-15 11:41:34',
292
+ // tid: null,
293
+ // openingContractSeal: null,
294
+ // },
295
+ // {
296
+ // id: null,
297
+ // attachId: '145075383850116826',
298
+ // attachName: '铝锭交货通知与确认书(江铜产融-中拓股份)10.15.xlsx',
299
+ // attachTypeName: null,
300
+ // isCustomerReference: null,
301
+ // templateAttachId: null,
302
+ // templateAttachName: null,
303
+ // taskId: null,
304
+ // isWatermark: 0,
305
+ // isElectronicSeal: 0,
306
+ // createTime: '2025-10-15 12:18:36',
307
+ // tid: null,
308
+ // openingContractSeal: null,
309
+ // },
310
+ // ],
311
+ // qunjSeal: {
312
+ // vertifyCode: 623622,
313
+ // contranctNum: 1,
314
+ // isTakeOut: 0,
315
+ // details: [
316
+ // {
317
+ // sealNo: 'YZ-2023-011',
318
+ // sealCount: 2,
319
+ // },
320
+ // ],
321
+ // },
322
+ // electronicSealIdList: [],
323
+ // flowStatus: 151,
324
+ // qunjAddress: {
325
+ // id: null,
326
+ // name: null,
327
+ // },
328
+ // contractNo: null,
329
+ // wfProcessInstId: 985248,
330
+ // verifyUserIds:
331
+ // '1565246142656483330,1467046624988288987,1467046624988289029,1467046624988287202,8727929005011083374,7937915228846497802,7937915228846497802,1236522758363013122',
332
+ // });
333
+ setParams({
334
+ canEdit: 0,
335
+ needDg: 1,
336
+ needQys: 1,
337
+ needQj: 1,
338
+ deptId: '1514842376723976194',
339
+ secondDepId: null,
340
+ memberId: '10000641',
341
+ flowId: 'scm_order_contract_cght',
342
+ contractId: null,
343
+ caseId: null,
344
+ docAttachMap: null,
345
+ checkAttachIdList: [],
346
+ documentIdList: [],
347
+ fileList: [
348
+ {
349
+ id: '1198432249833750670',
350
+ attachId: '1189805481600689091',
351
+ attachName: '20251023_lvcw_zmdms_mdm.txt',
352
+ attachTypeName: i18next.t('合同本身'),
353
+ attachType: '001',
354
+ isCustomerReference: 0,
355
+ templateAttachId: null,
356
+ templateAttachName: null,
357
+ templateCrNo: null,
358
+ taskId: null,
359
+ isWatermark: 0,
360
+ isElectronicSeal: 0,
361
+ busiId: null,
362
+ showFmsIsElectronicSeal: null,
363
+ fmsIsElectronicSeal: null,
364
+ oldVersionId: null,
365
+ createTime: '2025-10-23 17:31:18',
366
+ sealInfoDTOList: null,
367
+ doubleSignedSealInfoDTOList: null,
368
+ mark: null,
369
+ isReplaceFile: null,
370
+ tid: null,
371
+ openingContractSeal: null,
372
+ },
373
+ ],
374
+ qunjSeal: {
375
+ vertifyCode: null,
376
+ contranctNum: 1,
377
+ isTakeOut: 0,
378
+ details: [
379
+ {
380
+ sealNo: 'YZ-2025-024',
381
+ sealCount: 1,
382
+ },
383
+ {
384
+ sealNo: 'YZ-2025-026',
385
+ sealCount: 2,
386
+ },
387
+ ],
388
+ },
389
+ electronicSealIdList: [],
390
+ flowStatus: 15,
391
+ qunjAddress: {
392
+ id: null,
393
+ name: null,
394
+ },
395
+ contractNo: 'PC25001047',
396
+ wfProcessInstId: 136525,
397
+ verifyUserIds: '1513784927865917441,1167046624988287621,1462750580155428866,1236522758363013122',
398
+ });
399
+ }, 1000);
400
+ }, []);
401
+ return (React.createElement(React.Fragment, null,
402
+ React.createElement(ElectronSignatures, __assign({ request: request, dataTypeName: i18next.t('新附件1111'), dataType: "key1", otherOptions: [
403
+ __assign({ dataType: 'key12', dataTypeName: i18next.t('历史附件') }, params1),
404
+ ],
405
+ // otherOptions={{
406
+ // dataType: 'key12',
407
+ // dataTypeName: '历史附件',
408
+ // ...params1,
409
+ // }}
410
+ isBgColor: true,
411
+ // isDefaultQunj={false}
412
+ // 是否显示上传附件按钮
413
+ isShowFileUpload: true,
414
+ // 附件类型是否允许修改
415
+ isAllowedPatchFileType: true,
416
+ // 是否显示批量下载电子签章件
417
+ isShowElectronBatchBtn: true,
418
+ // 是否显示批量下载原件
419
+ isShowDownloadBatchBtn: true,
420
+ // 是否显示双签件
421
+ isShowDoubleSignedBatchBtn: true, isShowChioseTemplate: true, isShowBatchDeleteBtn: true, isShowBatchPreviewBtn: true,
422
+ // 是否显示附件归属
423
+ // isShowFileTypeMerge={false}
424
+ // 是否群杰印章对每个附件生效
425
+ // isSingleQj
426
+ // 是否开启文档翻译功能
427
+ isTranslation: true, previewUrl: "/document-translation-preview" }, params, { refreshCode: true, isQunjAddress: true,
428
+ // 如果是否需要契约锁不由组件内部控制 需要传递这个字段 需要配合 needQys为 0时
429
+ // isControlNeedQys={false}
430
+ // 如果默认不需要契约锁 需要传递这个属性 需要配置needQys为 0
431
+ defaultJustNeedQj: true, isNewQys: true,
432
+ // fileSplitRules={(record) => {
433
+ // if (record.oldVersionId) {
434
+ // return {
435
+ // key: 'key2',
436
+ // name: '替换附件',
437
+ // };
438
+ // }
439
+ // return {
440
+ // key: 'key1',
441
+ // name: '新附件',
442
+ // };
443
+ // }}
444
+ // 按照何种排序
445
+ // fileSplitStringRules={['key1', 'key2']}
446
+ // 第二种数据类型的配置 基本外部配置 只是值可能不同
447
+ // otherOptions={[
448
+ // {
449
+ // dataType: 'key2',
450
+ // dataTypeName: '历史附件',
451
+ // ...params1,
452
+ // },
453
+ // ]}
454
+ // 数据改变时 触发
455
+ onValueChange: function (info) {
456
+ console.log(info);
457
+ setParams(function (preParams) {
458
+ var _a, _b;
459
+ var newParams = __assign(__assign({}, preParams), info.key1);
460
+ if (info.key1.fileList) {
461
+ newParams.fileList = (_b = (_a = info.key1) === null || _a === void 0 ? void 0 : _a.fileList) === null || _b === void 0 ? void 0 : _b.map(function (item) {
462
+ return __assign(__assign({}, item), { createTime: item.createTime || dayjs().format('YYYY-MM-DD HH:mm:ss') });
463
+ });
464
+ }
465
+ return newParams;
466
+ });
467
+ // if (info.key1) {
468
+ // setParams((preParams) => {
469
+ // return {
470
+ // ...preParams,
471
+ // ...info.key1,
472
+ // };
473
+ // });
474
+ // } else {
475
+ // setParams1((preParams1) => {
476
+ // return {
477
+ // ...preParams1,
478
+ // ...info.key2,
479
+ // };
480
+ // });
481
+ // }
482
+ },
483
+ // 组件对外暴露的一些方法 获取数据 校验方法
484
+ electronHandleRef: electronHandleRef, isValidateSuccess: function () {
485
+ // 最后会调用一个接口 验证下是否所选的电子印章都已经盖了章 如果没有盖章 就会弹出一个选择框 让用户重新选择 重新选择后 如果用户把所有未盖章的电子印章都取消勾选的话 那么就会调用这个方法 说明校验通过 可以进行下一步
486
+ console.log(i18next.t('最终校验通过了!!!'));
487
+ } })),
488
+ React.createElement("button", { onClick: function () {
489
+ setParams(function (preParams) {
490
+ return __assign(__assign({}, preParams), { deptId: preParams.deptId === '1514842376723976194'
491
+ ? '1514842546870112258'
492
+ : '1514842376723976194' });
493
+ });
494
+ // 修改了哪个数据的部门需要清空部门下的契约锁数据
495
+ // electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
496
+ } }, i18next.t('修改部门id')),
497
+ React.createElement("button", { onClick: function () {
498
+ setParams(function (preParams) {
499
+ return __assign(__assign({}, preParams), { flowId: preParams.flowId === 'scm_general_yyzj_operation'
500
+ ? 'scm_general_yyzj_common'
501
+ : 'scm_general_yyzj_operation' });
502
+ });
503
+ // 修改了哪个数据的部门需要清空部门下的契约锁数据
504
+ // electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
505
+ } }, i18next.t('修改流程id')),
506
+ React.createElement("button", { onClick: function () {
507
+ console.log(electronHandleRef.current.getAllData());
508
+ } }, i18next.t('获取数据')),
509
+ React.createElement("button", { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
510
+ var err_1;
511
+ return __generator(this, function (_a) {
512
+ switch (_a.label) {
513
+ case 0:
514
+ _a.trys.push([0, 2, , 3]);
515
+ return [4 /*yield*/, electronHandleRef.current.validateElectronTable()];
516
+ case 1:
517
+ _a.sent();
518
+ console.log(i18next.t('校验通过'));
519
+ console.log(electronHandleRef.current.getAllData());
520
+ return [3 /*break*/, 3];
521
+ case 2:
522
+ err_1 = _a.sent();
523
+ console.log(err_1);
524
+ return [3 /*break*/, 3];
525
+ case 3: return [2 /*return*/];
526
+ }
527
+ });
528
+ }); } }, i18next.t('校验逻辑'))));
529
+ };
530
+ export default Making;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * 契约锁编辑模式 每个附件,都使用一个群杰印章按钮
4
+ */
5
+ declare const Making: () => JSX.Element;
6
+ export default Making;