zy-react-library 1.0.127 → 1.0.128

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.
@@ -79,6 +79,7 @@ export const UPLOAD_FILE_TYPE_ENUM = {
79
79
  147: 147, // hidden_qualified_listInspection_signature - 隐患清单排查签字
80
80
  148: 148, // special_qualification - 专项资质
81
81
  149: 149, // safety_qualification - 安全资质
82
+ 150: 150, // promise_bookmark_photo - 安全承诺签字
82
83
  };
83
84
 
84
85
  /**
@@ -159,4 +160,5 @@ export const UPLOAD_FILE_PATH_ENUM = {
159
160
  147: "hidden_qualified_listInspection_signature",
160
161
  148: "special_qualification",
161
162
  149: "safety_qualification",
163
+ 150: "promise_bookmark_photo",
162
164
  };
@@ -7,15 +7,14 @@ import { uniqBy } from "lodash-es";
7
7
  export default function useIsExistenceDuplicateSelection() {
8
8
  const isExistenceDuplicateSelection = (options) => {
9
9
  const { data, key, message = "存在重复项,请勿重复选择" } = options;
10
- return new Promise((resolve, reject) => {
10
+ return new Promise((resolve) => {
11
11
  if (uniqBy(data, key).length !== data.length) {
12
12
  antdMessage.error(message);
13
- reject(new Error(message));
14
13
  }
15
14
  else {
16
15
  resolve();
17
16
  }
18
17
  });
19
- }
18
+ };
20
19
  return { isExistenceDuplicateSelection };
21
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.127",
4
+ "version": "1.0.128",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",