ztxkui 4.0.2 → 4.0.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.
@@ -272,11 +272,13 @@ var DetailTable = function (_a) {
272
272
  var list = selectRows.current;
273
273
  if (Array.isArray(list) && list.length > 0) {
274
274
  var qysAttachVOList = list.map(function (item) {
275
- var _a, _b;
276
- return ({
277
- fileName: ((_b = (_a = item === null || item === void 0 ? void 0 : item.fileName) === null || _a === void 0 ? void 0 : _a.split('.')) === null || _b === void 0 ? void 0 : _b[0]) + ".zip",
275
+ var _a;
276
+ var arr = ((_a = item === null || item === void 0 ? void 0 : item.fileName) === null || _a === void 0 ? void 0 : _a.split('.')) || [];
277
+ arr.splice(arr.length - 1, 1, 'pdf');
278
+ return {
279
+ fileName: arr.join('.'),
278
280
  attachId: item.attachId,
279
- });
281
+ };
280
282
  });
281
283
  var params = {
282
284
  docAttachMap: docAttachMap,
@@ -465,6 +465,7 @@ var Sinatures = function (_a) {
465
465
  })
466
466
  .catch(function (error) {
467
467
  var _a, _b;
468
+ resolve(false);
468
469
  message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
469
470
  });
470
471
  });
@@ -861,6 +862,9 @@ var Sinatures = function (_a) {
861
862
  function qunjSealChangeHandle(value) {
862
863
  var contractNum = value === null || value === void 0 ? void 0 : value.contranctNum;
863
864
  var totalSealNum = sumBy(value === null || value === void 0 ? void 0 : value.details, 'sealCount');
865
+ qunjSealChange && qunjSealChange(value);
866
+ setQunjSeal(value);
867
+ onSigValuesChange && onSigValuesChange(sigValuesChange('qunjSeal', value));
864
868
  if (typeof contractNum === 'number' && showContranctNum) {
865
869
  if (totalSealNum > contractNum * 4) {
866
870
  setIsTotalSealNumTooMore(true);
@@ -879,9 +883,6 @@ var Sinatures = function (_a) {
879
883
  return;
880
884
  }
881
885
  }
882
- qunjSealChange && qunjSealChange(value);
883
- setQunjSeal(value);
884
- onSigValuesChange && onSigValuesChange(sigValuesChange('qunjSeal', value));
885
886
  }
886
887
  /** 电子印章修改 */
887
888
  function electronicSealChangeHandle(value) {
@@ -1002,13 +1003,6 @@ var Sinatures = function (_a) {
1002
1003
  message.warning('请勾选加盖电子印章所需要的印章列表!');
1003
1004
  return [2 /*return*/, false];
1004
1005
  }
1005
- if (!(needQys &&
1006
- isEdit &&
1007
- hasElectronicSeal &&
1008
- (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) > 0)) return [3 /*break*/, 2];
1009
- return [4 /*yield*/, getNoSealInfoList()];
1010
- case 1: return [2 /*return*/, _b.sent()];
1011
- case 2:
1012
1006
  // 超过4倍禁止提交审批
1013
1007
  if (isEdit && needQj && isTotalSealNumTooMore && showContranctNum) {
1014
1008
  message.warning('您的用印次数远超超过合理次数范围,请修改。');
@@ -1041,7 +1035,13 @@ var Sinatures = function (_a) {
1041
1035
  return [2 /*return*/, false];
1042
1036
  }
1043
1037
  }
1044
- return [2 /*return*/, true];
1038
+ if (!(needQys &&
1039
+ isEdit &&
1040
+ hasElectronicSeal &&
1041
+ (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) > 0)) return [3 /*break*/, 2];
1042
+ return [4 /*yield*/, getNoSealInfoList()];
1043
+ case 1: return [2 /*return*/, _b.sent()];
1044
+ case 2: return [2 /*return*/, true];
1045
1045
  }
1046
1046
  });
1047
1047
  }); },
@@ -1074,7 +1074,7 @@ var Sinatures = function (_a) {
1074
1074
  checkSealFn('needReSeal');
1075
1075
  } }, needReSealList.length > 0 ? '指定签署位置' : '确定')) },
1076
1076
  React.createElement(Checkbox.Group, { defaultValue: unSealList.map(function (item) { return item.sealId; }), value: needReSealList, onChange: needReSealChange, className: "flex-checkbox-group" }, unSealList.map(function (item) {
1077
- return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId }, item.sealName));
1077
+ return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId, style: { width: '100%', margin: '0 8px' } }, item.sealName));
1078
1078
  })))));
1079
1079
  };
1080
1080
  export default Sinatures;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",