ls-pro-common 3.1.37 → 3.1.39
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/hooks/useDtl/index.js +1 -1
- package/es/hooks/useSingle/index.js +1 -1
- package/es/http/mdmRequest.d.ts +6 -0
- package/es/http/mdmRequest.js +7 -2
- package/lib/hooks/useDtl/index.js +1 -1
- package/lib/hooks/useSingle/index.js +1 -1
- package/lib/http/mdmRequest.d.ts +6 -0
- package/lib/http/mdmRequest.js +7 -2
- package/package.json +1 -1
package/es/hooks/useDtl/index.js
CHANGED
|
@@ -807,7 +807,7 @@ function useDtl(dtlParam) {
|
|
|
807
807
|
// showSuccess(result.flag?.retMsg || '导出成功');
|
|
808
808
|
return _context10.abrupt("return", true);
|
|
809
809
|
case 19:
|
|
810
|
-
if (!['9101', '9102', '9103', '9013', '9014', '9110'].includes((result === null || result === void 0 ? void 0 : (_result$flag8 = result.flag) === null || _result$flag8 === void 0 ? void 0 : _result$flag8.retCode) || '0')) {
|
|
810
|
+
if (!['9101', '9102', '9103', '9013', '9014', '9110', '9201'].includes((result === null || result === void 0 ? void 0 : (_result$flag8 = result.flag) === null || _result$flag8 === void 0 ? void 0 : _result$flag8.retCode) || '0')) {
|
|
811
811
|
_context10.next = 23;
|
|
812
812
|
break;
|
|
813
813
|
}
|
|
@@ -606,7 +606,7 @@ function useSingle(inParam) {
|
|
|
606
606
|
exportProcess(result);
|
|
607
607
|
return _context8.abrupt("return", true);
|
|
608
608
|
case 20:
|
|
609
|
-
if (!['9101', '9102', '9103', '9013', '9014', '9110'].includes(code)) {
|
|
609
|
+
if (!['9101', '9102', '9103', '9013', '9014', '9110', '9201'].includes(code)) {
|
|
610
610
|
_context8.next = 24;
|
|
611
611
|
break;
|
|
612
612
|
}
|
package/es/http/mdmRequest.d.ts
CHANGED
|
@@ -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>;
|
package/es/http/mdmRequest.js
CHANGED
|
@@ -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);
|
|
@@ -807,7 +807,7 @@ function useDtl(dtlParam) {
|
|
|
807
807
|
// showSuccess(result.flag?.retMsg || '导出成功');
|
|
808
808
|
return _context10.abrupt("return", true);
|
|
809
809
|
case 19:
|
|
810
|
-
if (!['9101', '9102', '9103', '9013', '9014', '9110'].includes((result === null || result === void 0 ? void 0 : (_result$flag8 = result.flag) === null || _result$flag8 === void 0 ? void 0 : _result$flag8.retCode) || '0')) {
|
|
810
|
+
if (!['9101', '9102', '9103', '9013', '9014', '9110', '9201'].includes((result === null || result === void 0 ? void 0 : (_result$flag8 = result.flag) === null || _result$flag8 === void 0 ? void 0 : _result$flag8.retCode) || '0')) {
|
|
811
811
|
_context10.next = 23;
|
|
812
812
|
break;
|
|
813
813
|
}
|
|
@@ -606,7 +606,7 @@ function useSingle(inParam) {
|
|
|
606
606
|
exportProcess(result);
|
|
607
607
|
return _context8.abrupt("return", true);
|
|
608
608
|
case 20:
|
|
609
|
-
if (!['9101', '9102', '9103', '9013', '9014', '9110'].includes(code)) {
|
|
609
|
+
if (!['9101', '9102', '9103', '9013', '9014', '9110', '9201'].includes(code)) {
|
|
610
610
|
_context8.next = 24;
|
|
611
611
|
break;
|
|
612
612
|
}
|
package/lib/http/mdmRequest.d.ts
CHANGED
|
@@ -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>;
|
package/lib/http/mdmRequest.js
CHANGED
|
@@ -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);
|