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.
- package/dist/components/TranslationButton/DownFile.d.ts +7 -0
- package/dist/components/TranslationButton/DownFile.js +97 -0
- package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
- package/dist/components/TranslationButton/PreviewFile.js +75 -0
- package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
- package/dist/components/TranslationButton/TranslationButton.js +247 -0
- package/dist/components/TranslationButton/demoComponents/index.d.ts +3 -0
- package/dist/components/TranslationButton/demoComponents/index.js +9 -0
- package/dist/components/TranslationButton/hooks.d.ts +8 -0
- package/dist/components/TranslationButton/hooks.js +143 -0
- package/dist/components/TranslationButton/index.d.ts +4 -0
- package/dist/components/TranslationButton/index.js +4 -0
- package/dist/components/Upload/utils.d.ts +8 -1
- package/dist/components/Upload/utils.js +56 -4
- package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
- package/dist/components/UploadCustom/hooks/useDg.js +57 -0
- package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
- package/dist/components/business/Signatures/components/CodeModal.js +159 -0
- package/dist/components/electron-signatures/content.d.ts +9 -0
- package/dist/components/electron-signatures/content.js +1126 -0
- package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
- package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
- package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
- package/dist/components/electron-signatures/demoComponents/index.js +27 -0
- package/dist/components/electron-signatures/demoComponents/index_old.d.ts +3 -0
- package/dist/components/electron-signatures/demoComponents/index_old.js +502 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
- package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/making.js +211 -0
- package/dist/components/electron-signatures/demoComponents/makingData.d.ts +663 -0
- package/dist/components/electron-signatures/demoComponents/makingData.js +1164 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
- package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
- package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/test.js +119 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.js +344 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +513 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +89 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +45 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +380 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +20 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +169 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +38 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +45 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +134 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +102 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +365 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
- package/dist/components/electron-signatures/index.d.ts +13 -0
- package/dist/components/electron-signatures/index.js +54 -0
- package/dist/components/electron-signatures/index_old.d.ts +9 -0
- package/dist/components/electron-signatures/index_old.js +966 -0
- package/dist/components/electron-signatures/interface.d.ts +849 -0
- package/dist/components/electron-signatures/interface.js +57 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.js +346 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +63 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
- package/dist/components/electron-signatures/utils.d.ts +26 -0
- package/dist/components/electron-signatures/utils.js +67 -0
- package/dist/components/utils/ZtxkContext.d.ts +16 -0
- package/dist/components/utils/ZtxkContext.js +4 -0
- package/dist/components/utils/useMemoizedFn.d.ts +6 -0
- package/dist/components/utils/useMemoizedFn.js +22 -0
- package/dist/components/utils/usePrevious.d.ts +3 -0
- package/dist/components/utils/usePrevious.js +13 -0
- package/dist/index.css +686 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +105 -87
- package/dist/request.js +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,502 @@
|
|
|
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, { memo, useState, useRef, useEffect } from 'react';
|
|
50
|
+
import ElectronSignatures from '../index';
|
|
51
|
+
import request from '../../../request';
|
|
52
|
+
import { oldFileList, fileList } from './data'; // newFileList
|
|
53
|
+
import dayjs from 'dayjs';
|
|
54
|
+
console.log(fileList);
|
|
55
|
+
// const qunjAddressList = [
|
|
56
|
+
// { id: '1', name: '杭州' },
|
|
57
|
+
// { id: '2', name: '长沙' },
|
|
58
|
+
// ];
|
|
59
|
+
var Demo = function () {
|
|
60
|
+
var electronHandleRef = useRef();
|
|
61
|
+
var _a = useState(null), params = _a[0], setParams = _a[1];
|
|
62
|
+
var _b = useState(null), params1 = _b[0], setParams1 = _b[1];
|
|
63
|
+
useEffect(function () {
|
|
64
|
+
setTimeout(function () {
|
|
65
|
+
// setParams({
|
|
66
|
+
// canEdit: 0,
|
|
67
|
+
// needDg: 0,
|
|
68
|
+
// needQys: 1,
|
|
69
|
+
// needQj: 1,
|
|
70
|
+
// // 测试数据1
|
|
71
|
+
// // fileList: newFileList,
|
|
72
|
+
// // deptId: '1514839441650700290',
|
|
73
|
+
// // flowId: 'scm_order_logistics_finance',
|
|
74
|
+
// // deptId: '1514838856750813185',
|
|
75
|
+
// contractId: '3254355788760166727',
|
|
76
|
+
// docAttachMap:
|
|
77
|
+
// '{"needYjzrr":true,"8822001570633116257":"3254355785937400132"}',
|
|
78
|
+
// checkAttachIdList: ['8822001570633116257'],
|
|
79
|
+
// documentIdList: ['3254355785937400132'],
|
|
80
|
+
// // qunjAddressList,
|
|
81
|
+
// // qunjAddress: { id: '1', name: '杭州' },
|
|
82
|
+
// // qunjSeal: {
|
|
83
|
+
// // vertifyCode: 800846,
|
|
84
|
+
// // contranctNum: null,
|
|
85
|
+
// // isTakeOut: 0,
|
|
86
|
+
// // details: [
|
|
87
|
+
// // {
|
|
88
|
+
// // sealNo: 'YZ-2023-003',
|
|
89
|
+
// // sealCount: 1,
|
|
90
|
+
// // },
|
|
91
|
+
// // ],
|
|
92
|
+
// // },
|
|
93
|
+
// electronicSealIdList: [
|
|
94
|
+
// '2969500030189355150',
|
|
95
|
+
// '2968818336338210853',
|
|
96
|
+
// '2980019871597904544',
|
|
97
|
+
// ],
|
|
98
|
+
// // flowStatus: 13,
|
|
99
|
+
// // 测试数据1
|
|
100
|
+
// fileList: newFileList,
|
|
101
|
+
// // fileList: [],
|
|
102
|
+
// deptId: '1514842546870112258',
|
|
103
|
+
// flowId: 'scm_order_logistics_finance',
|
|
104
|
+
// // contractId: null,
|
|
105
|
+
// // docAttachMap: null,
|
|
106
|
+
// // checkAttachIdList: [],
|
|
107
|
+
// // documentIdList: [],
|
|
108
|
+
// // electronicSealIdList: [],
|
|
109
|
+
// // qunjAddress: {
|
|
110
|
+
// // id: null,
|
|
111
|
+
// // name: null,
|
|
112
|
+
// // },
|
|
113
|
+
// // qunjAddress: { id: '1', name: '杭州' },
|
|
114
|
+
// // qunjSeal: {
|
|
115
|
+
// // vertifyCode: null,
|
|
116
|
+
// // contranctNum: null,
|
|
117
|
+
// // isTakeOut: null,
|
|
118
|
+
// // details: [],
|
|
119
|
+
// // },
|
|
120
|
+
// caseId: 'c4f90c12-8ef0-443b-849f-f5959ec464b2',
|
|
121
|
+
// // qunjSeal: {
|
|
122
|
+
// // vertifyCode: null,
|
|
123
|
+
// // contranctNum: null,
|
|
124
|
+
// // isTakeOut: 0,
|
|
125
|
+
// // details: [
|
|
126
|
+
// // {
|
|
127
|
+
// // sealName: '浙商中拓集团(湖南)有限公司合同专用章(杭州)',
|
|
128
|
+
// // sealNo: 'YZ-2023-003',
|
|
129
|
+
// // areaType: 1,
|
|
130
|
+
// // areaTypeName: '\t杭州',
|
|
131
|
+
// // useType: 1,
|
|
132
|
+
// // useTypeName: '合同专用章',
|
|
133
|
+
// // sealCount: 1,
|
|
134
|
+
// // },
|
|
135
|
+
// // ],
|
|
136
|
+
// // },
|
|
137
|
+
// qunjSeal: {
|
|
138
|
+
// vertifyCode: 747330,
|
|
139
|
+
// contranctNum: null,
|
|
140
|
+
// isTakeOut: 0,
|
|
141
|
+
// details: [
|
|
142
|
+
// {
|
|
143
|
+
// sealNo: 'YZ-2023-003',
|
|
144
|
+
// sealCount: 1,
|
|
145
|
+
// },
|
|
146
|
+
// ],
|
|
147
|
+
// },
|
|
148
|
+
// flowStatus: 50,
|
|
149
|
+
// });
|
|
150
|
+
// 初始化数据
|
|
151
|
+
// setParams({
|
|
152
|
+
// canEdit: 1,
|
|
153
|
+
// needDg: 1,
|
|
154
|
+
// needQys: 1,
|
|
155
|
+
// needQj: 1,
|
|
156
|
+
// deptId: '1514842376723976194',
|
|
157
|
+
// flowId: 'scm_general_yyzj_common',
|
|
158
|
+
// companyTypes: '1,2,3',
|
|
159
|
+
// // fieList: [
|
|
160
|
+
// // {
|
|
161
|
+
// // attachId: '1234567891',
|
|
162
|
+
// // __DATA_TYPE_KEY: 'key1',
|
|
163
|
+
// // },
|
|
164
|
+
// // ],
|
|
165
|
+
// qunjSeal: {
|
|
166
|
+
// isTakeOut: 0,
|
|
167
|
+
// },
|
|
168
|
+
// });
|
|
169
|
+
setParams({
|
|
170
|
+
canEdit: 1,
|
|
171
|
+
needDg: 1,
|
|
172
|
+
needQys: 1,
|
|
173
|
+
needQj: 1,
|
|
174
|
+
deptId: '1514838856750813185',
|
|
175
|
+
memberId: null,
|
|
176
|
+
flowId: 'scm_order_contract_cght',
|
|
177
|
+
contractId: null,
|
|
178
|
+
caseId: null,
|
|
179
|
+
docAttachMap: null,
|
|
180
|
+
checkAttachIdList: null,
|
|
181
|
+
documentIdList: null,
|
|
182
|
+
fileList: [
|
|
183
|
+
{
|
|
184
|
+
attachId: '300979454029304286',
|
|
185
|
+
attachName: i18next.t('移库申请明细20250114162828.xlsx'),
|
|
186
|
+
attachType: '001',
|
|
187
|
+
attachTypeName: i18next.t('合同本身'),
|
|
188
|
+
createTime: '2025-01-14 17:09:42',
|
|
189
|
+
isCustomerReference: null,
|
|
190
|
+
// templateAttachId: null,
|
|
191
|
+
// templateAttachName: null,
|
|
192
|
+
templateAttachId: '431708947090842033',
|
|
193
|
+
templateAttachName: i18next.t('浙商中拓集团股份有限公司.pdf'),
|
|
194
|
+
taskId: null,
|
|
195
|
+
isWatermark: null,
|
|
196
|
+
isElectronicSeal: null,
|
|
197
|
+
isQunj: 1,
|
|
198
|
+
qunjAddress: null,
|
|
199
|
+
qunjSeal: {
|
|
200
|
+
qjCaseId: '"bb77f8c8-f712-4f2f-86df-04250e47bef6"',
|
|
201
|
+
vertifyCode: 36843,
|
|
202
|
+
contranctNum: null,
|
|
203
|
+
isTakeOut: 0,
|
|
204
|
+
details: [
|
|
205
|
+
{
|
|
206
|
+
sealNo: 'YZ-2025-022',
|
|
207
|
+
sealCount: 1,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
sealNo: 'YZ-2023-003',
|
|
211
|
+
sealCount: 1,
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
attachId: '300979454029304287',
|
|
218
|
+
attachName: i18next.t('移库申请明细20250114162317.xlsx'),
|
|
219
|
+
attachTypeName: null,
|
|
220
|
+
createTime: '2025-01-14 17:09:46',
|
|
221
|
+
isCustomerReference: null,
|
|
222
|
+
templateAttachId: null,
|
|
223
|
+
templateAttachName: null,
|
|
224
|
+
taskId: null,
|
|
225
|
+
isWatermark: null,
|
|
226
|
+
isElectronicSeal: null,
|
|
227
|
+
isQunj: 1,
|
|
228
|
+
qunjAddress: null,
|
|
229
|
+
qunjSeal: {
|
|
230
|
+
qjCaseId: '"eb887fbd-71cd-4799-8961-2f82c44c965a"',
|
|
231
|
+
vertifyCode: 397795,
|
|
232
|
+
contranctNum: null,
|
|
233
|
+
isTakeOut: 0,
|
|
234
|
+
details: [
|
|
235
|
+
{
|
|
236
|
+
sealNo: 'YZ-2025-022',
|
|
237
|
+
sealCount: 1,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
sealNo: 'YZ-2023-003',
|
|
241
|
+
sealCount: 1,
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
qunjAddress: null,
|
|
248
|
+
qunjSeal: {
|
|
249
|
+
qjCaseId: null,
|
|
250
|
+
vertifyCode: null,
|
|
251
|
+
contranctNum: null,
|
|
252
|
+
isTakeOut: 0,
|
|
253
|
+
details: null,
|
|
254
|
+
},
|
|
255
|
+
electronicSealIdList: null,
|
|
256
|
+
flowStatus: 50,
|
|
257
|
+
});
|
|
258
|
+
// setParams({
|
|
259
|
+
// canEdit: 1,
|
|
260
|
+
// needDg: 0,
|
|
261
|
+
// needQys: 1,
|
|
262
|
+
// needQj: 1,
|
|
263
|
+
// deptId: '1514842376723976194',
|
|
264
|
+
// memberId: null,
|
|
265
|
+
// flowId: 'scm_external_documents_wf',
|
|
266
|
+
// contractId: null,
|
|
267
|
+
// caseId: null,
|
|
268
|
+
// docAttachMap: null,
|
|
269
|
+
// checkAttachIdList: null,
|
|
270
|
+
// documentIdList: null,
|
|
271
|
+
// fileList: [
|
|
272
|
+
// {
|
|
273
|
+
// attachId: '13152289422036100',
|
|
274
|
+
// attachName: '【国贸--快诺-一力】需求文档5.21.docx',
|
|
275
|
+
// attachTypeName: null,
|
|
276
|
+
// createTime: '2024-09-25 14:04:54',
|
|
277
|
+
// isCustomerReference: null,
|
|
278
|
+
// templateAttachId: null,
|
|
279
|
+
// templateAttachName: null,
|
|
280
|
+
// taskId: null,
|
|
281
|
+
// isWatermark: null,
|
|
282
|
+
// isElectronicSeal: null,
|
|
283
|
+
// isQunj: null,
|
|
284
|
+
// qunjAddress: null,
|
|
285
|
+
// qunjSeal: null,
|
|
286
|
+
// },
|
|
287
|
+
// ],
|
|
288
|
+
// qunjSeal: {
|
|
289
|
+
// vertifyCode: null,
|
|
290
|
+
// contranctNum: null,
|
|
291
|
+
// isTakeOut: 0,
|
|
292
|
+
// details: [
|
|
293
|
+
// {
|
|
294
|
+
// sealNo: 'YZ-2023-003',
|
|
295
|
+
// sealCount: 1,
|
|
296
|
+
// },
|
|
297
|
+
// ],
|
|
298
|
+
// },
|
|
299
|
+
// electronicSealIdList: null,
|
|
300
|
+
// flowStatus: 15,
|
|
301
|
+
// });
|
|
302
|
+
}, 1000);
|
|
303
|
+
}, []);
|
|
304
|
+
useEffect(function () {
|
|
305
|
+
setTimeout(function () {
|
|
306
|
+
setParams1({
|
|
307
|
+
// fileList: oldFileList,
|
|
308
|
+
// // electronicSealIdList: oldElectronicSealIdList,
|
|
309
|
+
// canEdit: 0,
|
|
310
|
+
// // deptId: '1514842376723976194',
|
|
311
|
+
// // flowId: 'scm_order_contract_cght',
|
|
312
|
+
// deptId: '1514838856750813185',
|
|
313
|
+
// flowId: 'scm_order_logistics_finance',
|
|
314
|
+
// needDg: 1,
|
|
315
|
+
// needQys: 1,
|
|
316
|
+
// needQj: 1,
|
|
317
|
+
// contractId: '3254355788760166727',
|
|
318
|
+
// docAttachMap:
|
|
319
|
+
// '{"needYjzrr":true,"8822001570633116257":"3254355785937400132"}',
|
|
320
|
+
// checkAttachIdList: ['8822001570633116257'],
|
|
321
|
+
// documentIdList: ['3254355785937400132'],
|
|
322
|
+
// qunjSeal: {
|
|
323
|
+
// vertifyCode: 800846,
|
|
324
|
+
// contranctNum: null,
|
|
325
|
+
// isTakeOut: 0,
|
|
326
|
+
// details: [
|
|
327
|
+
// {
|
|
328
|
+
// sealNo: 'YZ-2023-003',
|
|
329
|
+
// sealCount: 1,
|
|
330
|
+
// },
|
|
331
|
+
// ],
|
|
332
|
+
// },
|
|
333
|
+
// electronicSealIdList: ['2982230583963468046'],
|
|
334
|
+
// flowStatus: 50,
|
|
335
|
+
fileList: oldFileList,
|
|
336
|
+
canEdit: 0,
|
|
337
|
+
needDg: 0,
|
|
338
|
+
needQys: 1,
|
|
339
|
+
needQj: 1,
|
|
340
|
+
deptId: '1514842546870112258',
|
|
341
|
+
memberId: null,
|
|
342
|
+
flowId: 'scm_order_logistics_finance',
|
|
343
|
+
contractId: '3256540752620630844',
|
|
344
|
+
caseId: 'c4f90c12-8ef0-443b-849f-f5959ec464b2',
|
|
345
|
+
docAttachMap: '{"needYjzrr":true,"8889676202095706683":"3256540750108242745"}',
|
|
346
|
+
checkAttachIdList: ['8889676202095706683'],
|
|
347
|
+
documentIdList: ['3256540750108242745'],
|
|
348
|
+
qunjSeal: {
|
|
349
|
+
vertifyCode: 747330,
|
|
350
|
+
contranctNum: null,
|
|
351
|
+
isTakeOut: 0,
|
|
352
|
+
details: [
|
|
353
|
+
{
|
|
354
|
+
sealNo: 'YZ-2023-003',
|
|
355
|
+
sealCount: 1,
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
electronicSealIdList: ['2969500030189355150'],
|
|
360
|
+
flowStatus: 50,
|
|
361
|
+
qunjAddress: {
|
|
362
|
+
id: null,
|
|
363
|
+
name: null,
|
|
364
|
+
},
|
|
365
|
+
});
|
|
366
|
+
}, 1200);
|
|
367
|
+
}, []);
|
|
368
|
+
return (React.createElement(React.Fragment, null,
|
|
369
|
+
React.createElement(ElectronSignatures, __assign({ request: request, dataTypeName: i18next.t('新附件1'), dataType: "key1",
|
|
370
|
+
// otherOptions={[
|
|
371
|
+
// {
|
|
372
|
+
// dataType: 'key12',
|
|
373
|
+
// dataTypeName: '历史附件',
|
|
374
|
+
// ...params1,
|
|
375
|
+
// },
|
|
376
|
+
// ]}
|
|
377
|
+
// otherOptions={{
|
|
378
|
+
// dataType: 'key12',
|
|
379
|
+
// dataTypeName: '历史附件',
|
|
380
|
+
// ...params1,
|
|
381
|
+
// }}
|
|
382
|
+
isBgColor: true,
|
|
383
|
+
// isDefaultQunj={false}
|
|
384
|
+
// 是否显示上传附件按钮
|
|
385
|
+
isShowFileUpload: true,
|
|
386
|
+
// 附件类型是否允许修改
|
|
387
|
+
isAllowedPatchFileType: true,
|
|
388
|
+
// 是否显示批量下载电子签章件
|
|
389
|
+
isShowElectronBatchBtn: true,
|
|
390
|
+
// 是否显示批量下载原件
|
|
391
|
+
isShowDownloadBatchBtn: true,
|
|
392
|
+
// 是否显示双签件
|
|
393
|
+
isShowDoubleSignedBatchBtn: true, isShowChioseTemplate: true, isShowBatchDeleteBtn: true, isShowBatchPreviewBtn: true,
|
|
394
|
+
// 是否显示附件归属
|
|
395
|
+
// isShowFileTypeMerge={false}
|
|
396
|
+
// 是否群杰印章对每个附件生效
|
|
397
|
+
isSingleQj: true,
|
|
398
|
+
// 是否开启文档翻译功能
|
|
399
|
+
isTranslation: true, previewUrl: "/document-translation-preview" }, params, { refreshCode: true, isQunjAddress: true,
|
|
400
|
+
// 如果是否需要契约锁不由组件内部控制 需要传递这个字段 需要配合 needQys为 0时
|
|
401
|
+
// isControlNeedQys={false}
|
|
402
|
+
// 如果默认不需要契约锁 需要传递这个属性 需要配置needQys为 0
|
|
403
|
+
defaultJustNeedQj: true,
|
|
404
|
+
// fileSplitRules={(record) => {
|
|
405
|
+
// if (record.oldVersionId) {
|
|
406
|
+
// return {
|
|
407
|
+
// key: 'key2',
|
|
408
|
+
// name: '替换附件',
|
|
409
|
+
// };
|
|
410
|
+
// }
|
|
411
|
+
// return {
|
|
412
|
+
// key: 'key1',
|
|
413
|
+
// name: '新附件',
|
|
414
|
+
// };
|
|
415
|
+
// }}
|
|
416
|
+
// 按照何种排序
|
|
417
|
+
// fileSplitStringRules={['key1', 'key2']}
|
|
418
|
+
// 第二种数据类型的配置 基本外部配置 只是值可能不同
|
|
419
|
+
// otherOptions={[
|
|
420
|
+
// {
|
|
421
|
+
// dataType: 'key2',
|
|
422
|
+
// dataTypeName: '历史附件',
|
|
423
|
+
// ...params1,
|
|
424
|
+
// },
|
|
425
|
+
// ]}
|
|
426
|
+
// 数据改变时 触发
|
|
427
|
+
onValueChange: function (info) {
|
|
428
|
+
console.log(info);
|
|
429
|
+
setParams(function (preParams) {
|
|
430
|
+
var _a, _b;
|
|
431
|
+
var newParams = __assign(__assign({}, preParams), info.key1);
|
|
432
|
+
if (info.key1.fileList) {
|
|
433
|
+
newParams.fileList = (_b = (_a = info.key1) === null || _a === void 0 ? void 0 : _a.fileList) === null || _b === void 0 ? void 0 : _b.map(function (item) {
|
|
434
|
+
return __assign(__assign({}, item), { createTime: item.createTime || dayjs().format('YYYY-MM-DD HH:mm:ss') });
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
return newParams;
|
|
438
|
+
});
|
|
439
|
+
// if (info.key1) {
|
|
440
|
+
// setParams((preParams) => {
|
|
441
|
+
// return {
|
|
442
|
+
// ...preParams,
|
|
443
|
+
// ...info.key1,
|
|
444
|
+
// };
|
|
445
|
+
// });
|
|
446
|
+
// } else {
|
|
447
|
+
// setParams1((preParams1) => {
|
|
448
|
+
// return {
|
|
449
|
+
// ...preParams1,
|
|
450
|
+
// ...info.key2,
|
|
451
|
+
// };
|
|
452
|
+
// });
|
|
453
|
+
// }
|
|
454
|
+
},
|
|
455
|
+
// 组件对外暴露的一些方法 获取数据 校验方法
|
|
456
|
+
electronHandleRef: electronHandleRef, isValidateSuccess: function () {
|
|
457
|
+
// 最后会调用一个接口 验证下是否所选的电子印章都已经盖了章 如果没有盖章 就会弹出一个选择框 让用户重新选择 重新选择后 如果用户把所有未盖章的电子印章都取消勾选的话 那么就会调用这个方法 说明校验通过 可以进行下一步
|
|
458
|
+
console.log(i18next.t('最终校验通过了!!!'));
|
|
459
|
+
} })),
|
|
460
|
+
React.createElement("button", { onClick: function () {
|
|
461
|
+
setParams(function (preParams) {
|
|
462
|
+
return __assign(__assign({}, preParams), { deptId: preParams.deptId === '1514842376723976194'
|
|
463
|
+
? '1514842546870112258'
|
|
464
|
+
: '1514842376723976194' });
|
|
465
|
+
});
|
|
466
|
+
// 修改了哪个数据的部门需要清空部门下的契约锁数据
|
|
467
|
+
// electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
|
|
468
|
+
} }, i18next.t('修改部门id')),
|
|
469
|
+
React.createElement("button", { onClick: function () {
|
|
470
|
+
setParams(function (preParams) {
|
|
471
|
+
return __assign(__assign({}, preParams), { flowId: preParams.flowId === 'scm_general_yyzj_operation'
|
|
472
|
+
? 'scm_general_yyzj_common'
|
|
473
|
+
: 'scm_general_yyzj_operation' });
|
|
474
|
+
});
|
|
475
|
+
// 修改了哪个数据的部门需要清空部门下的契约锁数据
|
|
476
|
+
// electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
|
|
477
|
+
} }, i18next.t('修改流程id')),
|
|
478
|
+
React.createElement("button", { onClick: function () {
|
|
479
|
+
console.log(electronHandleRef.current.getAllData());
|
|
480
|
+
} }, i18next.t('获取数据')),
|
|
481
|
+
React.createElement("button", { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
482
|
+
var err_1;
|
|
483
|
+
return __generator(this, function (_a) {
|
|
484
|
+
switch (_a.label) {
|
|
485
|
+
case 0:
|
|
486
|
+
_a.trys.push([0, 2, , 3]);
|
|
487
|
+
return [4 /*yield*/, electronHandleRef.current.validateElectronTable()];
|
|
488
|
+
case 1:
|
|
489
|
+
_a.sent();
|
|
490
|
+
console.log(i18next.t('校验通过'));
|
|
491
|
+
console.log(electronHandleRef.current.getAllData());
|
|
492
|
+
return [3 /*break*/, 3];
|
|
493
|
+
case 2:
|
|
494
|
+
err_1 = _a.sent();
|
|
495
|
+
console.log(err_1);
|
|
496
|
+
return [3 /*break*/, 3];
|
|
497
|
+
case 3: return [2 /*return*/];
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}); } }, i18next.t('校验逻辑'))));
|
|
501
|
+
};
|
|
502
|
+
export default memo(Demo);
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { unstable_batchedUpdates } from 'react-dom';
|
|
51
|
+
import ElectronSignatures from '../index';
|
|
52
|
+
import { Button } from '../../../index';
|
|
53
|
+
import request from '../../../request';
|
|
54
|
+
import dayjs from 'dayjs';
|
|
55
|
+
import { jgqrdData, } from './makingData';
|
|
56
|
+
/**
|
|
57
|
+
* 契约锁编辑模式 每个附件,都使用一个群杰印章按钮
|
|
58
|
+
*/
|
|
59
|
+
var Making = function () {
|
|
60
|
+
var electronHandleRef = useRef();
|
|
61
|
+
var _a = useState(null), params = _a[0], setParams = _a[1];
|
|
62
|
+
useEffect(function () {
|
|
63
|
+
// 模拟接口请求
|
|
64
|
+
setTimeout(function () {
|
|
65
|
+
unstable_batchedUpdates(function () {
|
|
66
|
+
setParams(jgqrdData);
|
|
67
|
+
});
|
|
68
|
+
}, 1000);
|
|
69
|
+
}, []);
|
|
70
|
+
return (React.createElement(React.Fragment, null,
|
|
71
|
+
React.createElement(Button, { type: "link", disabled: true }, i18next.t('我是一个链接按钮')),
|
|
72
|
+
React.createElement(ElectronSignatures, __assign({ request: request, dataTypeName: i18next.t('新附件1'), dataType: "key1", customButtons: React.createElement(React.Fragment, null,
|
|
73
|
+
React.createElement(Button, { type: "primary" }, i18next.t('添加关联合同'))), isNewQys: true, isShowElectronBatchBtn: true, isShowDownloadBatchBtn: true, isQunjAddress: true, isShowFileUpload: true, isDefaultQunj: true, isDeletePlaceholderFileData: true, isSupportNoAttachQj: true, isShowBatchDeleteBtn: true, isChoiseChangeTemplateValid: false, isShowFileTypeMerge: false, isShowFileType: false, isAllowedPatchFileType: false }, params, {
|
|
74
|
+
// 数据改变时 触发
|
|
75
|
+
onValueChange: function (info) {
|
|
76
|
+
console.log(info);
|
|
77
|
+
setParams(function (preParams) {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
var newParams = __assign(__assign({}, preParams), info.key1);
|
|
80
|
+
if (info.key1.fileList) {
|
|
81
|
+
newParams.fileList = (_b = (_a = info.key1) === null || _a === void 0 ? void 0 : _a.fileList) === null || _b === void 0 ? void 0 : _b.map(function (item) {
|
|
82
|
+
return __assign(__assign({}, item), { createTime: item.createTime || dayjs().format('YYYY-MM-DD HH:mm:ss') });
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return newParams;
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
// 组件对外暴露的一些方法 获取数据 校验方法
|
|
89
|
+
electronHandleRef: electronHandleRef, isValidateSuccess: function () {
|
|
90
|
+
// 最后会调用一个接口 验证下是否所选的电子印章都已经盖了章 如果没有盖章 就会弹出一个选择框 让用户重新选择 重新选择后 如果用户把所有未盖章的电子印章都取消勾选的话 那么就会调用这个方法 说明校验通过 可以进行下一步
|
|
91
|
+
console.log(i18next.t('最终校验通过了!!!'));
|
|
92
|
+
} })),
|
|
93
|
+
React.createElement("button", { onClick: function () {
|
|
94
|
+
setParams(function (preParams) {
|
|
95
|
+
return __assign(__assign({}, preParams), { deptId: preParams.deptId === '1514842376723976194'
|
|
96
|
+
? '1514842546870112258'
|
|
97
|
+
: '1514842376723976194' });
|
|
98
|
+
});
|
|
99
|
+
// 修改了哪个数据的部门需要清空部门下的契约锁数据
|
|
100
|
+
// electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
|
|
101
|
+
} }, i18next.t('修改部门id')),
|
|
102
|
+
React.createElement("button", { onClick: function () {
|
|
103
|
+
setParams(function (preParams) {
|
|
104
|
+
return __assign(__assign({}, preParams), { flowId: preParams.flowId === 'scm_general_yyzj_operation'
|
|
105
|
+
? 'scm_general_yyzj_common'
|
|
106
|
+
: 'scm_general_yyzj_operation' });
|
|
107
|
+
});
|
|
108
|
+
// 修改了哪个数据的部门需要清空部门下的契约锁数据
|
|
109
|
+
// electronHandleRef.current.changeDeptIdClearQysDataHandler('key1');
|
|
110
|
+
} }, i18next.t('修改流程id')),
|
|
111
|
+
React.createElement("button", { onClick: function () {
|
|
112
|
+
console.log(electronHandleRef.current.getAllData());
|
|
113
|
+
} }, i18next.t('获取数据')),
|
|
114
|
+
React.createElement("button", { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
|
+
var err_1;
|
|
116
|
+
return __generator(this, function (_a) {
|
|
117
|
+
switch (_a.label) {
|
|
118
|
+
case 0:
|
|
119
|
+
_a.trys.push([0, 2, , 3]);
|
|
120
|
+
return [4 /*yield*/, electronHandleRef.current.validateElectronTable()];
|
|
121
|
+
case 1:
|
|
122
|
+
_a.sent();
|
|
123
|
+
console.log(i18next.t('校验通过'));
|
|
124
|
+
console.log(electronHandleRef.current.getAllData());
|
|
125
|
+
return [3 /*break*/, 3];
|
|
126
|
+
case 2:
|
|
127
|
+
err_1 = _a.sent();
|
|
128
|
+
console.log(err_1);
|
|
129
|
+
return [3 /*break*/, 3];
|
|
130
|
+
case 3: return [2 /*return*/];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}); } }, i18next.t('校验逻辑'))));
|
|
134
|
+
};
|
|
135
|
+
export default Making;
|