ztxkui 3.4.1 → 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.
@@ -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: 'qunjSeal',
292
- dataIndex: 'qunjSeal',
290
+ title: '电子印章',
291
+ key: 'electronicSeal',
292
+ dataIndex: 'electronicSeal',
293
293
  render: function (value, row, index) {
294
294
  var obj = {
295
- 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 })),
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: 'electronicSeal',
305
- dataIndex: 'electronicSeal',
303
+ title: '群杰印章',
304
+ key: 'qunjSeal',
305
+ dataIndex: 'qunjSeal',
306
306
  render: function (value, row, index) {
307
307
  var obj = {
308
- children: (React.createElement(ElectronicSeal, { value: electronicSeal, request: request, flowId: flowId, deptId: deptId, onChange: electronicSealChangeHandle, isEdit: isEdit })),
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, _b;
344
+ var _a;
345
345
  var newRecords = preRecords.slice();
346
346
  // 勾选添加水印的前提 需要勾选加盖电子印章
347
- if (type === 'isWatermark' && !newRecords[index].isElectronicSeal) {
348
- message.info('请先选择是否加盖电子印章!');
349
- return newRecords;
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
- newRecords.splice(index, 1, __assign(__assign({}, newRecords[index]), (_a = { isWatermark: 0 }, _a[type] = 0, _a)));
354
- return newRecords;
355
- }
356
- newRecords.splice(index, 1, __assign(__assign({}, newRecords[index]), (_b = {}, _b[type] = e.target.checked ? 1 : 0, _b)));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",