@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.39 → 0.0.40

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,6 +37,7 @@ 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: "存在待审批或已通过的补货申请,需先撤回补货申请才能确认入库";
40
41
  };
41
42
  /** 状态转换规则 */
42
43
  const STATUS_TRANSITIONS: {
@@ -51,13 +52,15 @@ export declare namespace ENUM {
51
52
  PENDING = "PENDING",
52
53
  PARTIAL = "PARTIAL",
53
54
  SHIPPED = "SHIPPED",
54
- EARLY_COMPLETED = "EARLY_COMPLETED"
55
+ EARLY_COMPLETED = "EARLY_COMPLETED",
56
+ INVALID = "INVALID"
55
57
  }
56
58
  enum STATUS_CHINESE {
57
59
  PENDING = "\u5F85\u53D1\u8D27",
58
60
  PARTIAL = "\u90E8\u5206\u53D1\u8D27",
59
61
  SHIPPED = "\u5DF2\u53D1\u8D27",
60
- EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210"
62
+ EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210",
63
+ INVALID = "\u5DF2\u5931\u6548"
61
64
  }
62
65
  /** 错误消息常量 */
63
66
  const ERROR_MESSAGES: {
@@ -125,6 +128,72 @@ export declare namespace ENUM {
125
128
  readonly RECORD_NOT_FOUND: "上传记录不存在";
126
129
  };
127
130
  }
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 = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
150
+ ACTIVE_APPLY = "\u95E8\u5E97\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_QUANTITY_EXCEEDS_REMAINING: "申请数量不能大于剩余待收数量";
192
+ readonly STOCK_IN_ORDER_DETAIL_NOT_FOUND: "入库单中未找到对应的SKU明细";
193
+ readonly APPLY_FAILED: "补货申请失败,请稍后重试";
194
+ readonly ALREADY_APPLIED: "该入库单已经申请过补货,无法再次发起申请";
195
+ };
196
+ }
128
197
  namespace PRE_ALLOCATION_ORDER_ENUM {
129
198
  /** 预配货单状态(数字类型) */
130
199
  enum STATUS {
@@ -171,6 +240,12 @@ export declare namespace ENUM {
171
240
  STORE_STOCK_IN_REPLENISH = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
172
241
  STORE_ACTIVE_APPLY = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
173
242
  }
243
+ const SOURCE_TYPE_MAP: {
244
+ readonly 1: SOURCE_TYPE_CHINESE.ORDER_WITH_COUPON;
245
+ readonly 2: SOURCE_TYPE_CHINESE.MANUAL_IMPORT;
246
+ readonly 3: SOURCE_TYPE_CHINESE.STORE_STOCK_IN_REPLENISH;
247
+ readonly 4: SOURCE_TYPE_CHINESE.STORE_ACTIVE_APPLY;
248
+ };
174
249
  /** 错误消息常量 */
175
250
  const ERROR_MESSAGES: {
176
251
  readonly ORDER_NOT_FOUND: "预配货单不存在";
package/enum.js CHANGED
@@ -47,6 +47,7 @@ var ENUM;
47
47
  DETAIL_NOT_FOUND: '入库单明细不存在',
48
48
  SKU_NOT_FOUND: 'SKU编码在入库单中不存在',
49
49
  EMPTY_QUANTITY: '入库商品列表数量不能全部为0',
50
+ HAS_PENDING_OR_APPROVED_REPLENISH: '存在待审批或已通过的补货申请,需先撤回补货申请才能确认入库',
50
51
  };
51
52
  /** 状态转换规则 */
52
53
  STORE_STOCK_IN_ORDER_ENUM.STATUS_TRANSITIONS = {
@@ -64,6 +65,7 @@ var ENUM;
64
65
  STATUS["PARTIAL"] = "PARTIAL";
65
66
  STATUS["SHIPPED"] = "SHIPPED";
66
67
  STATUS["EARLY_COMPLETED"] = "EARLY_COMPLETED";
68
+ STATUS["INVALID"] = "INVALID";
67
69
  })(STATUS = ALLOCATION_ORDER_ENUM.STATUS || (ALLOCATION_ORDER_ENUM.STATUS = {}));
68
70
  let STATUS_CHINESE;
69
71
  (function (STATUS_CHINESE) {
@@ -71,6 +73,7 @@ var ENUM;
71
73
  STATUS_CHINESE["PARTIAL"] = "\u90E8\u5206\u53D1\u8D27";
72
74
  STATUS_CHINESE["SHIPPED"] = "\u5DF2\u53D1\u8D27";
73
75
  STATUS_CHINESE["EARLY_COMPLETED"] = "\u63D0\u524D\u5B8C\u6210";
76
+ STATUS_CHINESE["INVALID"] = "\u5DF2\u5931\u6548";
74
77
  })(STATUS_CHINESE = ALLOCATION_ORDER_ENUM.STATUS_CHINESE || (ALLOCATION_ORDER_ENUM.STATUS_CHINESE = {}));
75
78
  /** 错误消息常量 */
76
79
  ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
@@ -144,6 +147,79 @@ var ENUM;
144
147
  RECORD_NOT_FOUND: '上传记录不存在',
145
148
  };
