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
package/dist/index.es.js CHANGED
@@ -9,6 +9,7 @@ export { default as Login } from './es/login/index.js';
9
9
  export { default as Icon } from './es/icon/index.js';
10
10
  export { default as IconOss } from './es/icon/icon-oss.js';
11
11
  export { default as DynamicSetting } from './es/dynamicsetting/dynamicSetting.js';
12
+ export { TemplateDatasetName } from './es/dynamicsetting/useTemplate.js';
12
13
  export { default as AsyncDynamicSetting } from './es/asyncdynamicsetting/asyncDynamicSetting.js';
13
14
  import './es/asyncdynamicsetting/storage/localStorageAdapter.js';
14
15
  import './es/asyncdynamicsetting/storage/indexedDBAdapter.js';
@@ -7,6 +7,12 @@
7
7
  cursor: move;
8
8
  overflow: hidden;
9
9
  height: auto;
10
+ &.zt-sortable-new--active {
11
+ background-color: #fcecc8;
12
+ &:hover {
13
+ background-color: #fcecc8;
14
+ }
15
+ }
10
16
  // border-bottom: 1px solid #f0f0f0;
11
17
  .zt-sortable--item {
12
18
  display: flex;
@@ -75,6 +81,16 @@
75
81
  height: 100%;
76
82
  display: flex;
77
83
  flex-direction: column;
84
+ .search-drawer--template {
85
+ height: 34px;
86
+ display: flex;
87
+ align-items: center;
88
+ gap: 5px;
89
+ > button {
90
+ flex: 1;
91
+ height: 30px;
92
+ }
93
+ }
78
94
  .search-drawer--filter-input {
79
95
  display: flex;
80
96
  align-items: center;
@@ -140,3 +156,25 @@
140
156
  padding: 4px;
141
157
  border-radius: 6px;
142
158
  }
159
+
160
+ // 模板设置样式
161
+ .dynamic-template--list {
162
+ display: flex;
163
+ flex-direction: column;
164
+ .dynamic-template--item {
165
+ display: flex;
166
+ align-items: center;
167
+ margin-top: 6px;
168
+ padding: 4px 8px;
169
+ cursor: pointer;
170
+ &.dynamic-template--item-active {
171
+ background-color: #e6f7ff;
172
+ }
173
+ .dynamic-template--item-title {
174
+ flex: 1;
175
+ }
176
+ }
177
+ }
178
+ .dynamic-template-confirm--item-title {
179
+ font-weight: 400;
180
+ }
@@ -1,6 +1,7 @@
1
1
  .electron-table {
2
- background-color: red;
3
- .ant-table-tbody > tr > td:nth-child(3) {
2
+ // background-color: red;
3
+ .ant-table-tbody > tr > td:nth-child(3),
4
+ .ant-table-tbody > tr > td:nth-child(2) {
4
5
  padding: 0;
5
6
  }
6
7
  .electron-seal-list--wrap {
@@ -84,7 +85,7 @@
84
85
  .electron-seal--any {
85
86
  font-size: 13px;
86
87
  margin-top: 6px;
87
- text-align: left;
88
+ text-align: center;
88
89
  .ant-checkbox-wrapper {
89
90
  font-size: 13px;
90
91
  + .ant-checkbox-wrapper {
@@ -186,10 +187,16 @@
186
187
  }
187
188
  }
188
189
  .qunj-list--contract {
190
+ & > div {
191
+ white-space: nowrap;
192
+ }
189
193
  &.count {
190
194
  width: 130px;
191
195
  }
192
- width: 110px;
196
+ // width: 110px;
197
+ :root[lang="en"] & {
198
+ width: auto;
199
+ }
193
200
  text-align: right;
194
201
  > span {
195
202
  font-size: 14px;
@@ -233,7 +240,7 @@
233
240
  height: 32px;
234
241
  background: rgb(252, 236, 200);
235
242
  border-radius: 4px;
236
- padding: 0px 10px;
243
+ padding: 0px 0px 0px 6px;
237
244
  line-height: 32px;
238
245
  margin-right: 10px;
239
246
  }
@@ -294,11 +301,22 @@
294
301
 
295
302
  .file-operation--wrap {
296
303
  padding: 4px;
304
+ .file-operation--date-container {
305
+ display: flex;
306
+ align-items: center;
307
+ justify-content: space-between;
308
+ }
297
309
  .file-operation--list {
298
310
  font-size: 13px;
299
311
  > button {
300
312
  font-size: 13px;
301
313
  }
314
+ // 20250415修改样式
315
+ > span.electron-file-upload {
316
+ .zt-btn.zt-btn-link {
317
+ font-size: 13px;
318
+ }
319
+ }
302
320
  }
303
321
  .file-operation--title {
304
322
  margin-bottom: 0;
@@ -308,6 +326,16 @@
308
326
  font-size: 13px;
309
327
  }
310
328
  }
329
+ .file-operation--label {
330
+ text-align: left;
331
+ > span {
332
+ border: 1px solid #d9d9d9;
333
+ padding: 0 3px;
334
+ border-radius: 3px;
335
+ color: rgb(238, 63, 63);
336
+ margin-right: 4px;
337
+ }
338
+ }
311
339
  }
312
340
 
313
341
  .contract-comparison--wrap {
@@ -315,6 +343,7 @@
315
343
  align-items: center;
316
344
  justify-content: center;
317
345
  flex-direction: column;
346
+ min-width: 250px;
318
347
  > button {
319
348
  font-size: 13px;
320
349
  }
@@ -325,6 +354,9 @@
325
354
  }
326
355
 
327
356
  .batch-download--container {
357
+ > button {
358
+ margin-right: 10px;
359
+ }
328
360
  > span.electron-file-upload {
329
361
  margin-right: 10px;
330
362
  }
@@ -36,6 +36,7 @@
36
36
  }
37
37
  }
38
38
  /* 基础样式 */
39
+
39
40
  // 表头颜色设置
40
41
  .ant-table-thead > tr > th {
41
42
  background: @title-head-bg;
@@ -341,6 +342,14 @@
341
342
  opacity: 0.8;
342
343
  }
343
344
  }
345
+ // 表格标题栏
346
+ .ztxk-table-title {
347
+ background: @title-head-bg;
348
+ padding: 8px 5px;
349
+ border: 1px solid #f0f0f0;
350
+ border-bottom: none;
351
+ font-weight: 500;
352
+ }
344
353
  }
345
354
 
346
355
  .error-popover {
@@ -415,3 +424,35 @@
415
424
  }
416
425
  }
417
426
  }
