zmdms-webui 3.1.7 → 3.1.9

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.
Files changed (71) hide show
  1. package/dist/es/applayoutsider/menu/MainMenu.js +1 -1
  2. package/dist/es/applayoutsider/menu/SubMenu.js +8 -1
  3. package/dist/es/canvastable/canvasTable.js +1 -0
  4. package/dist/es/config/MyStorage.js +11 -5
  5. package/dist/es/config/ZtxkContext.d.ts +10 -0
  6. package/dist/es/config/ZtxkContext.js +2 -0
  7. package/dist/es/config/index.js +1 -0
  8. package/dist/es/config/utils.js +58 -1
  9. package/dist/es/dynamicsetting/dynamicDrawer.js +61 -19
  10. package/dist/es/dynamicsetting/dynamicSetting.js +4 -4
  11. package/dist/es/dynamicsetting/hooks.js +4 -4
  12. package/dist/es/dynamicsetting/index.css +1 -1
  13. package/dist/es/dynamicsetting/index.js +1 -0
  14. package/dist/es/dynamicsetting/interface.d.ts +5 -0
  15. package/dist/es/dynamicsetting/useDynamic.js +5 -1
  16. package/dist/es/dynamicsetting/useSearch.js +26 -6
  17. package/dist/es/dynamicsetting/useTemplate.d.ts +4 -0
  18. package/dist/es/dynamicsetting/useTemplate.js +428 -0
  19. package/dist/es/electronsignatures/content.js +974 -0
  20. package/dist/es/electronsignatures/dgcomponents/contract-comparison.js +2 -2
  21. package/dist/es/electronsignatures/dgcomponents/file-comparison-btn.js +136 -0
  22. package/dist/es/electronsignatures/dgcomponents/new-contract-comparison.js +54 -0
  23. package/dist/es/electronsignatures/dgcomponents/useContractColumns.js +110 -39
  24. package/dist/es/electronsignatures/electron-signatures-fragment.js +11 -3
  25. package/dist/es/electronsignatures/electroncomponents/electron-seal-batch-download.js +179 -67
  26. package/dist/es/electronsignatures/electroncomponents/electron-seal-detail.js +5 -5
  27. package/dist/es/electronsignatures/electroncomponents/electron-seal-item-detail.js +15 -0
  28. package/dist/es/electronsignatures/electroncomponents/electron-seal-item.js +9 -6
  29. package/dist/es/electronsignatures/electroncomponents/useElectronColumns.js +330 -154
  30. package/dist/es/electronsignatures/electroncomponents/useFetchElectronData.js +58 -9
  31. package/dist/es/electronsignatures/electroncomponents/utils.js +119 -28
  32. package/dist/es/electronsignatures/filecomponents/file-operation.js +6 -4
  33. package/dist/es/electronsignatures/filecomponents/new-file-operation.js +56 -0
  34. package/dist/es/electronsignatures/filecomponents/useFileColumns.js +179 -102
  35. package/dist/es/electronsignatures/hooks/useGetQjVerifyCode.js +134 -0
  36. package/dist/es/electronsignatures/hooks/useMergeRecords.js +4 -3
  37. package/dist/es/electronsignatures/hooks/useParseElectronSetting.js +5 -3
  38. package/dist/es/electronsignatures/hooks/useParseIsNeedElectronData.js +21 -2
  39. package/dist/es/electronsignatures/hooks/useParseQunjSingleData.js +6 -1
  40. package/dist/es/electronsignatures/hooks/useParseRecords.js +41 -34
  41. package/dist/es/electronsignatures/index.css +1 -1
  42. package/dist/es/electronsignatures/index.js +18 -833
  43. package/dist/es/electronsignatures/interface.d.ts +129 -5
  44. package/dist/es/electronsignatures/interface.js +9 -4
  45. package/dist/es/electronsignatures/qunjcomponents/qunj-check.js +2 -2
  46. package/dist/es/electronsignatures/qunjcomponents/qunj-detail.js +135 -14
  47. package/dist/es/electronsignatures/qunjcomponents/qunj-list.js +33 -13
  48. package/dist/es/electronsignatures/qunjcomponents/useFetchQunjData.js +8 -3
  49. package/dist/es/electronsignatures/qunjcomponents/useQunjColumns.js +202 -202
  50. package/dist/es/electronsignatures/translatecomponents/TranslateButton.js +27 -0
  51. package/dist/es/electronsignatures/translatecomponents/useTranslateCom.js +35 -0
  52. package/dist/es/form/common-search-list.js +28 -9
  53. package/dist/es/form/form.js +13 -11
  54. package/dist/es/form/useCommonSearch.js +3 -4
  55. package/dist/es/table/components/EnhanceBodyBasicCell.js +9 -0
  56. package/dist/es/table/components/useDragRef.js +6 -0
  57. package/dist/es/table/constant.js +4 -1
  58. package/dist/es/table/hooks/useCtrl.js +44 -0
  59. package/dist/es/table/hooks/useSelectSubtotal.js +376 -0
  60. package/dist/es/table/index.css +1 -1
  61. package/dist/es/table/interface.d.ts +6 -0
  62. package/dist/es/table/table.js +15 -3
  63. package/dist/index.build.d.ts +1 -0
  64. package/dist/index.dark.css +1 -1
  65. package/dist/index.default.css +1 -1
  66. package/dist/index.es.js +1 -0
  67. package/dist/less/components/DynamicSetting/style/index.less +38 -0
  68. package/dist/less/components/ElectronSignatures/style/index.less +37 -5
  69. package/dist/less/components/Table/style/index.less +41 -0
  70. package/package.json +1 -1
  71. package/dist/es/electronsignatures/electroncomponents/electron-seal-download.js +0 -74
