@kmkf-fe-packages/kmkf-utils 1.20.2-beta.5 → 1.20.2-beta.6
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,6 +1,6 @@
|
|
|
1
1
|
import { fetchAll } from "../../utils";
|
|
2
2
|
import request from "../../request";
|
|
3
|
-
var
|
|
3
|
+
var queryWarehouseList = function queryWarehouseList(_ref) {
|
|
4
4
|
var pageNo = _ref.pageNo,
|
|
5
5
|
pageSize = _ref.pageSize;
|
|
6
6
|
return request({
|
|
@@ -13,7 +13,7 @@ var queryBsE3WarehouseList = function queryBsE3WarehouseList(_ref) {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
export var getWarehouseDataAsync = function getWarehouseDataAsync() {
|
|
16
|
-
return fetchAll("BS_E3_WAREHOUSE_DATA",
|
|
16
|
+
return fetchAll("BS_E3_WAREHOUSE_DATA", queryWarehouseList, function (data) {
|
|
17
17
|
var list = [];
|
|
18
18
|
var warehouses = (data === null || data === void 0 ? void 0 : data.warehouseList) || [];
|
|
19
19
|
warehouses.map(function (item) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchAll } from "../../utils";
|
|
2
2
|
import request from "../../request";
|
|
3
|
-
var
|
|
3
|
+
var queryWarehouseList = function queryWarehouseList(_ref) {
|
|
4
4
|
var pageNo = _ref.pageNo,
|
|
5
5
|
pageSize = _ref.pageSize;
|
|
6
6
|
return request({
|
|
@@ -13,7 +13,7 @@ var queryBsE3WarehouseList = function queryBsE3WarehouseList(_ref) {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
export var getWarehouseDataAsync = function getWarehouseDataAsync() {
|
|
16
|
-
return fetchAll("WDT_WAREHOUSE_DATA",
|
|
16
|
+
return fetchAll("WDT_WAREHOUSE_DATA", queryWarehouseList, function (data) {
|
|
17
17
|
var list = [];
|
|
18
18
|
var warehouses = (data === null || data === void 0 ? void 0 : data.warehouses) || [];
|
|
19
19
|
warehouses.map(function (_ref2) {
|
|
@@ -17,6 +17,6 @@ declare class SendData {
|
|
|
17
17
|
export declare class SendDataCenter {
|
|
18
18
|
static instanceMap: Map<SendGoodPlatform, SendData>;
|
|
19
19
|
static getInstance(platform: SendGoodPlatform): SendData;
|
|
20
|
-
static fetchData(): void
|
|
20
|
+
static fetchData(): Promise<[void, void]>;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -74,8 +74,7 @@ export var SendDataCenter = /*#__PURE__*/function () {
|
|
|
74
74
|
}, {
|
|
75
75
|
key: "fetchData",
|
|
76
76
|
value: function fetchData() {
|
|
77
|
-
this.getInstance("wdt").fetchData();
|
|
78
|
-
this.getInstance("bsE3").fetchData();
|
|
77
|
+
return Promise.all([this.getInstance("wdt").fetchData(), this.getInstance("bsE3").fetchData()]);
|
|
79
78
|
}
|
|
80
79
|
}]);
|
|
81
80
|
return SendDataCenter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "1.20.2-beta.
|
|
3
|
+
"version": "1.20.2-beta.6",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "952037704d324cf44405bd6f3a04ea9fef1ad9ea",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|