zmdms-webui 1.9.8 → 1.9.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 (54) hide show
  1. package/dist/es/applayoutheader/tabs/index.js +3 -2
  2. package/dist/es/button/buttonDownload.js +4 -4
  3. package/dist/es/button/buttonExport.js +7 -7
  4. package/dist/es/button/buttonPreview.js +2 -2
  5. package/dist/es/dynamicsetting/dynamicDrawer.js +4 -3
  6. package/dist/es/electronsignatures/dgcomponents/useDg.js +7 -7
  7. package/dist/es/electronsignatures/electroncomponents/electron-seal-batch-download.js +7 -6
  8. package/dist/es/electronsignatures/electroncomponents/useCheckedSealInfoList.js +3 -3
  9. package/dist/es/electronsignatures/electroncomponents/useFetchElectronData.js +3 -3
  10. package/dist/es/electronsignatures/electroncomponents/utils.js +9 -9
  11. package/dist/es/electronsignatures/filecomponents/file-upload.js +8 -7
  12. package/dist/es/electronsignatures/hooks/useParseElectronSetting.js +9 -9
  13. package/dist/es/electronsignatures/hooks/useParseQunjListData.js +4 -4
  14. package/dist/es/electronsignatures/index.js +20 -19
  15. package/dist/es/electronsignatures/qunjcomponents/code-modal.js +5 -5
  16. package/dist/es/electronsignatures/qunjcomponents/useFetchQunjData.js +4 -4
  17. package/dist/es/login/forget-password.js +10 -10
  18. package/dist/es/message/index.d.ts +5 -0
  19. package/dist/es/message/index.js +70 -0
  20. package/dist/es/modal/modal.js +4 -3
  21. package/dist/es/table/components/FilterDropdown.js +3 -2
  22. package/dist/es/table/components/table-header-operation/FillDown.js +3 -2
  23. package/dist/es/table/excel.js +53 -25
  24. package/dist/es/table/interface.d.ts +4 -0
  25. package/dist/es/table/table.js +6 -2
  26. package/dist/es/table/useDynamicListByColumns.js +6 -4
  27. package/dist/es/table/utils.js +5 -5
  28. package/dist/es/uploadlist/hooks.js +10 -10
  29. package/dist/es/uploadlist/uploadList.js +4 -3
  30. package/dist/es/uploadlist/uploadListDetail.js +3 -2
  31. package/dist/es/uploadlist/uploadTable.js +3 -2
  32. package/dist/es/uploadlist/utils.js +2 -2
  33. package/dist/index.build.d.ts +2 -1
  34. package/dist/index.dark.css +1 -1
  35. package/dist/index.default.css +1 -1
  36. package/dist/index.es.js +2 -1
  37. package/package.json +1 -1
  38. package/dist/es/microloading/index.css +0 -1
  39. package/dist/es/modal/index.css +0 -1
  40. package/dist/es/notauthpage/index.css +0 -0
  41. package/dist/es/notroutepage/index.css +0 -0
  42. package/dist/es/pagination/index.css +0 -1
  43. package/dist/es/placeholder/index.css +0 -1
  44. package/dist/es/print/index.css +0 -1
  45. package/dist/es/select/index.css +0 -1
  46. package/dist/es/table/index.css +0 -1
  47. package/dist/es/tabs/index.css +0 -1
  48. package/dist/es/tag/index.css +0 -1
  49. package/dist/es/title/index.css +0 -1
  50. package/dist/es/tree/index.css +0 -1
  51. package/dist/es/treeselect/index.css +0 -1
  52. package/dist/es/uploadlist/index.css +0 -1
  53. package/dist/es/watermark/index.css +0 -1
  54. package/dist/es/zttransfer/index.css +0 -1
@@ -2,8 +2,9 @@ import { __assign } from '../../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useCallback, useMemo } from 'react';
4
4
  import { Link } from 'react-router-dom';
5
+ import myMessage from '../../message/index.js';
5
6
  import MemoTabs from '../../tabs/tabs.js';
6
- import { message, Dropdown } from 'antd';
7
+ import { Dropdown } from 'antd';
7
8
 