@@ -7,23 +7,38 @@ import { getToken } from 'zmdms-utils';
7
7
  import { isFlowCompleted } from '../utils.js';
8
8
  import ButtonCom from '../../button/button.js';
9
9
  import myMessage from '../../message/index.js';
10
- import { Dropdown } from 'antd';
10
+ import { Dropdown, Menu, Tooltip } from 'antd';
11
+ import QuestionCircleOutlined from '../../node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js';
11
12
 
12
13
  /**
13
14
  * 下载电子印章相关逻辑
14
15
  */
15
16
  var ElectronSealBatchDownload = function (props) {
16
- var request = props.request, apiBaseUrl = props.apiBaseUrl, selectRows = props.selectRows, allData = props.allData, isShowDownloadBatchBtn = props.isShowDownloadBatchBtn, isShowElectronBatchBtn = props.isShowElectronBatchBtn, isShowDoubleSignedBatchBtn = props.isShowDoubleSignedBatchBtn, batchDownloadZipName = props.batchDownloadZipName, children = props.children, firstDataType = props.firstDataType;
17
+ var request = props.request, apiBaseUrl = props.apiBaseUrl, selectRows = props.selectRows, allData = props.allData, isShowDownloadBatchBtn = props.isShowDownloadBatchBtn, isShowElectronBatchBtn = props.isShowElectronBatchBtn, isShowDoubleSignedBatchBtn = props.isShowDoubleSignedBatchBtn, batchDownloadZipName = props.batchDownloadZipName, children = props.children, firstDataType = props.firstDataType, organizationId = props.organizationId, isEdit = props.isEdit, isNeedQys = props.isNeedQys, records = props.records, setRecords = props.setRecords, isShowBatchUseElectronicSealBtn = props.isShowBatchUseElectronicSealBtn, isShowBatchUseOpeningContractSealBtn = props.isShowBatchUseOpeningContractSealBtn, isShowOpeningContractSealNotRelyQys = props.isShowOpeningContractSealNotRelyQys;
17
18
  /**
18
19
  * @author 陈亚雄
19
20
  * @description 批量下载
20
21
  */
21
22
  var batchDownloadRef = useRef(null);
22
23
  var noCompressBatchDownloadRef = useRef(null);
23
- var onAllDownloadHandle = function (isCompress) {
24
- if (isCompress === void 0) { isCompress = true; }
24
+ var onAllDownloadHandle = function (options) {
25
+ var _a = options.isCompress, isCompress = _a === void 0 ? true : _a, _b = options.isWater, isWater = _b === void 0 ? false : _b;
25
26
  var selectFiles = selectRows.current;
26
27
  var authToken = getToken() || "";
28
+ if (isCompress) {
29
+ if (!preCanDownload(batchDownloadRef.current, function () {
30
+ batchDownloadRef.current = null;
31
+ })) {
32
+ return;
33
+ }
34
+ }
35
+ else {
36
+ if (!preCanDownload(noCompressBatchDownloadRef.current, function () {
37
+ noCompressBatchDownloadRef.current = null;
38
+ })) {
39
+ return;
40
+ }
41
+ }
27
42
  if (Array.isArray(selectFiles) && selectFiles.length > 0) {
28
43
  var list_1 = [];
29
44
  try {
@@ -46,7 +61,7 @@ var ElectronSealBatchDownload = function (props) {
46
61
  list_1.push({
47
62
  fileName: checkedRecord[attachName],
48
63
  fileId: checkedRecord[attachId],
49
- isWatermark: false,
64
+ isWatermark: isWater,
50
65
  });
51
66
  }
52
67
  });
@@ -56,7 +71,7 @@ var ElectronSealBatchDownload = function (props) {
56
71
  list_1 = selectFiles.map(function (item) { return ({
57
72
  fileName: item.attachName,
58
73
  fileId: item.attachId,
59
- isWatermark: false,
74
+ isWatermark: isWater,
60
75
  }); });
61
76
  }
62
77
  if (isCompress) {
@@ -101,8 +116,8 @@ var ElectronSealBatchDownload = function (props) {
101
116
  /** 批量下载盖章件 */
102
117
  var sealBatchDownloadRef = useRef(null);
103
118
  var sealNoCompressBatchDownloadRef = useRef(null);
104
- var batchDownload = function (isCompress) {
105
- if (isCompress === void 0) { isCompress = true; }
119
+ var batchDownload = function (options) {
120
+ var _a = options || {}, _b = _a.isCompress, isCompress = _b === void 0 ? true : _b, _c = _a.isWater, isWater = _c === void 0 ? false : _c;
106
121
  var list = selectRows.current;
107
122
  // 计算能下载盖章件的数据
108
123
  if (Array.isArray(list) && list.length > 0) {
@@ -139,11 +154,16 @@ var ElectronSealBatchDownload = function (props) {
139
154
  attachId: item === null || item === void 0 ? void 0 : item[attachId],
140
155
  }); });
141
156
  if (qysAttachVOList.length !== 0) {
157
+ var data = {
158
+ docAttachMap: currentDocAttachMap,
159
+ qysAttachVOList: qysAttachVOList,
160
+ };
161
+ if (isWater) {
162
+ data["watermarkOrganizationType"] = "12";
163
+ data["watermarkOrganizationId"] = organizationId;
164
+ }
142
165
  canDownloadFileList_1[key] = {
143
- params: {
144
- docAttachMap: currentDocAttachMap,
145
- qysAttachVOList: qysAttachVOList,
146
- },
166
+ params: data,
147
167
  };
148
168
  }
149
169
  }
@@ -170,7 +190,10 @@ var ElectronSealBatchDownload = function (props) {
170
190
  })) {
171
191
  return;
172
192
  }
173
- sealBatchDownloadRef.current[key] = sealFileBatchDownload(request, params);
193
+ sealBatchDownloadRef.current[key] = sealFileBatchDownload(request, params, {
194
+ isCompress: isCompress,
195
+ isWater: isWater,
196
+ });
174
197
  }
175
198
  else {
176
199
  // 根据相关信息生成下载的链接
@@ -187,7 +210,10 @@ var ElectronSealBatchDownload = function (props) {
187
210
  return;
188
211
  }
189
212
  sealNoCompressBatchDownloadRef.current[key] =
190
- sealFileBatchDownload(request, params, false);
213
+ sealFileBatchDownload(request, params, {
214
+ isCompress: isCompress,
215
+ isWater: isWater,
216
+ });
191
217
  }
192
218
  });
