ztxkui 3.3.19 → 3.4.2
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.
|
@@ -80,7 +80,7 @@ var UploadTable = function (_a) {
|
|
|
80
80
|
? __spreadArray(__spreadArray(__spreadArray(__spreadArray([], startColumns), [
|
|
81
81
|
{
|
|
82
82
|
title: '文件名称',
|
|
83
|
-
width:
|
|
83
|
+
width: 160,
|
|
84
84
|
fixed: 'left',
|
|
85
85
|
dataIndex: 'fileName',
|
|
86
86
|
key: 'fileName',
|
|
@@ -109,12 +109,12 @@ var UploadTable = function (_a) {
|
|
|
109
109
|
]), otherColumns), [
|
|
110
110
|
{
|
|
111
111
|
title: '上传进度',
|
|
112
|
-
width:
|
|
112
|
+
width: 140,
|
|
113
113
|
render: function (text, record, index) {
|
|
114
114
|
// uploading done error removed
|
|
115
115
|
var status = record.status === 'error' ? 'exception' : undefined;
|
|
116
116
|
if (record.status === 'error') {
|
|
117
|
-
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } }, "\
|
|
117
|
+
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } }, "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u91CD\u65B0\u4E0A\u4F20"));
|
|
118
118
|
}
|
|
119
119
|
return React.createElement(Progress, { percent: record === null || record === void 0 ? void 0 : record.percent, status: status });
|
|
120
120
|
},
|
|
@@ -33,14 +33,14 @@ var SealCheckbox = function (_a) {
|
|
|
33
33
|
var onNumberChange = function (count) {
|
|
34
34
|
var _a, _b;
|
|
35
35
|
var contractNum = (_b = (_a = handleRef === null || handleRef === void 0 ? void 0 : handleRef.current) === null || _a === void 0 ? void 0 : _a.getData().qunjSeal) === null || _b === void 0 ? void 0 : _b.contranctNum;
|
|
36
|
-
if (!contractNum && showContranctNum) {
|
|
37
|
-
message.info('请输入合同份数!');
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
36
|
var num = count;
|
|
41
37
|
if (count < 0) {
|
|
42
38
|
num = 0;
|
|
43
39
|
}
|
|
40
|
+
if (!contractNum && showContranctNum) {
|
|
41
|
+
message.info('请输入合同份数!');
|
|
42
|
+
num = null;
|
|
43
|
+
}
|
|
44
44
|
if (typeof num !== 'number') {
|
|
45
45
|
Reflect.deleteProperty(value, 'sealCount');
|
|
46
46
|
}
|
|
@@ -287,12 +287,12 @@ var Sinatures = function (_a) {
|
|
|
287
287
|
},
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
|
-
title: '
|
|
291
|
-
key: '
|
|
292
|
-
dataIndex: '
|
|
290
|
+
title: '电子印章',
|
|
291
|
+
key: 'electronicSeal',
|
|
292
|
+
dataIndex: 'electronicSeal',
|
|
293
293
|
render: function (value, row, index) {
|
|
294
294
|
var obj = {
|
|
295
|
-
children: (React.createElement(
|
|
295
|
+
children: (React.createElement(ElectronicSeal, { value: electronicSeal, request: request, flowId: flowId, deptId: deptId, onChange: electronicSealChangeHandle, isEdit: isEdit })),
|
|
296
296
|
props: {},
|
|
297
297
|
};
|
|
298
298
|
obj.props['rowSpan'] = index === 0 ? records.length : 0;
|
|
@@ -300,12 +300,12 @@ var Sinatures = function (_a) {
|
|
|
300
300
|
},
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
title: '
|
|
304
|
-
key: '
|
|
305
|
-
dataIndex: '
|
|
303
|
+
title: '群杰印章',
|
|
304
|
+
key: 'qunjSeal',
|
|
305
|
+
dataIndex: 'qunjSeal',
|
|
306
306
|
render: function (value, row, index) {
|
|
307
307
|
var obj = {
|
|
308
|
-
children: (React.createElement(
|
|
308
|
+
children: (React.createElement(QunjSeal, { value: qunjSeal, onChange: qunjSealChangeHandle, request: request, flowId: flowId, caseId: caseId, ZT_API_BASEURL: ZT_API_BASEURL, isEdit: isEdit, handleRef: handleRef, isOnlyQunj: isOnlyQunj, showContranctNum: showContranctNum })),
|
|
309
309
|
props: {},
|
|
310
310
|
};
|
|
311
311
|
obj.props['rowSpan'] = index === 0 ? records.length : 0;
|
|
@@ -341,19 +341,23 @@ var Sinatures = function (_a) {
|
|
|
341
341
|
setCheckSealVisible(e.target.checked ? true : hasElecSeal.length > 1 ? true : false);
|
|
342
342
|
}
|
|
343
343
|
setRecords(function (preRecords) {
|
|
344
|
-
var _a
|
|
344
|
+
var _a;
|
|
345
345
|
var newRecords = preRecords.slice();
|
|
346
346
|
// 勾选添加水印的前提 需要勾选加盖电子印章
|
|
347
|
-
if (type === 'isWatermark' && !newRecords[index].isElectronicSeal) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}
|
|
347
|
+
// if (type === 'isWatermark' && !newRecords[index].isElectronicSeal) {
|
|
348
|
+
// message.info('请先选择是否加盖电子印章!');
|
|
349
|
+
// return newRecords;
|
|
350
|
+
// }
|
|
351
351
|
// 取消勾选电子印章时 不可添加水印
|
|
352
|
-
if (type === 'isElectronicSeal' && !e.target.checked) {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
352
|
+
// if (type === 'isElectronicSeal' && !e.target.checked) {
|
|
353
|
+
// newRecords.splice(index, 1, {
|
|
354
|
+
// ...newRecords[index],
|
|
355
|
+
// isWatermark: 0,
|
|
356
|
+
// [type]: 0,
|
|
357
|
+
// });
|
|
358
|
+
// return newRecords;
|
|
359
|
+
// }
|
|
360
|
+
newRecords.splice(index, 1, __assign(__assign({}, newRecords[index]), (_a = {}, _a[type] = e.target.checked ? 1 : 0, _a)));
|
|
357
361
|
return newRecords;
|
|
358
362
|
});
|
|
359
363
|
}
|