ls-pro-common 3.1.36 → 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.
@@ -167,12 +167,13 @@ var AreaPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
167
167
  className: "ls-area-cascaded-box"
168
168
  }, title, /*#__PURE__*/React.createElement("div", {
169
169
  className: "ls-area-cascaded-body"
170
- }, showData.map(function (item) {
170
+ }, showData.map(function (item, index) {
171
171
  return /*#__PURE__*/React.createElement("div", {
172
172
  className: "ls-area-cascaded-span ".concat(actualData.find(function (o) {
173
173
  return o === item.value;
174
174
  }) ? ' ls-area-selected' : ''),
175
175
  title: item.label,
176
+ key: item.value + index,
176
177
  onClick: function onClick(e) {
177
178
  var _areaRef$current;
178
179
  switch ((item === null || item === void 0 ? void 0 : item.level) || '') {
@@ -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);
@@ -167,12 +167,13 @@ var AreaPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
167
167
  className: "ls-area-cascaded-box"
168
168
  }, title, /*#__PURE__*/React.createElement("div", {
169
169
  className: "ls-area-cascaded-body"
170
- }, showData.map(function (item) {
170
+ }, showData.map(function (item, index) {
171
171
  return /*#__PURE__*/React.createElement("div", {
172
172
  className: "ls-area-cascaded-span ".concat(actualData.find(function (o) {
173
173
  return o === item.value;
174
174
  }) ? ' ls-area-selected' : ''),
175
175
  title: item.label,
176
+ key: item.value + index,
176
177
  onClick: function onClick(e) {
177
178
  var _areaRef$current;
178
179
  switch ((item === null || item === void 0 ? void 0 : item.level) || '') {
@@ -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.36",
3
+ "version": "3.1.38",
4
4
  "description": "ls-pro-common",
5
5
  "license": "MIT",
6
6
  "sideEffects": [