ztxkui 3.4.2 → 3.4.3

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.
@@ -50,7 +50,7 @@ var FLOW_IDS = [
50
50
  * 实现受控,接收一个附件列表
51
51
  */
52
52
  var Sinatures = function (_a) {
53
- var needQj = _a.needQj, needDg = _a.needDg, needQys = _a.needQys, isUpload = _a.isUpload, fileList = _a.fileList, qunjSeal = _a.qunjSeal, qunjSealChange = _a.qunjSealChange, electronicSeal = _a.electronicSealIdList, electronicSealChange = _a.electronicSealChange, handleRef = _a.handleRef, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, systemCode = _a.systemCode, token = _a.token, openCustomerModalHandle = _a.openCustomerModalHandle, request = _a.request, flowId = _a.flowId, deptId = _a.deptId, canEdit = _a.canEdit, flowStatus = _a.flowStatus, caseId = _a.caseId, contract_id = _a.contractId, docAttachMap = _a.docAttachMap, checkAttachIdList = _a.checkAttachIdList, // 已盖章附件id
53
+ var needQj = _a.needQj, needDg = _a.needDg, needQys = _a.needQys, isUpload = _a.isUpload, fileList = _a.fileList, qunjSeal = _a.qunjSeal, qunjSealChange = _a.qunjSealChange, electronicSeal = _a.electronicSealIdList, electronicSealChange = _a.electronicSealChange, onSigValuesChange = _a.onSigValuesChange, handleRef = _a.handleRef, ZT_API_BASEURL = _a.ZT_API_BASEURL, ZT_FILE_BASEURL = _a.ZT_FILE_BASEURL, systemCode = _a.systemCode, token = _a.token, openCustomerModalHandle = _a.openCustomerModalHandle, request = _a.request, flowId = _a.flowId, deptId = _a.deptId, canEdit = _a.canEdit, flowStatus = _a.flowStatus, caseId = _a.caseId, contract_id = _a.contractId, docAttachMap = _a.docAttachMap, checkAttachIdList = _a.checkAttachIdList, // 已盖章附件id
54
54
  documentIdList = _a.documentIdList;
55
55
  var authToken = token || '';
56
56
  // 是否可编辑 1可编辑 0不可编辑
@@ -333,6 +333,14 @@ var Sinatures = function (_a) {
333
333
  }
334
334
  // 上传组件的数据
335
335
  var _l = useState(), originFileList = _l[0], setOriginFileList = _l[1];
336
+ /** 签章组件onChange事件 */
337
+ var sigValuesChange = function (type, value) {
338
+ var _a, _b;
339
+ var info = (_b = (_a = handleRef === null || handleRef === void 0 ? void 0 : handleRef.current) === null || _a === void 0 ? void 0 : _a.getData) === null || _b === void 0 ? void 0 : _b.call(_a);
340
+ Reflect.deleteProperty(info, type);
341
+ info[type] = value;
342
+ return info;
343
+ };
336
344
  // 是否存入样板 添加水印 电子印章发生改变触发事件
337
345
  function onCheckboxChangeHandle(e, type, index) {
338
346
  if (type === 'isElectronicSeal') {
@@ -358,6 +366,8 @@ var Sinatures = function (_a) {
358
366
  // return newRecords;
359
367
  // }
360
368
  newRecords.splice(index, 1, __assign(__assign({}, newRecords[index]), (_a = {}, _a[type] = e.target.checked ? 1 : 0, _a)));
369
+ onSigValuesChange &&
370
+ onSigValuesChange(sigValuesChange('fileList', newRecords));
361
371
  return newRecords;
362
372
  });
363
373
  }
@@ -393,11 +403,14 @@ var Sinatures = function (_a) {
393
403
  function qunjSealChangeHandle(value) {
394
404
  qunjSealChange && qunjSealChange(value);
395
405
  setQunjSeal(value);
406
+ onSigValuesChange && onSigValuesChange(sigValuesChange('qunjSeal', value));
396
407
  }
397
408
  /** 电子印章修改 */
398
409
  function electronicSealChangeHandle(value) {
399
410
  electronicSealChange && electronicSealChange(value);
400
411
  setElectronicSeal(value);
412
+ onSigValuesChange &&
413
+ onSigValuesChange(sigValuesChange('electronicSealIdList', value));
401
414
  }
402
415
  /**
403
416
  * 暴露方法给外部调用
@@ -77,4 +77,6 @@ export interface IProps {
77
77
  documentIdList: string[];
78
78
  /** 流程状态 */
79
79
  flowStatus: number;
80
+ /** 签章组件onChange事件 */
81
+ onSigValuesChange?: any;
80
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",