@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.50 → 0.0.51

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/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { AllocationOrderTypes } from './modules/allocationOrder/types';
6
6
  export { storeStockInService } from './modules/storeStockIn/service';
7
7
  export { StoreStockInTypes } from './modules/storeStockIn/types';
8
8
  export { preAllocationOrderService } from './modules/preAllocationOrder/service';
9
+ export { routingFailureService } from './modules/preAllocationOrder/routingFailureService';
9
10
  export { PreAllocationOrderTypes } from './modules/preAllocationOrder/types';
10
11
  export { storeReplenishOrderService } from './modules/storeReplenishOrder/service';
11
12
  export { StoreReplenishOrderTypes } from './modules/storeReplenishOrder/types';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.purchaseOrderService = exports.warehouseStockInService = exports.warehouseInventoryService = exports.warehouseLocationService = exports.storeProductFulfillService = exports.logisticsService = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = exports.ENUM = void 0;
3
+ exports.purchaseOrderService = exports.warehouseStockInService = exports.warehouseInventoryService = exports.warehouseLocationService = exports.storeProductFulfillService = exports.logisticsService = exports.PickingRuleTypes = exports.pickingRuleService = exports.productStatisticsService = exports.storeReplenishOrderService = exports.routingFailureService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = exports.ENUM = void 0;
4
4
  var enum_1 = require("./enum");
5
5
  Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
6
6
  var service_1 = require("./modules/allocation/service");
@@ -11,6 +11,8 @@ var service_3 = require("./modules/storeStockIn/service");
11
11
  Object.defineProperty(exports, "storeStockInService", { enumerable: true, get: function () { return service_3.storeStockInService; } });
12
12
  var service_4 = require("./modules/preAllocationOrder/service");
13
13
  Object.defineProperty(exports, "preAllocationOrderService", { enumerable: true, get: function () { return service_4.preAllocationOrderService; } });
14
+ var routingFailureService_1 = require("./modules/preAllocationOrder/routingFailureService");
15
+ Object.defineProperty(exports, "routingFailureService", { enumerable: true, get: function () { return routingFailureService_1.routingFailureService; } });
14
16
  var service_5 = require("./modules/storeReplenishOrder/service");
15
17
  Object.defineProperty(exports, "storeReplenishOrderService", { enumerable: true, get: function () { return service_5.storeReplenishOrderService; } });
16
18
  var service_6 = require("./modules/productStatistics/service");