427
+
428
+ // 框选合计样式
429
+ .ztxk-table-subtotal--tip {
430
+ position: absolute;
431
+ max-width: calc(200px * var(--zt-scale-factor, 1));
432
+ background-color: #fff;
433
+ border-radius: calc(4px * var(--zt-scale-factor, 1));
434
+ box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014,
435
+ 0 9px 28px 8px #0000000d;
436
+ padding: calc(10px * var(--zt-scale-factor, 1));
437
+ top: -1000px;
438
+ left: -1000px;
439
+ z-index: 5;
440
+ }
441
+
442
+ .ztxk-table--select-none {
443
+ user-select: none;
444
+ * {
445
+ user-select: none;
446
+ }
447
+ td.move-selected {
448
+ user-select: none;
449
+ }
450
+ }
451
+ .ztxk-table {
452
+ .ant-table-tbody {
453
+ td.move-selected {
454
+ border: 1px solid #4285f4 !important;
455
+ border-right: 1px solid #4285f4 !important;
456
+ }
457
+ }
458
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "3.1.7",
3
+ "version": "3.1.9",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
@@ -1,74 +0,0 @@
1
- import { __assign } from '../../_virtual/_tslib.js';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { memo, useRef } from 'react';
4
- import { Switch } from 'antd';
5
- import { preCanDownload, sealFileBatchDownload } from './utils.js';
6
- import { isFlowCompleted } from '../utils.js';
7
- import ButtonCom from '../../button/button.js';
8
-
9
- /**
10
- * 下载电子印章相关逻辑
11
- */
12
- var ElectronSealDownload = function (props) {
13
- var request = props.request, docAttachMap = props.docAttachMap, record = props.record, fileFieldsNameRef = props.fileFieldsNameRef, flowStatus = props.flowStatus, checked = props.checked;
14
- var _a = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, attachId = _a.attachId, attachName = _a.attachName, _isElectronicSeal = _a.isElectronicSeal, _doubleSignedSealInfoDTOList = _a.doubleSignedSealInfoDTOList, _b = _a.fmsIsPushBank, fmsIsPushBank = _b === void 0 ? "fmsIsPushBank" : _b, _c = _a.fmsIsElectronicSeal, fmsIsElectronicSeal = _c === void 0 ? "fmsIsElectronicSeal" : _c;
15
- // 电子签章件key值
16
- var isElectronicSealKey = _isElectronicSeal || "isElectronicSeal";
17
- var doubleSignedSealInfoDTOListKey = _doubleSignedSealInfoDTOList || "doubleSignedSealInfoDTOList";
18
- // 下载电子印章件
19
- var sealNoCompressBatchDownloadRef = useRef(null);
20
- var onDownLoadHand = function () {
21
- var qysAttachVOList = [
22
- {
23
- fileName: record === null || record === void 0 ? void 0 : record[attachName],
24
- attachId: record === null || record === void 0 ? void 0 : record[attachId],
25
- },
26
- ];
27
- var params = {
28
- docAttachMap: docAttachMap,
29
- qysAttachVOList: qysAttachVOList,
30
- };
31
- if (!preCanDownload(sealNoCompressBatchDownloadRef.current, function () {
32
- sealNoCompressBatchDownloadRef.current = null;
33
- })) {
34
- return;
35
- }
36
- sealNoCompressBatchDownloadRef.current = sealFileBatchDownload(request, params, false);
37
- };
38
- // 下载双签件
39
- var sealDoubleElectronicSealDownloadRef = useRef({});
40
- var onDoubleElectronicSealDownLoadHand = function () {
41
- var doubleSignedSealInfoDTOList = record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey];
42
- if (Array.isArray(doubleSignedSealInfoDTOList)) {
43
- doubleSignedSealInfoDTOList.forEach(function (item, index) {
44
- var _a;
45
- var docAttachMap = item.docAttachMap, qysAttachVOList = item.qysAttachVOList;
46
- var params = {
47
- docAttachMap: docAttachMap,
48
- qysAttachVOList: (_a = qysAttachVOList === null || qysAttachVOList === void 0 ? void 0 : qysAttachVOList.map) === null || _a === void 0 ? void 0 : _a.call(qysAttachVOList, function (item) { return (__assign(__assign({}, item), { fileName: item.fileName || item.attachName })); }),
49
- };
50
- if (!preCanDownload(sealDoubleElectronicSealDownloadRef.current[index], function () {
51
- sealDoubleElectronicSealDownloadRef.current[index] = null;
52
- })) {
53
- return;
54
- }
55
- sealDoubleElectronicSealDownloadRef.current[index] =
56
- sealFileBatchDownload(request, params, false);
57
- });
58
- }
59
- };
60
- // 是否显示下载电子印章件
61
- var isElectronicSeal = (record === null || record === void 0 ? void 0 : record[isElectronicSealKey]) + "" === "1";
62
- // 是否显示下载双签件
63
- var isDoubleElectronicSeal = (record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey]) &&
64
- Array.isArray(record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey]) &&
65
- (record === null || record === void 0 ? void 0 : record[doubleSignedSealInfoDTOListKey].length) > 0;
66
- return (jsxs("div", __assign({ style: { display: "flex", flexDirection: "column" } }, { children: [isElectronicSeal && isFlowCompleted(flowStatus) ? (jsx(ButtonCom, __assign({ type: "link", onClick: onDownLoadHand }, { children: "\u4E0B\u8F7D\u7535\u5B50\u7B7E\u7AE0\u4EF6" }))) : null, isDoubleElectronicSeal && isFlowCompleted(flowStatus) ? (jsx(ButtonCom, __assign({ type: "link", onClick: onDoubleElectronicSealDownLoadHand }, { children: (record === null || record === void 0 ? void 0 : record[fmsIsPushBank]) + "" === "1" &&
67
- (record === null || record === void 0 ? void 0 : record[fmsIsElectronicSeal]) + "" === "1"
68
- ? "下载三签件"
69
- : "下载双签件" }))) : null, (isElectronicSeal || isDoubleElectronicSeal) &&
70
- !isFlowCompleted(flowStatus) ? (jsx("div", { children: jsx(Switch, { disabled: true, checked: checked }) })) : null] })));
71
- };
72
- var ElectronSealDownload$1 = memo(ElectronSealDownload);
73
-
74
- export { ElectronSealDownload$1 as default };