@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.38 → 0.0.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/enum.d.ts CHANGED
@@ -37,7 +37,6 @@ export declare namespace ENUM {
37
37
  readonly DETAIL_NOT_FOUND: "入库单明细不存在";
38
38
  readonly SKU_NOT_FOUND: "SKU编码在入库单中不存在";
39
39
  readonly EMPTY_QUANTITY: "入库商品列表数量不能全部为0";
40
- readonly HAS_PENDING_OR_APPROVED_REPLENISH: "存在待审批或已通过的补货申请,需先撤回补货申请才能确认入库";
41
40
  };
42
41
  /** 状态转换规则 */
43
42
  const STATUS_TRANSITIONS: {
@@ -52,15 +51,13 @@ export declare namespace ENUM {
52
51
  PENDING = "PENDING",
53
52
  PARTIAL = "PARTIAL",
54
53
  SHIPPED = "SHIPPED",
55
- EARLY_COMPLETED = "EARLY_COMPLETED",
56
- INVALID = "INVALID"
54
+ EARLY_COMPLETED = "EARLY_COMPLETED"
57
55
  }
58
56
  enum STATUS_CHINESE {
59
57
  PENDING = "\u5F85\u53D1\u8D27",
60
58
  PARTIAL = "\u90E8\u5206\u53D1\u8D27",
61
59
  SHIPPED = "\u5DF2\u53D1\u8D27",
62
- EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210",
63
- INVALID = "\u5DF2\u5931\u6548"
60
+ EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210"
64
61
  }
65
62
  /** 错误消息常量 */
66
63
  const ERROR_MESSAGES: {
@@ -128,70 +125,6 @@ export declare namespace ENUM {
128
125
  readonly RECORD_NOT_FOUND: "上传记录不存在";
129
126
  };
130
127
  }
131
- namespace STORE_REPLENISH_ORDER_ENUM {
132
- enum STATUS {
133
- PENDING = "PENDING",
134
- REJECT = "REJECT",
135
- APPROVE = "APPROVE",
136
- REPEAL = "REPEAL"
137
- }
138
- enum STATUS_CHINESE {
139
- PENDING = "\u5F85\u5BA1\u6279",
140
- REJECT = "\u5DF2\u62D2\u7EDD",
141
- APPROVE = "\u5DF2\u901A\u8FC7",
142
- REPEAL = "\u5DF2\u64A4\u9500"
143
- }
144
- enum APPLY_TYPE {
145
- STOCK_IN_REPLENISH = "STOCK_IN_REPLENISH",
146
- ACTIVE_APPLY = "ACTIVE_APPLY"
147
- }
148
- enum APPLY_TYPE_CHINESE {
149
- STOCK_IN_REPLENISH = "\u5165\u5E93\u5355\u8865\u8D27",
150
- ACTIVE_APPLY = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
151
- }
152
- enum LOSS_TYPE {
153
- STOCK = "STOCK",
154
- WAREHOUSE = "WAREHOUSE",
155
- EXPRESS = "EXPRESS",
156
- NONE = "NONE"
157
- }
158
- enum LOSS_TYPE_CHINESE {
159
- STOCK = "\u95E8\u5E97",
160
- WAREHOUSE = "\u4ED3\u5E93",
161
- EXPRESS = "\u5FEB\u9012",
162
- NONE = "\u4E0D\u8BA1\u635F"
163
- }
164
- /** 状态映射 */
165
- const STATUS_MAP: {
166
- readonly PENDING: STATUS_CHINESE.PENDING;
167
- readonly REJECT: STATUS_CHINESE.REJECT;
168
- readonly APPROVE: STATUS_CHINESE.APPROVE;
169
- readonly REPEAL: STATUS_CHINESE.REPEAL;
170
- };
171
- /** 申请类型映射 */
172
- const APPLY_TYPE_MAP: {
173
- readonly STOCK_IN_REPLENISH: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH;
174
- readonly ACTIVE_APPLY: APPLY_TYPE_CHINESE.ACTIVE_APPLY;
175
- };
176
- /** 计损类型映射 */
177
- const LOSS_TYPE_MAP: {
178
- readonly STOCK: LOSS_TYPE_CHINESE.STOCK;
179
- readonly WAREHOUSE: LOSS_TYPE_CHINESE.WAREHOUSE;
180
- readonly EXPRESS: LOSS_TYPE_CHINESE.EXPRESS;
181
- readonly NONE: LOSS_TYPE_CHINESE.NONE;
182
- };
183
- /** 错误消息常量 */
184
- const ERROR_MESSAGES: {
185
- readonly ORDER_NOT_FOUND: "补货单不存在";
186
- readonly PRODUCT_NOT_FOUND: "商品不存在";
187
- readonly SKU_NOT_FOUND: "SKU不存在";
188
- readonly STOCK_IN_ORDER_NOT_FOUND: "入库单不存在";
189
- readonly STORE_NOT_MATCH: "入库单与门店不匹配";
190
- readonly INVALID_QUANTITY: "申请补货数量必须大于0";
191
- readonly APPLY_FAILED: "补货申请失败,请稍后重试";
192
- readonly ALREADY_APPLIED: "该入库单已经申请过补货,无法再次发起申请";
193
- };
194
- }
195
128
  namespace PRE_ALLOCATION_ORDER_ENUM {
196
129
  /** 预配货单状态(数字类型) */
197
130
  enum STATUS {
package/enum.js CHANGED
@@ -47,7 +47,6 @@ var ENUM;
47
47
  DETAIL_NOT_FOUND: '入库单明细不存在',
48
48
  SKU_NOT_FOUND: 'SKU编码在入库单中不存在',
49
49
  EMPTY_QUANTITY: '入库商品列表数量不能全部为0',
50
- HAS_PENDING_OR_APPROVED_REPLENISH: '存在待审批或已通过的补货申请,需先撤回补货申请才能确认入库',
51
50
  };
52
51
  /** 状态转换规则 */
53
52
  STORE_STOCK_IN_ORDER_ENUM.STATUS_TRANSITIONS = {
@@ -65,7 +64,6 @@ var ENUM;
65
64
  STATUS["PARTIAL"] = "PARTIAL";
66
65
  STATUS["SHIPPED"] = "SHIPPED";
67
66
  STATUS["EARLY_COMPLETED"] = "EARLY_COMPLETED";
68
- STATUS["INVALID"] = "INVALID";
69
67
  })(STATUS = ALLOCATION_ORDER_ENUM.STATUS || (ALLOCATION_ORDER_ENUM.STATUS = {}));
70
68
  let STATUS_CHINESE;
71
69
  (function (STATUS_CHINESE) {
@@ -73,7 +71,6 @@ var ENUM;
73
71
  STATUS_CHINESE["PARTIAL"] = "\u90E8\u5206\u53D1\u8D27";
74
72
  STATUS_CHINESE["SHIPPED"] = "\u5DF2\u53D1\u8D27";
75
73
  STATUS_CHINESE["EARLY_COMPLETED"] = "\u63D0\u524D\u5B8C\u6210";
76
- STATUS_CHINESE["INVALID"] = "\u5DF2\u5931\u6548";
77
74
  })(STATUS_CHINESE = ALLOCATION_ORDER_ENUM.STATUS_CHINESE || (ALLOCATION_ORDER_ENUM.STATUS_CHINESE = {}));
78
75
  /** 错误消息常量 */
79
76
  ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
@@ -147,77 +144,6 @@ var ENUM;
147
144
  RECORD_NOT_FOUND: '上传记录不存在',
148
145
  };