@@ -13,6 +13,7 @@ export declare namespace AllocationOrderTypes {
13
13
  pickingAt: number;
14
14
  storeId: string;
15
15
  warehouseId: string;
16
+ deliveryMode: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
16
17
  status: ENUM.ALLOCATION_ORDER_ENUM.STATUS;
17
18
  shouldNum: number;
18
19
  realNum: number;
@@ -29,7 +30,6 @@ export declare namespace AllocationOrderTypes {
29
30
  interface AllocationOrderWithExtension extends AllocationOrder {
30
31
  storeName?: string;
31
32
  warehouseName?: string;
32
- deliveryMode?: number;
33
33
  regionName?: string;
34
34
  }
35
35
  /**
@@ -167,7 +167,7 @@ export declare namespace AllocationOrderTypes {
167
167
  skuCodes?: string[];
168
168
  storeIds?: string[];
169
169
  warehouseIds?: string[];
170
- deliveryMode?: number;
170
+ deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
171
171
  status?: string;
172
172
  }
173
173
  /**
@@ -304,6 +304,7 @@ export declare namespace AllocationOrderTypes {
304
304
  * 打印拣货单项目接口(按商品聚合)
305
305
  */
306
306
  interface PrintPickingSheetItem {
307
+ skuId?: string;
307
308
  商品名称?: string;
308
309
  规格名称?: string;
309
310
  规格编码?: string;
@@ -0,0 +1,15 @@
1
+ import { PreAllocationOrderTypes } from './types';
2
+ import BaseService from '../BaseService';
3
+ declare class RoutingFailureService extends BaseService implements PreAllocationOrderTypes.RoutingFailureController {
4
+ protected prefixUrl: string;
5
+ /**
6
+ * 查询路由失败列表
7
+ */
8
+ queryRoutingFailureList(request: PreAllocationOrderTypes.Request.QueryRoutingFailureList): Promise<PreAllocationOrderTypes.Response.QueryRoutingFailureList>;
9
+ /**
10
+ * 导出路由失败记录
11
+ */
12
+ exportRoutingFailureExcel(request: PreAllocationOrderTypes.Request.ExportRoutingFailure): Promise<PreAllocationOrderTypes.Response.ExportRoutingFailure>;
13
+ }
14
+ export declare const routingFailureService: RoutingFailureService;
15
+ export default routingFailureService;
@@ -0,0 +1,50 @@
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.routingFailureService = void 0;
16
+ const tsoa_1 = require("tsoa");
17
+ const http_1 = require("../../utils/http");
18
+ const BaseService_1 = __importDefault(require("../BaseService"));
19
+ let RoutingFailureService = class RoutingFailureService extends BaseService_1.default {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.prefixUrl = '/pre-allocation-order';
23
+ }
24
+ /**
25
+ * 查询路由失败列表
26
+ */
27
+ queryRoutingFailureList(request) {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.queryRoutingFailureList), request);
29
+ }
30
+ /**
31
+ * 导出路由失败记录
32
+ */
33
+ exportRoutingFailureExcel(request) {
34
+ return (0, http_1.callApi)(this.getApiUrl(this.exportRoutingFailureExcel), request);
35
+ }
36
+ };
37
+ __decorate([
38
+ (0, tsoa_1.Post)('query-routing-failure-list'),
39
+ __param(0, (0, tsoa_1.Body)())
40
+ ], RoutingFailureService.prototype, "queryRoutingFailureList", null);
41
+ __decorate([
42
+ (0, tsoa_1.Post)('export-routing-failure-excel'),
43
+ __param(0, (0, tsoa_1.Body)())
44
+ ], RoutingFailureService.prototype, "exportRoutingFailureExcel", null);
45
+ RoutingFailureService = __decorate([
46
+ (0, tsoa_1.Route)('PreAllocationOrder'),
47
+ (0, tsoa_1.Tags)('preAllocationOrder')
48
+ ], RoutingFailureService);
49
+ exports.routingFailureService = new RoutingFailureService();
50
+ exports.default = exports.routingFailureService;
@@ -58,6 +58,10 @@ declare class PreAllocationOrderService extends BaseService implements PreAlloca
58
58
  * 批量填写配货备注
59
59
  */
60
60
  batchUpdatePickingRemark(request: PreAllocationOrderTypes.Request.BatchUpdatePickingRemark): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingRemark>;
61
+ /**
62
+ * 批量修改配货方式
63
+ */
64
+ batchUpdateDeliveryMode(request: PreAllocationOrderTypes.Request.BatchUpdateDeliveryMode): Promise<PreAllocationOrderTypes.Response.BatchUpdateDeliveryMode>;
61
65
  /**
62
66
  * 批量添加商品到预配货单
63
67
  */
@@ -105,6 +105,12 @@ let PreAllocationOrderService = class PreAllocationOrderService extends BaseServ
105
105
  batchUpdatePickingRemark(request) {
106
106
  return (0, http_1.callApi)(this.getApiUrl(this.batchUpdatePickingRemark), request);
107
107
  }
108
+ /**
109
+ * 批量修改配货方式
110
+ */
111
+ batchUpdateDeliveryMode(request) {
112
+ return (0, http_1.callApi)(this.getApiUrl(this.batchUpdateDeliveryMode), request);
113
+ }
108
114
  /**
109
115
  * 批量添加商品到预配货单
110
116
  */
@@ -198,6 +204,10 @@ __decorate([
198
204
  (0, tsoa_1.Post)('batch-update-picking-remark'),
199
205
  __param(0, (0, tsoa_1.Body)())
200
206
  ], PreAllocationOrderService.prototype, "batchUpdatePickingRemark", null);
207
+ __decorate([
208
+ (0, tsoa_1.Post)('batch-update-delivery-mode'),
209
+ __param(0, (0, tsoa_1.Body)())
210
+ ], PreAllocationOrderService.prototype, "batchUpdateDeliveryMode", null);
201
211
  __decorate([
202
212
  (0, tsoa_1.Post)('batch-add-products'),
203
213
  __param(0, (0, tsoa_1.Body)())
@@ -103,6 +103,35 @@ export declare namespace PreAllocationOrderTypes {
103
103
  createdAt: number;
104
104
  updatedAt: number;
105
105
  }
106
+ /** 预配货路由失败列表项 */
107
+ interface RoutingFailureListItem {
108
+ id: string;
109
+ batchNo: string;
110
+ failureReason: string;
111
+ failureReasonLabel: string;
112
+ storeId: string;
113
+ storeName: string;
114
+ productId: string;
115
+ productName: string;
116
+ skuId: string;
117
+ skuCode: string;
118
+ specName: string;
119
+ allocationQty: number;
120
+ createdAt: number;
121
+ }
122
+ /** 预配货路由失败导出数据行 */
123
+ interface RoutingFailureExportRow {
124
+ failureReasonLabel: string;
125
+ batchNo: string;
126
+ productId: string;
127
+ skuId: string;
128
+ productName: string;
129
+ specName: string;
130
+ skuCode: string;
131
+ storeName: string;
132
+ allocationQty: number;
133
+ createdAt: number;
134
+ }
106
135
  }
107
136
  /** 请求参数定义 */
108
137
  namespace Request {
@@ -231,6 +260,19 @@ export declare namespace PreAllocationOrderTypes {
231
260
  pickingRemark: string;
232
261
  operator: string;
233
262
  }
263
+ /** 批量修改配货方式 */
264
+ interface BatchUpdateDeliveryMode {
265
+ warehouseId: string;
266
+ batchNos?: string[];
267
+ preAllocationOrderIds?: string[];
268
+ storeIds?: string[];
269
+ productIds?: string[];
270
+ skuCodes?: string[];
271
+ deliveryModes?: number[];
272
+ sourceTypes?: number[];
273
+ targetDeliveryMode: number;
274
+ operator: string;
275
+ }
234
276
  /** 批量添加商品到预配货单 */
235
277
  interface BatchAddProducts {
236
278
  preAllocationOrderId: string;
@@ -288,6 +330,28 @@ export declare namespace PreAllocationOrderTypes {
288
330
  pickingRemark: string;
289
331
  operator: string;
290
332
  }
333
+ /** 查询预配货路由失败列表 */
334
+ interface QueryRoutingFailureList {
335
+ pageIndex: number;
336
+ pageSize: number;
337
+ batchNo?: string;
338
+ productIds?: string[];
339
+ skuCodes?: string[];
340
+ skuIds?: string[];
341
+ createdAtStart?: number;
342
+ createdAtEnd?: number;
343
+ }
344
+ /** 导出预配货路由失败记录 */
345
+ interface ExportRoutingFailure {
346
+ taskId?: string;
347
+ batchNo?: string;
348
+ productIds?: string[];
349
+ productName?: string;
350
+ skuCodes?: string[];
351
+ skuIds?: string[];
352
+ createdAtStart?: number;
353
+ createdAtEnd?: number;
354
+ }
291
355
  }
292
356
  /** 响应结果定义 */
293
357
  namespace Response {
@@ -390,6 +454,12 @@ export declare namespace PreAllocationOrderTypes {
390
454
  message: string;
391
455
  data: null;
392
456
  }
457
+ /** 批量修改配货方式响应 */
458
+ interface BatchUpdateDeliveryMode {
459
+ code: number;
460
+ message: string;
461
+ data: null;
462
+ }
393
463
  /** 批量添加商品到预配货单响应 */
394
464
  interface BatchAddProducts {
395
465
  code: number;
@@ -458,6 +528,23 @@ export declare namespace PreAllocationOrderTypes {
458
528
  message: string;
459
529
  data: null;
460
530
  }
531
+ /** 查询预配货路由失败列表响应 */
532
+ interface QueryRoutingFailureList {
533
+ list: Entity.RoutingFailureListItem[];
534
+ total: number;
535
+ pageIndex: number;
536
+ pageSize: number;
537
+ }
538
+ /** 导出预配货路由失败记录响应 */
539
+ interface ExportRoutingFailure {
540
+ headers: Array<{
541
+ key: string;
542
+ label: string;
543
+ width?: number;
544
+ }>;
545
+ data: Entity.RoutingFailureExportRow[];
546
+ total: number;
547
+ }
461
548
  }
462
549
  /** PreAllocationOrder Controller 接口定义 */
463
550
  interface PreAllocationOrderController {
@@ -487,6 +574,8 @@ export declare namespace PreAllocationOrderTypes {
487
574
  searchProducts(request: PreAllocationOrderTypes.Request.SearchProducts): Promise<PreAllocationOrderTypes.Response.SearchProducts>;
488
575
  /** 批量修改配货数量 */
489
576
  batchUpdatePickingNum(request: PreAllocationOrderTypes.Request.BatchUpdatePickingNum): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingNum>;
577
+ /** 批量修改配货方式 */
578
+ batchUpdateDeliveryMode(request: PreAllocationOrderTypes.Request.BatchUpdateDeliveryMode): Promise<PreAllocationOrderTypes.Response.BatchUpdateDeliveryMode>;
490
579
  /** 查询预配货单商品明细 */
491
580
  details(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
492
581
  /** 导出预配货单 */
@@ -498,4 +587,11 @@ export declare namespace PreAllocationOrderTypes {
498
587
  /** 更新预配货单明细备注 */
499
588
  updateDetailRemark(request: PreAllocationOrderTypes.Request.UpdatePreAllocationOrderDetailRemark): Promise<PreAllocationOrderTypes.Response.UpdatePreAllocationOrderDetailRemark>;
500
589
  }
590
+ /** 预配货路由失败(大仓路由)Controller 接口定义(挂载在 pre-allocation-order 下) */
591
+ interface RoutingFailureController {
592
+ /** 查询路由失败列表 */
593
+ queryRoutingFailureList(request: PreAllocationOrderTypes.Request.QueryRoutingFailureList): Promise<PreAllocationOrderTypes.Response.QueryRoutingFailureList>;
594
+ /** 导出路由失败记录 */
595
+ exportRoutingFailureExcel(request: PreAllocationOrderTypes.Request.ExportRoutingFailure): Promise<PreAllocationOrderTypes.Response.ExportRoutingFailure>;
596
+ }
501
597
  }
@@ -1,3 +1,4 @@
1
+ import { ENUM } from '../../enum';
1
2
  export declare namespace StoreReplenishOrderTypes {
2
3
  /** 实体定义 */
3
4
  namespace Entity {
@@ -102,6 +103,7 @@ export declare namespace StoreReplenishOrderTypes {
102
103
  id: string;
103
104
  status: string;
104
105
  warehouseId?: string;
106
+ deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
105
107
  lossType?: string;
106
108
  approvalNum?: number;
107
109
  approvalReason: string;
@@ -170,6 +172,8 @@ export declare namespace StoreReplenishOrderTypes {
170
172
  createdAt: number;
171
173
  storeId: string;
172
174
  storeName: string;
175
+ warehouseId?: string;
176
+ deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
173
177
  };
174
178
  /** 商品信息 */
175
179
  productInfo: {
@@ -10,6 +10,7 @@ export declare namespace StoreStockInTypes {
10
10
  deletedAt: number;
11
11
  storeId: string;
12
12
  warehouseId: string;
13
+ deliveryMode: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
13
14
  allocationOrderId: string;
14
15
  status: ENUM.STORE_STOCK_IN_ORDER_ENUM.STATUS;
15
16
  receivableQuantity: number;
@@ -49,7 +50,6 @@ export declare namespace StoreStockInTypes {
49
50
  interface StoreStockInOrderWithExtension extends StoreStockInOrder {
50
51
  warehouseName?: string;
51
52
  storeName?: string;
52
- deliveryMode?: number;
53
53
  }
54
54
  /** 收货商品项 */
55
55
  interface StoreStockInItem {
@@ -94,7 +94,7 @@ export declare namespace StoreStockInTypes {
94
94
  storeIds?: string[];
95
95
  warehouseIds?: string[];
96
96
  status?: string;
97
- deliveryMode?: number;
97
+ deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
98
98
  }
99
99
  /** 提前完成入库单请求 */
100
100
  interface EarlyComplete {
@@ -123,7 +123,7 @@ export declare namespace StoreStockInTypes {
123
123
  storeIds?: string[];
124
124
  warehouseIds?: string[];
125
125
  status?: string;
126
- deliveryMode?: number;
126
+ deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
127
127
  }
128
128
  /** 店长查看入库单商品数据请求 */
129
129
  interface GetStockInProducts {
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.50",
3
+ "version": "0.0.51",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",