ztxkui 10.0.94 → 10.0.96

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 (158) hide show
  1. package/dist/components/PrintContainer/print-container.js +19 -14
  2. package/dist/components/PrintContainer/sealHooks.js +8 -6
  3. package/dist/components/PrintContainer/service.d.ts +1 -0
  4. package/dist/components/PrintContainer/service.js +2 -2
  5. package/dist/components/TranslationButton/DownFile.d.ts +7 -0
  6. package/dist/components/TranslationButton/DownFile.js +95 -0
  7. package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
  8. package/dist/components/TranslationButton/PreviewFile.js +73 -0
  9. package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
  10. package/dist/components/TranslationButton/TranslationButton.js +245 -0
  11. package/dist/components/TranslationButton/demoComponents/index.d.ts +3 -0
  12. package/dist/components/TranslationButton/demoComponents/index.js +9 -0
  13. package/dist/components/TranslationButton/hooks.d.ts +8 -0
  14. package/dist/components/TranslationButton/hooks.js +139 -0
  15. package/dist/components/TranslationButton/index.d.ts +4 -0
  16. package/dist/components/TranslationButton/index.js +4 -0
  17. package/dist/components/Upload/utils.d.ts +9 -2
  18. package/dist/components/Upload/utils.js +62 -8
  19. package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
  20. package/dist/components/UploadCustom/hooks/useDg.js +55 -0
  21. package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
  22. package/dist/components/business/Signatures/components/CodeModal.js +157 -0
  23. package/dist/components/business/Signatures/components/CompareResult.js +3 -1
  24. package/dist/components/business/Signatures/components/DetailTable.js +5 -4
  25. package/dist/components/business/Signatures/index.js +33 -31
  26. package/dist/components/electron-signatures/content.d.ts +9 -0
  27. package/dist/components/electron-signatures/content.js +1126 -0
  28. package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
  29. package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
  30. package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
  31. package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
  32. package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
  33. package/dist/components/electron-signatures/demoComponents/index.js +27 -0
  34. package/dist/components/electron-signatures/demoComponents/index_old.d.ts +3 -0
  35. package/dist/components/electron-signatures/demoComponents/index_old.js +502 -0
  36. package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
  37. package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
  38. package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
  39. package/dist/components/electron-signatures/demoComponents/making.js +211 -0
  40. package/dist/components/electron-signatures/demoComponents/makingData.d.ts +663 -0
  41. package/dist/components/electron-signatures/demoComponents/makingData.js +1164 -0
  42. package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
  43. package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
  44. package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
  45. package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
  46. package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
  47. package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
  48. package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
  49. package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
  50. package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
  51. package/dist/components/electron-signatures/demoComponents/test.js +119 -0
  52. package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
  53. package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
  54. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
  55. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
  56. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
  57. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
  58. package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
  59. package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
  60. package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
  61. package/dist/components/electron-signatures/electron-signatures-fragment.js +344 -0
  62. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
  63. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +513 -0
  64. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
  65. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
  66. package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
  67. package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +89 -0
  68. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
  69. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
  70. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
  71. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
  72. package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
  73. package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
  74. package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
  75. package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
  76. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
  77. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
  78. package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
  79. package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
  80. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
  81. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +43 -0
  82. package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
  83. package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +380 -0
  84. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +20 -0
  85. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +167 -0
  86. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
  87. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +35 -0
  88. package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
  89. package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
  90. package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
  91. package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
  92. package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
  93. package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
  94. package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
  95. package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
  96. package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
  97. package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
  98. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
  99. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +43 -0
  100. package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
  101. package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
  102. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
  103. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
  104. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
  105. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +132 -0
  106. package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
  107. package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
  108. package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
  109. package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
  110. package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +102 -0
  111. package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +363 -0
  112. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
  113. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
  114. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
  115. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
  116. package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
  117. package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
  118. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
  119. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
  120. package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
  121. package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
  122. package/dist/components/electron-signatures/index.d.ts +13 -0
  123. package/dist/components/electron-signatures/index.js +54 -0
  124. package/dist/components/electron-signatures/index_old.d.ts +9 -0
  125. package/dist/components/electron-signatures/index_old.js +966 -0
  126. package/dist/components/electron-signatures/interface.d.ts +849 -0
  127. package/dist/components/electron-signatures/interface.js +57 -0
  128. package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
  129. package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
  130. package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
  131. package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
  132. package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
  133. package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
  134. package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
  135. package/dist/components/electron-signatures/qunjComponents/qunj-list.js +346 -0
  136. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
  137. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +61 -0
  138. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
  139. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
  140. package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
  141. package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
  142. package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
  143. package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
  144. package/dist/components/electron-signatures/utils.d.ts +26 -0
  145. package/dist/components/electron-signatures/utils.js +67 -0
  146. package/dist/components/utils/ZtxkContext.d.ts +18 -0
  147. package/dist/components/utils/ZtxkContext.js +5 -0
  148. package/dist/components/utils/useMemoizedFn.d.ts +6 -0
  149. package/dist/components/utils/useMemoizedFn.js +22 -0
  150. package/dist/components/utils/usePrevious.d.ts +3 -0
  151. package/dist/components/utils/usePrevious.js +13 -0
  152. package/dist/hooks/useServiceName.d.ts +1 -0
  153. package/dist/index.css +686 -0
  154. package/dist/index.css.map +1 -1
  155. package/dist/index.d.ts +3 -0
  156. package/dist/index.js +105 -87
  157. package/dist/request.js +1 -1
  158. package/package.json +4 -3
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * 契约锁编辑模式
4
+ */
5
+ declare const Making: () => JSX.Element;
6
+ export default Making;
@@ -0,0 +1,283 @@
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
+ useEffect(function () {
61
+ // 模拟接口请求
62
+ setTimeout(function () {
63
+ setParams({
64
+ canEdit: 0,
65
+ needDg: 0,
66
+ needQys: 1,
67
+ needQj: 1,
68
+ // 测试数据1
69
+ // fileList: newFileList,
70
+ // deptId: '1514839441650700290',
71
+ // flowId: 'scm_order_logistics_finance',
72
+ // deptId: '1514838856750813185',
73
+ contractId: '3254355788760166727',
74
+ docAttachMap: '{"needYjzrr":true,"8822001570633116257":"3254355785937400132"}',
75
+ checkAttachIdList: ['8822001570633116257'],
76
+ documentIdList: ['3254355785937400132'],
77
+ // qunjAddressList,
78
+ // qunjAddress: { id: '1', name: '杭州' },
79
+ // qunjSeal: {
80
+ // vertifyCode: 800846,
81
+ // contranctNum: null,
82
+ // isTakeOut: 0,
83
+ // details: [
84
+ // {
85
+ // sealNo: 'YZ-2023-003',
86
+ // sealCount: 1,
87
+ // },
88
+ // ],
89
+ // },
90
+ electronicSealIdList: [
91
+ '2969500030189355150',
92
+ '2968818336338210853',
93
+ '2980019871597904544',
94
+ ],
95
+ // flowStatus: 13,
96
+ // 测试数据1
97
+ fileList: newFileList,
98
+ // fileList: [],
99
+ deptId: '1514842546870112258',
100
+ flowId: 'scm_order_logistics_finance',
101
+ // contractId: null,
102
+ // docAttachMap: null,
103
+ // checkAttachIdList: [],
104
+ // documentIdList: [],
105
+ // electronicSealIdList: [],
106
+ // qunjAddress: {
107
+ // id: null,
108
+ // name: null,
109
+ // },
110
+ // qunjAddress: { id: '1', name: '杭州' },
111
+ // qunjSeal: {
112
+ // vertifyCode: null,
113
+ // contranctNum: null,
114
+ // isTakeOut: null,
115
+ // details: [],
116
+ // },
117
+ caseId: 'c4f90c12-8ef0-443b-849f-f5959ec464b2',
118
+ // qunjSeal: {
119
+ // vertifyCode: null,
120
+ // contranctNum: null,
121
+ // isTakeOut: 0,
122
+ // details: [
123
+ // {
124
+ // sealName: '浙商中拓集团(湖南)有限公司合同专用章(杭州)',
125
+ // sealNo: 'YZ-2023-003',
126
+ // areaType: 1,
127
+ // areaTypeName: '\t杭州',
128
+ // useType: 1,
129
+ // useTypeName: '合同专用章',
130
+ // sealCount: 1,
131
+ // },
132
+ // ],
133
+ // },
134
+ qunjSeal: {
135
+ vertifyCode: 747330,
136
+ contranctNum: null,
137
+ isTakeOut: 0,
138
+ details: [
139
+ {
140
+ sealNo: 'YZ-2023-003',
141
+ sealCount: 1,
142
+ },
143
+ ],
144
+ },
145
+ flowStatus: 50,
146
+ });
147
+ }, 1000);
148
+ }, []);
149
+ return (React.createElement(React.Fragment, null,
150
+ React.createElement(ElectronSignatures, __assign({ request: request, dataTypeName: i18next.t('新附件1'), dataType: "key1",
151
+ // otherOptions={[
152
+ // {
153
+ // dataType: 'key12',
154
+ // dataTypeName: '历史附件',
155
+ // ...params1,
156
+ // },
157
+ // ]}
158
+ // otherOptions={{
159
+ // dataType: 'key12',
160
+ // dataTypeName: '历史附件',
161
+ // ...params1,
162
+ // }}
163
+ isBgColor: true,
164
+ // isDefaultQunj={false}
165
+ // 是否显示上传附件按钮
166
+ isShowFileUpload: true,
167
+ // 附件类型是否允许修改
168
+ isAllowedPatchFileType: true,
169
+ // 是否显示批量下载电子签章件
170
+ isShowElectronBatchBtn: true,
171
+ // 是否显示批量下载原件
172
+ isShowDownloadBatchBtn: true,
173
+ // 是否显示双签件
174
+ isShowDoubleSignedBatchBtn: true, isShowChioseTemplate: true, isShowBatchDeleteBtn: true, isShowBatchPreviewBtn: true,
175
+ // 是否显示附件归属
176
+ // isShowFileTypeMerge={false}
177
+ // 是否群杰印章对每个附件生效
178
+ isSingleQj: true,
179
+ // 是否开启文档翻译功能
180
+ isTranslation: true, previewUrl: "/document-translation-preview" }, params, { refreshCode: true, isQunjAddress: true,
181
+ // 如果是否需要契约锁不由组件内部控制 需要传递这个字段 需要配合 needQys为 0时
182
+ // isControlNeedQys={false}
183
+ // 如果默认不需要契约锁 需要传递这个属性 需要配置needQys为 0
184
+ defaultJustNeedQj: true,
185
+ // fileSplitRules={(record) => {
186
+ // if (record.oldVersionId) {
187
+ // return {
188
+ // key: 'key2',
189
+ // name: '替换附件',
190
+ // };
191
+ // }
192
+ // return {
193
+ // key: 'key1',
194
+ // name: '新附件',
195
+ // };
196
+ // }}
197
+ // 按照何种排序
198
+ // fileSplitStringRules={['key1', 'key2']}
199
+ // 第二种数据类型的配置 基本外部配置 只是值可能不同
200
+ // otherOptions={[
201
+ // {
202
+ // dataType: 'key2',
203
+ // dataTypeName: '历史附件',
204
+ // ...params1,
205
+ // },
206
+ // ]}
207
+ // 数据改变时 触发
208
+ onValueChange: function (info) {
209
+ console.log(info);
210
+ setParams(function (preParams) {
211
+ var _a, _b;
212
+ var newParams = __assign(__assign({}, preParams), info.key1);
213
+ if (info.key1.fileList) {
214
+ newParams.fileList = (_b = (_a = info.key1) === null || _a === void 0 ? void 0 : _a.fileList) === null || _b === void 0 ? void 0 : _b.map(function (item) {
215
+ return __assign(__assign({}, item), { createTime: item.createTime || dayjs().format('YYYY-MM-DD HH:mm:ss') });
216
+ });
217
+ }
218
+ return newParams;
219
+ });
220
+ // if (info.key1) {
221
+ // setParams((preParams) => {
222
+ // return {
223
+ // ...preParams,
224
+ // ...info.key1,
225
+ // };
226
+ // });
227
+ // } else {
228
+ // setParams1((preParams1) => {
229
+ // return {
230
+ // ...preParams1,
231
+ // ...info.key2,
232
+ // };
233
+ // });
234
+ // }
235
+ },
236
+ // 组件对外暴露的一些方法 获取数据 校验方法
237
+ electronHandleRef: electronHandleRef, isValidateSuccess: function () {
238
+ // 最后会调用一个接口 验证下是否所选的电子印章都已经盖了章 如果没有盖章 就会弹出一个选择框 让用户重新选择 重新选择后 如果用户把所有未盖章的电子印章都取消勾选的话 那么就会调用这个方法 说明校验通过 可以进行下一步
239
+ console.log(i18next.t('最终校验通过了!!!'));
240
+ }, isNewQys: true })),
241
+ React.createElement("button", { onClick: function () {
242
+ setParams(function (preParams) {
243
+ return __assign(__assign({}, preParams), { deptId: preParams.deptId === '1514842376723976194'
244
+ ? '1514842546870112258'
245
+ : '1514842376723976194' });
246
+ });
247
+ // 修改了哪个数据的部门需要清空部门下的契约锁数据
248
+ // electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
249
+ } }, i18next.t('修改部门id')),
250
+ React.createElement("button", { onClick: function () {
251
+ setParams(function (preParams) {
252
+ return __assign(__assign({}, preParams), { flowId: preParams.flowId === 'scm_general_yyzj_operation'
253
+ ? 'scm_general_yyzj_common'
254
+ : 'scm_general_yyzj_operation' });
255
+ });
256
+ // 修改了哪个数据的部门需要清空部门下的契约锁数据
257
+ // electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
258
+ } }, i18next.t('修改流程id')),
259
+ React.createElement("button", { onClick: function () {
260
+ console.log(electronHandleRef.current.getAllData());
261
+ } }, i18next.t('获取数据')),
262
+ React.createElement("button", { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
263
+ var err_1;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
266
+ case 0:
267
+ _a.trys.push([0, 2, , 3]);
268
+ return [4 /*yield*/, electronHandleRef.current.validateElectronTable()];
269
+ case 1:
270
+ _a.sent();
271
+ console.log(i18next.t('校验通过'));
272
+ console.log(electronHandleRef.current.getAllData());
273
+ return [3 /*break*/, 3];
274
+ case 2:
275
+ err_1 = _a.sent();
276
+ console.log(err_1);
277
+ return [3 /*break*/, 3];
278
+ case 3: return [2 /*return*/];
279
+ }
280
+ });
281
+ }); } }, i18next.t('校验逻辑'))));
282
+ };
283
+ export default Making;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function Demo(): JSX.Element;
@@ -0,0 +1,27 @@
1
+ import i18next from 'ztxkutils/dist/i18next';
2
+ import React from 'react';
3
+ import { Tabs } from '../../../index';
4
+ import Making from './making';
5
+ import SingleQjMaking from './singleQjMaking';
6
+ import Detail from './detail';
7
+ import SingleQjDetail from './singleQjDetail';
8
+ import NewDetail from './newDetail';
9
+ import Jgqrd from './jgqrd';
10
+ import Test from './test';
11
+ export default function Demo() {
12
+ return (React.createElement(Tabs, null,
13
+ React.createElement(Tabs.TabPane, { tab: i18next.t('编辑-价格确认单'), key: "111" },
14
+ React.createElement(Jgqrd, null)),
15
+ React.createElement(Tabs.TabPane, { tab: i18next.t('测试问题'), key: "222" },
16
+ React.createElement(Test, null)),
17
+ React.createElement(Tabs.TabPane, { tab: i18next.t('编辑-共用一个群杰印章按钮'), key: "2" },
18
+ React.createElement(SingleQjMaking, null)),
19
+ React.createElement(Tabs.TabPane, { tab: i18next.t('编辑-每个附件独立一个群杰'), key: "1" },
20
+ React.createElement(Making, null)),
21
+ React.createElement(Tabs.TabPane, { tab: i18next.t('详情-每个附件独立一个群杰'), key: "3" },
22
+ React.createElement(Detail, null)),
23
+ React.createElement(Tabs.TabPane, { tab: i18next.t('详情-共用一个群杰印章按钮'), key: "4" },
24
+ React.createElement(SingleQjDetail, null)),
25
+ React.createElement(Tabs.TabPane, { tab: i18next.t('最新版-共用一个群杰印章按钮'), key: "5" },
26
+ React.createElement(NewDetail, null))));
27
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.NamedExoticComponent<{}>;
3
+ export default _default;