149
146
  })(PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM = ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM || (ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM = {}));
150
- let STORE_REPLENISH_ORDER_ENUM;
151
- (function (STORE_REPLENISH_ORDER_ENUM) {
152
- let STATUS;
153
- (function (STATUS) {
154
- STATUS["PENDING"] = "PENDING";
155
- STATUS["REJECT"] = "REJECT";
156
- STATUS["APPROVE"] = "APPROVE";
157
- STATUS["REPEAL"] = "REPEAL";
158
- })(STATUS = STORE_REPLENISH_ORDER_ENUM.STATUS || (STORE_REPLENISH_ORDER_ENUM.STATUS = {}));
159
- let STATUS_CHINESE;
160
- (function (STATUS_CHINESE) {
161
- STATUS_CHINESE["PENDING"] = "\u5F85\u5BA1\u6279";
162
- STATUS_CHINESE["REJECT"] = "\u5DF2\u62D2\u7EDD";
163
- STATUS_CHINESE["APPROVE"] = "\u5DF2\u901A\u8FC7";
164
- STATUS_CHINESE["REPEAL"] = "\u5DF2\u64A4\u9500";
165
- })(STATUS_CHINESE = STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE || (STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE = {}));
166
- let APPLY_TYPE;
167
- (function (APPLY_TYPE) {
168
- APPLY_TYPE["STOCK_IN_REPLENISH"] = "STOCK_IN_REPLENISH";
169
- APPLY_TYPE["ACTIVE_APPLY"] = "ACTIVE_APPLY";
170
- })(APPLY_TYPE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE = {}));
171
- let APPLY_TYPE_CHINESE;
172
- (function (APPLY_TYPE_CHINESE) {
173
- APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u5165\u5E93\u5355\u8865\u8D27";
174
- APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
175
- })(APPLY_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE = {}));
176
- let LOSS_TYPE;
177
- (function (LOSS_TYPE) {
178
- LOSS_TYPE["STOCK"] = "STOCK";
179
- LOSS_TYPE["WAREHOUSE"] = "WAREHOUSE";
180
- LOSS_TYPE["EXPRESS"] = "EXPRESS";
181
- LOSS_TYPE["NONE"] = "NONE";
182
- })(LOSS_TYPE = STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE || (STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE = {}));
183
- let LOSS_TYPE_CHINESE;
184
- (function (LOSS_TYPE_CHINESE) {
185
- LOSS_TYPE_CHINESE["STOCK"] = "\u95E8\u5E97";
186
- LOSS_TYPE_CHINESE["WAREHOUSE"] = "\u4ED3\u5E93";
187
- LOSS_TYPE_CHINESE["EXPRESS"] = "\u5FEB\u9012";
188
- LOSS_TYPE_CHINESE["NONE"] = "\u4E0D\u8BA1\u635F";
189
- })(LOSS_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_CHINESE = {}));
190
- /** 状态映射 */
191
- STORE_REPLENISH_ORDER_ENUM.STATUS_MAP = {
192
- [STATUS.PENDING]: STATUS_CHINESE.PENDING,
193
- [STATUS.REJECT]: STATUS_CHINESE.REJECT,
194
- [STATUS.APPROVE]: STATUS_CHINESE.APPROVE,
195
- [STATUS.REPEAL]: STATUS_CHINESE.REPEAL,
196
- };
197
- /** 申请类型映射 */
198
- STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_MAP = {
199
- [APPLY_TYPE.STOCK_IN_REPLENISH]: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH,
200
- [APPLY_TYPE.ACTIVE_APPLY]: APPLY_TYPE_CHINESE.ACTIVE_APPLY,
201
- };
202
- /** 计损类型映射 */
203
- STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_MAP = {
204
- [LOSS_TYPE.STOCK]: LOSS_TYPE_CHINESE.STOCK,
205
- [LOSS_TYPE.WAREHOUSE]: LOSS_TYPE_CHINESE.WAREHOUSE,
206
- [LOSS_TYPE.EXPRESS]: LOSS_TYPE_CHINESE.EXPRESS,
207
- [LOSS_TYPE.NONE]: LOSS_TYPE_CHINESE.NONE,
208
- };
209
- /** 错误消息常量 */
210
- STORE_REPLENISH_ORDER_ENUM.ERROR_MESSAGES = {
211
- ORDER_NOT_FOUND: '补货单不存在',
212
- PRODUCT_NOT_FOUND: '商品不存在',
213
- SKU_NOT_FOUND: 'SKU不存在',
214
- STOCK_IN_ORDER_NOT_FOUND: '入库单不存在',
215
- STORE_NOT_MATCH: '入库单与门店不匹配',
216
- INVALID_QUANTITY: '申请补货数量必须大于0',
217
- APPLY_FAILED: '补货申请失败,请稍后重试',
218
- ALREADY_APPLIED: '该入库单已经申请过补货,无法再次发起申请',
219
- };
220
- })(STORE_REPLENISH_ORDER_ENUM = ENUM.STORE_REPLENISH_ORDER_ENUM || (ENUM.STORE_REPLENISH_ORDER_ENUM = {}));
221
147
  let PRE_ALLOCATION_ORDER_ENUM;
