ls-pro-common 3.1.23 → 3.1.25
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.css +9 -5
- package/dist/common.js +1 -1
- package/dist/common.min.css +9 -5
- package/dist/common.min.js +1 -1
- package/es/components/common.less +10 -5
- package/es/hooks/useApiLoad.d.ts +15 -0
- package/es/hooks/useApiLoad.js +79 -0
- package/es/http/index.d.ts +25 -1
- package/es/http/index.js +276 -29
- package/es/http/mdmRequest.d.ts +21 -21
- package/es/http/mdmRequest.js +64 -43
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/lib/components/common.less +10 -5
- package/lib/hooks/useApiLoad.d.ts +15 -0
- package/lib/hooks/useApiLoad.js +79 -0
- package/lib/http/index.d.ts +25 -1
- package/lib/http/index.js +276 -29
- package/lib/http/mdmRequest.d.ts +21 -21
- package/lib/http/mdmRequest.js +64 -43
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/http/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
4
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -91,6 +93,8 @@ request.interceptors.request.use(function (url, options) {
|
|
|
91
93
|
// @ts-ignore
|
|
92
94
|
options.headers['x-asm-prefer-tag'] = tag; //灰度发版标识
|
|
93
95
|
}
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
options.headers['terminal'] = 'PC';
|
|
94
98
|
// wms 提示,是否排班标识
|
|
95
99
|
var expireWarnFlag = getCache('expireWarnFlag', true);
|
|
96
100
|
// @ts-ignore
|
|
@@ -406,7 +410,7 @@ export function fetchOptions(_x3, _x4, _x5, _x6) {
|
|
|
406
410
|
return _fetchOptions.apply(this, arguments);
|
|
407
411
|
}
|
|
408
412
|
function _fetchOptions() {
|
|
409
|
-
_fetchOptions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
413
|
+
_fetchOptions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(url, param, valueField, labelField) {
|
|
410
414
|
var showValue,
|
|
411
415
|
needGateWay,
|
|
412
416
|
timeout,
|
|
@@ -414,44 +418,44 @@ function _fetchOptions() {
|
|
|
414
418
|
valueIsNumber,
|
|
415
419
|
rows,
|
|
416
420
|
data,
|
|
417
|
-
|
|
418
|
-
return _regeneratorRuntime.wrap(function
|
|
419
|
-
while (1) switch (
|
|
421
|
+
_args4 = arguments;
|
|
422
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
423
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
420
424
|
case 0:
|
|
421
|
-
showValue =
|
|
422
|
-
needGateWay =
|
|
423
|
-
timeout =
|
|
424
|
-
isGet =
|
|
425
|
-
valueIsNumber =
|
|
425
|
+
showValue = _args4.length > 4 && _args4[4] !== undefined ? _args4[4] : true;
|
|
426
|
+
needGateWay = _args4.length > 5 && _args4[5] !== undefined ? _args4[5] : true;
|
|
427
|
+
timeout = _args4.length > 6 && _args4[6] !== undefined ? _args4[6] : 60000;
|
|
428
|
+
isGet = _args4.length > 7 && _args4[7] !== undefined ? _args4[7] : true;
|
|
429
|
+
valueIsNumber = _args4.length > 8 && _args4[8] !== undefined ? _args4[8] : false;
|
|
426
430
|
if (!isGet) {
|
|
427
|
-
|
|
431
|
+
_context4.next = 14;
|
|
428
432
|
break;
|
|
429
433
|
}
|
|
430
|
-
|
|
431
|
-
return
|
|
434
|
+
_context4.next = 8;
|
|
435
|
+
return httpBatchGet(url, param, needGateWay, timeout);
|
|
432
436
|
case 8:
|
|
433
|
-
|
|
434
|
-
if (
|
|
435
|
-
|
|
437
|
+
_context4.t0 = _context4.sent.rows;
|
|
438
|
+
if (_context4.t0) {
|
|
439
|
+
_context4.next = 11;
|
|
436
440
|
break;
|
|
437
441
|
}
|
|
438
|
-
|
|
442
|
+
_context4.t0 = [];
|
|
439
443
|
case 11:
|
|
440
|
-
rows =
|
|
441
|
-
|
|
444
|
+
rows = _context4.t0;
|
|
445
|
+
_context4.next = 20;
|
|
442
446
|
break;
|
|
443
447
|
case 14:
|
|
444
|
-
|
|
445
|
-
return
|
|
448
|
+
_context4.next = 16;
|
|
449
|
+
return httpBatchPost(url, param, needGateWay, timeout);
|
|
446
450
|
case 16:
|
|
447
|
-
|
|
448
|
-
if (
|
|
449
|
-
|
|
451
|
+
_context4.t1 = _context4.sent.rows;
|
|
452
|
+
if (_context4.t1) {
|
|
453
|
+
_context4.next = 19;
|
|
450
454
|
break;
|
|
451
455
|
}
|
|
452
|
-
|
|
456
|
+
_context4.t1 = [];
|
|
453
457
|
case 19:
|
|
454
|
-
rows =
|
|
458
|
+
rows = _context4.t1;
|
|
455
459
|
case 20:
|
|
456
460
|
data = (rows || []).map(function (o) {
|
|
457
461
|
return _objectSpread(_objectSpread({}, o), {}, {
|
|
@@ -460,19 +464,262 @@ function _fetchOptions() {
|
|
|
460
464
|
label: (showValue ? o[valueField] + '→' : '') + o[labelField]
|
|
461
465
|
});
|
|
462
466
|
});
|
|
463
|
-
return
|
|
467
|
+
return _context4.abrupt("return", data);
|
|
464
468
|
case 22:
|
|
465
469
|
case "end":
|
|
466
|
-
return
|
|
470
|
+
return _context4.stop();
|
|
467
471
|
}
|
|
468
|
-
},
|
|
472
|
+
}, _callee4);
|
|
469
473
|
}));
|
|
470
474
|
return _fetchOptions.apply(this, arguments);
|
|
471
475
|
}
|
|
472
|
-
export var
|
|
476
|
+
export var getResourceRight = function getResourceRight(ids) {
|
|
473
477
|
var url = '/lesoon/lesoon-petrel-permission-api/sysUserRole/selectResourceIds';
|
|
474
478
|
return httpPost(url, {
|
|
475
479
|
resourceIds: ids
|
|
476
480
|
}, true, false);
|
|
477
481
|
};
|
|
482
|
+
// 默认分批获取数据的大小
|
|
483
|
+
var defaultPageSize = 2000;
|
|
484
|
+
/**
|
|
485
|
+
* 分批获取数据
|
|
486
|
+
*
|
|
487
|
+
* @param url
|
|
488
|
+
* @param params
|
|
489
|
+
* @param method
|
|
490
|
+
* @param needGateWay
|
|
491
|
+
* @param timeout
|
|
492
|
+
* @returns
|
|
493
|
+
*/
|
|
494
|
+
function httpBatchRequest(_x7) {
|
|
495
|
+
return _httpBatchRequest.apply(this, arguments);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* 分批获取数据,当一次性取大于2000条,且是第一页时,分多次去取,避免一次性取太多数据导致后端工程压力过大
|
|
499
|
+
*
|
|
500
|
+
* 注意:如果pageSize小于等于2000,或不是取第一页数据时,直接使用普通请求
|
|
501
|
+
*
|
|
502
|
+
* @param url
|
|
503
|
+
* @param params
|
|
504
|
+
* @param needGateWay
|
|
505
|
+
* @param timeout
|
|
506
|
+
* @returns
|
|
507
|
+
*/
|
|
508
|
+
function _httpBatchRequest() {
|
|
509
|
+
_httpBatchRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(url) {
|
|
510
|
+
var params,
|
|
511
|
+
method,
|
|
512
|
+
needGateWay,
|
|
513
|
+
timeout,
|
|
514
|
+
urlPageSize,
|
|
515
|
+
urlPageNum,
|
|
516
|
+
pageSize,
|
|
517
|
+
pageNum,
|
|
518
|
+
isV2,
|
|
519
|
+
PAGE_SIZE,
|
|
520
|
+
PAGE_NUM,
|
|
521
|
+
cleanUrl,
|
|
522
|
+
batchSize,
|
|
523
|
+
allRows,
|
|
524
|
+
total,
|
|
525
|
+
currentPage,
|
|
526
|
+
_objectSpread2,
|
|
527
|
+
firstParams,
|
|
528
|
+
firstResponse,
|
|
529
|
+
firstData,
|
|
530
|
+
actualPageSize,
|
|
531
|
+
totalPages,
|
|
532
|
+
maxConcurrent,
|
|
533
|
+
remainingPages,
|
|
534
|
+
i,
|
|
535
|
+
_i,
|
|
536
|
+
batchPages,
|
|
537
|
+
batchRequests,
|
|
538
|
+
batchResponses,
|
|
539
|
+
_args5 = arguments;
|
|
540
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
541
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
542
|
+
case 0:
|
|
543
|
+
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
544
|
+
method = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : 'get';
|
|
545
|
+
needGateWay = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : true;
|
|
546
|
+
timeout = _args5.length > 4 && _args5[4] !== undefined ? _args5[4] : 60000;
|
|
547
|
+
// 从URL中获取pageSize和page参数
|
|
548
|
+
urlPageSize = getUrlQuery('pageSize', url) || getUrlQuery('page.size', url);
|
|
549
|
+
urlPageNum = getUrlQuery('page', url) || getUrlQuery('page.pn', url) || '1'; // 优先使用params中的分页参数,其次使用URL中的分页参数
|
|
550
|
+
pageSize = (params === null || params === void 0 ? void 0 : params.pageSize) || (params === null || params === void 0 ? void 0 : params['page.size']) || (urlPageSize ? parseInt(urlPageSize) : defaultPageSize);
|
|
551
|
+
pageNum = (params === null || params === void 0 ? void 0 : params.page) || (params === null || params === void 0 ? void 0 : params['page.pn']) || parseInt(urlPageNum); // 如果pageSize小于等于defaultPageSize,或不是取第一页数据时,直接使用普通请求
|
|
552
|
+
if (!(pageSize <= defaultPageSize || pageNum !== 1)) {
|
|
553
|
+
_context5.next = 10;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
return _context5.abrupt("return", ajax(url, params, method, needGateWay, true, timeout));
|
|
557
|
+
case 10:
|
|
558
|
+
isV2 = url.includes('page.size') || (params === null || params === void 0 ? void 0 : params['page.size']) ? true : false;
|
|
559
|
+
PAGE_SIZE = isV2 ? 'page.size' : 'pageSize';
|
|
560
|
+
PAGE_NUM = isV2 ? 'page.pn' : 'page'; // 分批获取数据时,需要从URL中移除原有的pageSize和page参数
|
|
561
|
+
cleanUrl = url;
|
|
562
|
+
if (urlPageSize) {
|
|
563
|
+
cleanUrl = setUrlQuery(cleanUrl, _defineProperty({}, PAGE_SIZE, '')).replace("&".concat(PAGE_SIZE, "="), '').replace("".concat(PAGE_SIZE, "="), '');
|
|
564
|
+
}
|
|
565
|
+
if (urlPageNum) {
|
|
566
|
+
cleanUrl = setUrlQuery(cleanUrl, _defineProperty({}, PAGE_NUM, '')).replace("&".concat(PAGE_NUM, "="), '').replace("".concat(PAGE_NUM, "="), '');
|
|
567
|
+
}
|
|
568
|
+
// 分批获取数据
|
|
569
|
+
batchSize = defaultPageSize;
|
|
570
|
+
allRows = [];
|
|
571
|
+
total = 0;
|
|
572
|
+
currentPage = pageNum;
|
|
573
|
+
_context5.prev = 20;
|
|
574
|
+
// 第一次请求,获取总数
|
|
575
|
+
firstParams = _objectSpread(_objectSpread({}, params), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, PAGE_SIZE, batchSize), _defineProperty(_objectSpread2, PAGE_NUM, currentPage), _objectSpread2));
|
|
576
|
+
_context5.next = 24;
|
|
577
|
+
return ajax(cleanUrl, firstParams, method, needGateWay, true, timeout);
|
|
578
|
+
case 24:
|
|
579
|
+
firstResponse = _context5.sent;
|
|
580
|
+
firstData = firstResponse; // 如果返回值没有 rows 或 total,直接返回普通请求
|
|
581
|
+
if (!(!('rows' in firstData) || !('total' in firstData))) {
|
|
582
|
+
_context5.next = 28;
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
return _context5.abrupt("return", ajax(url, params, method, needGateWay, true, timeout));
|
|
586
|
+
case 28:
|
|
587
|
+
if (firstData.rows) {
|
|
588
|
+
allRows.push.apply(allRows, _toConsumableArray(firstData.rows));
|
|
589
|
+
total = firstData.total || 0;
|
|
590
|
+
}
|
|
591
|
+
// 如果total小于等于defaultPageSize,不需要分批获取,直接返回
|
|
592
|
+
if (!(total <= defaultPageSize)) {
|
|
593
|
+
_context5.next = 31;
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
return _context5.abrupt("return", firstResponse);
|
|
597
|
+
case 31:
|
|
598
|
+
// 计算实际需要获取的数据量(不超过用户传入的pageSize)
|
|
599
|
+
actualPageSize = Math.min(pageSize, total); // 计算需要请求的总页数(基于实际需要的数据量)
|
|
600
|
+
totalPages = Math.ceil(actualPageSize / batchSize); // 如果还有更多数据需要获取
|
|
601
|
+
if (!(totalPages > 1)) {
|
|
602
|
+
_context5.next = 48;
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
// 分批并发请求,每次最多6个并发
|
|
606
|
+
maxConcurrent = 6;
|
|
607
|
+
remainingPages = []; // 准备所有需要请求的页码
|
|
608
|
+
for (i = currentPage + 1; i <= totalPages; i++) {
|
|
609
|
+
remainingPages.push(i);
|
|
610
|
+
}
|
|
611
|
+
// 分批处理请求
|
|
612
|
+
_i = 0;
|
|
613
|
+
case 38:
|
|
614
|
+
if (!(_i < remainingPages.length)) {
|
|
615
|
+
_context5.next = 48;
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
batchPages = remainingPages.slice(_i, _i + maxConcurrent);
|
|
619
|
+
batchRequests = batchPages.map(function (pageNum) {
|
|
620
|
+
var _objectSpread3;
|
|
621
|
+
// 计算当前页应该获取的数据量
|
|
622
|
+
var currentPageSize = batchSize;
|
|
623
|
+
// 如果是最后一页,计算实际需要的数据量
|
|
624
|
+
if (pageNum === totalPages) {
|
|
625
|
+
var remainingData = actualPageSize - (pageNum - 1) * batchSize;
|
|
626
|
+
currentPageSize = Math.max(0, remainingData);
|
|
627
|
+
}
|
|
628
|
+
var requestParams = _objectSpread(_objectSpread({}, params), {}, (_objectSpread3 = {}, _defineProperty(_objectSpread3, PAGE_SIZE, currentPageSize), _defineProperty(_objectSpread3, PAGE_NUM, pageNum), _objectSpread3));
|
|
629
|
+
return ajax(cleanUrl, requestParams, method, needGateWay, true, timeout);
|
|
630
|
+
}); // 并发执行当前批次的请求
|
|
631
|
+
_context5.next = 43;
|
|
632
|
+
return Promise.all(batchRequests);
|
|
633
|
+
case 43:
|
|
634
|
+
batchResponses = _context5.sent;
|
|
635
|
+
// 合并当前批次的响应数据
|
|
636
|
+
batchResponses.forEach(function (response) {
|
|
637
|
+
var data = response;
|
|
638
|
+
if (data.rows) {
|
|
639
|
+
allRows.push.apply(allRows, _toConsumableArray(data.rows));
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
case 45:
|
|
643
|
+
_i += maxConcurrent;
|
|
644
|
+
_context5.next = 38;
|
|
645
|
+
break;
|
|
646
|
+
case 48:
|
|
647
|
+
// 如果获取的数据超过了用户要求的pageSize,进行截取
|
|
648
|
+
if (allRows.length > actualPageSize) {
|
|
649
|
+
allRows.splice(actualPageSize);
|
|
650
|
+
}
|
|
651
|
+
// 返回合并后的数据,保持与原始响应格式一致
|
|
652
|
+
return _context5.abrupt("return", _objectSpread(_objectSpread({}, firstResponse), {}, {
|
|
653
|
+
rows: allRows,
|
|
654
|
+
total: total // 保持原始的total值
|
|
655
|
+
}));
|
|
656
|
+
case 52:
|
|
657
|
+
_context5.prev = 52;
|
|
658
|
+
_context5.t0 = _context5["catch"](20);
|
|
659
|
+
throw _context5.t0;
|
|
660
|
+
case 55:
|
|
661
|
+
case "end":
|
|
662
|
+
return _context5.stop();
|
|
663
|
+
}
|
|
664
|
+
}, _callee5, null, [[20, 52]]);
|
|
665
|
+
}));
|
|
666
|
+
return _httpBatchRequest.apply(this, arguments);
|
|
667
|
+
}
|
|
668
|
+
export var httpBatchGet = /*#__PURE__*/function () {
|
|
669
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {
|
|
670
|
+
var params,
|
|
671
|
+
needGateWay,
|
|
672
|
+
timeout,
|
|
673
|
+
_args2 = arguments;
|
|
674
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
675
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
676
|
+
case 0:
|
|
677
|
+
params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
678
|
+
needGateWay = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : true;
|
|
679
|
+
timeout = _args2.length > 3 && _args2[3] !== undefined ? _args2[3] : 60000;
|
|
680
|
+
return _context2.abrupt("return", httpBatchRequest(url, params, 'get', needGateWay, timeout));
|
|
681
|
+
case 4:
|
|
682
|
+
case "end":
|
|
683
|
+
return _context2.stop();
|
|
684
|
+
}
|
|
685
|
+
}, _callee2);
|
|
686
|
+
}));
|
|
687
|
+
return function httpBatchGet(_x8) {
|
|
688
|
+
return _ref2.apply(this, arguments);
|
|
689
|
+
};
|
|
690
|
+
}();
|
|
691
|
+
/**
|
|
692
|
+
* 分批获取数据,当一次性取大于2000条,且是第一页时,分多次去取,避免一次性取太多数据导致后端工程压力过大
|
|
693
|
+
*
|
|
694
|
+
* 注意:如果pageSize小于等于2000,或不是取第一页数据时,直接使用普通请求
|
|
695
|
+
*
|
|
696
|
+
* @param url
|
|
697
|
+
* @param params
|
|
698
|
+
* @param needGateWay
|
|
699
|
+
* @param timeout
|
|
700
|
+
* @returns
|
|
701
|
+
*/
|
|
702
|
+
export var httpBatchPost = /*#__PURE__*/function () {
|
|
703
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url) {
|
|
704
|
+
var params,
|
|
705
|
+
needGateWay,
|
|
706
|
+
timeout,
|
|
707
|
+
_args3 = arguments;
|
|
708
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
709
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
710
|
+
case 0:
|
|
711
|
+
params = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
712
|
+
needGateWay = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : true;
|
|
713
|
+
timeout = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : 60000;
|
|
714
|
+
return _context3.abrupt("return", httpBatchRequest(url, params, 'post', needGateWay, timeout));
|
|
715
|
+
case 4:
|
|
716
|
+
case "end":
|
|
717
|
+
return _context3.stop();
|
|
718
|
+
}
|
|
719
|
+
}, _callee3);
|
|
720
|
+
}));
|
|
721
|
+
return function httpBatchPost(_x9) {
|
|
722
|
+
return _ref3.apply(this, arguments);
|
|
723
|
+
};
|
|
724
|
+
}();
|
|
478
725
|
export default request;
|
package/lib/http/mdmRequest.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param params 请求参数
|
|
3
|
-
* @name 获取主数据货主数据,调用接口/lesoon-mdm-center-api/bmOwner/
|
|
3
|
+
* @name 获取主数据货主数据,调用接口/lesoon-mdm-center-api/bmOwner/page
|
|
4
4
|
* @returns
|
|
5
5
|
*/
|
|
6
6
|
export declare const getOwner: (params?: any) => Promise<any>;
|
|
7
7
|
/**
|
|
8
8
|
* @param params 请求参数
|
|
9
|
-
* @name 获取主数据仓库数据,调用接口/lesoon-mdm-center-api/bmStore/
|
|
9
|
+
* @name 获取主数据仓库数据,调用接口/lesoon-mdm-center-api/bmStore/page
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getStore: (params?: any) => Promise<any>;
|
|
13
13
|
/**
|
|
14
14
|
* @param params 请求参数
|
|
15
|
-
* @name 获取主数据品牌部数据,调用接口/lesoon-mdm-center-api/bmBrandDept/
|
|
15
|
+
* @name 获取主数据品牌部数据,调用接口/lesoon-mdm-center-api/bmBrandDept/page
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
18
|
export declare const getBrandDept: (params?: any) => Promise<any>;
|
|
19
19
|
/**
|
|
20
20
|
* @param params 请求参数
|
|
21
|
-
* @name 获取主数据物流大区数据,调用接口/lesoon-mdm-center-api/bmLogisticRegion/
|
|
21
|
+
* @name 获取主数据物流大区数据,调用接口/lesoon-mdm-center-api/bmLogisticRegion/page
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
24
|
export declare const getLogisticRegion: (params?: any) => Promise<any>;
|
|
25
25
|
/**
|
|
26
26
|
* @param where: {forwarderLevel: 1 // 承运商级别 1:一级 2:二级 , forwarderType: 1 // 承运商类型 0:货运公司 1:快递公司 }
|
|
27
|
-
* @name 获取快递/快运承运商,调用接口/lesoon-mdm-center-api/bmForwarder/
|
|
27
|
+
* @name 获取快递/快运承运商,调用接口/lesoon-mdm-center-api/bmForwarder/page
|
|
28
28
|
* @returns
|
|
29
29
|
*/
|
|
30
30
|
export declare const getExpressCompany: (params?: any) => Promise<any>;
|
|
@@ -34,48 +34,48 @@ export declare const getExpressCompany: (params?: any) => Promise<any>;
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const getExpressCompanyPage: (params?: any) => Promise<any>;
|
|
36
36
|
/**
|
|
37
|
-
* @name 实体仓,调用接口/lesoon-mdm-center-api/bmPhysicalStore/
|
|
37
|
+
* @name 实体仓,调用接口/lesoon-mdm-center-api/bmPhysicalStore/page
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
export declare const getPhysicalStore: (params?: any) => Promise<any>;
|
|
41
41
|
/**
|
|
42
42
|
* @param params
|
|
43
|
-
* @name 结算大类,调用接口/lesoon-mdm-center-api/bmSettlementCate/
|
|
43
|
+
* @name 结算大类,调用接口/lesoon-mdm-center-api/bmSettlementCate/page
|
|
44
44
|
* @returns
|
|
45
45
|
*/
|
|
46
46
|
export declare const getSettleCategory: (params?: any) => Promise<any>;
|
|
47
47
|
/**
|
|
48
48
|
* @param param
|
|
49
|
-
* @name 获取损益主体,调用接口/lesoon-mdm-center-api/bmProfitLossMain/
|
|
49
|
+
* @name 获取损益主体,调用接口/lesoon-mdm-center-api/bmProfitLossMain/page
|
|
50
50
|
* @returns
|
|
51
51
|
*/
|
|
52
52
|
export declare const getProfitLossMain: (param?: any) => Promise<any>;
|
|
53
53
|
/**
|
|
54
54
|
* @param params
|
|
55
|
-
* @name 结算公司,调用接口/lesoon-mdm-center-api/bmSettleCompany/
|
|
55
|
+
* @name 结算公司,调用接口/lesoon-mdm-center-api/bmSettleCompany/page
|
|
56
56
|
* @returns
|
|
57
57
|
*/
|
|
58
58
|
export declare const getSettleCompany: (params?: any) => Promise<any>;
|
|
59
59
|
/**
|
|
60
60
|
* @param params
|
|
61
|
-
* @name 货权,调用接口/lesoon-mdm-center-api/bmPowerUnit/
|
|
61
|
+
* @name 货权,调用接口/lesoon-mdm-center-api/bmPowerUnit/page
|
|
62
62
|
* @returns
|
|
63
63
|
*/
|
|
64
64
|
export declare const getPowerUnit: (params?: any) => Promise<any>;
|
|
65
65
|
/**
|
|
66
66
|
* @param params
|
|
67
|
-
* @name 结算账号,调用接口/lesoon-mdm-center-api/bmSettleAccount/
|
|
67
|
+
* @name 结算账号,调用接口/lesoon-mdm-center-api/bmSettleAccount/page
|
|
68
68
|
* @returns
|
|
69
69
|
*/
|
|
70
70
|
export declare const getSettleAccount: (params?: any) => Promise<any>;
|
|
71
71
|
/**
|
|
72
|
-
* @name 获取物流大类,调用接口/lesoon-mdm-center-api/bmLogisticCategory/
|
|
72
|
+
* @name 获取物流大类,调用接口/lesoon-mdm-center-api/bmLogisticCategory/page
|
|
73
73
|
* @returns
|
|
74
74
|
*/
|
|
75
75
|
export declare const getLogisticCategory: (params?: any) => Promise<any>;
|
|
76
76
|
/**
|
|
77
77
|
* @param param
|
|
78
|
-
* @name 管理城市,调用接口/lesoon-mdm-center-api/bmManagingCity/
|
|
78
|
+
* @name 管理城市,调用接口/lesoon-mdm-center-api/bmManagingCity/page
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
81
|
export declare const getManagingCity: (params?: any) => Promise<any>;
|
|
@@ -88,13 +88,13 @@ interface AreaParams {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* @param {where: {level:'province'}} level Province=省,city=市,district=区
|
|
91
|
-
* @name 获取省市区,调用接口/lesoon-mdm-center-api/sysAdministrativeDivision/
|
|
91
|
+
* @name 获取省市区,调用接口/lesoon-mdm-center-api/sysAdministrativeDivision/page
|
|
92
92
|
* @returns
|
|
93
93
|
*/
|
|
94
94
|
export declare const getArea: (params?: AreaParams) => Promise<any>;
|
|
95
95
|
/**
|
|
96
96
|
* @param param
|
|
97
|
-
* @name 获取集散中心,调用接口/lesoon-mdm-center-api/tmsTransportLocno/
|
|
97
|
+
* @name 获取集散中心,调用接口/lesoon-mdm-center-api/tmsTransportLocno/page
|
|
98
98
|
* @returns
|
|
99
99
|
*/
|
|
100
100
|
export declare const getTransportLocno: (params?: any) => Promise<any>;
|
|
@@ -118,37 +118,37 @@ export declare const getUploadPointPage: (params?: any) => Promise<any>;
|
|
|
118
118
|
export declare const getShopPage: (params?: any) => Promise<any>;
|
|
119
119
|
/**
|
|
120
120
|
* @param param
|
|
121
|
-
* @name 获取颜色,调用接口/lesoon-mdm-center-api/bmColor/
|
|
121
|
+
* @name 获取颜色,调用接口/lesoon-mdm-center-api/bmColor/page
|
|
122
122
|
* @returns
|
|
123
123
|
*/
|
|
124
124
|
export declare const getColor: (params?: any) => Promise<any>;
|
|
125
125
|
/**
|
|
126
126
|
* @param param
|
|
127
|
-
* @name 获取尺码类型,调用接口/lesoon-mdm-center-api/bmSizeType/
|
|
127
|
+
* @name 获取尺码类型,调用接口/lesoon-mdm-center-api/bmSizeType/page
|
|
128
128
|
* @returns
|
|
129
129
|
*/
|
|
130
130
|
export declare const getSizeType: (params?: any) => Promise<any>;
|
|
131
131
|
/**
|
|
132
132
|
* @param param
|
|
133
|
-
* @name 获取性别,调用接口/lesoon-mdm-center-api/bmGender/
|
|
133
|
+
* @name 获取性别,调用接口/lesoon-mdm-center-api/bmGender/page
|
|
134
134
|
* @returns
|
|
135
135
|
*/
|
|
136
136
|
export declare const getGender: (params?: any) => Promise<any>;
|
|
137
137
|
/**
|
|
138
138
|
* @param param
|
|
139
|
-
* @name 获取年份,调用接口/lesoon-mdm-center-api/bmYear/
|
|
139
|
+
* @name 获取年份,调用接口/lesoon-mdm-center-api/bmYear/page
|
|
140
140
|
* @returns
|
|
141
141
|
*/
|
|
142
142
|
export declare const getYear: (params?: any) => Promise<any>;
|
|
143
143
|
/**
|
|
144
144
|
* @param param
|
|
145
|
-
* @name 获取季节,调用接口/lesoon-mdm-center-api/bmSeason/
|
|
145
|
+
* @name 获取季节,调用接口/lesoon-mdm-center-api/bmSeason/page
|
|
146
146
|
* @returns
|
|
147
147
|
*/
|
|
148
148
|
export declare const getSeason: (params?: any) => Promise<any>;
|
|
149
149
|
/**
|
|
150
150
|
* @param param
|
|
151
|
-
* @name 获取品类,调用接口/lesoon-mdm-center-api/bmCategory/
|
|
151
|
+
* @name 获取品类,调用接口/lesoon-mdm-center-api/bmCategory/page
|
|
152
152
|
* @returns
|
|
153
153
|
*/
|
|
154
154
|
export declare const getCategory: (params?: any) => Promise<any>;
|