ls-pro-common 3.1.29 → 3.1.31
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.
- package/dist/common.js +1 -1
- package/dist/common.min.js +1 -1
- package/es/http/mdmRequest.d.ts +2 -0
- package/es/http/mdmRequest.js +10 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/http/mdmRequest.d.ts +2 -0
- package/lib/http/mdmRequest.js +10 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/http/mdmRequest.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export declare const getSeason: (params?: any) => Promise<any>;
|
|
|
152
152
|
* @returns
|
|
153
153
|
*/
|
|
154
154
|
export declare const getCategory: (params?: any) => Promise<any>;
|
|
155
|
+
export declare const getSupplier: (params?: any) => Promise<any>;
|
|
155
156
|
declare const mdmMap: {
|
|
156
157
|
owner: (params?: any) => Promise<any>;
|
|
157
158
|
store: (params?: any) => Promise<any>;
|
|
@@ -178,6 +179,7 @@ declare const mdmMap: {
|
|
|
178
179
|
year: (params?: any) => Promise<any>;
|
|
179
180
|
season: (params?: any) => Promise<any>;
|
|
180
181
|
category: (params?: any) => Promise<any>;
|
|
182
|
+
supplier: (params?: any) => Promise<any>;
|
|
181
183
|
};
|
|
182
184
|
export declare type MdmType = keyof typeof mdmMap;
|
|
183
185
|
export declare const getMdmData: (type: MdmType, params?: any) => Promise<any>;
|
package/es/http/mdmRequest.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import {
|
|
3
|
+
import { httpBatchGet } from '.';
|
|
4
4
|
import { getCache, setCache } from '../utils';
|
|
5
5
|
function setPageSize() {
|
|
6
6
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -37,7 +37,7 @@ function _httpGetWithCache() {
|
|
|
37
37
|
return _context2.abrupt("return", cacheData);
|
|
38
38
|
case 5:
|
|
39
39
|
_context2.next = 7;
|
|
40
|
-
return
|
|
40
|
+
return httpBatchGet(url, params);
|
|
41
41
|
case 7:
|
|
42
42
|
result = _context2.sent;
|
|
43
43
|
if ((result === null || result === void 0 ? void 0 : (_result$flag = result.flag) === null || _result$flag === void 0 ? void 0 : _result$flag.retCode) === '0') {
|
|
@@ -335,6 +335,12 @@ 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
|
+
export var getSupplier = function getSupplier() {
|
|
339
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
340
|
+
setPageSize(params);
|
|
341
|
+
var url = '/lesoon-mdm-center-api/bmSupplier/page';
|
|
342
|
+
return httpGetWithCache('supplier', url, params);
|
|
343
|
+
};
|
|
338
344
|
var mdmMap = {
|
|
339
345
|
owner: getOwner,
|
|
340
346
|
store: getStore,
|
|
@@ -360,7 +366,8 @@ var mdmMap = {
|
|
|
360
366
|
gender: getGender,
|
|
361
367
|
year: getYear,
|
|
362
368
|
season: getSeason,
|
|
363
|
-
category: getCategory
|
|
369
|
+
category: getCategory,
|
|
370
|
+
supplier: getSupplier
|
|
364
371
|
};
|
|
365
372
|
export var getMdmData = function getMdmData(type) {
|
|
366
373
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
package/es/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './http';
|
|
|
9
9
|
export { default as BaseService } from './service/BaseService';
|
|
10
10
|
/** 导出进度及完成后自动下载 */
|
|
11
11
|
export { default as exportProcess } from './utils/exportProcess';
|
|
12
|
-
/** Utils
|
|
12
|
+
/** Utils 方法,放在第一层级,方便调用 */
|
|
13
13
|
export * from './utils';
|
|
14
14
|
/** 主数据请求 */
|
|
15
15
|
import * as mdmRequest from './http/mdmRequest';
|
package/es/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export * from './http';
|
|
|
9
9
|
export { default as BaseService } from './service/BaseService';
|
|
10
10
|
/** 导出进度及完成后自动下载 */
|
|
11
11
|
export { default as exportProcess } from './utils/exportProcess';
|
|
12
|
-
/** Utils
|
|
12
|
+
/** Utils 方法,放在第一层级,方便调用 */
|
|
13
13
|
export * from './utils';
|
|
14
14
|
/** 主数据请求 */
|
|
15
15
|
import * as mdmRequest from './http/mdmRequest';
|
package/lib/http/mdmRequest.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export declare const getSeason: (params?: any) => Promise<any>;
|
|
|
152
152
|
* @returns
|
|
153
153
|
*/
|
|
154
154
|
export declare const getCategory: (params?: any) => Promise<any>;
|
|
155
|
+
export declare const getSupplier: (params?: any) => Promise<any>;
|
|
155
156
|
declare const mdmMap: {
|
|
156
157
|
owner: (params?: any) => Promise<any>;
|
|
157
158
|
store: (params?: any) => Promise<any>;
|
|
@@ -178,6 +179,7 @@ declare const mdmMap: {
|
|
|
178
179
|
year: (params?: any) => Promise<any>;
|
|
179
180
|
season: (params?: any) => Promise<any>;
|
|
180
181
|
category: (params?: any) => Promise<any>;
|
|
182
|
+
supplier: (params?: any) => Promise<any>;
|
|
181
183
|
};
|
|
182
184
|
export declare type MdmType = keyof typeof mdmMap;
|
|
183
185
|
export declare const getMdmData: (type: MdmType, params?: any) => Promise<any>;
|
package/lib/http/mdmRequest.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import {
|
|
3
|
+
import { httpBatchGet } from '.';
|
|
4
4
|
import { getCache, setCache } from '../utils';
|
|
5
5
|
function setPageSize() {
|
|
6
6
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -37,7 +37,7 @@ function _httpGetWithCache() {
|
|
|
37
37
|
return _context2.abrupt("return", cacheData);
|
|
38
38
|
case 5:
|
|
39
39
|
_context2.next = 7;
|
|
40
|
-
return
|
|
40
|
+
return httpBatchGet(url, params);
|
|
41
41
|
case 7:
|
|
42
42
|
result = _context2.sent;
|
|
43
43
|
if ((result === null || result === void 0 ? void 0 : (_result$flag = result.flag) === null || _result$flag === void 0 ? void 0 : _result$flag.retCode) === '0') {
|
|
@@ -335,6 +335,12 @@ 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
|
+
export var getSupplier = function getSupplier() {
|
|
339
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
340
|
+
setPageSize(params);
|
|
341
|
+
var url = '/lesoon-mdm-center-api/bmSupplier/page';
|
|
342
|
+
return httpGetWithCache('supplier', url, params);
|
|
343
|
+
};
|
|
338
344
|
var mdmMap = {
|
|
339
345
|
owner: getOwner,
|
|
340
346
|
store: getStore,
|
|
@@ -360,7 +366,8 @@ var mdmMap = {
|
|
|
360
366
|
gender: getGender,
|
|
361
367
|
year: getYear,
|
|
362
368
|
season: getSeason,
|
|
363
|
-
category: getCategory
|
|
369
|
+
category: getCategory,
|
|
370
|
+
supplier: getSupplier
|
|
364
371
|
};
|
|
365
372
|
export var getMdmData = function getMdmData(type) {
|
|
366
373
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
package/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './http';
|
|
|
9
9
|
export { default as BaseService } from './service/BaseService';
|
|
10
10
|
/** 导出进度及完成后自动下载 */
|
|
11
11
|
export { default as exportProcess } from './utils/exportProcess';
|
|
12
|
-
/** Utils
|
|
12
|
+
/** Utils 方法,放在第一层级,方便调用 */
|
|
13
13
|
export * from './utils';
|
|
14
14
|
/** 主数据请求 */
|
|
15
15
|
import * as mdmRequest from './http/mdmRequest';
|
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export * from './http';
|
|
|
9
9
|
export { default as BaseService } from './service/BaseService';
|
|
10
10
|
/** 导出进度及完成后自动下载 */
|
|
11
11
|
export { default as exportProcess } from './utils/exportProcess';
|
|
12
|
-
/** Utils
|
|
12
|
+
/** Utils 方法,放在第一层级,方便调用 */
|
|
13
13
|
export * from './utils';
|
|
14
14
|
/** 主数据请求 */
|
|
15
15
|
import * as mdmRequest from './http/mdmRequest';
|