@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.29 → 0.0.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/enum.d.ts +6 -6
- package/enum.js +6 -6
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/modules/logistics/types.d.ts +8 -0
- package/modules/storeProductFulfill/service.d.ts +8 -0
- package/modules/storeProductFulfill/service.js +37 -0
- package/modules/storeProductFulfill/types.d.ts +41 -0
- package/modules/storeProductFulfill/types.js +2 -0
- package/modules/storeReplenishOrder/service.d.ts +4 -0
- package/modules/storeReplenishOrder/service.js +10 -0
- package/modules/storeReplenishOrder/types.d.ts +8 -0
- package/package.json +1 -1
package/enum.d.ts
CHANGED
|
@@ -140,12 +140,12 @@ export declare namespace ENUM {
|
|
|
140
140
|
REPEAL = "\u5DF2\u64A4\u9500"
|
|
141
141
|
}
|
|
142
142
|
enum APPLY_TYPE {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
STOCK_IN_REPLENISH = "STOCK_IN_REPLENISH",
|
|
144
|
+
ACTIVE_APPLY = "ACTIVE_APPLY"
|
|
145
145
|
}
|
|
146
146
|
enum APPLY_TYPE_CHINESE {
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
STOCK_IN_REPLENISH = "\u5165\u5E93\u5355\u8865\u8D27",
|
|
148
|
+
ACTIVE_APPLY = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
|
|
149
149
|
}
|
|
150
150
|
enum LOSS_TYPE {
|
|
151
151
|
STOCK = "STOCK",
|
|
@@ -168,8 +168,8 @@ export declare namespace ENUM {
|
|
|
168
168
|
};
|
|
169
169
|
/** 申请类型映射 */
|
|
170
170
|
const APPLY_TYPE_MAP: {
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
171
|
+
readonly STOCK_IN_REPLENISH: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH;
|
|
172
|
+
readonly ACTIVE_APPLY: APPLY_TYPE_CHINESE.ACTIVE_APPLY;
|
|
173
173
|
};
|
|
174
174
|
/** 计损类型映射 */
|
|
175
175
|
const LOSS_TYPE_MAP: {
|
package/enum.js
CHANGED
|
@@ -163,13 +163,13 @@ var ENUM;
|
|
|
163
163
|
})(STATUS_CHINESE = STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE || (STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE = {}));
|
|
164
164
|
let APPLY_TYPE;
|
|
165
165
|
(function (APPLY_TYPE) {
|
|
166
|
-
APPLY_TYPE["
|
|
167
|
-
APPLY_TYPE["
|
|
166
|
+
APPLY_TYPE["STOCK_IN_REPLENISH"] = "STOCK_IN_REPLENISH";
|
|
167
|
+
APPLY_TYPE["ACTIVE_APPLY"] = "ACTIVE_APPLY";
|
|
168
168
|
})(APPLY_TYPE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE = {}));
|
|
169
169
|
let APPLY_TYPE_CHINESE;
|
|
170
170
|
(function (APPLY_TYPE_CHINESE) {
|
|
171
|
-
APPLY_TYPE_CHINESE["
|
|
172
|
-
APPLY_TYPE_CHINESE["
|
|
171
|
+
APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u5165\u5E93\u5355\u8865\u8D27";
|
|
172
|
+
APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
|
|
173
173
|
})(APPLY_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE = {}));
|
|
174
174
|
let LOSS_TYPE;
|
|
175
175
|
(function (LOSS_TYPE) {
|
|
@@ -194,8 +194,8 @@ var ENUM;
|
|
|
194
194
|
};
|
|
195
195
|
/** 申请类型映射 */
|
|
196
196
|
STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_MAP = {
|
|
197
|
-
[APPLY_TYPE.
|
|
198
|
-
[APPLY_TYPE.
|
|
197
|
+
[APPLY_TYPE.STOCK_IN_REPLENISH]: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH,
|
|
198
|
+
[APPLY_TYPE.ACTIVE_APPLY]: APPLY_TYPE_CHINESE.ACTIVE_APPLY,
|
|
199
199
|
};
|
|
200
200
|
/** 计损类型映射 */
|
|
201
201
|
STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_MAP = {
|
package/index.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ export { PickingRuleTypes } from './modules/pickingRule/types';
|
|
|
15
15
|
export { ENUM } from './enum';
|
|
16
16
|
export { logisticsService } from './modules/logistics/service';
|
|
17
17
|
export type { Service as LogisticsServiceTypes } from './modules/logistics/types';
|
|
18
|
+
export { storeProductFulfillService } from './modules/storeProductFulfill/service';
|
|
19
|
+
export { StoreProductFulfillTypes } from './modules/storeProductFulfill/types';
|
|
18
20
|
export { ENUM as DEMO_ENUM } from './enum';
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEMO_ENUM = exports.logisticsService = exports.ENUM = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = void 0;
|
|
3
|
+
exports.DEMO_ENUM = exports.storeProductFulfillService = exports.logisticsService = exports.ENUM = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = void 0;
|
|
4
4
|
var service_1 = require("./modules/allocation/service");
|
|
5
5
|
Object.defineProperty(exports, "allocationService", { enumerable: true, get: function () { return service_1.allocationService; } });
|
|
6
6
|
var service_2 = require("./modules/allocationOrder/service");
|
|
@@ -21,6 +21,8 @@ var enum_1 = require("./enum");
|
|
|
21
21
|
Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
|
|
22
22
|
var service_8 = require("./modules/logistics/service");
|
|
23
23
|
Object.defineProperty(exports, "logisticsService", { enumerable: true, get: function () { return service_8.logisticsService; } });
|
|
24
|
+
var service_9 = require("./modules/storeProductFulfill/service");
|
|
25
|
+
Object.defineProperty(exports, "storeProductFulfillService", { enumerable: true, get: function () { return service_9.storeProductFulfillService; } });
|
|
24
26
|
var enum_2 = require("./enum");
|
|
25
27
|
Object.defineProperty(exports, "DEMO_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
|
|
26
28
|
// 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
|
|
@@ -55,6 +55,14 @@ export declare namespace Service {
|
|
|
55
55
|
skuCode?: string;
|
|
56
56
|
/** 规格名称(来自ProductServiceTypes) */
|
|
57
57
|
specName?: string;
|
|
58
|
+
/** 商品分类 */
|
|
59
|
+
classification?: string;
|
|
60
|
+
/** 储藏方式 */
|
|
61
|
+
storageMethod?: string;
|
|
62
|
+
/** 配货方式 */
|
|
63
|
+
dispatchType?: string;
|
|
64
|
+
/** 结算分类 */
|
|
65
|
+
pickType?: string;
|
|
58
66
|
/** 应配货量 */
|
|
59
67
|
expectedQuantity?: number;
|
|
60
68
|
/** 仓库实发 */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StoreProductFulfillTypes } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class StoreProductFulfillService extends BaseService implements StoreProductFulfillTypes.StoreProductFulfillController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
getStoreProducts(request: StoreProductFulfillTypes.Request.GetStoreProducts): Promise<StoreProductFulfillTypes.Response.GetStoreProducts>;
|
|
6
|
+
}
|
|
7
|
+
export declare const storeProductFulfillService: StoreProductFulfillService;
|
|
8
|
+
export default storeProductFulfillService;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.storeProductFulfillService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let StoreProductFulfillService = class StoreProductFulfillService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/store-product-fulfill';
|
|
23
|
+
}
|
|
24
|
+
getStoreProducts(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getStoreProducts), request);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, tsoa_1.Post)('get-store-products'),
|
|
30
|
+
__param(0, (0, tsoa_1.Body)())
|
|
31
|
+
], StoreProductFulfillService.prototype, "getStoreProducts", null);
|
|
32
|
+
StoreProductFulfillService = __decorate([
|
|
33
|
+
(0, tsoa_1.Route)('StoreProductFulfill'),
|
|
34
|
+
(0, tsoa_1.Tags)('storeProductFulfill')
|
|
35
|
+
], StoreProductFulfillService);
|
|
36
|
+
exports.storeProductFulfillService = new StoreProductFulfillService();
|
|
37
|
+
exports.default = exports.storeProductFulfillService;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare namespace StoreProductFulfillTypes {
|
|
2
|
+
/** 门店商品履约商品项 */
|
|
3
|
+
interface StoreProductItem {
|
|
4
|
+
productId: string;
|
|
5
|
+
productName: string;
|
|
6
|
+
skuId: string;
|
|
7
|
+
skuCode: string;
|
|
8
|
+
specName: string;
|
|
9
|
+
storeId: string;
|
|
10
|
+
storeName: string;
|
|
11
|
+
price: number;
|
|
12
|
+
classification: string;
|
|
13
|
+
storageMethod: string;
|
|
14
|
+
pickType: string;
|
|
15
|
+
dispatchType: string;
|
|
16
|
+
}
|
|
17
|
+
/** 请求定义 */
|
|
18
|
+
namespace Request {
|
|
19
|
+
/** 获取门店入库商品列表请求(按 skuId 合并) */
|
|
20
|
+
interface GetStoreProducts {
|
|
21
|
+
storeIds?: string[];
|
|
22
|
+
productIds?: string[];
|
|
23
|
+
skuCodes?: string[];
|
|
24
|
+
pageIndex: number;
|
|
25
|
+
pageSize: number;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/** 响应定义 */
|
|
29
|
+
namespace Response {
|
|
30
|
+
/** 获取门店入库商品列表响应 */
|
|
31
|
+
interface GetStoreProducts {
|
|
32
|
+
total: number;
|
|
33
|
+
list: StoreProductItem[];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** StoreProductFulfill Controller 接口定义 */
|
|
37
|
+
interface StoreProductFulfillController {
|
|
38
|
+
/** 获取门店入库商品列表(按 skuId 合并) */
|
|
39
|
+
getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -34,6 +34,10 @@ declare class StoreReplenishOrderService extends BaseService implements StoreRep
|
|
|
34
34
|
* 撤销审批
|
|
35
35
|
*/
|
|
36
36
|
revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* 更新审批理由
|
|
39
|
+
*/
|
|
40
|
+
updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
|
|
37
41
|
}
|
|
38
42
|
export declare const storeReplenishOrderService: StoreReplenishOrderService;
|
|
39
43
|
export default storeReplenishOrderService;
|
|
@@ -69,6 +69,12 @@ let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseSe
|
|
|
69
69
|
revokeApproval(request) {
|
|
70
70
|
return (0, http_1.callApi)(this.getApiUrl(this.revokeApproval), request);
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* 更新审批理由
|
|
74
|
+
*/
|
|
75
|
+
updateApprovalReason(request) {
|
|
76
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateApprovalReason), request);
|
|
77
|
+
}
|
|
72
78
|
};
|
|
73
79
|
__decorate([
|
|
74
80
|
(0, tsoa_1.Post)('apply-replenish'),
|
|
@@ -102,6 +108,10 @@ __decorate([
|
|
|
102
108
|
(0, tsoa_1.Post)('revoke-approval'),
|
|
103
109
|
__param(0, (0, tsoa_1.Body)())
|
|
104
110
|
], StoreReplenishOrderService.prototype, "revokeApproval", null);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, tsoa_1.Post)('update-approval-reason'),
|
|
113
|
+
__param(0, (0, tsoa_1.Body)())
|
|
114
|
+
], StoreReplenishOrderService.prototype, "updateApprovalReason", null);
|
|
105
115
|
StoreReplenishOrderService = __decorate([
|
|
106
116
|
(0, tsoa_1.Route)('StoreReplenishOrder'),
|
|
107
117
|
(0, tsoa_1.Tags)('storeReplenishOrder')
|
|
@@ -97,6 +97,12 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
97
97
|
approvalReason: string;
|
|
98
98
|
operator: string;
|
|
99
99
|
}
|
|
100
|
+
/** 更新审批理由 */
|
|
101
|
+
interface UpdateApprovalReason {
|
|
102
|
+
id: string;
|
|
103
|
+
approvalReason: string;
|
|
104
|
+
operator: string;
|
|
105
|
+
}
|
|
100
106
|
/** 撤销审批 */
|
|
101
107
|
interface RevokeApproval {
|
|
102
108
|
id: string;
|
|
@@ -181,5 +187,7 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
181
187
|
approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
|
|
182
188
|
/** 撤销审批 */
|
|
183
189
|
revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
|
|
190
|
+
/** 更新审批理由 */
|
|
191
|
+
updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
|
|
184
192
|
}
|
|
185
193
|
}
|