ls-pro-common 3.1.37 → 3.1.38

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.
@@ -1,3 +1,4 @@
1
+ export declare const setPageSize: (params?: Record<string, any>) => void;
1
2
  /**
2
3
  * @param params 请求参数
3
4
  * @name 获取主数据货主数据,调用接口/lesoon-mdm-center-api/bmOwner/page
@@ -152,6 +153,11 @@ export declare const getSeason: (params?: any) => Promise<any>;
152
153
  * @returns
153
154
  */
154
155
  export declare const getCategory: (params?: any) => Promise<any>;
156
+ /**
157
+ * @param params 查询参数
158
+ * @name 供应商,调用接口/lesoon-mdm-center-api/bmSupplier/page
159
+ * @returns
160
+ */
155
161
  export declare const getSupplier: (params?: any) => Promise<any>;
156
162
  declare const mdmMap: {
157
163
  owner: (params?: any) => Promise<any>;
@@ -2,12 +2,12 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { httpBatchGet } from '.';
4
4
  import { getCache, setCache } from '../utils';
5
- function setPageSize() {
5
+ export var setPageSize = function setPageSize() {
6
6
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  if (params && params.pageSize === undefined) {
8
8
  params.pageSize = 50000;
9
9
  }
10
- }
10
+ };
11
11
  function httpGetWithCache(_x, _x2) {
12
12
  return _httpGetWithCache.apply(this, arguments);
13
13
  }
@@ -335,6 +335,11 @@ export var getCategory = function getCategory() {
335
335
  var url = '/lesoon-mdm-center-api/bmCategory/page';
336
336
  return httpGetWithCache('category', url, params);
337
337
  };
338
+ /**
339
+ * @param params 查询参数
340
+ * @name 供应商,调用接口/lesoon-mdm-center-api/bmSupplier/page
341
+ * @returns
342
+ */
338
343
  export var getSupplier = function getSupplier() {
339
344
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
340
345
  setPageSize(params);
@@ -1,3 +1,4 @@
1
+ export declare const setPageSize: (params?: Record<string, any>) => void;
1
2
  /**
2
3
  * @param params 请求参数
3
4
  * @name 获取主数据货主数据,调用接口/lesoon-mdm-center-api/bmOwner/page
@@ -152,6 +153,11 @@ export declare const getSeason: (params?: any) => Promise<any>;
152
153
  * @returns
153
154
  */
154
155
  export declare const getCategory: (params?: any) => Promise<any>;
156
+ /**
157
+ * @param params 查询参数
158
+ * @name 供应商,调用接口/lesoon-mdm-center-api/bmSupplier/page
159
+ * @returns
160
+ */
155
161
  export declare const getSupplier: (params?: any) => Promise<any>;
156
162
  declare const mdmMap: {
157
163
  owner: (params?: any) => Promise<any>;
@@ -2,12 +2,12 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { httpBatchGet } from '.';
4
4
  import { getCache, setCache } from '../utils';
5
- function setPageSize() {
5
+ export var setPageSize = function setPageSize() {
6
6
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  if (params && params.pageSize === undefined) {
8
8
  params.pageSize = 50000;
9
9
  }
10
- }
10
+ };
11
11
  function httpGetWithCache(_x, _x2) {
12
12
  return _httpGetWithCache.apply(this, arguments);
13
13
  }
@@ -335,6 +335,11 @@ export var getCategory = function getCategory() {
335
335
  var url = '/lesoon-mdm-center-api/bmCategory/page';
336
336
  return httpGetWithCache('category', url, params);
337
337
  };
338
+ /**
339
+ * @param params 查询参数
340
+ * @name 供应商,调用接口/lesoon-mdm-center-api/bmSupplier/page
341
+ * @returns
342
+ */
338
343
  export var getSupplier = function getSupplier() {
339
344
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
340
345
  setPageSize(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "3.1.37",
3
+ "version": "3.1.38",
4
4
  "description": "ls-pro-common",
5
5
  "license": "MIT",
6
6
  "sideEffects": [