193
219
  }
@@ -198,8 +224,8 @@ var ElectronSealBatchDownload = function (props) {
198
224
  /** 批量下载双签件 */
199
225
  var sealDoubleBatchDownloadRef = useRef(null);
200
226
  var sealDoubleNoCompressBatchDownloadRef = useRef(null);
201
- var batchDoubleDownload = function (isCompress) {
202
- if (isCompress === void 0) { isCompress = true; }
227
+ var batchDoubleDownload = function (options) {
228
+ var _a = options.isCompress, isCompress = _a === void 0 ? true : _a, _b = options.isWater, isWater = _b === void 0 ? false : _b;
203
229
  var list = selectRows.current;
204
230
  // 计算能下载盖章件的数据
205
231
  if (Array.isArray(list) && list.length > 0) {
@@ -272,7 +298,10 @@ var ElectronSealBatchDownload = function (props) {
272
298
  return;
273
299
  }
274
300
  sealDoubleBatchDownloadRef.current[key] =
275
- sealFileBatchDownload(request, params);
301
+ sealFileBatchDownload(request, params, {
302
+ isCompress: isCompress,
303
+ isWater: isWater,
304
+ });
276
305
  }
277
306
  else {
278
307
  // 根据相关信息生成下载的链接
@@ -290,7 +319,10 @@ var ElectronSealBatchDownload = function (props) {
290
319
  return;
291
320
  }
292
321
  sealDoubleNoCompressBatchDownloadRef.current[key] =
293
- sealFileBatchDownload(request, params, false);
322
+ sealFileBatchDownload(request, params, {
323
+ isCompress: isCompress,
324
+ isWater: isWater,
325
+ });
294
326
  }
295
327
  });
296
328
  }