222
148
  (function (PRE_ALLOCATION_ORDER_ENUM) {
223
149
  /** 预配货单状态(数字类型) */
package/index.d.ts CHANGED
@@ -6,15 +6,9 @@ export { storeStockInService } from './modules/storeStockIn/service';
6
6
  export { StoreStockInTypes } from './modules/storeStockIn/types';
7
7
  export { preAllocationOrderService } from './modules/preAllocationOrder/service';
8
8
  export { PreAllocationOrderTypes } from './modules/preAllocationOrder/types';
9
- export { storeReplenishOrderService } from './modules/storeReplenishOrder/service';
10
- export { StoreReplenishOrderTypes } from './modules/storeReplenishOrder/types';
11
- export { productStatisticsService } from './modules/productStatistics/service';
12
- export { ProductStatisticsTypes } from './modules/productStatistics/types';
13
9
  export { pickingRuleService } from './modules/pickingRule/service';
14
10
  export { PickingRuleTypes } from './modules/pickingRule/types';
15
11
  export { ENUM } from './enum';
16
12
  export { logisticsService } from './modules/logistics/service';
17
13
  export type { Service as LogisticsServiceTypes } from './modules/logistics/types';
18
- export { storeProductFulfillService } from './modules/storeProductFulfill/service';
19
- export { StoreProductFulfillTypes } from './modules/storeProductFulfill/types';
20
14
  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.storeProductFulfillService = 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.logisticsService = exports.ENUM = exports.PickingRuleTypes = exports.pickingRuleService = 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");
@@ -9,20 +9,14 @@ var service_3 = require("./modules/storeStockIn/service");
9
9
  Object.defineProperty(exports, "storeStockInService", { enumerable: true, get: function () { return service_3.storeStockInService; } });
10
10
  var service_4 = require("./modules/preAllocationOrder/service");
11
11
  Object.defineProperty(exports, "preAllocationOrderService", { enumerable: true, get: function () { return service_4.preAllocationOrderService; } });
12
- var service_5 = require("./modules/storeReplenishOrder/service");
13
- Object.defineProperty(exports, "storeReplenishOrderService", { enumerable: true, get: function () { return service_5.storeReplenishOrderService; } });
14
- var service_6 = require("./modules/productStatistics/service");
15
- Object.defineProperty(exports, "productStatisticsService", { enumerable: true, get: function () { return service_6.productStatisticsService; } });
16
- var service_7 = require("./modules/pickingRule/service");
17
- Object.defineProperty(exports, "pickingRuleService", { enumerable: true, get: function () { return service_7.pickingRuleService; } });
12
+ var service_5 = require("./modules/pickingRule/service");
13
+ Object.defineProperty(exports, "pickingRuleService", { enumerable: true, get: function () { return service_5.pickingRuleService; } });
18
14
  var types_1 = require("./modules/pickingRule/types");
19
15
  Object.defineProperty(exports, "PickingRuleTypes", { enumerable: true, get: function () { return types_1.PickingRuleTypes; } });
20
16
  var enum_1 = require("./enum");
21
17
  Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
22
- var service_8 = require("./modules/logistics/service");
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; } });
18
+ var service_6 = require("./modules/logistics/service");
19
+ Object.defineProperty(exports, "logisticsService", { enumerable: true, get: function () { return service_6.logisticsService; } });
26
20
  var enum_2 = require("./enum");