146
149
  })(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"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
174
+ APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u95E8\u5E97\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_QUANTITY_EXCEEDS_REMAINING: '申请数量不能大于剩余待收数量',
218
+ STOCK_IN_ORDER_DETAIL_NOT_FOUND: '入库单中未找到对应的SKU明细',
219
+ APPLY_FAILED: '补货申请失败,请稍后重试',
220
+ ALREADY_APPLIED: '该入库单已经申请过补货,无法再次发起申请',
221
+ };
222
+ })(STORE_REPLENISH_ORDER_ENUM = ENUM.STORE_REPLENISH_ORDER_ENUM || (ENUM.STORE_REPLENISH_ORDER_ENUM = {}));
147
223
  let PRE_ALLOCATION_ORDER_ENUM;
148
224
  (function (PRE_ALLOCATION_ORDER_ENUM) {
149
225
  /** 预配货单状态(数字类型) */
@@ -197,6 +273,12 @@ var ENUM;
197
273
  SOURCE_TYPE_CHINESE["STORE_STOCK_IN_REPLENISH"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
198
274
  SOURCE_TYPE_CHINESE["STORE_ACTIVE_APPLY"] = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
199
275
  })(SOURCE_TYPE_CHINESE = PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE || (PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE = {}));
276
+ PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_MAP = {
277
+ [SOURCE_TYPE.ORDER_WITH_COUPON]: SOURCE_TYPE_CHINESE.ORDER_WITH_COUPON,
278
+ [SOURCE_TYPE.MANUAL_IMPORT]: SOURCE_TYPE_CHINESE.MANUAL_IMPORT,
279
+ [SOURCE_TYPE.STORE_STOCK_IN_REPLENISH]: SOURCE_TYPE_CHINESE.STORE_STOCK_IN_REPLENISH,
280
+ [SOURCE_TYPE.STORE_ACTIVE_APPLY]: SOURCE_TYPE_CHINESE.STORE_ACTIVE_APPLY,
281
+ };
200
282
  /** 错误消息常量 */
201
283
  PRE_ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
202
284
  ORDER_NOT_FOUND: '预配货单不存在',
package/index.d.ts CHANGED
@@ -6,9 +6,15 @@ 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';
9
13
  export { pickingRuleService } from './modules/pickingRule/service';
10
14
  export { PickingRuleTypes } from './modules/pickingRule/types';
11
15
  export { ENUM } from './enum';
12
16
  export { logisticsService } from './modules/logistics/service';
13
17
  export type { Service as LogisticsServiceTypes } from './modules/logistics/types';
18
+ export { storeProductFulfillService } from './modules/storeProductFulfill/service';
19
+ export { StoreProductFulfillTypes } from './modules/storeProductFulfill/types';
14
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.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");
@@ -9,14 +9,20 @@ 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/pickingRule/service");
13
- Object.defineProperty(exports, "pickingRuleService", { enumerable: true, get: function () { return service_5.pickingRuleService; } });
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; } });
14
18
  var types_1 = require("./modules/pickingRule/types");