@@ -307,64 +339,144 @@ var ElectronSealBatchDownload = function (props) {
307
339
  }
308
340
  return false;
309
341
  };
310
- return (jsxs("div", __assign({ className: "batch-download--container", style: { marginBottom: 10 } }, { children: [children, isShowDownloadBatchBtn ? (jsx(Dropdown, __assign({ menu: {
311
- items: [
312
- {
313
- label: "压缩",
314
- key: "compress",
315
- },
316
- {
317
- label: "不压缩",
318
- key: "no-compress",
319
- },
320
- ],
321
- onClick: function (e) {
342
+ // 批量盖电子印章
343
+ var onBatchUseQys = function () {
344
+ if (!selectRows.current || selectRows.current.length === 0) {
345
+ myMessage.info("请选择需要盖电子印章的文件");
346
+ return;
347
+ }
348
+ if (records) {
349
+ var newRecords_1 = [];
350
+ records.forEach(function (record, index) {
351
+ // 当前record 是否存在选中项中
352
+ var isCheck = selectRows.current.some(function (item) { return item.attachId === record.attachId; });
353
+ if (!isCheck) {
354
+ newRecords_1.push(record);
355
+ return;
356
+ }
357
+ var currentData = allData[firstDataType];
358
+ var fileFieldsNameRef = currentData === null || currentData === void 0 ? void 0 : currentData.fileFieldsNameRef;
359
+ var _a = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, _b = _a.fmsIsElectronicSeal, fmsIsElectronicSealKey = _b === void 0 ? "fmsIsElectronicSeal" : _b, _c = _a.openingContractSeal, openingContractSealKey = _c === void 0 ? "openingContractSeal" : _c;
360
+ var newRecord = Object.assign({}, record);
361
+ // 如果当前选项勾中了盖户用电子章那也不处理
362
+ if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord[openingContractSealKey]) + "" === "1") {
363
+ newRecords_1.push(newRecord);
364
+ return;
365
+ }
366
+ // 勾选盖电子印章逻辑
367
+ newRecord.isElectronicSeal = 1;
368
+ // 勾选加盖产融章逻辑
369
+ var isShowFms = (newRecord === null || newRecord === void 0 ? void 0 : newRecord.showFmsIsElectronicSeal) &&
370
+ (newRecord === null || newRecord === void 0 ? void 0 : newRecord[fmsIsElectronicSealKey]) != null &&
371
+ (newRecord === null || newRecord === void 0 ? void 0 : newRecord.attachType) === "001" &&
372
+ (newRecord === null || newRecord === void 0 ? void 0 : newRecord.isElectronicSeal);
373
+ if (isShowFms) {
374
+ // 这里的逻辑是 如果勾选了我们自己的电子印章 那么默认选中加盖产融章
375
+ var defaultValue = newRecord.defaultFmsIsElectronicSeal + "" === "1" ||
376
+ newRecord.defaultFmsIsElectronicSeal + "" === "0"
377
+ ? newRecord.defaultFmsIsElectronicSeal
378
+ : 1;
379
+ newRecord[fmsIsElectronicSealKey] = defaultValue;
380
+ }
381
+ // 勾选盖户用电子章逻辑
382
+ newRecord[openingContractSealKey] = 0;
383
+ newRecords_1.push(newRecord);
384
+ });
385
+ setRecords(newRecords_1);
386
+ }
387
+ };
388
+ // 是否显示户用合同章复选框
389
+ var isShowOpeningContractSeal = records === null || records === void 0 ? void 0 : records.find(function (record) { return (record === null || record === void 0 ? void 0 : record.showOpeningContractSeal) + "" === "1"; });
390
+ // 批量盖户用电子章
391
+ var onBatchUseContractSeal = function () {
392
+ if (!selectRows.current || selectRows.current.length === 0) {
393
+ myMessage.info("请选择需要盖电子印章的文件");
394
+ return;
395
+ }
396
+ if (records) {
397
+ var newRecords_2 = [];
398
+ records.forEach(function (record, index) {
399
+ // 当前record 是否存在选中项中
400
+ var isCheck = selectRows.current.some(function (item) { return item.attachId === record.attachId; });
401
+ if (!isCheck) {
402
+ newRecords_2.push(record);
403
+ return;
404
+ }
405
+ var newRecord = Object.assign({}, record);
406
+ // 如果当前选项勾中了盖电子印章那也不处理
407
+ if (newRecord.isElectronicSeal + "" === "1" &&
408
+ !isShowOpeningContractSealNotRelyQys) {
409
+ newRecords_2.push(newRecord);
410
+ return;
411
+ }
412
+ // 勾选加盖产融章逻辑
413
+ var currentData = allData[firstDataType];
414
+ var fileFieldsNameRef = currentData === null || currentData === void 0 ? void 0 : currentData.fileFieldsNameRef;
415
+ var _a = ((fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}).openingContractSeal, openingContractSealKey = _a === void 0 ? "openingContractSeal" : _a;
416
+ // 勾选盖户用电子章逻辑
417
+ if (newRecord === null || newRecord === void 0 ? void 0 : newRecord.showOpeningContractSeal) {
418
+ newRecord[openingContractSealKey] = 1;
419
+ }
420
+ newRecords_2.push(newRecord);
421
+ });
422
+ setRecords(newRecords_2);
423
+ }
424
+ };
425
+ return (jsxs("div", __assign({ className: "batch-download--container", style: { marginBottom: 10 } }, { children: [children, isShowDownloadBatchBtn ? (jsx(Dropdown, __assign({ overlay: function () { return (jsxs(Menu, __assign({ onClick: function (e) {
322
426
  if (e.key === "compress") {
323
- onAllDownloadHandle();
427
+ onAllDownloadHandle({ isCompress: true, isWater: false });
428
+ return;
429
+ }
430
+ if (e.key === "no-compress") {
431
+ onAllDownloadHandle({ isCompress: false, isWater: false });
432
+ return;
433
+ }
434
+ if (e.key === "water--compress") {
435
+ onAllDownloadHandle({ isCompress: true, isWater: true });
436
+ return;
324
437
  }
325
- else {
326
- onAllDownloadHandle(false);
438
+ if (e.key === "water--no-compress") {
439
+ onAllDownloadHandle({ isCompress: false, isWater: true });
440
+ return;
327
441
  }
328
- },
329
- }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ type: "primary", style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u539F\u4EF6" })) }))) : null, isShowElectronBatchBtn && isShowDownloadBtn() ? (jsx(Dropdown, __assign({ menu: {
330
- items: [
331
- {
332
- label: "压缩",
333
- key: "compress",
334
- },
335
- {
336
- label: "不压缩",
337
- key: "no-compress",
338
- },
339
- ],
340
- onClick: function (e) {
442
+ } }, { children: [jsx(Menu.Item, { children: "\u6253\u5305\u4E0B\u8F7D" }, "compress"), jsx(Menu.Item, { children: "\u9010\u4E2A\u4E0B\u8F7D" }, "no-compress"), jsx(Menu.Item, { children: "\u6C34\u5370\u7248-\u6253\u5305\u4E0B\u8F7D" }, "water--compress"), jsx(Menu.Item, { children: "\u6C34\u5370\u7248-\u9010\u4E2A\u4E0B\u8F7D" }, "water--no-compress")] }))); }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u539F\u4EF6" })) }))) : null, isShowElectronBatchBtn && isShowDownloadBtn() ? (jsx(Dropdown, __assign({ overlay: function () { return (jsxs(Menu, __assign({ onClick: function (e) {
341
443
  if (e.key === "compress") {
342
- batchDownload();
444
+ batchDownload({ isCompress: true, isWater: false });
445
+ return;
343
446
  }
344
- else {
345
- batchDownload(false);
447
+ if (e.key === "no-compress") {
448
+ batchDownload({ isCompress: false, isWater: false });
449
+ return;
346
450
  }
347
- },
348
- }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ type: "primary", style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u7535\u5B50\u7B7E\u7AE0\u4EF6" })) }))) : null, isShowDoubleSignedBatchBtn && isShowDownloadBtn() ? (jsx(Dropdown, __assign({ menu: {
349
- items: [
350
- {
351
- label: "压缩",
352
- key: "compress",
353
- },
354
- {
355
- label: "不压缩",
356
- key: "no-compress",
357
- },
358
- ],
359
- onClick: function (e) {
451
+ if (e.key === "water--compress") {
452
+ batchDownload({ isCompress: true, isWater: true });
453
+ return;
454
+ }
455
+ if (e.key === "water--no-compress") {
456
+ batchDownload({ isCompress: false, isWater: true });
457
+ return;
458
+ }
459
+ } }, { children: [jsx(Menu.Item, { children: "\u6253\u5305\u4E0B\u8F7D" }, "compress"), jsx(Menu.Item, { children: "\u9010\u4E2A\u4E0B\u8F7D" }, "no-compress")] }))); }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u76D6\u7AE0\u4EF6" })) }))) : null, isShowDoubleSignedBatchBtn && isShowDownloadBtn() ? (jsx(Dropdown, __assign({ overlay: function () { return (jsxs(Menu, __assign({ onClick: function (e) {
360
460
  if (e.key === "compress") {
361
- batchDoubleDownload();
461
+ batchDoubleDownload({ isCompress: true, isWater: false });
462
+ return;
463
+ }
464
+ if (e.key === "no-compress") {
465
+ batchDoubleDownload({ isCompress: false, isWater: false });
466
+ return;
467
+ }
468
+ if (e.key === "water--compress") {
469
+ batchDoubleDownload({ isCompress: true, isWater: true });
470
+ return;
362
471
  }
363
- else {
364
- batchDoubleDownload(false);
472
+ if (e.key === "water--no-compress") {
473
+ batchDoubleDownload({ isCompress: false, isWater: true });
474
+ return;
365
475
  }
366
- },
367
- }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ type: "primary", style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u53CC\u7B7E\u4EF6" })) }))) : null] })));
476
+ } }, { children: [jsx(Menu.Item, { children: "\u6253\u5305\u4E0B\u8F7D" }, "compress"), jsx(Menu.Item, { children: "\u9010\u4E2A\u4E0B\u8F7D" }, "no-compress")] }))); }, placement: "bottomLeft" }, { children: jsx(ButtonCom, __assign({ style: { marginRight: "10px" } }, { children: "\u6279\u91CF\u4E0B\u8F7D\u53CC\u7B7E\u4EF6" })) }))) : null, isEdit && isNeedQys && isShowBatchUseElectronicSealBtn ? (jsxs(ButtonCom, __assign({ type: "primary", onClick: onBatchUseQys }, { children: ["\u6279\u91CF\u4F7F\u7528\u7535\u5B50\u5370\u7AE0", jsx(Tooltip, __assign({ placement: "bottomLeft", title: "\u5DF2\u7ECF\u52FE\u9009\u4E86\u6237\u7528\u7535\u5B50\u7AE0\u7684\u4E0D\u4F1A\u5904\u7406\uFF01" }, { children: jsx(QuestionCircleOutlined, {}) }))] }))) : null, isEdit &&
477
+ isShowBatchUseOpeningContractSealBtn &&
478
+ (isShowOpeningContractSealNotRelyQys || isNeedQys) &&
479
+ !!isShowOpeningContractSeal ? (jsxs(ButtonCom, __assign({ type: "primary", onClick: onBatchUseContractSeal }, { children: ["\u6279\u91CF\u76D6\u5149\u76C8\u7535\u5B50\u7AE0", jsx(Tooltip, __assign({ placement: "bottomLeft", title: "\u5DF2\u7ECF\u52FE\u9009\u4E86\u7535\u5B50\u5370\u7AE0\u7684\u4E0D\u4F1A\u5904\u7406\uFF01" }, { children: jsx(QuestionCircleOutlined, {}) }))] }))) : null] })));
368
480
  };