8
9
  var TabsCom = function (_a) {
9
10
  var tabs = _a.tabs, activeTab = _a.activeTab, deleteTabHandle = _a.deleteTabHandle, setActiveTab = _a.setActiveTab, deleteTabsHandle = _a.deleteTabsHandle;
@@ -15,7 +16,7 @@ var TabsCom = function (_a) {
15
16
  // 删除页签操作
16
17
  var remove = useCallback(function (key) {
17
18
  if (tabs.length === 1) {
18
- message.warning("最后一页不可关闭!");
19
+ myMessage.warning("最后一页不可关闭!");
19
20
  return;
20
21
  }
21
22
  deleteTabHandle(key);
@@ -5,7 +5,7 @@ import ButtonCom from './button.js';
5
5
  import { downloadFile } from 'zmdms-utils';
6
6
  import '../config/ZtxkContext.js';
7
7
  import useBaseContext from '../config/useBaseContext.js';
8
- import { message } from 'antd';
8
+ import myMessage from '../message/index.js';
9
9
 
10
10
  var ButtonDownload = function (props) {
11
11
  var attachId = props.attachId, attachName = props.attachName, beforeDownloadHandle = props.beforeDownloadHandle, isPublic = props.isPublic, API_BASEURL = props.API_BASEURL, onClick = props.onClick, resetProps = __rest(props, ["attachId", "attachName", "beforeDownloadHandle", "isPublic", "API_BASEURL", "onClick"]);
@@ -28,14 +28,14 @@ var ButtonDownload = function (props) {
28
28
  .text()
29
29
  .then(function (e) {
30
30
  var result = JSON.parse("{");
31
- message.error(result.msg || "下载失败!");
31
+ myMessage.error(result.msg || "下载失败!");
32
32
  })
33
33
  .catch(function (err2) {
34
- message.error("下载失败!");
34
+ myMessage.error("下载失败!");
35
35
  });
36
36
  }
37
37
  catch (err1) {
38
- message.error("下载失败!");
38
+ myMessage.error("下载失败!");
39
39
  }
40
40
  setLoading(false);
41
41
  });
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { useState } from 'react';
4
4
  import ButtonCom from './button.js';
5
5
  import { exportBolb } from 'zmdms-utils';
6
- import { message } from 'antd';
6
+ import myMessage from '../message/index.js';
7
7
 
8
8
  // export function downloadFile(config: AxiosRequestConfig) {
9
9
  // const token = getToken();
@@ -55,14 +55,14 @@ var ButtonExport = function (props) {
55
55
  exportBolb(res, fileName)
56
56
  .then(function (r) {
57
57
  if (r.result) {
58
- message.success(r.msg);
58
+ myMessage.success(r.msg);
59
59
  }
60
60
  onClick && onClick(e, { result: true });
61
61
  })
62
62
  .catch(function (err) {
63
63
  console.log(err);
64
64
  onClick && onClick(e, { result: false });
65
- message.error((err === null || err === void 0 ? void 0 : err.msg) || "导出失败!");
65
+ myMessage.error((err === null || err === void 0 ? void 0 : err.msg) || "导出失败!");
66
66
  });
67
67
  setLoading(false);
68
68
  return [3 /*break*/, 8];
@@ -75,21 +75,21 @@ var ButtonExport = function (props) {
75
75
  .text()
76
76
  .then(function (text) {
77
77
  var json = JSON.parse(text);
78
- message.error((json === null || json === void 0 ? void 0 : json.msg) || "导出失败!");
78
+ myMessage.error((json === null || json === void 0 ? void 0 : json.msg) || "导出失败!");
79
79
  })
80
80
  .catch(function (err) {
81
81
  console.log(err.message);
82
- message.error((err === null || err === void 0 ? void 0 : err.message) || (err === null || err === void 0 ? void 0 : err.msg) || "导出失败!");
82
+ myMessage.error((err === null || err === void 0 ? void 0 : err.message) || (err === null || err === void 0 ? void 0 : err.msg) || "导出失败!");
83
83
  });
84
84
  return [2 /*return*/];
85
85
  }
86
86
  if (typeof err_2 === "string") {
87
- message.error(err_2);
87
+ myMessage.error(err_2);
88
88
  }
89
89
  else {
90
90
  _a = err_2 || {}, errorFields = _a.errorFields, errors = _a.errors, msg = _a.msg;
91
91
  errorMsg = errors || ((_e = (_d = errorFields === null || errorFields === void 0 ? void 0 : errorFields[0]) === null || _d === void 0 ? void 0 : _d.errors) === null || _e === void 0 ? void 0 : _e[0]) || msg;
92
- message.error(errorMsg || "导出失败!");
92
+ myMessage.error(errorMsg || "导出失败!");
93
93
  }
94
94
  return [2 /*return*/, err_2];
95
95
  case 8: return [2 /*return*/];
@@ -6,7 +6,7 @@ import 'react';
6
6
  import '../config/ZtxkContext.js';
7
7
  import useBaseContext from '../config/useBaseContext.js';
8
8
  import { MAX_PREVIEW_SIZE } from '../config/constant.js';
9
- import { message } from 'antd';
9
+ import myMessage from '../message/index.js';
10
10
 
11
11
  var ButtonPreview = function (props) {
12
12
  var attachId = props.attachId, attachName = props.attachName, attachSize = props.attachSize, attachList = props.attachList; props.isPublic; var FILE_BASEURL = props.FILE_BASEURL; props.onClick; var resetProps = __rest(props, ["attachId", "attachName", "attachSize", "attachList", "isPublic", "FILE_BASEURL", "onClick"]);
@@ -15,7 +15,7 @@ var ButtonPreview = function (props) {
15
15
  return __generator(this, function (_a) {
16
16
  if (attachId) {
17
17
  if (attachSize && attachSize > MAX_PREVIEW_SIZE) {
18
- message.info("\u6587\u4EF6\u5927\u4E8E".concat(formatUnit(MAX_PREVIEW_SIZE), ",\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u540E\u67E5\u770B"));
18
+ myMessage.info("\u6587\u4EF6\u5927\u4E8E".concat(formatUnit(MAX_PREVIEW_SIZE), ",\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u540E\u67E5\u770B"));
19
19
  }
20
20
  else {
21
21
  previewFile(attachId, attachName, {
@@ -7,10 +7,11 @@ import Sortable from './sortable.js';
7
7
  import { useDynamic } from './useDynamic.js';
8
8
  import { useDrawer } from './hooks.js';
9
9
  import MoreConfig from './moreConfig.js';
10
+ import myMessage from '../message/index.js';
10
11
  import SettingOutlined from '../node_modules/@ant-design/icons/es/icons/SettingOutlined.js';
11
12
  import { DndProvider } from '../node_modules/react-dnd/dist/core/DndProvider.js';
12
13
  import ButtonCom from '../button/button.js';
13
- import { message, Drawer, Checkbox } from 'antd';
14
+ import { Drawer, Checkbox } from 'antd';
14
15
 
15
16
  // 工具函数,排序分区
16
17
  var sortDynamicListByType = function (list) {
@@ -70,7 +71,7 @@ var DynamicDrawer = function (props, ref) {
70
71
  if ((oldItem === null || oldItem === void 0 ? void 0 : oldItem.dimensionPriority) !== undefined) {
71
72
  if ((dragItem === null || dragItem === void 0 ? void 0 : dragItem.dimensionPriority) === undefined ||
72
73
  (oldItem === null || oldItem === void 0 ? void 0 : oldItem.dimensionPriority) < (dragItem === null || dragItem === void 0 ? void 0 : dragItem.dimensionPriority)) {
73
- message.warning("".concat(dragItem === null || dragItem === void 0 ? void 0 : dragItem.label, "\u4E0D\u80FD\u6392\u5E8F\u5230").concat(oldItem === null || oldItem === void 0 ? void 0 : oldItem.label).concat(isUp ? "前面" : "后面"));
74
+ myMessage.warning("".concat(dragItem === null || dragItem === void 0 ? void 0 : dragItem.label, "\u4E0D\u80FD\u6392\u5E8F\u5230").concat(oldItem === null || oldItem === void 0 ? void 0 : oldItem.label).concat(isUp ? "前面" : "后面"));
74
75
  return false;
75
76
  }
76
77
  }
@@ -148,7 +149,7 @@ var DynamicDrawer = function (props, ref) {
148
149
  break;
149
150
  }
150
151
  if (hasConflict) {
151
- message.warning("所选项存在互斥关系,不能同时勾选!");
152
+ myMessage.warning("所选项存在互斥关系,不能同时勾选!");
152
153
  return; // 拦截本次勾选
153
154
  }
154
155
  // 3. 正常更新
@@ -1,5 +1,5 @@
1
1
  import { useCallback } from 'react';
2
- import { message } from 'antd';
2
+ import myMessage from '../../message/index.js';
3
3
 
4
4
  function useDg(request) {
5
5
  // 开始比对
@@ -9,16 +9,16 @@ function useDg(request) {
9
9
  method: "GET",
10
10
  }).then(function (res) {
11
11
  if (res.status === 200 && res.data.code === 200) {
12
- message.success("操作成功");
12
+ myMessage.success("操作成功");
13
13
  return res;
14
14
  }
15
15
  else {
16
- message.error(res.data.msg || "出错了");
16
+ myMessage.error(res.data.msg || "出错了");
17
17
  return Promise.reject(res.data.msg || "出错了");
18
18
  }
19
19
  }).catch(function (error) {
20
20
  var _a, _b, _c, _d;
21
- 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) || "请求失败!");
21
+ myMessage.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) || "请求失败!");
22
22
  return Promise.reject(((_d = (_c = error === null || error === void 0 ? void 0 : error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.msg) || "请求失败!");
23
23
  });
24
24
  }, [request]);
@@ -35,15 +35,15 @@ function useDg(request) {
35
35
  window.open(res.data.data[0].url);
36
36
  }
37
37
  else {
38
- message.info("文件比对中,请稍后再试!");
38
+ myMessage.info("文件比对中,请稍后再试!");
39
39
  }
40
40
  }
41
41
  else {
42
- message.error(res.data.msg || "出错了");
42
+ myMessage.error(res.data.msg || "出错了");
43
43
  }
44
44
  }).catch(function (error) {
45
45
  var _a, _b;
46
- 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) || "请求失败!");
46
+ myMessage.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) || "请求失败!");
47
47
  });
48
48
  }, [request]);
49
49
  return {
@@ -6,7 +6,8 @@ import { DATA_TYPE_KEY } from '../hooks/useParseRecords.js';
6
6
  import { getToken } from 'zmdms-utils';
7
7
  import { isFlowCompleted } from '../utils.js';
8
8
  import ButtonCom from '../../button/button.js';
9
- import { Dropdown, message } from 'antd';
9
+ import myMessage from '../../message/index.js';
10
+ import { Dropdown } from 'antd';
10
11
 
11
12
  /**
12
13
  * 下载电子印章相关逻辑
@@ -94,7 +95,7 @@ var ElectronSealBatchDownload = function (props) {
94
95
  }
95
96
  }
96
97
  else {
97
- message.info("请选择需要下载的附件!");
98
+ myMessage.info("请选择需要下载的附件!");
98
99
  }
99
100
  };
100
101
  /** 批量下载盖章件 */
@@ -149,7 +150,7 @@ var ElectronSealBatchDownload = function (props) {
149
150
  });
150
151
  var keys = Object.keys(canDownloadFileList_1);
151
152
  if (keys.length === 0) {
152
- message.info("请选择可以下载的盖章件的数据!");
153
+ myMessage.info("请选择可以下载的盖章件的数据!");
153
154
  return;
154
155
  }
155
156
  keys.forEach(function (key) {
@@ -191,7 +192,7 @@ var ElectronSealBatchDownload = function (props) {
191
192
  });
192
193
  }
193
194
  else {
194
- message.info("请选择需要下载的盖章件!");
195
+ myMessage.info("请选择需要下载的盖章件!");
195
196
  }
196
197
  };
197
198
  /** 批量下载双签件 */
@@ -250,7 +251,7 @@ var ElectronSealBatchDownload = function (props) {
250
251
  });
251
252
  var keys = Object.keys(canDownloadFileList_2);
252
253
  if (keys.length === 0) {
253
- message.info("请选择可以下载的双签件的数据!");
254
+ myMessage.info("请选择可以下载的双签件的数据!");
254
255
  return;
255
256
  }
256
257
  keys.forEach(function (key) {
@@ -294,7 +295,7 @@ var ElectronSealBatchDownload = function (props) {
294
295
  });
295
296
  }
296
297
  else {
297
- message.info("请选择需要下载的盖章件!");
298
+ myMessage.info("请选择需要下载的盖章件!");
298
299
  }
299
300
  };
300
301
  // 流程完结才能显示批量导出按钮
@@ -1,5 +1,5 @@
1
1
  import { useMemoizedFn } from 'ahooks';
2
- import { message } from 'antd';
2
+ import myMessage from '../../message/index.js';
3
3
 
4
4
  /**
5
5
  * 验证契约锁是否全部盖章
@@ -24,13 +24,13 @@ function useCheckedSealInfoList(request) {
24
24
  }
25
25
  }
26
26
  else {
27
- message.error(res.data.msg || "校验未盖章电子印章接口调用失败!");
27
+ myMessage.error(res.data.msg || "校验未盖章电子印章接口调用失败!");
28
28
  reject(res.data.msg || "校验未盖章电子印章接口调用失败!");
29
29
  }
30
30
  })
31
31
  .catch(function (error) {
32
32
  var _a, _b, _c, _d;
33
- 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) || "校验未盖章电子印章接口调用失败!");
33
+ myMessage.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) || "校验未盖章电子印章接口调用失败!");
34
34
  reject(((_d = (_c = error === null || error === void 0 ? void 0 : error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.msg) || "校验未盖章电子印章接口调用失败!");
35
35
  });
36
36
  });
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useRef, useState, useCallback, useEffect } from 'react';
2
- import { message } from 'antd';
2
+ import myMessage from '../../message/index.js';
3
3
 
4
4
  /**
5
5
  * 获取电子印章远程数据
@@ -37,12 +37,12 @@ function useFetchElectronData(options) {
37
37
  return ((_c = (_b = (_a = res.data.data) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.sealInfoList) || [];
38
38
  }
39
39
  else {
40
- message.error(res.data.msg || "出错了");
40
+ myMessage.error(res.data.msg || "出错了");
41
41
  return Promise.reject(res);
42
42
  }
43
43
  }).catch(function (error) {
44
44
  var _a, _b;
45
- 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) || "请求失败!");
45
+ myMessage.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) || "请求失败!");
46
46
  return Promise.reject(error);
47
47
  });
48
48
  }, [request]);
@@ -1,7 +1,7 @@
1
1
  import { __assign } from '../../_virtual/_tslib.js';
2
2
  import { MAX_PREVIEW_SIZE } from '../../config/constant.js';
3
3
  import { batchDownloadFiles, downloadFile } from 'zmdms-utils';
4
- import { message } from 'antd';
4
+ import myMessage from '../../message/index.js';
5
5
 
6
6
  function fileBatchDownload(fileList, otherConfig) {
7
7
  var canDownloadFileList = []; // 可以下载的附件列表
@@ -165,7 +165,7 @@ function preCanDownload(donwloadReuslt, callback) {
165
165
  if (otherParams === null || otherParams === void 0 ? void 0 : otherParams.otherList) {
166
166
  // 附件还在下载中
167
167
  if (otherParams.otherList.find(function (i) { return i === "pending"; })) {
168
- message.info("\u4E0A\u6B21\u6587\u4EF6\u4E0B\u8F7D\u8FD8\u672A\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u4E0B\u8F7D!");
168
+ myMessage.info("\u4E0A\u6B21\u6587\u4EF6\u4E0B\u8F7D\u8FD8\u672A\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u4E0B\u8F7D!");
169
169
  return false;
170
170
  }
171
171
  // 上次附件下载失败了 成功了 都需要重置状态
@@ -177,7 +177,7 @@ function preCanDownload(donwloadReuslt, callback) {
177
177
  else {
178
178
  // 附件还在下载中
179
179
  if ((otherParams === null || otherParams === void 0 ? void 0 : otherParams.status) === "pending") {
180
- message.info("\u4E0A\u6B21\u6587\u4EF6\u4E0B\u8F7D\u8FD8\u672A\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u4E0B\u8F7D!");
180
+ myMessage.info("\u4E0A\u6B21\u6587\u4EF6\u4E0B\u8F7D\u8FD8\u672A\u5B8C\u6210\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u4E0B\u8F7D!");
181
181
  return false;
182
182
  }
183
183
  // 上次附件下载失败了 成功了 都需要重置状态
@@ -195,12 +195,12 @@ function nextDownload(donwloadReuslt, callback) {
195
195
  var noCanDownloadFileList = donwloadReuslt.noCanDownloadFileList, canDownloadFileList = donwloadReuslt.canDownloadFileList;
196
196
  if (Array.isArray(noCanDownloadFileList) &&
197
197
  noCanDownloadFileList.length > 0) {
198
- message.info("\u4EE5\u4E0B\u6587\u4EF6\u672A\u6388\u6743\u4E0B\u8F7D\uFF1A\n ".concat(noCanDownloadFileList
198
+ myMessage.info("\u4EE5\u4E0B\u6587\u4EF6\u672A\u6388\u6743\u4E0B\u8F7D\uFF1A\n ".concat(noCanDownloadFileList
199
199
  .map(function (item) { return item.fileName; })
200
200
  .join("\n"), "!"));
201
201
  }
202
202
  if (Array.isArray(canDownloadFileList) && canDownloadFileList.length === 0) {
203
- message.info("请选择有权限下载的附件!");
203
+ myMessage.info("请选择有权限下载的附件!");
204
204
  callback && callback();
205
205
  }
206
206
  }
@@ -219,7 +219,7 @@ function sealDownloadFileCallBack(request, params, otherOption) {
219
219
  var _a, _b, _c;
220
220
  if (!((_a = res.headers) === null || _a === void 0 ? void 0 : _a["content-disposition"])) {
221
221
  callbackError && callbackError();
222
- message.warning("没有可下载的内容");
222
+ myMessage.warning("没有可下载的内容");
223
223
  return;
224
224
  }
225
225
  var fileName = res.headers["content-disposition"].split(";");
@@ -230,7 +230,7 @@ function sealDownloadFileCallBack(request, params, otherOption) {
230
230
  });
231
231
  if (blob.size < 1) {
232
232
  callbackError && callbackError();
233
- message.warning("下载失败,下载的内容为空!");
233
+ myMessage.warning("下载失败,下载的内容为空!");
234
234
  return;
235
235
  }
236
236
  var aLink = document.createElement("a");
@@ -253,11 +253,11 @@ function sealDownloadFileCallBack(request, params, otherOption) {
253
253
  obj = JSON.parse(file_1.result);
254
254
  }
255
255
  catch (err) { }
256
- message.warning((obj === null || obj === void 0 ? void 0 : obj.msg) || "没有可下载的内容");
256
+ myMessage.warning((obj === null || obj === void 0 ? void 0 : obj.msg) || "没有可下载的内容");
257
257
  };
258
258
  }
259
259
  catch (err) {
260
- message.warning("下载出错");
260
+ myMessage.warning("下载出错");
261
261
  }
262
262
  callbackError && callbackError();
263
263
  });
@@ -1,12 +1,13 @@
1
1
  import { __assign } from '../../_virtual/_tslib.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { memo, useState, useCallback, useMemo } from 'react';
4
- import { message, Upload } from 'antd';
4
+ import { Upload } from 'antd';
5
5
  import '../../config/ZtxkContext.js';
6
6
  import useBaseContext from '../../config/useBaseContext.js';
7
7
  import { useLatest } from 'ahooks';
8
8
  import { getToken } from 'zmdms-utils';
9
9
  import { formatUnit, getFileExtension } from '../utils.js';
10
+ import myMessage from '../../message/index.js';
10
11
  import ButtonCom from '../../button/button.js';
11
12
 
12
13
  var FileUpload = function (props) {
@@ -35,7 +36,7 @@ var FileUpload = function (props) {
35
36
  setLoading(false);
36
37
  }
37
38
  if (file.status === "error") {
38
- message.info("\u8BE5 ".concat(file.name, " \u9644\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20!"));
39
+ myMessage.info("\u8BE5 ".concat(file.name, " \u9644\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20!"));
39
40
  }
40
41
  onFileChange && onFileChange(info);
41
42
  }, [onFileChange]);
@@ -91,12 +92,12 @@ function useBeforeUpload(props) {
91
92
  }
92
93
  if (disAllowDuplicateFile &&
93
94
  ((_b = (_a = fileListRef.current) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, function (item) { return item.name === fileName || item.attachName === fileName; }))) {
94
- message.warning("不能上传同名附件!");
95
+ myMessage.warning("不能上传同名附件!");
95
96
  return Upload.LIST_IGNORE;
96
97
  }
97
98
  // 文件大小
98
99
  if (fileSize === 0) {
99
- message.warning("不能上传空文件!");
100
+ myMessage.warning("不能上传空文件!");
100
101
  return Upload.LIST_IGNORE;
101
102
  }
102
103
  // 获取支持的附件类型
@@ -104,16 +105,16 @@ function useBeforeUpload(props) {
104
105
  ACCEPT = ACCEPT.map(function (a) { return a.toLowerCase(); });
105
106
  // 默认支持任何格式的文件,但是不支持exe
106
107
  if (ACCEPT.length > 0 && !ACCEPT.includes(fileExtension)) {
107
- message.warning("\u4E0D\u652F\u6301 ".concat(fileExtension, " \u6587\u4EF6\u683C\u5F0F"));
108
+ myMessage.warning("\u4E0D\u652F\u6301 ".concat(fileExtension, " \u6587\u4EF6\u683C\u5F0F"));
108
109
  return Upload.LIST_IGNORE;
109
110
  }
110
111
  if (ACCEPT.length === 0 && NO_ACCEPT.includes(fileExtension)) {
111
- message.warning("\u4E0D\u652F\u6301 ".concat(fileExtension, " \u6587\u4EF6\u683C\u5F0F"));
112
+ myMessage.warning("\u4E0D\u652F\u6301 ".concat(fileExtension, " \u6587\u4EF6\u683C\u5F0F"));
112
113
  return Upload.LIST_IGNORE;
113
114
  }
114
115
  // 文件大小限制
115
116
  if (maxSize && fileSize > maxSize) {
116
- message.warning("\u6587\u4EF6\u8D85\u51FA ".concat(maxSizeStr, "\uFF01"));
117
+ myMessage.warning("\u6587\u4EF6\u8D85\u51FA ".concat(maxSizeStr, "\uFF01"));
117
118
  return Upload.LIST_IGNORE;
118
119
  }
119
120
  return Promise.resolve(file);
@@ -3,7 +3,7 @@ import { useState, useMemo, useEffect } from 'react';
3
3
  import { unstable_batchedUpdates } from 'react-dom';
4
4
  import { useMemoizedFn } from 'ahooks';
5
5
  import { isFlowCompleted } from '../utils.js';
6
- import { message } from 'antd';
6
+ import myMessage from '../../message/index.js';
7
7
 
8
8
  /**
9
9
  * 电子印章设置相关操作
@@ -54,7 +54,7 @@ function useParseElectronSetting(options) {
54
54
  if (!Array.isArray(electronicSealIdList) ||
55
55
  (electronicSealIdList === null || electronicSealIdList === void 0 ? void 0 : electronicSealIdList.length) <= 0) {
56
56
  console.log("没有选择电子印章!");
57
- message.error("没有选择需要盖章的电子印章!");
57
+ myMessage.error("没有选择需要盖章的电子印章!");
58
58
  return;
59
59
  }
60
60
  // 找到需要盖章的附件
@@ -66,7 +66,7 @@ function useParseElectronSetting(options) {
66
66
  return;
67
67
  }
68
68
  if (!record.attachId && !isError) {
69
- message.error("\u7B2C".concat(index + 1, "\u884C\u9644\u4EF6\u6CA1\u6709\u9644\u4EF6id\uFF0C\u65E0\u6CD5\u76D6\u7AE0\uFF01"));
69
+ myMessage.error("\u7B2C".concat(index + 1, "\u884C\u9644\u4EF6\u6CA1\u6709\u9644\u4EF6id\uFF0C\u65E0\u6CD5\u76D6\u7AE0\uFF01"));
70
70
  isError = true;
71
71
  }
72
72
  else {
@@ -177,7 +177,7 @@ function useParseElectronSetting(options) {
177
177
  }
178
178
  }
179
179
  else {
180
- message.error(res.data.msg || "出错了");
180
+ myMessage.error(res.data.msg || "出错了");
181
181
  }
182
182
  });
183
183
  })
@@ -186,13 +186,13 @@ function useParseElectronSetting(options) {
186
186
  setLoading === null || setLoading === void 0 ? void 0 : setLoading({
187
187
  spinning: false,
188
188
  });
189
- 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) || "请求失败!");
189
+ myMessage.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) || "请求失败!");
190
190
  });
191
191
  });
192
192
  // 预览盖章签署效果
193
193
  var viewSignPage = useMemoizedFn(function () {
194
194
  if (!currentContractId) {
195
- message.error("缺少合同id,可能的原因:暂未指定签署位置,请重新指定!");
195
+ myMessage.error("缺少合同id,可能的原因:暂未指定签署位置,请重新指定!");
196
196
  return;
197
197
  }
198
198
  request({
@@ -212,12 +212,12 @@ function useParseElectronSetting(options) {
212
212
  window.open(res.data.data.viewUrl);
213
213
  }
214
214
  else {
215
- message.error(res.data.msg || "出错了");
215
+ myMessage.error(res.data.msg || "出错了");
216
216
  }
217
217
  })
218
218
  .catch(function (error) {
219
219
  var _a, _b;
220
- 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) || "请求失败!");
220
+ myMessage.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) || "请求失败!");
221
221
  });
222
222
  });
223
223
  // 查询未确认盖章位置的印章信息列表
@@ -247,7 +247,7 @@ function useParseElectronSetting(options) {
247
247
  })
248
248
  .catch(function (error) {
249
249
  var _a, _b;
250
- 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) || "请求失败!");
250
+ myMessage.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) || "请求失败!");
251
251
  return Promise.resolve(false);
252
252
  });
253
253
  });
@@ -2,7 +2,7 @@ import { __assign } from '../../_virtual/_tslib.js';
2
2
  import { useMemo, useState, useEffect } from 'react';
3
3
  import { useMemoizedFn, usePrevious } from 'ahooks';
4
4
  import { FLOW_IDS } from '../utils.js';
5
- import { message } from 'antd';
5
+ import myMessage from '../../message/index.js';
6
6
 
7
7
  function useParseQunjListData(options) {
8
8
  var isUnControlled = options.isUnControlled, onValueChange = options.onValueChange, dataType = options.dataType, qunjSeal = options.qunjSeal, flowId = options.flowId, _a = options.contractNumFlowIds, contractNumFlowIds = _a === void 0 ? FLOW_IDS : _a, _b = options.isDefaultQunj, isDefaultQunj = _b === void 0 ? true : _b, qunjAddress = options.qunjAddress, isSingleQj = options.isSingleQj;
@@ -160,19 +160,19 @@ function countIsValidate(qunjSeal, isAlert) {
160
160
  });
161
161
  if (totalSealNum > contractNum * 4) {
162
162
  if (isAlert) {
163
- message.error("您的用印次数远超超过合理次数范围,请修改。");
163
+ myMessage.error("您的用印次数远超超过合理次数范围,请修改。");
164
164
  }
165
165
  return false;
166
166
  }
167
167
  if (totalSealNum > contractNum * 3) {
168
168
  if (isAlert) {
169
- message.error("您的用印次数超过合理次数范围,请慎重确认!");
169
+ myMessage.error("您的用印次数超过合理次数范围,请慎重确认!");
170
170
  }
171
171
  return true;
172
172
  }
173
173
  if (totalSealNum > contractNum * 2) {
174
174
  if (isAlert) {
175
- message.error("您的用印次数已超过2倍合同数量,请确认用印数量是否正确。");
175
+ myMessage.error("您的用印次数已超过2倍合同数量,请确认用印数量是否正确。");
176
176
  }
177
177
  return true;
178
178
  }