27
21
  Object.defineProperty(exports, "DEMO_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
28
22
  // 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
@@ -246,8 +246,8 @@ export declare namespace AllocationOrderTypes {
246
246
  list: Entity.AllocationOrderWithExtension[];
247
247
  totalCount: number;
248
248
  pendingCount: number;
249
+ partialCount: number;
249
250
  shippedCount: number;
250
- invalidCount: number;
251
251
  }
252
252
  /**
253
253
  * 获取配货单详情响应
@@ -55,14 +55,6 @@ 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;
66
58
  /** 应配货量 */
67
59
  expectedQuantity?: number;
68
60
  /** 仓库实发 */
@@ -74,6 +66,10 @@ export declare namespace Service {
74
66
  interface StockInOrder {
75
67
  /** 入库单ID */
76
68
  id: string;
69
+ /** 物流信息 */
70
+ logistics: string;
71
+ /** 供应商名称 */
72
+ supplyName: string;
77
73
  /** 仓库ID */
78
74
  warehouseId: string;
79
75
  /** 门店ID */
@@ -84,6 +80,8 @@ export declare namespace Service {
84
80
  creator: string;
85
81
  /** 更新人 */
86
82
  updater: string;
83
+ /** 类型:WAREHOUSE:仓库, STORE:门店 */
84
+ type: string;
87
85
  /** 状态 PENDING:待收货, PARTIAL:部分收货, RECEIVED:已收货, EARLY_COMPLETED:提前完成 */
88
86
  status: string;
89
87
  /** 物流状态:0-没有物流信息、1-已入库、2-已到店、3-配送中 */
@@ -104,7 +102,7 @@ export declare namespace Service {
104
102
  createdAt: number;
105
103
  /** 更新时间 */
106
104
  updatedAt: number;
107
- /** 批次编码(入库单id) */
105
+ /** 批次编码(从 EcsDistributionBatch 表查询,targetId 对应入库单 id) */
108
106
  code?: string;
109
107
  /** 商品列表(只包含必要字段:productId, productName, productImage) */
110
108
  products?: ProductBasicInfo[];
@@ -54,14 +54,6 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
54
54
  * 批量修改配货数量
55
55
  */
56
56
  batchUpdatePickingNum(request: PreAllocationOrderTypes.Request.BatchUpdatePickingNum): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingNum>;
57
- /**
58
- * 批量填写配货备注
59
- */
60
- batchUpdatePickingRemark(request: PreAllocationOrderTypes.Request.BatchUpdatePickingRemark): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingRemark>;
61
- /**
62
- * 批量添加商品到预配货单
63
- */
64
- batchAddProducts(request: PreAllocationOrderTypes.Request.BatchAddProducts): Promise<PreAllocationOrderTypes.Response.BatchAddProducts>;
65
57
  /**
66
58
  * 查询预配货单商品明细
67
59
  */
@@ -69,7 +61,7 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
69
61
  /**
70
62
  * 导出预配货单
71
63
  */
72
- exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
64
+ exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
73
65
  /**
74
66
  * 删除预配货单
75
67
  */
@@ -99,18 +99,6 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
99
99
  batchUpdatePickingNum(request) {
100
100
  return (0, http_1.callApi)(this.getApiUrl(this.batchUpdatePickingNum), request);
101
101
  }
102
- /**
103
- * 批量填写配货备注
104
- */
105
- batchUpdatePickingRemark(request) {
106
- return (0, http_1.callApi)(this.getApiUrl(this.batchUpdatePickingRemark), request);
107
- }
108
- /**
109
- * 批量添加商品到预配货单
110
- */
111
- batchAddProducts(request) {
112
- return (0, http_1.callApi)(this.getApiUrl(this.batchAddProducts), request);
113
- }
114
102
  /**
115
103
  * 查询预配货单商品明细
116
104
  */
@@ -120,8 +108,8 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
120
108
  /**
121
109
  * 导出预配货单
122
110
  */
123
- exportExcel(request) {
124
- return (0, http_1.callApi)(this.getApiUrl(this.exportExcel), request);
111
+ exportPreAllocationOrders(request) {
112
+ return (0, http_1.callApi)(this.getApiUrl(this.exportPreAllocationOrders), request);
125
113
  }
126
114
  /**
127
115
  * 删除预配货单
@@ -194,22 +182,14 @@ __decorate([
194
182
  (0, tsoa_1.Post)('batch-update-picking-num'),
195
183
  __param(0, (0, tsoa_1.Body)())
196
184
  ], PreAllocationOrderService.prototype, "batchUpdatePickingNum", null);
197
- __decorate([
198
- (0, tsoa_1.Post)('batch-update-picking-remark'),
199
- __param(0, (0, tsoa_1.Body)())
200
- ], PreAllocationOrderService.prototype, "batchUpdatePickingRemark", null);
201
- __decorate([
202
- (0, tsoa_1.Post)('batch-add-products'),
203
- __param(0, (0, tsoa_1.Body)())
204
- ], PreAllocationOrderService.prototype, "batchAddProducts", null);
205
185
  __decorate([
206
186
  (0, tsoa_1.Post)('details'),
207
187
  __param(0, (0, tsoa_1.Body)())
208
188
  ], PreAllocationOrderService.prototype, "details", null);
209
189
  __decorate([
210
- (0, tsoa_1.Post)('export-excel'),
190
+ (0, tsoa_1.Post)('export'),
211
191
  __param(0, (0, tsoa_1.Body)())
212
- ], PreAllocationOrderService.prototype, "exportExcel", null);
192
+ ], PreAllocationOrderService.prototype, "exportPreAllocationOrders", null);
213
193
  __decorate([
214
194
  (0, tsoa_1.Post)('delete'),
215
195
  __param(0, (0, tsoa_1.Body)())
@@ -196,8 +196,7 @@ export declare namespace PreAllocationOrderTypes {
196
196
  }
197
197
  /** 搜索商品 */
198
198
  interface SearchProducts {
199
- warehouseId: string;
200
- batchNos?: string[];
199
+ batchIds?: string[];
201
200
  preAllocationOrderIds?: string[];
202
201
  productIds?: string[];
203
202
  skuCodes?: string[];
@@ -206,35 +205,15 @@ export declare namespace PreAllocationOrderTypes {
206
205
  }
207
206
  /** 批量修改配货数量 */
208
207
  interface BatchUpdatePickingNum {
209
- warehouseId: string;
210
- batchNos?: string[];
211
- preAllocationOrderIds?: string[];
208
+ preAllocationOrderIds: string[];
212
209
  adjustments: Array<{
213
- skuId: string;
214
- adjustmentType: 'ADD' | 'REDUCE' | 'SET';
210
+ skuCode: string;
211
+ adjustmentType: 'ADD' | 'REDUCE';
215
212
  adjustmentNum: number;
216
213
  adjustmentReason: string;
217
214
  }>;
218
215
  operator: string;
219
216
  }
220
- /** 批量填写配货备注 */
221
- interface BatchUpdatePickingRemark {
222
- warehouseId: string;
223
- batchNos?: string[];
224
- preAllocationOrderIds?: string[];
225
- pickingRemark: string;
226
- operator: string;
227
- }
228
- /** 批量添加商品到预配货单 */
229
- interface BatchAddProducts {
230
- preAllocationOrderId: string;
231
- products: Array<{
232
- skuId: string;
233
- pickingNum: number;
234
- pickingRemark?: string;
235
- }>;
236
- operator: string;
237
- }
238
217
  /** 查询预配货单商品明细 */
239
218
  interface GetPreAllocationOrderDetails {
240
219
  preAllocationOrderId: string;
@@ -245,9 +224,6 @@ export declare namespace PreAllocationOrderTypes {
245
224
  }
246
225
  /** 导出预配货单 */
247
226
  interface ExportPreAllocationOrders {
248
- warehouseId?: string;
249
- batchNos?: string[];
250
- preAllocationOrderIds?: string[];
251
227
  filters?: {
252
228
  batchNos?: string[];
253
229
  warehouseIds?: string[];
@@ -259,6 +235,8 @@ export declare namespace PreAllocationOrderTypes {
259
235
  batchStatus?: number;
260
236
  status?: number;
261
237
  };
238
+ batchIds?: string[];
239
+ preAllocationOrderIds?: string[];
262
240
  pageIndex?: number;
263
241
  pageSize?: number;
264
242
  }
@@ -376,22 +354,6 @@ export declare namespace PreAllocationOrderTypes {
376
354
  message: string;
377
355
  data: null;
378
356
  }
379
- /** 批量填写配货备注响应 */
380
- interface BatchUpdatePickingRemark {
381
- code: number;
382
- message: string;
383
- data: null;
384
- }
385
- /** 批量添加商品到预配货单响应 */
386
- interface BatchAddProducts {
387
- code: number;
388
- message: string;
389
- data: {
390
- addedCount: number;
391
- updatedCount: number;
392
- skippedCount: number;
393
- };
394
- }
395
357
  /** 查询预配货单商品明细响应 */
396
358
  interface GetPreAllocationOrderDetails {
397
359
  code: number;
@@ -481,7 +443,7 @@ export declare namespace PreAllocationOrderTypes {
481
443
  /** 查询预配货单商品明细 */
482
444
  details(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
483
445
  /** 导出预配货单 */
484
- exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
446
+ exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
485
447
  /** 删除预配货单 */
486
448
  delete(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
487
449
  /** 删除预配货单明细 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-plan-allocation-service-node-sdk",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,8 +0,0 @@
1
- import { ProductStatisticsTypes } from './types';
2
- import BaseService from '../BaseService';
3
- declare class ProductStatisticsService extends BaseService implements ProductStatisticsTypes.ProductStatisticsController {
4
- protected prefixUrl: string;
5
- getStockInProductStats(request: ProductStatisticsTypes.Request.GetStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
6
- }
7
- export declare const productStatisticsService: ProductStatisticsService;
8
- export default productStatisticsService;
@@ -1,37 +0,0 @@
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.productStatisticsService = void 0;
16
- const tsoa_1 = require("tsoa");
17
- const http_1 = require("../../utils/http");
18
- const BaseService_1 = __importDefault(require("../BaseService"));
19
- let ProductStatisticsService = class ProductStatisticsService extends BaseService_1.default {
20
- constructor() {
21
- super(...arguments);
22
- this.prefixUrl = '/product-statistics';
23
- }
24
- getStockInProductStats(request) {
25
- return (0, http_1.callApi)(this.getApiUrl(this.getStockInProductStats), request);
26
- }
27
- };
28
- __decorate([
29
- (0, tsoa_1.Post)('get-stock-in-product-stats'),
30
- __param(0, (0, tsoa_1.Body)())
31
- ], ProductStatisticsService.prototype, "getStockInProductStats", null);
32
- ProductStatisticsService = __decorate([
33
- (0, tsoa_1.Route)('ProductStatistics'),
34
- (0, tsoa_1.Tags)('productStatistics')
35
- ], ProductStatisticsService);
36
- exports.productStatisticsService = new ProductStatisticsService();
37
- exports.default = exports.productStatisticsService;
@@ -1,39 +0,0 @@
1
- export declare namespace ProductStatisticsTypes {
2
- /** 实体定义 */
3
- namespace Entity {
4
- /** 入库单商品统计项 */
5
- interface StockInProductStat {
6
- productId: string;
7
- productName: string;
8
- price: number;
9
- productImage: string;
10
- classification: string;
11
- storageMethod: string;
12
- dispatchType: string;
13
- pickType: string;
14
- }
15
- }
16
- /** 请求定义 */
17
- namespace Request {
18
- /** 查询入库单商品统计请求 */
19
- interface GetStockInProductStats {
20
- storeId: string;
21
- updatedAtStart?: number;
22
- updatedAtEnd?: number;
23
- pageIndex: number;
24
- pageSize: number;
25
- }
26
- }
27
- /** 响应定义 */
28
- namespace Response {
29
- /** 查询入库单商品统计响应 */
30
- interface GetStockInProductStats {
31
- products: Entity.StockInProductStat[];
32
- }
33
- }
34
- /** ProductStatistics Controller 接口定义 */
35
- interface ProductStatisticsController {
36
- /** 查询入库单商品统计 */
37
- getStockInProductStats(request: ProductStatisticsTypes.Request.GetStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
38
- }
39
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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
- getProductFulfillDetails(request: StoreProductFulfillTypes.Request.GetProductFulfillDetails): Promise<StoreProductFulfillTypes.Response.GetProductFulfillDetails>;
7
- }
8
- export declare const storeProductFulfillService: StoreProductFulfillService;
9
- export default storeProductFulfillService;
@@ -1,44 +0,0 @@
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
- getProductFulfillDetails(request) {
28
- return (0, http_1.callApi)(this.getApiUrl(this.getProductFulfillDetails), request);
29
- }
30
- };
31
- __decorate([
32
- (0, tsoa_1.Post)('get-store-products'),
33
- __param(0, (0, tsoa_1.Body)())
34
- ], StoreProductFulfillService.prototype, "getStoreProducts", null);
35
- __decorate([
36
- (0, tsoa_1.Post)('get-product-fulfill-details'),
37
- __param(0, (0, tsoa_1.Body)())
38
- ], StoreProductFulfillService.prototype, "getProductFulfillDetails", null);
39
- StoreProductFulfillService = __decorate([
40
- (0, tsoa_1.Route)('StoreProductFulfill'),
41
- (0, tsoa_1.Tags)('storeProductFulfill')
42
- ], StoreProductFulfillService);
43
- exports.storeProductFulfillService = new StoreProductFulfillService();
44
- exports.default = exports.storeProductFulfillService;
@@ -1,90 +0,0 @@
1
- export declare namespace StoreProductFulfillTypes {
2
- /** 门店商品履约商品项 */
3
- interface StoreProductItem {
4
- productId: string;
5
- productName: string;
6
- productImage: string;
7
- skuId: string;
8
- skuCode: string;
9
- specName: string;
10
- storeId: string;
11
- storeName: string;
12
- price: number;
13
- classification: string;
14
- storageMethod: string;
15
- pickType: string;
16
- dispatchType: string;
17
- }
18
- /** 入库记录项 */
19
- interface StockInItem {
20
- allocationOrderId: string;
21
- stockInOrderId: string;
22
- stockInTime: number;
23
- stockInQty: number;
24
- }
25
- /** 补货提示项 */
26
- interface ReplenishTipItem {
27
- replenishOrderId: string;
28
- replenishQty: number;
29
- type: string;
30
- }
31
- /** 人工调整提示项 */
32
- interface ManualAdjustTipItem {
33
- adjustReason: string;
34
- adjustQty: number;
35
- operator: string;
36
- }
37
- /** 商品履约明细项 */
38
- interface ProductFulfillDetailItem {
39
- batchNo: string;
40
- plannedQty: number;
41
- salesQty: number;
42
- replenishQty: number;
43
- unVerifiedReturnQty: number;
44
- manualAdjustQty: number;
45
- stockInQty: number;
46
- stockInList: StockInItem[];
47
- replenishTips: ReplenishTipItem[];
48
- manualAdjustTips: ManualAdjustTipItem[];
49
- }
50
- /** 请求定义 */
51
- namespace Request {
52
- /** 获取门店入库商品列表请求(按 skuId 合并) */
53
- interface GetStoreProducts {
54
- storeIds?: string[];
55
- productIds?: string[];
56
- skuCodes?: string[];
57
- pageIndex: number;
58
- pageSize: number;
59
- }
60
- /** 获取商品履约明细请求 */
61
- interface GetProductFulfillDetails {
62
- storeId: string;
63
- skuId: string;
64
- productId: string;
65
- batchNo?: string;
66
- replenishOrderId?: string;
67
- allocationOrderId?: string;
68
- }
69
- }
70
- /** 响应定义 */
71
- namespace Response {
72
- /** 获取门店入库商品列表响应 */
73
- interface GetStoreProducts {
74
- total: number;
75
- list: StoreProductItem[];
76
- }
77
- /** 获取商品履约明细响应 */
78
- interface GetProductFulfillDetails {
79
- productInfo: StoreProductItem;
80
- list: ProductFulfillDetailItem[];
81
- }
82
- }
83
- /** StoreProductFulfill Controller 接口定义 */
84
- interface StoreProductFulfillController {
85
- /** 获取门店入库商品列表(按 skuId 合并) */
86
- getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
87
- /** 获取商品履约明细 */
88
- getProductFulfillDetails(request: Request.GetProductFulfillDetails): Promise<Response.GetProductFulfillDetails>;
89
- }
90
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,43 +0,0 @@
1
- import { StoreReplenishOrderTypes } from './types';
2
- import BaseService from '../BaseService';
3
- declare class StoreReplenishOrderService extends BaseService implements StoreReplenishOrderTypes.StoreReplenishOrderController {
4
- protected prefixUrl: string;
5
- /**
6
- * 申请补货
7
- */
8
- applyReplenish(request: StoreReplenishOrderTypes.Request.ApplyReplenish): Promise<void>;
9
- /**
10
- * 撤销补货申请
11
- */
12
- cancelReplenish(request: StoreReplenishOrderTypes.Request.CancelReplenish): Promise<void>;
13
- /**
14
- * 查询补货申请历史
15
- */
16
- getReplenishHistory(request: StoreReplenishOrderTypes.Request.GetReplenishHistory): Promise<StoreReplenishOrderTypes.Response.GetReplenishHistory>;
17
- /**
18
- * 获取补货单详情
19
- */
20
- getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
21
- /**
22
- * 获取补货审批列表
23
- */
24
- getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
25
- /**
26
- * 批量拒绝补货申请
27
- */
28
- batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
29
- /**
30
- * 审批通过补货申请
31
- */
32
- approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
33
- /**
34
- * 撤销审批
35
- */
36
- revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
37
- /**
38
- * 更新审批理由
39
- */
40
- updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
41
- }
42
- export declare const storeReplenishOrderService: StoreReplenishOrderService;
43
- export default storeReplenishOrderService;
@@ -1,120 +0,0 @@
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.storeReplenishOrderService = void 0;
16
- const tsoa_1 = require("tsoa");
17
- const http_1 = require("../../utils/http");
18
- const BaseService_1 = __importDefault(require("../BaseService"));
19
- let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseService_1.default {
20
- constructor() {
21
- super(...arguments);
22
- this.prefixUrl = '/store-replenish-order';
23
- }
24
- /**
25
- * 申请补货
26
- */
27
- applyReplenish(request) {
28
- return (0, http_1.callApi)(this.getApiUrl(this.applyReplenish), request);
29
- }
30
- /**
31
- * 撤销补货申请
32
- */
33
- cancelReplenish(request) {
34
- return (0, http_1.callApi)(this.getApiUrl(this.cancelReplenish), request);
35
- }
36
- /**
37
- * 查询补货申请历史
38
- */
39
- getReplenishHistory(request) {
40
- return (0, http_1.callApi)(this.getApiUrl(this.getReplenishHistory), request);
41
- }
42
- /**
43
- * 获取补货单详情
44
- */
45
- getReplenishDetail(request) {
46
- return (0, http_1.callApi)(this.getApiUrl(this.getReplenishDetail), request);
47
- }
48
- /**
49
- * 获取补货审批列表
50
- */
51
- getApprovalList(request) {
52
- return (0, http_1.callApi)(this.getApiUrl(this.getApprovalList), request);
53
- }
54
- /**
55
- * 批量拒绝补货申请
56
- */
57
- batchReject(request) {
58
- return (0, http_1.callApi)(this.getApiUrl(this.batchReject), request);
59
- }
60
- /**
61
- * 审批通过补货申请
62
- */
63
- approveReplenish(request) {
64
- return (0, http_1.callApi)(this.getApiUrl(this.approveReplenish), request);
65
- }
66
- /**
67
- * 撤销审批
68
- */
69
- revokeApproval(request) {
70
- return (0, http_1.callApi)(this.getApiUrl(this.revokeApproval), request);
71
- }
72
- /**
73
- * 更新审批理由
74
- */
75
- updateApprovalReason(request) {
76
- return (0, http_1.callApi)(this.getApiUrl(this.updateApprovalReason), request);
77
- }
78
- };
79
- __decorate([
80
- (0, tsoa_1.Post)('apply-replenish'),
81
- __param(0, (0, tsoa_1.Body)())
82
- ], StoreReplenishOrderService.prototype, "applyReplenish", null);
83
- __decorate([
84
- (0, tsoa_1.Post)('cancel-replenish'),
85
- __param(0, (0, tsoa_1.Body)())
86
- ], StoreReplenishOrderService.prototype, "cancelReplenish", null);
87
- __decorate([
88
- (0, tsoa_1.Post)('get-replenish-history'),
89
- __param(0, (0, tsoa_1.Body)())
90
- ], StoreReplenishOrderService.prototype, "getReplenishHistory", null);
91
- __decorate([
92
- (0, tsoa_1.Post)('get-replenish-detail'),
93
- __param(0, (0, tsoa_1.Body)())
94
- ], StoreReplenishOrderService.prototype, "getReplenishDetail", null);
95
- __decorate([
96
- (0, tsoa_1.Post)('get-approval-list'),
97
- __param(0, (0, tsoa_1.Body)())
98
- ], StoreReplenishOrderService.prototype, "getApprovalList", null);
99
- __decorate([
100
- (0, tsoa_1.Post)('batch-reject'),
101
- __param(0, (0, tsoa_1.Body)())
102
- ], StoreReplenishOrderService.prototype, "batchReject", null);
103
- __decorate([
104
- (0, tsoa_1.Post)('approve-replenish'),
105
- __param(0, (0, tsoa_1.Body)())
106
- ], StoreReplenishOrderService.prototype, "approveReplenish", null);
107
- __decorate([
108
- (0, tsoa_1.Post)('revoke-approval'),
109
- __param(0, (0, tsoa_1.Body)())
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);
115
- StoreReplenishOrderService = __decorate([
116
- (0, tsoa_1.Route)('StoreReplenishOrder'),
117
- (0, tsoa_1.Tags)('storeReplenishOrder')
118
- ], StoreReplenishOrderService);
119
- exports.storeReplenishOrderService = new StoreReplenishOrderService();
120
- exports.default = exports.storeReplenishOrderService;
@@ -1,193 +0,0 @@
1
- export declare namespace StoreReplenishOrderTypes {
2
- /** 实体定义 */
3
- namespace Entity {
4
- /** 媒体文件 */
5
- interface MediaFile {
6
- url: string;
7
- type: string;
8
- }
9
- /** 补货申请历史列表项(轻量级) */
10
- interface ReplenishHistoryItem {
11
- id: string;
12
- status: string;
13
- productName: string;
14
- productImage?: string;
15
- specName?: string;
16
- createdAt: number;
17
- applyNum: number;
18
- }
19
- /** 补货审批列表项 */
20
- interface ReplenishApprovalItem {
21
- id: string;
22
- applyType: string;
23
- storeName: string;
24
- productImage?: string;
25
- productName: string;
26
- productId: string;
27
- skuId: string;
28
- specName: string;
29
- skuCode: string;
30
- dispatchType: string;
31
- applyNum: number;
32
- approvalNum: number;
33
- status: string;
34
- createdAt: number;
35
- approvalTime?: number;
36
- }
37
- }
38
- /** 请求参数定义 */
39
- namespace Request {
40
- /** 申请补货 */
41
- interface ApplyReplenish {
42
- productId: string;
43
- skuId: string;
44
- stockInOrderId?: string;
45
- applyNum: number;
46
- applyReason: string;
47
- mediaFiles?: Entity.MediaFile[];
48
- operator: string;
49
- storeId: string;
50
- }
51
- /** 撤销补货申请 */
52
- interface CancelReplenish {
53
- id: string;
54
- }
55
- /** 查询补货申请历史 */
56
- interface GetReplenishHistory {
57
- storeId: string;
58
- status?: string;
59
- productName?: string;
60
- productIds?: string[];
61
- createdAtStart?: number;
62
- createdAtEnd?: number;
63
- pageIndex?: number;
64
- pageSize?: number;
65
- }
66
- /** 获取补货单详情 */
67
- interface GetReplenishDetail {
68
- id: string;
69
- }
70
- /** 获取补货审批列表 */
71
- interface GetApprovalList {
72
- pageIndex?: number;
73
- pageSize?: number;
74
- storeIds?: string[];
75
- productIds?: string[];
76
- skuCodes?: string[];
77
- createdAtStart?: number;
78
- createdAtEnd?: number;
79
- applyType?: string;
80
- ids?: string[];
81
- status?: string;
82
- approvalTimeStart?: number;
83
- approvalTimeEnd?: number;
84
- }
85
- /** 批量拒绝补货申请 */
86
- interface BatchReject {
87
- ids: string[];
88
- reason: string;
89
- operator: string;
90
- }
91
- /** 审批通过补货申请 */
92
- interface ApproveReplenish {
93
- id: string;
94
- status: string;
95
- lossType?: string;
96
- approvalNum?: number;
97
- approvalReason: string;
98
- operator: string;
99
- }
100
- /** 更新审批理由 */
101
- interface UpdateApprovalReason {
102
- id: string;
103
- approvalReason: string;
104
- operator: string;
105
- }
106
- /** 撤销审批 */
107
- interface RevokeApproval {
108
- id: string;
109
- reason: string;
110
- operator: string;
111
- }
112
- }
113
- /** 响应结果定义 */
114
- namespace Response {
115
- /** 查询补货申请历史响应 */
116
- interface GetReplenishHistory {
117
- list: Entity.ReplenishHistoryItem[];
118
- total: number;
119
- }
120
- /** 获取补货审批列表响应 */
121
- interface GetApprovalList {
122
- list: Entity.ReplenishApprovalItem[];
123
- total: number;
124
- totalCount: number;
125
- pendingCount: number;
126
- rejectCount: number;
127
- approveCount: number;
128
- }
129
- /** 获取补货单详情响应 */
130
- interface GetReplenishDetail {
131
- /** 补货单基础信息 */
132
- baseInfo: {
133
- id: string;
134
- status: string;
135
- createdAt: number;
136
- storeId: string;
137
- storeName: string;
138
- };
139
- /** 商品信息 */
140
- productInfo: {
141
- productId: string;
142
- skuId: string;
143
- skuCode: string;
144
- productName: string;
145
- dispatchType: string;
146
- specName: string;
147
- productImage?: string;
148
- };
149
- /** 申请信息 */
150
- applyInfo: {
151
- applyReason: string;
152
- applyNum: number;
153
- mediaFiles?: Entity.MediaFile[];
154
- };
155
- /** 审批信息 */
156
- approvalInfo?: {
157
- approvalReason?: string;
158
- lossType?: string;
159
- approvalNum?: number;
160
- batchNo?: string;
161
- approvalTime?: number;
162
- };
163
- /** 审批记录 */
164
- approvalRecords?: Array<{
165
- approver: string;
166
- approvalTime: number;
167
- reason: string;
168
- status: string;
169
- }>;
170
- }
171
- }
172
- /** StoreReplenishOrder Controller 接口定义 */
173
- interface StoreReplenishOrderController {
174
- /** 申请补货 */
175
- applyReplenish(request: StoreReplenishOrderTypes.Request.ApplyReplenish): Promise<void>;
176
- /** 撤销补货申请 */
177
- cancelReplenish(request: StoreReplenishOrderTypes.Request.CancelReplenish): Promise<void>;
178
- /** 查询补货申请历史 */
179
- getReplenishHistory(request: StoreReplenishOrderTypes.Request.GetReplenishHistory): Promise<StoreReplenishOrderTypes.Response.GetReplenishHistory>;
180
- /** 获取补货单详情 */
181
- getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
182
- /** 获取补货审批列表 */
183
- getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
184
- /** 批量拒绝补货申请 */
185
- batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
186
- /** 审批通过补货申请 */
187
- approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
188
- /** 撤销审批 */
189
- revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
190
- /** 更新审批理由 */
191
- updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
192
- }
193
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });