ydb-components-material 0.1.108 → 0.1.110
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/static/add.fb69e154.svg +1 -0
- package/build/docs/static/close_black.d2efc5af.svg +1 -0
- package/build/docs/umi.af2a87c1.js +1 -0
- package/build/docs/{umi.0bdb74c5.css → umi.e486411a.css} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/3.js +2 -2
- package/build/lowcode/4.js +1 -1
- package/build/lowcode/5.js +1 -1
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/1.js +2 -2
- package/build/lowcode/render/default/2.js +1 -1
- package/build/lowcode/render/default/3.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/dist/1.js +2 -2
- package/dist/2.js +1 -1
- package/dist/3.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +21 -21
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-item/index.js +2 -15
- package/es/components/file-list/icon/add.svg +1 -0
- package/es/components/file-list/icon/close_black.svg +1 -0
- package/es/components/file-list/index.d.ts +2 -0
- package/es/components/file-list/index.js +7 -1
- package/es/components/file-list/item.d.ts +2 -0
- package/es/components/file-list/item.js +32 -7
- package/es/components/file-list/seal.js +4 -2
- package/es/components/file-list/sign.js +4 -2
- package/es/components/file-list/signerInfo.d.ts +4 -0
- package/es/components/file-list/signerInfo.js +274 -0
- package/es/components/file-list/signerInfo.scss +179 -0
- package/es/components/guide/compoents/materials/materialsList.js +2 -8
- package/es/components/sign/index.d.ts +18 -0
- package/es/components/sign/index.js +1 -0
- package/es/components/sign/index.scss +0 -0
- package/es/components/sign-file/file.js +225 -0
- package/es/components/sign-file/icon/checked.svg +1 -0
- package/es/components/sign-file/icon/close.svg +1 -0
- package/es/components/sign-file/icon/del.svg +1 -0
- package/es/components/sign-file/icon/download.svg +1 -0
- package/es/components/sign-file/icon/download_pc.svg +1 -0
- package/es/components/sign-file/icon/file.svg +1 -0
- package/es/components/sign-file/icon/icon_errorMsg.svg +1 -0
- package/es/components/sign-file/icon/icon_warning.svg +1 -0
- package/es/components/sign-file/icon/preview.svg +1 -0
- package/es/components/sign-file/icon/preview_pc.svg +1 -0
- package/es/components/sign-file/icon/upload.svg +1 -0
- package/es/components/sign-file/icon/view.svg +1 -0
- package/es/components/sign-file/index.d.ts +20 -0
- package/es/components/sign-file/index.js +444 -0
- package/es/components/sign-file/index.scss +422 -0
- package/es/components/sign-file/seal.d.ts +3 -0
- package/es/components/sign-file/seal.js +220 -0
- package/es/components/sign-file/sealUtil.js +252 -0
- package/es/components/sign-file/sign.d.ts +3 -0
- package/es/components/sign-file/sign.js +136 -0
- package/es/components/sign-file/signUtil.js +367 -0
- package/es/index.d.ts +2 -2
- package/es/index.js +1 -1
- package/es/style.js +1 -0
- package/lib/components/file-item/index.js +2 -15
- package/lib/components/file-list/icon/add.svg +1 -0
- package/lib/components/file-list/icon/close_black.svg +1 -0
- package/lib/components/file-list/index.d.ts +2 -0
- package/lib/components/file-list/index.js +7 -1
- package/lib/components/file-list/item.d.ts +2 -0
- package/lib/components/file-list/item.js +32 -7
- package/lib/components/file-list/seal.js +4 -2
- package/lib/components/file-list/sign.js +4 -2
- package/lib/components/file-list/signerInfo.d.ts +4 -0
- package/lib/components/file-list/signerInfo.js +280 -0
- package/lib/components/file-list/signerInfo.scss +179 -0
- package/lib/components/guide/compoents/materials/materialsList.js +2 -8
- package/lib/components/sign/index.d.ts +18 -0
- package/lib/components/sign/index.js +3 -0
- package/lib/components/sign/index.scss +0 -0
- package/lib/components/sign-file/file.js +234 -0
- package/lib/components/sign-file/icon/checked.svg +1 -0
- package/lib/components/sign-file/icon/close.svg +1 -0
- package/lib/components/sign-file/icon/del.svg +1 -0
- package/lib/components/sign-file/icon/download.svg +1 -0
- package/lib/components/sign-file/icon/download_pc.svg +1 -0
- package/lib/components/sign-file/icon/file.svg +1 -0
- package/lib/components/sign-file/icon/icon_errorMsg.svg +1 -0
- package/lib/components/sign-file/icon/icon_warning.svg +1 -0
- package/lib/components/sign-file/icon/preview.svg +1 -0
- package/lib/components/sign-file/icon/preview_pc.svg +1 -0
- package/lib/components/sign-file/icon/upload.svg +1 -0
- package/lib/components/sign-file/icon/view.svg +1 -0
- package/lib/components/sign-file/index.d.ts +20 -0
- package/lib/components/sign-file/index.js +451 -0
- package/lib/components/sign-file/index.scss +422 -0
- package/lib/components/sign-file/seal.d.ts +3 -0
- package/lib/components/sign-file/seal.js +226 -0
- package/lib/components/sign-file/sealUtil.js +254 -0
- package/lib/components/sign-file/sign.d.ts +3 -0
- package/lib/components/sign-file/sign.js +142 -0
- package/lib/components/sign-file/signUtil.js +369 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +3 -3
- package/lib/style.js +1 -0
- package/lowcode/file-list/meta.ts +30 -4
- package/lowcode/sign-file/meta.ts +209 -0
- package/lowcode_es/file-list/meta.js +29 -4
- package/lowcode_es/meta.js +3 -2
- package/lowcode_es/sign-file/meta.d.ts +22 -0
- package/lowcode_es/sign-file/meta.js +192 -0
- package/lowcode_lib/file-list/meta.js +29 -4
- package/lowcode_lib/meta.js +7 -6
- package/lowcode_lib/sign-file/meta.d.ts +22 -0
- package/lowcode_lib/sign-file/meta.js +197 -0
- package/package.json +3 -3
- package/build/docs/umi.f685e4ec.js +0 -1
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { getBlob, getFileExtension, upload, dataURLtoBlob, uploadFilePromise } from "./file";
|
|
4
|
+
import { createbycategory, contractSignUrl, signurl, checkSignState, contractFinish, documentDownload, fileUploadApi } from "../../api";
|
|
5
|
+
var categoryId = '3354397552669692408';
|
|
6
|
+
// 预发
|
|
7
|
+
var categoryIdRelease = '3291682531601133765'; // 手写签批id
|
|
8
|
+
var documentId = ''; // 手写签批生成的文件id
|
|
9
|
+
var contractId = ''; // 合同id
|
|
10
|
+
|
|
11
|
+
// 对外的方法 初始化手写签批的页面
|
|
12
|
+
export function initSignPageMethod(_x, _x2, _x3) {
|
|
13
|
+
return _initSignPageMethod.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 【第 1 步】上传要手写签批的文件
|
|
17
|
+
function _initSignPageMethod() {
|
|
18
|
+
_initSignPageMethod = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(fileObj, userInfo, config) {
|
|
19
|
+
var name, docId, contrId, flag, pageUrl, params;
|
|
20
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
21
|
+
while (1) switch (_context.prev = _context.next) {
|
|
22
|
+
case 0:
|
|
23
|
+
console.log('fileObj', fileObj, userInfo);
|
|
24
|
+
name = fileObj.name; // 【第 1 步】上传要手写签批的文件
|
|
25
|
+
_context.next = 1;
|
|
26
|
+
return uploadSignFile(fileObj, config);
|
|
27
|
+
case 1:
|
|
28
|
+
docId = _context.sent;
|
|
29
|
+
console.log('docId---', docId);
|
|
30
|
+
if (docId) {
|
|
31
|
+
_context.next = 2;
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
return _context.abrupt("return", false);
|
|
35
|
+
case 2:
|
|
36
|
+
documentId = docId; // 保存文档 id
|
|
37
|
+
|
|
38
|
+
// 【第 2 步】创建或者发起电子签批
|
|
39
|
+
_context.next = 3;
|
|
40
|
+
return createbycategoryFun(name, docId, config);
|
|
41
|
+
case 3:
|
|
42
|
+
contrId = _context.sent;
|
|
43
|
+
console.log('contrId---', contrId);
|
|
44
|
+
if (contrId) {
|
|
45
|
+
_context.next = 4;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
return _context.abrupt("return", false);
|
|
49
|
+
case 4:
|
|
50
|
+
contractId = contrId;
|
|
51
|
+
|
|
52
|
+
// 【第 3 步】创建手写签批页面
|
|
53
|
+
_context.next = 5;
|
|
54
|
+
return getContractSignUrl(contrId, userInfo, config);
|
|
55
|
+
case 5:
|
|
56
|
+
flag = _context.sent;
|
|
57
|
+
if (flag) {
|
|
58
|
+
_context.next = 6;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
return _context.abrupt("return", false);
|
|
62
|
+
case 6:
|
|
63
|
+
_context.next = 7;
|
|
64
|
+
return getSignUrl(userInfo, config);
|
|
65
|
+
case 7:
|
|
66
|
+
pageUrl = _context.sent;
|
|
67
|
+
if (pageUrl) {
|
|
68
|
+
_context.next = 8;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
return _context.abrupt("return", false);
|
|
72
|
+
case 8:
|
|
73
|
+
// 将 文档 id/签批文件 id/签署地址/文件名称 返回
|
|
74
|
+
params = {
|
|
75
|
+
documentId: documentId,
|
|
76
|
+
contractId: contractId,
|
|
77
|
+
pageUrl: pageUrl,
|
|
78
|
+
name: name
|
|
79
|
+
};
|
|
80
|
+
return _context.abrupt("return", params);
|
|
81
|
+
case 9:
|
|
82
|
+
case "end":
|
|
83
|
+
return _context.stop();
|
|
84
|
+
}
|
|
85
|
+
}, _callee);
|
|
86
|
+
}));
|
|
87
|
+
return _initSignPageMethod.apply(this, arguments);
|
|
88
|
+
}
|
|
89
|
+
function uploadSignFile(_x4, _x5) {
|
|
90
|
+
return _uploadSignFile.apply(this, arguments);
|
|
91
|
+
} // 【第 2 步】创建或者发起电子签批
|
|
92
|
+
function _uploadSignFile() {
|
|
93
|
+
_uploadSignFile = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(event, config) {
|
|
94
|
+
var blob, file, signApprovalFileType;
|
|
95
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
96
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
console.log(event, '文件 1111', config);
|
|
99
|
+
// uni.showLoading({ title: '加载中' })
|
|
100
|
+
_context2.next = 1;
|
|
101
|
+
return getBlob(event.url);
|
|
102
|
+
case 1:
|
|
103
|
+
blob = _context2.sent;
|
|
104
|
+
file = new File([blob], event.name, {
|
|
105
|
+
type: event.type
|
|
106
|
+
}); // 获取文件类型
|
|
107
|
+
signApprovalFileType = getFileExtension(event.name);
|
|
108
|
+
return _context2.abrupt("return", new Promise(function (resolve) {
|
|
109
|
+
// 上传文件
|
|
110
|
+
upload({
|
|
111
|
+
file: file,
|
|
112
|
+
title: event.name,
|
|
113
|
+
fileType: signApprovalFileType,
|
|
114
|
+
filename: event.name,
|
|
115
|
+
// 文件名称
|
|
116
|
+
headers: {
|
|
117
|
+
Authorization: config.tokenTY
|
|
118
|
+
},
|
|
119
|
+
// https://zwfwpt.sxzwfw.gov.cn${window.env === 'release' ? ':10010' : ''}/DeclarationAPI
|
|
120
|
+
action: config.baseUrl + "/declaration/center/signapproval/api/createbyfile",
|
|
121
|
+
// 上传文件的地址
|
|
122
|
+
onError: function onError(e) {
|
|
123
|
+
// uni.$u.toast(e.msg || '手写签批上传文件异常');
|
|
124
|
+
// uni.hideLoading();
|
|
125
|
+
resolve(false);
|
|
126
|
+
},
|
|
127
|
+
onSuccess: function onSuccess(e) {
|
|
128
|
+
// 上传成功
|
|
129
|
+
console.log('上传成功', e);
|
|
130
|
+
resolve(e.data.documentId);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}));
|
|
134
|
+
case 2:
|
|
135
|
+
case "end":
|
|
136
|
+
return _context2.stop();
|
|
137
|
+
}
|
|
138
|
+
}, _callee2);
|
|
139
|
+
}));
|
|
140
|
+
return _uploadSignFile.apply(this, arguments);
|
|
141
|
+
}
|
|
142
|
+
function createbycategoryFun(fileName, documentIdVal, config) {
|
|
143
|
+
// uni.showLoading({ title: '加载中' })
|
|
144
|
+
console.log('env---', config.env);
|
|
145
|
+
var params = {
|
|
146
|
+
subject: fileName,
|
|
147
|
+
documents: [documentIdVal],
|
|
148
|
+
categoryId: config.env === 'releaseHLW' ? categoryIdRelease : categoryId,
|
|
149
|
+
send: true,
|
|
150
|
+
tenantName: '山西省行政审批服务管理局'
|
|
151
|
+
};
|
|
152
|
+
return new Promise(function (resolve) {
|
|
153
|
+
createbycategory(params, config).then(function (res) {
|
|
154
|
+
console.log('创建订单成功', res);
|
|
155
|
+
if (res.code === 200) {
|
|
156
|
+
resolve(res.data.contractId);
|
|
157
|
+
} else {
|
|
158
|
+
resolve(false);
|
|
159
|
+
}
|
|
160
|
+
})["catch"](function (error) {
|
|
161
|
+
// uni.hideLoading();
|
|
162
|
+
resolve(false);
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// 【第 3 步】创建手写签批页面
|
|
168
|
+
function getContractSignUrl(contractIdVal, userInfo, config) {
|
|
169
|
+
console.log('contractIdVal', contractIdVal, userInfo);
|
|
170
|
+
// uni.showLoading({ title: '加载中' })
|
|
171
|
+
var params = {
|
|
172
|
+
contractId: contractIdVal,
|
|
173
|
+
signatories: [{
|
|
174
|
+
tenantType: 'PERSONAL',
|
|
175
|
+
tenantName: userInfo.acctType === '20' ? userInfo.legalName : userInfo.userName,
|
|
176
|
+
contact: userInfo.acctType === '20' ? userInfo.legalMobile : userInfo.contactMobile,
|
|
177
|
+
serialNo: 1,
|
|
178
|
+
signAuthConfig: {
|
|
179
|
+
signAuth: 'DEFAULT'
|
|
180
|
+
},
|
|
181
|
+
remind: false
|
|
182
|
+
}]
|
|
183
|
+
};
|
|
184
|
+
return new Promise(function (resolve) {
|
|
185
|
+
contractSignUrl(params, config).then(function (res) {
|
|
186
|
+
if (res.data.code == 0) {
|
|
187
|
+
resolve(true);
|
|
188
|
+
} else {
|
|
189
|
+
// uni.hideLoading();
|
|
190
|
+
// uni.showModal({
|
|
191
|
+
// title: '温馨提示',
|
|
192
|
+
// content: '获取签批页面失败',
|
|
193
|
+
// confirmText: '知道了',
|
|
194
|
+
// showCancel: false,
|
|
195
|
+
// })
|
|
196
|
+
resolve(false);
|
|
197
|
+
}
|
|
198
|
+
})["catch"](function (error) {
|
|
199
|
+
// uni.hideLoading();
|
|
200
|
+
resolve(false);
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// 【第 4 步】获取签 pi 页面
|
|
206
|
+
function getSignUrl(userInfo, config) {
|
|
207
|
+
// uni.showLoading({ title: '加载中' })
|
|
208
|
+
var params = {
|
|
209
|
+
contractId: contractId,
|
|
210
|
+
tenantType: 'PERSONAL',
|
|
211
|
+
// COMPANY(组织),PERSONAL(个人)
|
|
212
|
+
tenantName: userInfo.acctType === '20' ? userInfo.legalName : userInfo.userName,
|
|
213
|
+
contact: userInfo.acctType === '20' ? userInfo.legalMobile : userInfo.contactMobile,
|
|
214
|
+
canReturn: false,
|
|
215
|
+
// 页面是否显示返回按钮
|
|
216
|
+
canWithdraw: false,
|
|
217
|
+
// 页面是否显示撤回/回退/拒签按钮
|
|
218
|
+
rejectable: false,
|
|
219
|
+
// 页面是否显示拒签按钮
|
|
220
|
+
allowDownload: false,
|
|
221
|
+
// 页面是否显示下载按钮
|
|
222
|
+
allowPrint: false,
|
|
223
|
+
// 页面是否显示打印按钮
|
|
224
|
+
canViewDetail: false,
|
|
225
|
+
// 页面是否显示签署详情按钮
|
|
226
|
+
canMoreOperation: false,
|
|
227
|
+
// 页面是否显示"更多操作"按钮
|
|
228
|
+
autoClosePage: true,
|
|
229
|
+
// 操作完成自动关闭页面
|
|
230
|
+
language: 'ZH_CN',
|
|
231
|
+
deviceType: config.isPC || 'H5' // 取值范围:PC(返回 PC 页面),H5(返回 H5 页面);不传值默认为:根据请求的 UserAgent 自动判断返回的页面类型。
|
|
232
|
+
};
|
|
233
|
+
return new Promise(function (resolve) {
|
|
234
|
+
signurl(params, config).then(function (res) {
|
|
235
|
+
console.log(res, '页面结果');
|
|
236
|
+
if (res.data.code == 0) {
|
|
237
|
+
resolve(res.data.signUrl);
|
|
238
|
+
} else {
|
|
239
|
+
resolve(false);
|
|
240
|
+
}
|
|
241
|
+
// uni.hideLoading();
|
|
242
|
+
})["catch"](function (error) {
|
|
243
|
+
resolve(false);
|
|
244
|
+
// uni.hideLoading();
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// 下方是打开手写签批页面后 的后续操作
|
|
250
|
+
|
|
251
|
+
// 对外的方法 获取签批后的文件
|
|
252
|
+
export function getSignRes(_x6, _x7, _x8, _x9, _x0) {
|
|
253
|
+
return _getSignRes.apply(this, arguments);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// 轮询 签批状态
|
|
257
|
+
function _getSignRes() {
|
|
258
|
+
_getSignRes = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(documentIdVal, contractIdVal, name, autoUpload, config) {
|
|
259
|
+
var isSignSucc, newFile, params, uploadRes;
|
|
260
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
261
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
262
|
+
case 0:
|
|
263
|
+
_context3.next = 1;
|
|
264
|
+
return getCheckSignState(contractIdVal, config);
|
|
265
|
+
case 1:
|
|
266
|
+
isSignSucc = _context3.sent;
|
|
267
|
+
if (!isSignSucc) {
|
|
268
|
+
_context3.next = 8;
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
// 封存
|
|
272
|
+
getContractFinish(contractIdVal, config);
|
|
273
|
+
_context3.next = 2;
|
|
274
|
+
return handleSignApprovalDown(documentIdVal, name, config);
|
|
275
|
+
case 2:
|
|
276
|
+
newFile = _context3.sent;
|
|
277
|
+
console.log('newFile', newFile);
|
|
278
|
+
// 如果需要自动上传
|
|
279
|
+
if (!autoUpload) {
|
|
280
|
+
_context3.next = 6;
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
params = {
|
|
284
|
+
materiaBase: newFile,
|
|
285
|
+
open: true
|
|
286
|
+
};
|
|
287
|
+
console.log('params', params);
|
|
288
|
+
_context3.next = 3;
|
|
289
|
+
return fileUploadApi(params, config);
|
|
290
|
+
case 3:
|
|
291
|
+
uploadRes = _context3.sent;
|
|
292
|
+
// const uploadedFileObj = await uploadFilePromise(newFile, config)
|
|
293
|
+
console.log('签批完成后的文件地址', uploadRes);
|
|
294
|
+
if (!(uploadRes.code === 200)) {
|
|
295
|
+
_context3.next = 4;
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
return _context3.abrupt("return", uploadRes.data);
|
|
299
|
+
case 4:
|
|
300
|
+
return _context3.abrupt("return", false);
|
|
301
|
+
case 5:
|
|
302
|
+
_context3.next = 7;
|
|
303
|
+
break;
|
|
304
|
+
case 6:
|
|
305
|
+
return _context3.abrupt("return", newFile);
|
|
306
|
+
case 7:
|
|
307
|
+
_context3.next = 9;
|
|
308
|
+
break;
|
|
309
|
+
case 8:
|
|
310
|
+
return _context3.abrupt("return", false);
|
|
311
|
+
case 9:
|
|
312
|
+
case "end":
|
|
313
|
+
return _context3.stop();
|
|
314
|
+
}
|
|
315
|
+
}, _callee3);
|
|
316
|
+
}));
|
|
317
|
+
return _getSignRes.apply(this, arguments);
|
|
318
|
+
}
|
|
319
|
+
function getCheckSignState(contractIdVal, config) {
|
|
320
|
+
return new Promise(function (resolve) {
|
|
321
|
+
checkSignState({
|
|
322
|
+
contractId: contractIdVal
|
|
323
|
+
}, config).then(function (res) {
|
|
324
|
+
console.log('轮询结果---', res);
|
|
325
|
+
// console.log('轮询结果', JSON.parse(res.data));
|
|
326
|
+
// 签署完成
|
|
327
|
+
if (res.data !== 'null') {
|
|
328
|
+
res = JSON.parse(res.data);
|
|
329
|
+
if (res.status == 'SIGNED') {
|
|
330
|
+
resolve(true);
|
|
331
|
+
} else {
|
|
332
|
+
resolve(false);
|
|
333
|
+
}
|
|
334
|
+
} else {
|
|
335
|
+
resolve(false);
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// 封存电子签批
|
|
342
|
+
function getContractFinish(contractIdVal, config) {
|
|
343
|
+
contractFinish({
|
|
344
|
+
contractId: contractIdVal
|
|
345
|
+
}, config);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// 下载签署完的文档
|
|
349
|
+
function handleSignApprovalDown(documentIdVal, name, config) {
|
|
350
|
+
var params = {
|
|
351
|
+
documentId: documentIdVal,
|
|
352
|
+
type: 'pdf'
|
|
353
|
+
};
|
|
354
|
+
return new Promise(function (resolve) {
|
|
355
|
+
documentDownload(params, config).then(function (res) {
|
|
356
|
+
console.log('下载文件:', res);
|
|
357
|
+
// 返回来是base64格式的
|
|
358
|
+
// const blob = dataURLtoBlob(res.data); // 转成blob格式进行上传
|
|
359
|
+
// console.log(blob, '新文件的blob格式');
|
|
360
|
+
if (res.code === 200) {
|
|
361
|
+
resolve(res.data);
|
|
362
|
+
} else {
|
|
363
|
+
resolve(false);
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ export type { SuccessPromptProps } from './components/success-prompt';
|
|
|
17
17
|
export { default as SuccessPrompt } from './components/success-prompt';
|
|
18
18
|
export type { CheckDetailProps } from './components/check-detail';
|
|
19
19
|
export { default as CheckDetail } from './components/check-detail';
|
|
20
|
-
export type { FilePCProps } from './components/file-pc';
|
|
21
|
-
export { default as FilePC } from './components/file-pc';
|
|
22
20
|
export type { PreCheckResPCProps } from './components/pre-check-res-pc';
|
|
23
21
|
export { default as PreCheckResPC } from './components/pre-check-res-pc';
|
|
24
22
|
export type { CheckDetailPcProps } from './components/check-detail-pc';
|
|
@@ -51,5 +49,7 @@ export type { GuideProps } from './components/guide';
|
|
|
51
49
|
export { default as Guide } from './components/guide';
|
|
52
50
|
export type { CommentProps } from './components/guide/comment';
|
|
53
51
|
export { default as Comment } from './components/guide/comment';
|
|
52
|
+
export type { SignFileProps } from './components/sign-file';
|
|
53
|
+
export { default as SignFile } from './components/sign-file';
|
|
54
54
|
declare const bizCssPrefix = "bizpack";
|
|
55
55
|
export { bizCssPrefix };
|
package/es/index.js
CHANGED
|
@@ -14,7 +14,6 @@ export { default as Statstic } from "./components/statistic";
|
|
|
14
14
|
export { default as MaterialCheckRes } from "./components/material-check-res";
|
|
15
15
|
export { default as SuccessPrompt } from "./components/success-prompt";
|
|
16
16
|
export { default as CheckDetail } from "./components/check-detail";
|
|
17
|
-
export { default as FilePC } from "./components/file-pc";
|
|
18
17
|
export { default as PreCheckResPC } from "./components/pre-check-res-pc";
|
|
19
18
|
export { default as CheckDetailPc } from "./components/check-detail-pc";
|
|
20
19
|
export { default as IconCustom } from "./components/icon-custom";
|
|
@@ -31,5 +30,6 @@ export { default as FileListPreview } from "./components/file-list-preview";
|
|
|
31
30
|
export { default as DragDropList } from "./components/drag-drop";
|
|
32
31
|
export { default as Guide } from "./components/guide";
|
|
33
32
|
export { default as Comment } from "./components/guide/comment";
|
|
33
|
+
export { default as SignFile } from "./components/sign-file";
|
|
34
34
|
var bizCssPrefix = 'bizpack';
|
|
35
35
|
export { bizCssPrefix };
|
package/es/style.js
CHANGED
|
@@ -4,6 +4,7 @@ import '@alifd/next/es/radio/style';
|
|
|
4
4
|
import '@alifd/next/es/checkbox/style';
|
|
5
5
|
import '@alifd/next/es/balloon/style';
|
|
6
6
|
import 'antd/es/cascader/style';
|
|
7
|
+
import '@alifd/next/es/input/style';
|
|
7
8
|
import '@alifd/next/es/dialog/style';
|
|
8
9
|
import '@alifd/next/es/loading/style';
|
|
9
10
|
import '@alifd/next/es/button/style';
|
|
@@ -11,14 +11,12 @@ var _message = _interopRequireDefault(require("@alifd/next/lib/message"));
|
|
|
11
11
|
var _radio = _interopRequireDefault(require("@alifd/next/lib/radio"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _checked = _interopRequireDefault(require("./icon/checked.svg"));
|
|
14
|
-
var _del = _interopRequireDefault(require("./icon/del.svg"));
|
|
15
14
|
var _preview = _interopRequireDefault(require("./icon/preview.svg"));
|
|
16
15
|
var _preview_pc = _interopRequireDefault(require("./icon/preview_pc.svg"));
|
|
17
16
|
var _download = _interopRequireDefault(require("./icon/download.svg"));
|
|
18
17
|
var _download_pc = _interopRequireDefault(require("./icon/download_pc.svg"));
|
|
19
18
|
var _file = _interopRequireDefault(require("./icon/file.svg"));
|
|
20
19
|
var _icon_warning = _interopRequireDefault(require("./icon/icon_warning.svg"));
|
|
21
|
-
var _icon_errorMsg = _interopRequireDefault(require("./icon/icon_errorMsg.svg"));
|
|
22
20
|
var _upload = _interopRequireDefault(require("./icon/upload.svg"));
|
|
23
21
|
var _close = _interopRequireDefault(require("./icon/close.svg"));
|
|
24
22
|
var _sign = _interopRequireDefault(require("./sign"));
|
|
@@ -498,18 +496,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
498
496
|
className: "small_img",
|
|
499
497
|
src: _file["default"],
|
|
500
498
|
alt: ""
|
|
501
|
-
}), "\u6587\u4EF6"
|
|
502
|
-
className: "del",
|
|
503
|
-
src: _del["default"],
|
|
504
|
-
alt: "",
|
|
505
|
-
onClick: function onClick() {
|
|
506
|
-
return del();
|
|
507
|
-
}
|
|
508
|
-
}), isInValid && /*#__PURE__*/_react["default"].createElement("img", {
|
|
509
|
-
className: "error_msg",
|
|
510
|
-
src: _icon_errorMsg["default"],
|
|
511
|
-
alt: ""
|
|
512
|
-
})) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
499
|
+
}), "\u6587\u4EF6") : /*#__PURE__*/_react["default"].createElement("div", {
|
|
513
500
|
className: "add",
|
|
514
501
|
onClick: function onClick() {
|
|
515
502
|
return upload();
|
|
@@ -742,7 +729,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
742
729
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
743
730
|
src: guideurl,
|
|
744
731
|
style: {
|
|
745
|
-
|
|
732
|
+
width: '100%'
|
|
746
733
|
}
|
|
747
734
|
})), checkPointData && /*#__PURE__*/_react["default"].createElement(_checkPoint["default"], {
|
|
748
735
|
checkPointData: checkPointData,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><defs><clipPath id="master_svg0_1207_75555"><rect x="0" y="0" width="20" height="20" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_1207_75555)"><path d="M8.832264925,10.916015625C9.753515225,10.916015625,10.489764225,10.916015625,11.082264625,10.963515472C11.684764625,11.013515472,12.207264625,11.116015625,12.686015625,11.361015315C13.454546625,11.752638285,14.079391625,12.377482625,14.471014625,13.146015125C14.716013625,13.624765825,14.818514625,14.147264925,14.868514625,14.749765825C14.916015625,15.342266125,14.916015625,16.078516525,14.916015625,16.999765825L14.916015625,17.499765825C14.916015625,17.913979525000002,14.580229625,18.249765825,14.166015625,18.249765825L1.666015625,18.249765825C1.251802055,18.249765825,0.916015625,17.913979525000002,0.916015625,17.499765825L0.916015625,16.999765825C0.916015625,16.078516525,0.916015625,15.342266125,0.963515665,14.749765825C1.013515666,14.147266425,1.116015625,13.624765825,1.361015705,13.146015125C1.752639415,12.377483325,2.377483925,11.752638995,3.146015925,11.361015315C3.624765825,11.116015625,4.147265625,11.013515472,4.749765825,10.963515472C5.342265625,10.916015625,6.078515525,10.916015625,6.999765825,10.916015625L8.832264925,10.916015625ZM6.999764925,12.416015625C6.053514925,12.416015625,5.389765225,12.416015625,4.871015325,12.459765625C4.362265125,12.501015525,4.059765325,12.578515625,3.827265225,12.697265625C3.340702025,12.945127225,2.945126725,13.340702025,2.6972652249999998,13.827265225C2.5785153249999997,14.059764825,2.501015325,14.362265825,2.4597653250000002,14.872264825C2.4210151250000003,15.342264625,2.417265325,15.934764825,2.417265325,16.748514625L13.414764625,16.748514625C13.414764625,15.934764825,13.411013625,15.342264625,13.372263625,14.872264825C13.331013625,14.362264425,13.253514625,14.059764825,13.134764625,13.827265225C12.886903625,13.340700625,12.491327625,12.945125625,12.004763625,12.697264925C11.772264625,12.578514925,11.469763625,12.501014725000001,10.961013625,12.459764825C10.442263625,12.417264625,9.778513925,12.416014925,8.832263925,12.416014925L6.999764925,12.416015625Z" fill="#999999" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M15.833983674999999,4.666015625C16.248197275,4.66601600646973,16.583985375,5.001802445,16.583983675,5.416015625L16.583983675,7.166015625L18.333983875,7.166015625C18.748197075,7.166016325,19.083983875,7.501802925,19.083983875,7.916016325C19.083983875,8.330230025,18.748197075,8.666016625000001,18.333983875,8.666015625L16.583983675,8.666015625L16.583983675,10.416015625C16.583985375,10.830229325000001,16.248198775,11.166016625000001,15.833985075000001,11.166016625000001C15.419771675,11.166016625000001,15.083985075000001,10.830230225000001,15.083983674999999,10.416015625L15.083983674999999,8.666015625L13.333983605,8.666015625C12.919770065,8.666016625000001,12.583984375,8.330230025,12.583984375,7.916016325C12.583984375,7.501802925,12.919770065,7.166016325,13.333983605,7.166015625L15.083983674999999,7.166015625L15.083983674999999,5.416015625C15.083985075000001,5.001802055,15.419769975,4.66601600646973,15.833983674999999,4.666015625Z" fill="#999999" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M7.91638631875,1.75C9.94154591875,1.75000019073487,11.583261018750001,3.3917156,11.583261018750001,5.4168746C11.583261018750001,7.4420342,9.94154591875,9.0837502,7.91638631875,9.0837502C5.8912273187499995,9.0837502,4.24951171875,7.4420342,4.24951171875,5.4168746C4.24951171875,3.3917156,5.8912273187499995,1.75000019073487,7.91638631875,1.75ZM7.91638631875,3.25C6.71930931875,3.2503452,5.74916651875,4.2210481,5.74951171875,5.4181252C5.74985691875,6.6152024,6.72055891875,7.5853457,7.91763611875,7.585C9.114712718749999,7.5846553,10.08485551875,6.6139526,10.084510818750001,5.4168758C10.08416601875,4.2197987999999995,9.11346391875,3.2496551,7.91638631875,3.25Z" fill="#999999" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14.166254997253418" height="14.166254997253418" viewBox="0 0 14.166254997253418 14.166254997253418"><path d="M5.9393778,7.083128L0.2368781,1.380628C-0.078959465,1.0647899,-0.078959465,0.55271596,0.2368784,0.2368784C0.55271626,-0.078959465,1.0647901,-0.078959465,1.380628,0.2368781L7.083128,5.9393778L12.785627,0.2368781C13.101511,-0.078696012,13.61337,-0.078570843,13.929096,0.23715764C14.244826,0.55288643,14.244952,1.0647446,13.929379,1.380628L8.2268772,7.083128L13.929377,12.785627C14.245214,13.101465,14.245214,13.613542,13.929377,13.929377C13.613539,14.245214,13.101463,14.245214,12.785627,13.929379L7.083128,8.2268772L1.380628,13.929379C1.0647446,14.244952,0.55288613,14.244826,0.23715734,13.929096C-0.078571141,13.61337,-0.078696012,13.101511,0.2368781,12.785627L5.9393778,7.083128Z" fill="#666666" fill-opacity="1" style="mix-blend-mode:passthrough"/></svg>
|
|
@@ -5,6 +5,7 @@ export interface FileListProps {
|
|
|
5
5
|
* 列表数据
|
|
6
6
|
*/
|
|
7
7
|
fileList: Array<object>;
|
|
8
|
+
signerInfo?: object;
|
|
8
9
|
token: string;
|
|
9
10
|
tokenTY: string;
|
|
10
11
|
accessToken: string;
|
|
@@ -18,6 +19,7 @@ export interface FileListProps {
|
|
|
18
19
|
openLoading: () => void;
|
|
19
20
|
closeLoading: () => void;
|
|
20
21
|
valChange: (value: any) => void;
|
|
22
|
+
saveSignerInfo: (value: any) => boolean;
|
|
21
23
|
}
|
|
22
24
|
declare const FileList: React.FC<FileListProps>;
|
|
23
25
|
export default FileList;
|
|
@@ -47,10 +47,12 @@ var FileList = function FileList(_ref) {
|
|
|
47
47
|
isPC = _ref.isPC,
|
|
48
48
|
disabled = _ref.disabled,
|
|
49
49
|
style = _ref.style,
|
|
50
|
+
signerInfo = _ref.signerInfo,
|
|
50
51
|
download = _ref.download,
|
|
51
52
|
openLoading = _ref.openLoading,
|
|
52
53
|
closeLoading = _ref.closeLoading,
|
|
53
|
-
valChange = _ref.valChange
|
|
54
|
+
valChange = _ref.valChange,
|
|
55
|
+
saveSignerInfo = _ref.saveSignerInfo;
|
|
54
56
|
var _useState = (0, _react.useState)(false),
|
|
55
57
|
showMerge = _useState[0],
|
|
56
58
|
setShowMerge = _useState[1];
|
|
@@ -293,11 +295,13 @@ var FileList = function FileList(_ref) {
|
|
|
293
295
|
baseUrl: baseUrl,
|
|
294
296
|
env: env,
|
|
295
297
|
isPC: isPC,
|
|
298
|
+
signerInfo: signerInfo,
|
|
296
299
|
disabled: disabled,
|
|
297
300
|
download: download,
|
|
298
301
|
valChange: handleChange,
|
|
299
302
|
openLoading: openLoading,
|
|
300
303
|
closeLoading: closeLoading,
|
|
304
|
+
saveSignerInfo: saveSignerInfo,
|
|
301
305
|
style: {
|
|
302
306
|
marginBottom: '12px'
|
|
303
307
|
}
|
|
@@ -309,6 +313,7 @@ var FileList = function FileList(_ref) {
|
|
|
309
313
|
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
310
314
|
index: index,
|
|
311
315
|
fileIndex: i,
|
|
316
|
+
signerInfo: signerInfo,
|
|
312
317
|
file: file,
|
|
313
318
|
fileConfig: item,
|
|
314
319
|
maxFileSize: item.materialSize,
|
|
@@ -325,6 +330,7 @@ var FileList = function FileList(_ref) {
|
|
|
325
330
|
valChange: handleChange,
|
|
326
331
|
openLoading: openLoading,
|
|
327
332
|
closeLoading: closeLoading,
|
|
333
|
+
saveSignerInfo: saveSignerInfo,
|
|
328
334
|
style: {
|
|
329
335
|
marginBottom: '12px'
|
|
330
336
|
}
|
|
@@ -18,10 +18,12 @@ export interface FileItemProps {
|
|
|
18
18
|
isInValid: boolean;
|
|
19
19
|
userInfo: object;
|
|
20
20
|
style?: object;
|
|
21
|
+
signerInfo?: object;
|
|
21
22
|
openLoading: () => void;
|
|
22
23
|
closeLoading: () => void;
|
|
23
24
|
valChange: (value: any, fileIndex: any, index: any, subIndex: any) => void;
|
|
24
25
|
download: (value: any) => void;
|
|
26
|
+
saveSignerInfo: (value: any) => boolean;
|
|
25
27
|
}
|
|
26
28
|
declare const FileItem: React.FC<FileItemProps>;
|
|
27
29
|
export default FileItem;
|
|
@@ -25,6 +25,7 @@ var _seal = _interopRequireDefault(require("./seal"));
|
|
|
25
25
|
var _api = require("../../api");
|
|
26
26
|
var _file2 = require("./file.js");
|
|
27
27
|
var _checkPoint = _interopRequireDefault(require("./checkPoint"));
|
|
28
|
+
var _signerInfo = _interopRequireDefault(require("./signerInfo"));
|
|
28
29
|
require("./item.scss");
|
|
29
30
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
30
31
|
var RadioGroup = _radio["default"].Group;
|
|
@@ -39,6 +40,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
39
40
|
userInfo = _ref.userInfo,
|
|
40
41
|
token = _ref.token,
|
|
41
42
|
tokenTY = _ref.tokenTY,
|
|
43
|
+
signerInfo = _ref.signerInfo,
|
|
42
44
|
accessToken = _ref.accessToken,
|
|
43
45
|
baseUrl = _ref.baseUrl,
|
|
44
46
|
env = _ref.env,
|
|
@@ -48,7 +50,8 @@ var FileItem = function FileItem(_ref) {
|
|
|
48
50
|
valChange = _ref.valChange,
|
|
49
51
|
download = _ref.download,
|
|
50
52
|
openLoading = _ref.openLoading,
|
|
51
|
-
closeLoading = _ref.closeLoading
|
|
53
|
+
closeLoading = _ref.closeLoading,
|
|
54
|
+
saveSignerInfo = _ref.saveSignerInfo;
|
|
52
55
|
console.log('fileItem', file, maxFileSize);
|
|
53
56
|
var fileName = file.fileName,
|
|
54
57
|
fileUrl = file.fileUrl,
|
|
@@ -62,7 +65,10 @@ var FileItem = function FileItem(_ref) {
|
|
|
62
65
|
signGuidFileId = fileConfig.signGuidFileId,
|
|
63
66
|
keyPoint = fileConfig.keyPoint,
|
|
64
67
|
isSmart = fileConfig.isSmart,
|
|
65
|
-
isShareFile = fileConfig.isShareFile
|
|
68
|
+
isShareFile = fileConfig.isShareFile,
|
|
69
|
+
needOtherSign = fileConfig.needOtherSign;
|
|
70
|
+
var signBtnText = needOtherSign ? '联合签署' : '签署文件';
|
|
71
|
+
var reSignBtnText = needOtherSign ? '重新联合签署' : '重新签署';
|
|
66
72
|
var _useState = (0, _react.useState)(false),
|
|
67
73
|
isShowMaterialLib = _useState[0],
|
|
68
74
|
setIsShowMaterialLib = _useState[1];
|
|
@@ -114,6 +120,9 @@ var FileItem = function FileItem(_ref) {
|
|
|
114
120
|
var _useState15 = (0, _react.useState)(),
|
|
115
121
|
sealedFile = _useState15[0],
|
|
116
122
|
setSealedFile = _useState15[1];
|
|
123
|
+
var _useState16 = (0, _react.useState)(false),
|
|
124
|
+
showSignerInfo = _useState16[0],
|
|
125
|
+
setShowSignerInfo = _useState16[1];
|
|
117
126
|
var upload = function upload() {
|
|
118
127
|
if (disabled) return;
|
|
119
128
|
var inputEl = document.createElement('input');
|
|
@@ -310,13 +319,19 @@ var FileItem = function FileItem(_ref) {
|
|
|
310
319
|
setIsShowSealPage(true);
|
|
311
320
|
};
|
|
312
321
|
var signAndSeal = function signAndSeal() {
|
|
313
|
-
|
|
322
|
+
// 如果不能签章就直接签批
|
|
323
|
+
if (!(userInfo.acctType === '20' && signEnable)) {
|
|
324
|
+
sign();
|
|
325
|
+
} else {
|
|
326
|
+
seal();
|
|
327
|
+
}
|
|
314
328
|
};
|
|
315
329
|
|
|
316
330
|
// 获取签pi结果
|
|
317
331
|
var getRes = function getRes(val) {
|
|
318
332
|
console.log('val---', val);
|
|
319
333
|
valChange(val, fileIndex, index, subIndex);
|
|
334
|
+
needOtherSign && setShowSignerInfo(true);
|
|
320
335
|
};
|
|
321
336
|
|
|
322
337
|
// 获取签章结果
|
|
@@ -328,6 +343,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
328
343
|
sign();
|
|
329
344
|
} else {
|
|
330
345
|
valChange(val, fileIndex, index, subIndex);
|
|
346
|
+
needOtherSign && setShowSignerInfo(true);
|
|
331
347
|
}
|
|
332
348
|
};
|
|
333
349
|
var queryFileLibs = function queryFileLibs() {
|
|
@@ -715,16 +731,16 @@ var FileItem = function FileItem(_ref) {
|
|
|
715
731
|
// 有文件且配置了这俩功能且没有禁用操作才展示
|
|
716
732
|
_react["default"].createElement("div", {
|
|
717
733
|
className: "btn"
|
|
718
|
-
}, signatureEnable
|
|
734
|
+
}, signatureEnable || userInfo.acctType === '20' && signEnable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
719
735
|
className: "operation_btn",
|
|
720
736
|
onClick: signAndSeal
|
|
721
|
-
}, isSigned && isSealed ?
|
|
737
|
+
}, isSigned && isSealed ? reSignBtnText : signBtnText), !(userInfo.acctType === '20' && signEnable) && signatureEnable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
722
738
|
className: "operation_btn",
|
|
723
739
|
onClick: sign
|
|
724
|
-
}, isSigned ?
|
|
740
|
+
}, isSigned ? reSignBtnText : signBtnText), !signatureEnable && userInfo.acctType === '20' && signEnable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
725
741
|
className: "operation_btn",
|
|
726
742
|
onClick: seal
|
|
727
|
-
}, isSealed ?
|
|
743
|
+
}, isSealed ? reSignBtnText : signBtnText)) :
|
|
728
744
|
// 展示材料库
|
|
729
745
|
!isShareFile && !isSmart && !disabled && !!materialLib.length && /*#__PURE__*/_react["default"].createElement("div", {
|
|
730
746
|
className: "operation_btn",
|
|
@@ -872,6 +888,15 @@ var FileItem = function FileItem(_ref) {
|
|
|
872
888
|
handleClose: function handleClose() {
|
|
873
889
|
return setCheckPointData(null);
|
|
874
890
|
}
|
|
891
|
+
}), showSignerInfo && /*#__PURE__*/_react["default"].createElement(_signerInfo["default"], {
|
|
892
|
+
signerInfo: signerInfo,
|
|
893
|
+
handleClose: function handleClose() {
|
|
894
|
+
console.log('close');
|
|
895
|
+
setShowSignerInfo(false);
|
|
896
|
+
},
|
|
897
|
+
saveSignerInfo: saveSignerInfo,
|
|
898
|
+
signatureEnable: signatureEnable,
|
|
899
|
+
signEnable: signEnable
|
|
875
900
|
}));
|
|
876
901
|
};
|
|
877
902
|
FileItem.displayName = 'FileItem';
|
|
@@ -23,7 +23,9 @@ function SealPage(props) {
|
|
|
23
23
|
env = props.env,
|
|
24
24
|
isPC = props.isPC,
|
|
25
25
|
accessToken = props.accessToken,
|
|
26
|
-
closeLoading = props.closeLoading
|
|
26
|
+
closeLoading = props.closeLoading,
|
|
27
|
+
_props$showClose = props.showClose,
|
|
28
|
+
showClose = _props$showClose === void 0 ? true : _props$showClose;
|
|
27
29
|
var _useState = (0, _react.useState)(''),
|
|
28
30
|
srcUrl = _useState[0],
|
|
29
31
|
setSrcUrl = _useState[1];
|
|
@@ -220,7 +222,7 @@ function SealPage(props) {
|
|
|
220
222
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
221
223
|
className: "sealPage",
|
|
222
224
|
ref: elementRef
|
|
223
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
225
|
+
}, showClose && /*#__PURE__*/_react["default"].createElement("img", {
|
|
224
226
|
className: "seal_close",
|
|
225
227
|
src: _close["default"],
|
|
226
228
|
alt: "",
|