369
481
  var ElectronSealBatchDownload$1 = memo(ElectronSealBatchDownload);
370
482
 
@@ -4,11 +4,11 @@ import { memo } from 'react';
4
4
 
5
5
  var NoUseElectronSeal = function () {
6
6
  return (jsx("div", __assign({ style: {
7
- height: '100%',
8
- display: 'flex',
9
- alignItems: 'center',
10
- justifyContent: 'center',
11
- } }, { children: "\u672C\u6B21\u6D41\u7A0B\u65E0\u7535\u5B50\u5370\u7AE0" })));
7
+ height: "100%",
8
+ display: "flex",
9
+ alignItems: "center",
10
+ justifyContent: "center",
11
+ } }, { children: "\u672C\u6B21\u6D41\u7A0B\u672A\u4F7F\u7528\u7535\u5B50\u5370\u7AE0" })));
12
12
  };
13
13
  /**
14
14
  * 电子签章选择列表
@@ -0,0 +1,15 @@
1
+ import { __assign } from '../../_virtual/_tslib.js';
2
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
+ import { memo } from 'react';
4
+ import { Switch, Checkbox } from 'antd';
5
+
6
+ /**
7
+ * 是否盖电子印章相关逻辑
8
+ */
9
+ var ElectronSealItem = function (props) {
10
+ var isShowFms = props.isShowFms, fmsIsElectronicSeal = props.fmsIsElectronicSeal, fmsIsElectronicSealLabel = props.fmsIsElectronicSealLabel, isShowBank = props.isShowBank, fmsIsPushBank = props.fmsIsPushBank, fmsIsElectronicSealPushLabel = props.fmsIsElectronicSealPushLabel, isShowOpeningContractSeal = props.isShowOpeningContractSeal, openingContractSeal = props.openingContractSeal, openingContractSealLabel = props.openingContractSealLabel, isElectronicSeal = props.isElectronicSeal;
11
+ return (jsxs(Fragment, { children: [jsx("div", { children: jsx(Switch, { disabled: true, checked: !!isElectronicSeal }) }), jsxs("div", __assign({ className: "electron-seal--any" }, { children: [jsx("div", { children: isShowFms || fmsIsElectronicSeal ? (jsx(Checkbox, __assign({ disabled: true, checked: !!fmsIsElectronicSeal }, { children: fmsIsElectronicSealLabel }))) : null }), jsx("div", { children: isShowBank || fmsIsPushBank ? (jsx(Checkbox, __assign({ disabled: true, checked: !!fmsIsPushBank }, { children: fmsIsElectronicSealPushLabel }))) : null }), jsx("div", { children: isShowOpeningContractSeal || openingContractSeal ? (jsx(Checkbox, __assign({ disabled: true, checked: !!openingContractSeal }, { children: openingContractSealLabel }))) : null })] }))] }));
12
+ };
13
+ var ElectronSealItemDetail = memo(ElectronSealItem);
14
+
15
+ export { ElectronSealItemDetail as default };
@@ -7,14 +7,17 @@ import { Switch, Checkbox } from 'antd';
7
7
  * 是否盖电子印章相关逻辑
8
8
  */
9
9
  var ElectronSealItem = function (props) {
10
- var fmsIsElectronicSeal = props.fmsIsElectronicSeal, fmsIsElectronicSealLabel = props.fmsIsElectronicSealLabel, fmsIsPushBank = props.fmsIsPushBank, fmsIsElectronicSealPushLabel = props.fmsIsElectronicSealPushLabel, onFmsIsElectronicSealChange = props.onFmsIsElectronicSealChange, isShowFms = props.isShowFms, isShowBank = props.isShowBank, resetProps = __rest(props, ["fmsIsElectronicSeal", "fmsIsElectronicSealLabel", "fmsIsPushBank", "fmsIsElectronicSealPushLabel", "onFmsIsElectronicSealChange", "isShowFms", "isShowBank"]);
11
- return (jsxs(Fragment, { children: [jsx(Switch, __assign({}, resetProps)), isShowFms ? (jsxs("div", __assign({ className: "electron-seal--any" }, { children: [jsx(Checkbox, __assign({ checked: fmsIsElectronicSeal, disabled: resetProps.disabled, onChange: function (e) {
10
+ var needQys = props.needQys, fmsIsElectronicSeal = props.fmsIsElectronicSeal, fmsIsElectronicSealLabel = props.fmsIsElectronicSealLabel, fmsIsPushBank = props.fmsIsPushBank, fmsIsElectronicSealPushLabel = props.fmsIsElectronicSealPushLabel, onFmsIsElectronicSealChange = props.onFmsIsElectronicSealChange, isShowFms = props.isShowFms, isShowBank = props.isShowBank, isShowOpeningContractSeal = props.isShowOpeningContractSeal, openingContractSeal = props.openingContractSeal, openingContractSealLabel = props.openingContractSealLabel, resetProps = __rest(props, ["needQys", "fmsIsElectronicSeal", "fmsIsElectronicSealLabel", "fmsIsPushBank", "fmsIsElectronicSealPushLabel", "onFmsIsElectronicSealChange", "isShowFms", "isShowBank", "isShowOpeningContractSeal", "openingContractSeal", "openingContractSealLabel"]);
11
+ return (jsxs(Fragment, { children: [needQys && jsx(Switch, __assign({}, resetProps)), jsxs("div", __assign({ className: "electron-seal--any" }, { children: [isShowFms ? (jsx(Checkbox, __assign({ checked: fmsIsElectronicSeal, disabled: resetProps.disabled, onChange: function (e) {
12
12
  onFmsIsElectronicSealChange &&
13
- onFmsIsElectronicSealChange(e.target.checked, 'fmsElectron');
14
- } }, { children: fmsIsElectronicSealLabel })), isShowBank ? (jsx(Checkbox, __assign({ checked: fmsIsPushBank, disabled: resetProps.disabled, onChange: function (e) {
13
+ onFmsIsElectronicSealChange(e.target.checked, "fmsElectron");
14
+ } }, { children: fmsIsElectronicSealLabel }))) : null, isShowBank ? (jsx(Checkbox, __assign({ checked: fmsIsPushBank, disabled: resetProps.disabled, onChange: function (e) {
15
15
  onFmsIsElectronicSealChange &&
16
- onFmsIsElectronicSealChange(e.target.checked, 'fmsPush');
17
- } }, { children: fmsIsElectronicSealPushLabel }))) : null] }))) : null] }));
16
+ onFmsIsElectronicSealChange(e.target.checked, "fmsPush");
17
+ } }, { children: fmsIsElectronicSealPushLabel }))) : null, isShowOpeningContractSeal ? (jsx(Checkbox, __assign({ checked: openingContractSeal, disabled: resetProps.disabled, onChange: function (e) {
18
+ onFmsIsElectronicSealChange &&
19
+ onFmsIsElectronicSealChange(e.target.checked, "openingContractSeal");
20
+ } }, { children: openingContractSealLabel }))) : null] }))] }));
18
21
  };
19
22
  var ElectronSealItem$1 = memo(ElectronSealItem);
20
23