15
19
  Object.defineProperty(exports, "PickingRuleTypes", { enumerable: true, get: function () { return types_1.PickingRuleTypes; } });
16
20
  var enum_1 = require("./enum");
17
21
  Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
18
- var service_6 = require("./modules/logistics/service");
19
- Object.defineProperty(exports, "logisticsService", { enumerable: true, get: function () { return service_6.logisticsService; } });
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; } });
20
26
  var enum_2 = require("./enum");
21
27
  Object.defineProperty(exports, "DEMO_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
22
28
  // 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
@@ -94,6 +94,7 @@ export declare namespace AllocationOrderTypes {
94
94
  shippedAtStart?: number;
95
95
  shippedAtEnd?: number;
96
96
  productIds?: string[];
97
+ skuIds?: string[];
97
98
  skuCodes?: string[];
98
99
  warehouseIds?: string[];
99
100
  storeIds?: string[];
@@ -108,6 +109,7 @@ export declare namespace AllocationOrderTypes {
108
109
  pageIndex: number;
109
110
  pageSize: number;
110
111
  productIds?: string[];
112
+ skuIds?: string[];
111
113
  skuCodes?: string[];
112
114
  minRemainNum?: number;
113
115
  maxRemainNum?: number;
@@ -159,6 +161,7 @@ export declare namespace AllocationOrderTypes {
159
161
  shippedAtStart?: number;
160
162
  shippedAtEnd?: number;
161
163
  productIds?: string[];
164
+ skuIds?: string[];
162
165
  skuCodes?: string[];
163
166
  storeIds?: string[];
164
167
  warehouseIds?: string[];
@@ -246,8 +249,8 @@ export declare namespace AllocationOrderTypes {
246
249
  list: Entity.AllocationOrderWithExtension[];
247
250
  totalCount: number;
248
251
  pendingCount: number;
249
- partialCount: number;
250
252
  shippedCount: number;
253
+ invalidCount: number;
251
254
  }
252
255
  /**
253
256
  * 获取配货单详情响应
@@ -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
  /** 仓库实发 */
@@ -66,10 +74,6 @@ export declare namespace Service {
66
74
  interface StockInOrder {
67
75
  /** 入库单ID */
68
76
  id: string;
69
- /** 物流信息 */
70
- logistics: string;
71
- /** 供应商名称 */
72
- supplyName: string;
73
77
  /** 仓库ID */
74
78
  warehouseId: string;
75
79
  /** 门店ID */
@@ -80,8 +84,6 @@ export declare namespace Service {
80
84
  creator: string;
81
85
  /** 更新人 */
82
86
  updater: string;
83
- /** 类型:WAREHOUSE:仓库, STORE:门店 */
84
- type: string;
85
87
  /** 状态 PENDING:待收货, PARTIAL:部分收货, RECEIVED:已收货, EARLY_COMPLETED:提前完成 */
86
88
  status: string;
87
89
  /** 物流状态:0-没有物流信息、1-已入库、2-已到店、3-配送中 */
@@ -102,7 +104,7 @@ export declare namespace Service {
102
104
  createdAt: number;
103
105
  /** 更新时间 */
104
106
  updatedAt: number;
105
- /** 批次编码(从 EcsDistributionBatch 表查询,targetId 对应入库单 id) */
107
+ /** 批次编码(入库单id) */
106
108
  code?: string;
107
109
  /** 商品列表(只包含必要字段:productId, productName, productImage) */
108
110
  products?: ProductBasicInfo[];
@@ -68,7 +68,7 @@ export declare namespace PickingRuleTypes {
68
68
  /** 编辑拣货规则 */
69
69
  interface UpdatePickingRule {
70
70
  warehouseId?: string;
71
- skuCode: string;
71
+ skuId: string;
72
72
  weekDays?: number[];
73
73
  customDate?: {
74
74
  startTime: number;
@@ -79,7 +79,7 @@ export declare namespace PickingRuleTypes {
79
79
  /** 批量删除拣货规则 */
80
80
  interface DeletePickingRule {
81
81
  warehouseId?: string;
82
- skuCodes: string[];
82
+ skuIds: string[];
83
83
  updatedName: string;
84
84
  }
85
85
  /** 保存订单来源规则 */
@@ -54,6 +54,14 @@ 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>;
57
65
  /**
58
66
  * 查询预配货单商品明细
59
67
  */
@@ -61,7 +69,7 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
61
69
  /**
62
70
  * 导出预配货单
63
71
  */
64
- exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
72
+ exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
65
73
  /**
66
74
  * 删除预配货单
67
75
  */
@@ -99,6 +99,18 @@ 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
+ }
102
114
  /**
103
115
  * 查询预配货单商品明细
104
116
  */
@@ -108,8 +120,8 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
108
120
  /**
109
121
  * 导出预配货单
110
122
  */
111
- exportPreAllocationOrders(request) {
112
- return (0, http_1.callApi)(this.getApiUrl(this.exportPreAllocationOrders), request);
123
+ exportExcel(request) {
124
+ return (0, http_1.callApi)(this.getApiUrl(this.exportExcel), request);
113
125
  }
114
126
  /**
115
127
  * 删除预配货单
@@ -182,14 +194,22 @@ __decorate([
182
194
  (0, tsoa_1.Post)('batch-update-picking-num'),
183
195
  __param(0, (0, tsoa_1.Body)())
184
196
  ], 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);
185
205
  __decorate([
186
206
  (0, tsoa_1.Post)('details'),
187
207
  __param(0, (0, tsoa_1.Body)())
188
208
  ], PreAllocationOrderService.prototype, "details", null);
189
209
  __decorate([
190
- (0, tsoa_1.Post)('export'),
210
+ (0, tsoa_1.Post)('export-excel'),
191
211
  __param(0, (0, tsoa_1.Body)())
192
- ], PreAllocationOrderService.prototype, "exportPreAllocationOrders", null);
212
+ ], PreAllocationOrderService.prototype, "exportExcel", null);
193
213
  __decorate([
194
214
  (0, tsoa_1.Post)('delete'),
195
215
  __param(0, (0, tsoa_1.Body)())
@@ -161,6 +161,7 @@ export declare namespace PreAllocationOrderTypes {
161
161
  interface IInventoryWarningList {
162
162
  warehouseIds: string[];
163
163
  productIds?: string[];
164
+ skuIds?: string[];
164
165
  skuCodes?: string[];
165
166
  pageIndex: number;
166
167
  pageSize: number;
@@ -196,7 +197,8 @@ export declare namespace PreAllocationOrderTypes {
196
197
  }
197
198
  /** 搜索商品 */
198
199
  interface SearchProducts {
199
- batchIds?: string[];
200
+ warehouseId: string;
201
+ batchNos?: string[];
200
202
  preAllocationOrderIds?: string[];
201
203
  productIds?: string[];
202
204
  skuCodes?: string[];
@@ -205,15 +207,35 @@ export declare namespace PreAllocationOrderTypes {
205
207
  }
206
208
  /** 批量修改配货数量 */
207
209
  interface BatchUpdatePickingNum {
208
- preAllocationOrderIds: string[];
210
+ warehouseId: string;
211
+ batchNos?: string[];
212
+ preAllocationOrderIds?: string[];
209
213
  adjustments: Array<{
210
- skuCode: string;
211
- adjustmentType: 'ADD' | 'REDUCE';
214
+ skuId: string;
215
+ adjustmentType: 'ADD' | 'REDUCE' | 'SET';
212
216
  adjustmentNum: number;
213
217
  adjustmentReason: string;
214
218
  }>;
215
219
  operator: string;
216
220
  }
221
+ /** 批量填写配货备注 */
222
+ interface BatchUpdatePickingRemark {
223
+ warehouseId: string;
224
+ batchNos?: string[];
225
+ preAllocationOrderIds?: string[];
226
+ pickingRemark: string;
227
+ operator: string;
228
+ }
229
+ /** 批量添加商品到预配货单 */
230
+ interface BatchAddProducts {
231
+ preAllocationOrderId: string;
232
+ products: Array<{
233
+ skuId: string;
234
+ pickingNum: number;
235
+ pickingRemark?: string;
236
+ }>;
237
+ operator: string;
238
+ }
217
239
  /** 查询预配货单商品明细 */
218
240
  interface GetPreAllocationOrderDetails {
219
241
  preAllocationOrderId: string;
@@ -224,6 +246,9 @@ export declare namespace PreAllocationOrderTypes {
224
246
  }
225
247
  /** 导出预配货单 */
226
248
  interface ExportPreAllocationOrders {
249
+ warehouseId?: string;
250
+ batchNos?: string[];
251
+ preAllocationOrderIds?: string[];
227
252
  filters?: {
228
253
  batchNos?: string[];
229
254
  warehouseIds?: string[];
@@ -235,8 +260,6 @@ export declare namespace PreAllocationOrderTypes {
235
260
  batchStatus?: number;
236
261
  status?: number;
237
262
  };
238
- batchIds?: string[];
239
- preAllocationOrderIds?: string[];
240
263
  pageIndex?: number;
241
264
  pageSize?: number;
242
265
  }
@@ -354,6 +377,22 @@ export declare namespace PreAllocationOrderTypes {
354
377
  message: string;
355
378
  data: null;
356
379
  }
380
+ /** 批量填写配货备注响应 */
381
+ interface BatchUpdatePickingRemark {
382
+ code: number;
383
+ message: string;
384
+ data: null;
385
+ }
386
+ /** 批量添加商品到预配货单响应 */
387
+ interface BatchAddProducts {
388
+ code: number;
389
+ message: string;
390
+ data: {
391
+ addedCount: number;
392
+ updatedCount: number;
393
+ skippedCount: number;
394
+ };
395
+ }
357
396
  /** 查询预配货单商品明细响应 */
358
397
  interface GetPreAllocationOrderDetails {
359
398
  code: number;
@@ -443,7 +482,7 @@ export declare namespace PreAllocationOrderTypes {
443
482
  /** 查询预配货单商品明细 */
444
483
  details(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
445
484
  /** 导出预配货单 */
446
- exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
485
+ exportExcel(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
447
486
  /** 删除预配货单 */
448
487
  delete(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
449
488
  /** 删除预配货单明细 */
@@ -0,0 +1,8 @@
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;
@@ -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.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;
@@ -0,0 +1,39 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,44 @@
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;
@@ -0,0 +1,91 @@
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
+ skuIds?: string[];
57
+ skuCodes?: string[];
58
+ pageIndex: number;
59
+ pageSize: number;
60
+ }
61
+ /** 获取商品履约明细请求 */
62
+ interface GetProductFulfillDetails {
63
+ storeId: string;
64
+ skuId: string;
65
+ productId: string;
66
+ batchNo?: string;
67
+ replenishOrderId?: string;
68
+ allocationOrderId?: string;
69
+ }
70
+ }
71
+ /** 响应定义 */
72
+ namespace Response {
73
+ /** 获取门店入库商品列表响应 */
74
+ interface GetStoreProducts {
75
+ total: number;
76
+ list: StoreProductItem[];
77
+ }
78
+ /** 获取商品履约明细响应 */
79
+ interface GetProductFulfillDetails {
80
+ productInfo: StoreProductItem;
81
+ list: ProductFulfillDetailItem[];
82
+ }
83
+ }
84
+ /** StoreProductFulfill Controller 接口定义 */
85
+ interface StoreProductFulfillController {
86
+ /** 获取门店入库商品列表(按 skuId 合并) */
87
+ getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
88
+ /** 获取商品履约明细 */
89
+ getProductFulfillDetails(request: Request.GetProductFulfillDetails): Promise<Response.GetProductFulfillDetails>;
90
+ }
91
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
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;
@@ -0,0 +1,120 @@
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;
@@ -0,0 +1,197 @@
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
+ productId: string;
14
+ productName: string;
15
+ productImage?: string;
16
+ skuId: string;
17
+ skuCode: string;
18
+ specName?: string;
19
+ createdAt: number;
20
+ applyNum: number;
21
+ }
22
+ /** 补货审批列表项 */
23
+ interface ReplenishApprovalItem {
24
+ id: string;
25
+ applyType: string;
26
+ storeName: string;
27
+ productImage?: string;
28
+ productName: string;
29
+ productId: string;
30
+ skuId: string;
31
+ specName: string;
32
+ skuCode: string;
33
+ dispatchType: string;
34
+ applyNum: number;
35
+ approvalNum: number;
36
+ status: string;
37
+ createdAt: number;
38
+ approvalTime?: number;
39
+ }
40
+ }
41
+ /** 请求参数定义 */
42
+ namespace Request {
43
+ /** 申请补货 */
44
+ interface ApplyReplenish {
45
+ productId: string;
46
+ skuId: string;
47
+ stockInOrderId?: string;
48
+ applyNum: number;
49
+ applyReason: string;
50
+ mediaFiles?: Entity.MediaFile[];
51
+ operator: string;
52
+ storeId: string;
53
+ }
54
+ /** 撤销补货申请 */
55
+ interface CancelReplenish {
56
+ id: string;
57
+ }
58
+ /** 查询补货申请历史 */
59
+ interface GetReplenishHistory {
60
+ storeId: string;
61
+ status?: string;
62
+ productName?: string;
63
+ productIds?: string[];
64
+ createdAtStart?: number;
65
+ createdAtEnd?: number;
66
+ pageIndex?: number;
67
+ pageSize?: number;
68
+ }
69
+ /** 获取补货单详情 */
70
+ interface GetReplenishDetail {
71
+ id: string;
72
+ }
73
+ /** 获取补货审批列表 */
74
+ interface GetApprovalList {
75
+ pageIndex?: number;
76
+ pageSize?: number;
77
+ storeIds?: string[];
78
+ productIds?: string[];
79
+ skuIds?: string[];
80
+ skuCodes?: string[];
81
+ createdAtStart?: number;
82
+ createdAtEnd?: number;
83
+ applyType?: string;
84
+ ids?: string[];
85
+ status?: string;
86
+ approvalTimeStart?: number;
87
+ approvalTimeEnd?: number;
88
+ }
89
+ /** 批量拒绝补货申请 */
90
+ interface BatchReject {
91
+ ids: string[];
92
+ reason: string;
93
+ operator: string;
94
+ }
95
+ /** 审批通过补货申请 */
96
+ interface ApproveReplenish {
97
+ id: string;
98
+ status: string;
99
+ lossType?: string;
100
+ approvalNum?: number;
101
+ approvalReason: string;
102
+ operator: string;
103
+ }
104
+ /** 更新审批理由 */
105
+ interface UpdateApprovalReason {
106
+ id: string;
107
+ approvalReason: string;
108
+ operator: string;
109
+ }
110
+ /** 撤销审批 */
111
+ interface RevokeApproval {
112
+ id: string;
113
+ reason: string;
114
+ operator: string;
115
+ }
116
+ }
117
+ /** 响应结果定义 */
118
+ namespace Response {
119
+ /** 查询补货申请历史响应 */
120
+ interface GetReplenishHistory {
121
+ list: Entity.ReplenishHistoryItem[];
122
+ total: number;
123
+ }
124
+ /** 获取补货审批列表响应 */
125
+ interface GetApprovalList {
126
+ list: Entity.ReplenishApprovalItem[];
127
+ total: number;
128
+ totalCount: number;
129
+ pendingCount: number;
130
+ rejectCount: number;
131
+ approveCount: number;
132
+ }
133
+ /** 获取补货单详情响应 */
134
+ interface GetReplenishDetail {
135
+ /** 补货单基础信息 */
136
+ baseInfo: {
137
+ id: string;
138
+ status: string;
139
+ createdAt: number;
140
+ storeId: string;
141
+ storeName: string;
142
+ };
143
+ /** 商品信息 */
144
+ productInfo: {
145
+ productId: string;
146
+ skuId: string;
147
+ skuCode: string;
148
+ productName: string;
149
+ dispatchType: string;
150
+ specName: string;
151
+ productImage?: string;
152
+ };
153
+ /** 申请信息 */
154
+ applyInfo: {
155
+ applyReason: string;
156
+ applyNum: number;
157
+ mediaFiles?: Entity.MediaFile[];
158
+ };
159
+ /** 审批信息 */
160
+ approvalInfo?: {
161
+ approvalReason?: string;
162
+ lossType?: string;
163
+ approvalNum?: number;
164
+ batchNo?: string;
165
+ approvalTime?: number;
166
+ };
167
+ /** 审批记录 */
168
+ approvalRecords?: Array<{
169
+ approver: string;
170
+ approvalTime: number;
171
+ reason: string;
172
+ status: string;
173
+ }>;
174
+ }
175
+ }
176
+ /** StoreReplenishOrder Controller 接口定义 */
177
+ interface StoreReplenishOrderController {
178
+ /** 申请补货 */
179
+ applyReplenish(request: StoreReplenishOrderTypes.Request.ApplyReplenish): Promise<void>;
180
+ /** 撤销补货申请 */
181
+ cancelReplenish(request: StoreReplenishOrderTypes.Request.CancelReplenish): Promise<void>;
182
+ /** 查询补货申请历史 */
183
+ getReplenishHistory(request: StoreReplenishOrderTypes.Request.GetReplenishHistory): Promise<StoreReplenishOrderTypes.Response.GetReplenishHistory>;
184
+ /** 获取补货单详情 */
185
+ getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
186
+ /** 获取补货审批列表 */
187
+ getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
188
+ /** 批量拒绝补货申请 */
189
+ batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
190
+ /** 审批通过补货申请 */
191
+ approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
192
+ /** 撤销审批 */
193
+ revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
194
+ /** 更新审批理由 */
195
+ updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
196
+ }
197
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -71,6 +71,7 @@ export declare namespace StoreStockInTypes {
71
71
  pageIndex: number;
72
72
  pageSize: number;
73
73
  productIds?: string[];
74
+ skuIds?: string[];
74
75
  skuCodes?: string[];
75
76
  }
76
77
  /** 查询入库单列表请求 */
@@ -84,6 +85,7 @@ export declare namespace StoreStockInTypes {
84
85
  receivedTimeStart?: number;
85
86
  receivedTimeEnd?: number;
86
87
  productIds?: string[];
88
+ skuIds?: string[];
87
89
  skuCodes?: string[];
88
90
  storeIds?: string[];
89
91
  warehouseIds?: string[];
@@ -112,6 +114,7 @@ export declare namespace StoreStockInTypes {
112
114
  receivedTimeStart?: number;
113
115
  receivedTimeEnd?: number;
114
116
  productIds?: string[];
117
+ skuIds?: string[];
115
118
  skuCodes?: string[];
116
119
  storeIds?: string[];
117
120
  warehouseIds?: string[];
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.39",
3
+ "version": "0.0.40",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",