@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.56 → 0.0.58

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
@@ -320,6 +320,23 @@ export declare namespace ENUM {
320
320
  MANUAL_DIRECT = "MANUAL_DIRECT"
321
321
  }
322
322
  }
323
+ namespace WMS_PUSH_STATUS_ENUM {
324
+ enum STATUS {
325
+ PENDING = "PENDING",
326
+ PUSHED = "PUSHED",
327
+ FAILED = "FAILED"
328
+ }
329
+ enum STATUS_CHINESE {
330
+ PENDING = "\u5F85\u63A8\u9001",
331
+ PUSHED = "\u5DF2\u63A8\u9001",
332
+ FAILED = "\u63A8\u9001\u5931\u8D25"
333
+ }
334
+ const STATUS_MAP: {
335
+ readonly PENDING: STATUS_CHINESE.PENDING;
336
+ readonly PUSHED: STATUS_CHINESE.PUSHED;
337
+ readonly FAILED: STATUS_CHINESE.FAILED;
338
+ };
339
+ }
323
340
  namespace PURCHASE_ORDER_ENUM {
324
341
  /** 采购单状态 */
325
342
  enum STATUS {
package/enum.js CHANGED
@@ -318,6 +318,26 @@ var ENUM;
318
318
  DETAIL_NOT_FOUND: '入库单明细不存在',
319
319
  };
320
320
  })(WAREHOUSE_STOCK_IN_ORDER_ENUM = ENUM.WAREHOUSE_STOCK_IN_ORDER_ENUM || (ENUM.WAREHOUSE_STOCK_IN_ORDER_ENUM = {}));
321
+ let WMS_PUSH_STATUS_ENUM;
322
+ (function (WMS_PUSH_STATUS_ENUM) {
323
+ let STATUS;
324
+ (function (STATUS) {
325
+ STATUS["PENDING"] = "PENDING";
326
+ STATUS["PUSHED"] = "PUSHED";
327
+ STATUS["FAILED"] = "FAILED";
328
+ })(STATUS = WMS_PUSH_STATUS_ENUM.STATUS || (WMS_PUSH_STATUS_ENUM.STATUS = {}));
329
+ let STATUS_CHINESE;
330
+ (function (STATUS_CHINESE) {
331
+ STATUS_CHINESE["PENDING"] = "\u5F85\u63A8\u9001";
332
+ STATUS_CHINESE["PUSHED"] = "\u5DF2\u63A8\u9001";
333
+ STATUS_CHINESE["FAILED"] = "\u63A8\u9001\u5931\u8D25";
334
+ })(STATUS_CHINESE = WMS_PUSH_STATUS_ENUM.STATUS_CHINESE || (WMS_PUSH_STATUS_ENUM.STATUS_CHINESE = {}));
335
+ WMS_PUSH_STATUS_ENUM.STATUS_MAP = {
336
+ [STATUS.PENDING]: STATUS_CHINESE.PENDING,
337
+ [STATUS.PUSHED]: STATUS_CHINESE.PUSHED,
338
+ [STATUS.FAILED]: STATUS_CHINESE.FAILED,
339
+ };
340
+ })(WMS_PUSH_STATUS_ENUM = ENUM.WMS_PUSH_STATUS_ENUM || (ENUM.WMS_PUSH_STATUS_ENUM = {}));
321
341
  let PURCHASE_ORDER_ENUM;
322
342
  (function (PURCHASE_ORDER_ENUM) {
323
343
  /** 采购单状态 */
package/index.d.ts CHANGED
@@ -26,3 +26,5 @@ export { warehouseStockInService } from './modules/warehouseStockIn/service';
26
26
  export { WarehouseStockInTypes } from './modules/warehouseStockIn/types';
27
27
  export { purchaseOrderService } from './modules/purchaseOrder/service';
28
28
  export { PurchaseOrderTypes } from './modules/purchaseOrder/types';
29
+ export { sfWmsPushService } from './modules/sfWmsPush/service';
30
+ export { SfWmsPushTypes } from './modules/sfWmsPush/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.routingFailureService = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.allocationService = exports.ENUM = void 0;
3
+ exports.sfWmsPushService = 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");
@@ -33,6 +33,8 @@ var service_12 = require("./modules/warehouseStockIn/service");
33
33
  Object.defineProperty(exports, "warehouseStockInService", { enumerable: true, get: function () { return service_12.warehouseStockInService; } });
34
34
  var service_13 = require("./modules/purchaseOrder/service");
35
35
  Object.defineProperty(exports, "purchaseOrderService", { enumerable: true, get: function () { return service_13.purchaseOrderService; } });
36
+ var service_14 = require("./modules/sfWmsPush/service");
37
+ Object.defineProperty(exports, "sfWmsPushService", { enumerable: true, get: function () { return service_14.sfWmsPushService; } });
36
38
  // 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
37
39
  // 门店入库单枚举示例: ENUM.STORE_STOCK_IN_ORDER_ENUM.STATUS.PENDING
38
40
  // 预配货单上传枚举示例: ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM.STATUS.PROCESSING
@@ -58,6 +58,10 @@ declare class AllocationOrderService extends BaseService implements AllocationOr
58
58
  * 批量发货
59
59
  */
60
60
  batchShip(request: AllocationOrderTypes.Request.BatchShip): Promise<AllocationOrderTypes.Response.BatchShip>;
61
+ /**
62
+ * 推送 WMS 出库单
63
+ */
64
+ pushWms(request: AllocationOrderTypes.Request.PushWms): Promise<void>;
61
65
  /**
62
66
  * 查询批量发货进度
63
67
  */
@@ -105,6 +105,12 @@ let AllocationOrderService = class AllocationOrderService extends BaseService_1.
105
105
  batchShip(request) {
106
106
  return (0, http_1.callApi)(this.getApiUrl(this.batchShip), request);
107
107
  }
108
+ /**
109
+ * 推送 WMS 出库单
110
+ */
111
+ pushWms(request) {
112
+ return (0, http_1.callApi)(this.getApiUrl(this.pushWms), request);
113
+ }
108
114
  /**
109
115
  * 查询批量发货进度
110
116
  */
@@ -168,6 +174,10 @@ __decorate([
168
174
  (0, tsoa_1.Post)('batch-ship'),
169
175
  __param(0, (0, tsoa_1.Body)())
170
176
  ], AllocationOrderService.prototype, "batchShip", null);
177
+ __decorate([
178
+ (0, tsoa_1.Post)('push-wms'),
179
+ __param(0, (0, tsoa_1.Body)())
180
+ ], AllocationOrderService.prototype, "pushWms", null);
171
181
  __decorate([
172
182
  (0, tsoa_1.Post)('get-batch-ship-progress'),
173
183
  __param(0, (0, tsoa_1.Body)())
@@ -23,6 +23,7 @@ export declare namespace AllocationOrderTypes {
23
23
  estimatedArrivalAt: number;
24
24
  needNextHandle: number;
25
25
  remark: string;
26
+ wmsPushStatus?: string;
26
27
  }
27
28
  /**
28
29
  * 配货单扩展实体(包含关联数据)
@@ -61,6 +62,7 @@ export declare namespace AllocationOrderTypes {
61
62
  productImage: string;
62
63
  imgList: string[];
63
64
  specName: string;
65
+ shelfLifeDays: number;
64
66
  storageMethod: string;
65
67
  classification: string;
66
68
  }
@@ -102,6 +104,7 @@ export declare namespace AllocationOrderTypes {
102
104
  storeIds?: string[];
103
105
  deliveryMode?: number;
104
106
  status?: string;
107
+ wmsPushStatus?: string;
105
108
  }
106
109
  /**
107
110
  * 获取配货单详情请求
@@ -169,6 +172,7 @@ export declare namespace AllocationOrderTypes {
169
172
  warehouseIds?: string[];
170
173
  deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
171
174
  status?: string;
175
+ wmsPushStatus?: string;
172
176
  }
173
177
  /**
174
178
  * 打印拣货单请求
@@ -236,6 +240,13 @@ export declare namespace AllocationOrderTypes {
236
240
  orderIds: string[];
237
241
  operator: string;
238
242
  }
243
+ /**
244
+ * 推送 WMS 出库单请求
245
+ */
246
+ interface PushWms {
247
+ ids: string[];
248
+ operator: string;
249
+ }
239
250
  /**
240
251
  * 查询批量发货进度请求
241
252
  */
@@ -283,6 +294,7 @@ export declare namespace AllocationOrderTypes {
283
294
  商品名称?: string;
284
295
  规格名称?: string;
285
296
  规格编码?: string;
297
+ '商品效期(天)'?: number;
286
298
  库位信息?: string;
287
299
  储藏方式?: string;
288
300
  商品分类?: string;
@@ -292,6 +304,7 @@ export declare namespace AllocationOrderTypes {
292
304
  剩余待发数量?: number;
293
305
  配货备注?: string;
294
306
  发货备注?: string;
307
+ WMS推送状态?: string;
295
308
  }
296
309
  /**
297
310
  * 导出Excel响应接口
@@ -308,6 +321,7 @@ export declare namespace AllocationOrderTypes {
308
321
  商品名称?: string;
309
322
  规格名称?: string;
310
323
  规格编码?: string;
324
+ '商品效期(天)'?: number;
311
325
  商品分类?: string;
312
326
  储藏方式?: string;
313
327
  库位信息?: string;
@@ -328,6 +342,7 @@ export declare namespace AllocationOrderTypes {
328
342
  productName?: string;
329
343
  specName?: string;
330
344
  skuCode?: string;
345
+ shelfLifeDays?: number;
331
346
  classification?: string;
332
347
  storageMethod?: string;
333
348
  shippedQuantity?: number;
@@ -423,5 +438,6 @@ export declare namespace AllocationOrderTypes {
423
438
  batchUpdateShippedNum(request: Request.BatchUpdateShippedNum): Promise<void>;
424
439
  batchShip(request: Request.BatchShip): Promise<Response.BatchShip>;
425
440
  getBatchShipProgress(request: Request.GetBatchShipProgress): Promise<Response.GetBatchShipProgress>;
441
+ pushWms(request: Request.PushWms): Promise<void>;
426
442
  }
427
443
  }
@@ -489,6 +489,7 @@ export declare namespace PreAllocationOrderTypes {
489
489
  productId: string;
490
490
  productName: string;
491
491
  specName: string;
492
+ shelfLifeDays: number;
492
493
  storageMethod: string;
493
494
  categoryName: string;
494
495
  pickingNum: number;
@@ -52,6 +52,7 @@ export declare namespace PurchaseOrderTypes {
52
52
  productImage: string;
53
53
  imgList: string[];
54
54
  specName: string;
55
+ shelfLifeDays: number;
55
56
  storageMethod: string;
56
57
  classification: string;
57
58
  supplierName: string;
@@ -220,6 +221,7 @@ export declare namespace PurchaseOrderTypes {
220
221
  商品名称?: string;
221
222
  规格明细?: string;
222
223
  规格编码?: string;
224
+ '商品效期(天)'?: number;
223
225
  商品分类?: string;
224
226
  储藏方式?: string;
225
227
  采购数量?: number;
@@ -0,0 +1,9 @@
1
+ import { SfWmsPushTypes } from './types';
2
+ import BaseService from '../BaseService';
3
+ declare class SfWmsPushService extends BaseService implements SfWmsPushTypes.SfWmsPushController {
4
+ protected prefixUrl: string;
5
+ purchaseOrderInbound(request: SfWmsPushTypes.Request.PurchaseOrderInbound | SfWmsPushTypes.WrappedRequest<SfWmsPushTypes.Request.PurchaseOrderInbound> | SfWmsPushTypes.SfCallbackRequest<SfWmsPushTypes.Request.PurchaseOrderInbound>): Promise<SfWmsPushTypes.Response.PurchaseOrderInbound>;
6
+ saleOrderOutboundDetail(request: SfWmsPushTypes.Request.SaleOrderOutboundDetail | SfWmsPushTypes.WrappedRequest<SfWmsPushTypes.Request.SaleOrderOutboundDetail> | SfWmsPushTypes.SfCallbackRequest<SfWmsPushTypes.Request.SaleOrderOutboundDetail>): Promise<SfWmsPushTypes.Response.SaleOrderOutboundDetail>;
7
+ }
8
+ export declare const sfWmsPushService: SfWmsPushService;
9
+ export default sfWmsPushService;
@@ -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.sfWmsPushService = void 0;
16
+ const tsoa_1 = require("tsoa");
17
+ const http_1 = require("../../utils/http");
18
+ const BaseService_1 = __importDefault(require("../BaseService"));
19
+ let SfWmsPushService = class SfWmsPushService extends BaseService_1.default {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.prefixUrl = '/sf-wms-push';
23
+ }
24
+ purchaseOrderInbound(request) {
25
+ return (0, http_1.callApi)(this.getApiUrl(this.purchaseOrderInbound), request);
26
+ }
27
+ saleOrderOutboundDetail(request) {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.saleOrderOutboundDetail), request);
29
+ }
30
+ };
31
+ __decorate([
32
+ (0, tsoa_1.Post)('purchase-order-inbound'),
33
+ __param(0, (0, tsoa_1.Body)())
34
+ ], SfWmsPushService.prototype, "purchaseOrderInbound", null);
35
+ __decorate([
36
+ (0, tsoa_1.Post)('sale-order-outbound-detail'),
37
+ __param(0, (0, tsoa_1.Body)())
38
+ ], SfWmsPushService.prototype, "saleOrderOutboundDetail", null);
39
+ SfWmsPushService = __decorate([
40
+ (0, tsoa_1.Route)('SfWmsPush'),
41
+ (0, tsoa_1.Tags)('sfWmsPush')
42
+ ], SfWmsPushService);
43
+ exports.sfWmsPushService = new SfWmsPushService();
44
+ exports.default = exports.sfWmsPushService;
@@ -0,0 +1,349 @@
1
+ export declare namespace SfWmsPushTypes {
2
+ /** 顺丰 Y/N 标识字段 */
3
+ type SfBooleanFlag = 'Y' | 'N' | string;
4
+ /** 顺丰数量/金额类字段可能以 number 或 string 传递 */
5
+ type SfNumberLike = number | string;
6
+ /** 顺丰回调处理结果节点 */
7
+ type SuccessBody<TResponseNode extends string> = {
8
+ [K in TResponseNode]: {
9
+ /** 处理结果:1-成功,2-失败 */
10
+ Result: '1' | '2' | string;
11
+ /** 备注,如处理失败可填写失败原因 */
12
+ Note: string;
13
+ };
14
+ };
15
+ /** 顺丰原样响应结构 */
16
+ interface RawSuccessResponse<TServiceCode extends string, TResponseNode extends string> {
17
+ /** 顺丰服务名称 */
18
+ ServiceCode: TServiceCode;
19
+ /** 响应业务体 */
20
+ Body: SuccessBody<TResponseNode>;
21
+ }
22
+ /** 顺丰 JSON 示例中的外层请求结构 */
23
+ interface WrappedRequest<TBody> {
24
+ /** 顺丰服务名称 */
25
+ ServiceCode?: string;
26
+ /** 请求业务体 */
27
+ Body: TBody;
28
+ }
29
+ /** 顺丰 WMS 回调网关请求结构 */
30
+ interface SfCallbackRequest<TBody> {
31
+ /** 数据摘要 */
32
+ data_digest?: string;
33
+ /** 仓库编码 */
34
+ warehouseCode?: string;
35
+ /** 顺丰业务报文 */
36
+ logistics_interface: WrappedRequest<TBody>;
37
+ }
38
+ namespace Entity {
39
+ /** 序列号信息 */
40
+ interface SerialInfo {
41
+ /** 序列号 */
42
+ SerialNum?: string | null;
43
+ }
44
+ /** 入库单收货明细 */
45
+ interface PurchaseOrderInboundItem {
46
+ /** 订单行号 */
47
+ ErpOrderLineNum?: SfNumberLike;
48
+ /** 商品编码 */
49
+ SkuNo: string;
50
+ /** 商品名称 */
51
+ SkuName?: string;
52
+ /** 效期 */
53
+ ShelfLife?: SfNumberLike;
54
+ /** 累计收货数量 */
55
+ TotalQty?: SfNumberLike;
56
+ /** 拒收说明 */
57
+ RejectionRemark?: string;
58
+ /** 抽样检查数量 */
59
+ SpotCheckQty?: SfNumberLike;
60
+ /** 货权 */
61
+ CargoRight?: string;
62
+ /** 收货人 */
63
+ ReceiptMan?: string;
64
+ /** 计划数量 */
65
+ PlanQty?: SfNumberLike;
66
+ /** 实收数量,客户按该数量增加库存 */
67
+ ActualQty?: SfNumberLike;
68
+ /** 批号 */
69
+ Lot?: string;
70
+ /** 有效期 */
71
+ ExpirationDate?: string;
72
+ /** 库存状态,如良品/次品状态编码 */
73
+ InventoryStatus?: string;
74
+ /** 单价 */
75
+ Price?: SfNumberLike;
76
+ /** 供应商编码 */
77
+ VendorCode?: string;
78
+ /** 收货时间 */
79
+ ReceiptTime?: string;
80
+ /** 单位 */
81
+ QtyUm?: string;
82
+ /** 序列号列表 */
83
+ SerialNumbers?: string[] | null;
84
+ /** 序列号详情列表 */
85
+ SerialInfoList?: SerialInfo[] | null;
86
+ }
87
+ /** 入库单收货推送单据 */
88
+ interface PurchaseOrderInboundOrder {
89
+ /** 唯一编码 */
90
+ TransactionId?: string;
91
+ /** 仓库编码,由顺丰提供 */
92
+ WarehouseCode: string;
93
+ /** ERP 订单号码 */
94
+ ErpOrder: string;
95
+ /** 入库单号 */
96
+ ReceiptId: string;
97
+ /** ERP 订单类型 */
98
+ ErpOrderType?: string;
99
+ /** 原销售订单号 */
100
+ OriginalOrderNo?: string;
101
+ /** 退货物流单号 */
102
+ ReturnLogisticsNo?: string;
103
+ /** PO 采购订单 ID */
104
+ PoId?: string;
105
+ /** PO 采购订单单号 */
106
+ PoNo?: string;
107
+ /** 关单时间,格式 YYYY-MM-DD HH24:MI:SS */
108
+ CloseDate?: string;
109
+ /** 确认类型:0-终态,1-中间态 */
110
+ ConfirmType?: string;
111
+ /** 订单状态:3000-部分收货,3900-收货完成 */
112
+ Status?: string;
113
+ /** 运输方式 */
114
+ TransportType?: string;
115
+ /** 总重量 */
116
+ TotalWeight?: string;
117
+ /** 预报总托数 */
118
+ TayNum?: string;
119
+ /** 预报总箱数 */
120
+ BoxNum?: string;
121
+ /** 仓库联系人 */
122
+ WarehouseContact?: string;
123
+ /** 是否汇总明细:0-否,1-是 */
124
+ TotalDetail?: number;
125
+ /** 供应商编码 */
126
+ VendorCode?: string;
127
+ /** 系统来源 */
128
+ SysSource?: string;
129
+ /** 顺丰订单类型 */
130
+ SfOrderType?: string;
131
+ /** 奇门 Customer ID */
132
+ CustomerId?: string;
133
+ /** 备注 */
134
+ Remark?: string;
135
+ /** WMS 订单备注 */
136
+ WmsOrderRemark?: string;
137
+ /** 订单时间 */
138
+ OrderDate?: string;
139
+ /** 入库单商品明细 */
140
+ Items: PurchaseOrderInboundItem[];
141
+ }
142
+ /** 出库单发货明细 */
143
+ interface SaleOrderOutboundItem {
144
+ /** 订单行号 */
145
+ ErpOrderLineNum?: SfNumberLike;
146
+ /** 商品编码 */
147
+ SkuNo?: string;
148
+ /** 商品名称 */
149
+ SkuName?: string;
150
+ /** 实发数量,客户按该数量扣减库存 */
151
+ ActualQty?: SfNumberLike;
152
+ /** 计划数量 */
153
+ SkuQuantity?: SfNumberLike;
154
+ /** 单位 */
155
+ QtyUm?: string;
156
+ /** 生产日期 */
157
+ MfgDate?: string;
158
+ /** 失效日期 */
159
+ ExpDate?: string;
160
+ /** 入库日期 */
161
+ RecDate?: string;
162
+ /** 商品效期 */
163
+ ShelfLife?: SfNumberLike;
164
+ /** 库存状态 */
165
+ InventoryStatus?: string;
166
+ /** 序列号列表 */
167
+ SerialNumbers?: string[] | null;
168
+ /** 序列号详情列表 */
169
+ SerialInfoList?: SerialInfo[] | null;
170
+ }
171
+ /** 推荐箱型 */
172
+ interface RecommendedContainer {
173
+ /** 箱型 */
174
+ BoxType?: string;
175
+ /** 箱型名称 */
176
+ BoxTypeName?: string;
177
+ /** 数量 */
178
+ Qty?: SfNumberLike;
179
+ }
180
+ /** 箱内商品明细 */
181
+ interface ContainerItem {
182
+ /** 订单行号 */
183
+ ErpOrderLineNum?: SfNumberLike;
184
+ /** 商品编码 */
185
+ SkuNo?: string;
186
+ /** 实发数量 */
187
+ ActualQty?: SfNumberLike;
188
+ /** 单位 */
189
+ QtyUm?: string;
190
+ /** 库存状态 */
191
+ InventoryStatus?: string;
192
+ /** 序列号列表 */
193
+ SerialNumbers?: string[] | null;
194
+ /** 序列号详情列表 */
195
+ SerialInfoList?: SerialInfo[] | null;
196
+ }
197
+ /** 出库包裹/箱信息 */
198
+ interface Container {
199
+ /** 箱号 */
200
+ ContainerNo?: string;
201
+ /** 子母件标识 */
202
+ ContainerType?: string | number;
203
+ /** 箱型/包装模型 */
204
+ ContainerModel?: string;
205
+ /** 重量 */
206
+ Weight?: SfNumberLike;
207
+ /** 重量单位 */
208
+ WeightUm?: string;
209
+ /** 体积 */
210
+ Volume?: SfNumberLike;
211
+ /** 体积单位 */
212
+ VolumeUnit?: string;
213
+ /** 长 */
214
+ Length?: SfNumberLike;
215
+ /** 宽 */
216
+ Width?: SfNumberLike;
217
+ /** 高 */
218
+ Height?: SfNumberLike;
219
+ /** 包装员 */
220
+ UserStamp?: string;
221
+ /** 箱内商品明细 */
222
+ ContainerItems?: ContainerItem[];
223
+ }
224
+ /** 顺丰订单扩展属性节点 */
225
+ interface OrderExtendAttribute {
226
+ [key: string]: string | number | null | undefined;
227
+ }
228
+ /** 顺丰承运扩展信息节点 */
229
+ interface OrderCarrierInfo {
230
+ /** 是否内部件 */
231
+ IsInternalParts?: number | string;
232
+ [key: string]: string | number | null | undefined;
233
+ }
234
+ /** 出库单明细推送单据 */
235
+ interface SaleOrderOutboundOrder {
236
+ /** 仓库编码,由顺丰提供 */
237
+ WarehouseCode?: string;
238
+ /** ERP 订单号码 */
239
+ ErpOrder: string;
240
+ /** 出库单号 */
241
+ ShipmentId?: string;
242
+ /** 运单号 */
243
+ WayBillNo?: string;
244
+ /** 回单号 */
245
+ ReturnTracking?: string;
246
+ /** 发货时间,格式 YYYY-MM-DD HH24:MI:SS */
247
+ ActualShipDateTime?: string;
248
+ /** 发货时间 */
249
+ OrderEtd?: string;
250
+ /** 出库完成时间 */
251
+ WmsCompleteTime?: string;
252
+ /** 承运商 */
253
+ Carrier?: string;
254
+ /** 承运商产品 */
255
+ CarrierProduct?: string;
256
+ /** ERP 订单类型 */
257
+ ErpOrderType?: string;
258
+ /** 发票号 */
259
+ InvoiceNo?: string;
260
+ /** 是否已拆单:Y-是,N-否 */
261
+ IsSplit?: SfBooleanFlag;
262
+ /** 订单状态编码,如 2900-发货确认,3900-订单已完成 */
263
+ DataStatus?: string;
264
+ /** 是否回传客户:0-否,1-是 */
265
+ NeedReturnCustom?: number;
266
+ /** 总箱数 */
267
+ TotalBoxNum?: string;
268
+ /** 拼箱数 */
269
+ ComBoxNum?: string;
270
+ /** 奇门 Customer ID */
271
+ CustomerId?: string;
272
+ /** 最晚出库时间 */
273
+ LatestDeliveryTime?: string;
274
+ /** 要求配送时间 */
275
+ RequestDeliveryTime?: string;
276
+ /** 计划发车时间 */
277
+ PlannedDepartureDate?: string;
278
+ /** 车牌号 */
279
+ DeliveryVehicleNo?: string;
280
+ /** 客户下单时间 */
281
+ TradeOrderDateTime?: string;
282
+ /** 付款时间 */
283
+ PayDateTime?: string;
284
+ /** 系统来源 */
285
+ SysSource?: string;
286
+ /** 顺丰订单类型 */
287
+ SfOrderType?: string;
288
+ /** 需求类型 */
289
+ NeedsType?: string;
290
+ /** 排线号 */
291
+ ShiftNumber?: string;
292
+ /** 收件方网点编码 */
293
+ ReceiverStationCode?: string;
294
+ /** 交易平台 */
295
+ TradePlatform?: string;
296
+ /** 交易平台单号 */
297
+ TradeOrder?: string;
298
+ /** 店铺名称 */
299
+ ShopName?: string;
300
+ /** 合并母单号 */
301
+ ParentErpOrderNo?: string;
302
+ /** 合并子单号 */
303
+ MergeErpOrderNo?: string;
304
+ /** 出库单商品明细 */
305
+ Items: SaleOrderOutboundItem[];
306
+ /** 推荐箱型列表 */
307
+ RecommendedContainers?: RecommendedContainer[];
308
+ /** 包裹/箱信息列表 */
309
+ Containers?: Container[];
310
+ /** 顺丰订单扩展属性 */
311
+ OrderExtendAttribute?: OrderExtendAttribute;
312
+ /** 顺丰承运扩展信息 */
313
+ OrderCarrierInfo?: OrderCarrierInfo;
314
+ }
315
+ }
316
+ namespace Request {
317
+ /** 入库单明细推送请求 */
318
+ interface PurchaseOrderInbound {
319
+ /** 唯一编码 */
320
+ TransactionId: string;
321
+ /** 货主编码,由顺丰提供 */
322
+ CompanyCode: string;
323
+ /** 入库单列表 */
324
+ PurchaseOrders: Entity.PurchaseOrderInboundOrder[];
325
+ }
326
+ /** 出库单明细推送请求 */
327
+ interface SaleOrderOutboundDetail {
328
+ /** 唯一编码 */
329
+ TransactionId: string;
330
+ /** 货主编码,由顺丰提供 */
331
+ CompanyCode: string;
332
+ /** 出库单列表 */
333
+ SaleOrders: Entity.SaleOrderOutboundOrder[];
334
+ }
335
+ }
336
+ namespace Response {
337
+ /** 入库单明细推送响应 */
338
+ type PurchaseOrderInbound = RawSuccessResponse<'PURCHASE_ORDER_INBOUND_PUSH_SERVICE', 'PurchaseOrderInboundResponse'>;
339
+ /** 出库单明细推送响应 */
340
+ type SaleOrderOutboundDetail = RawSuccessResponse<'SALE_ORDER_OUTBOUND_DETAIL_PUSH_SERVICE', 'SaleOrderOutboundDetailResponse'>;
341
+ }
342
+ /** 顺丰 WMS 推送 Controller 契约 */
343
+ interface SfWmsPushController {
344
+ /** 入库单明细推送接口 */
345
+ purchaseOrderInbound(request: Request.PurchaseOrderInbound | WrappedRequest<Request.PurchaseOrderInbound> | SfCallbackRequest<Request.PurchaseOrderInbound>): Promise<Response.PurchaseOrderInbound>;
346
+ /** 出库单明细推送接口 */
347
+ saleOrderOutboundDetail(request: Request.SaleOrderOutboundDetail | WrappedRequest<Request.SaleOrderOutboundDetail> | SfCallbackRequest<Request.SaleOrderOutboundDetail>): Promise<Response.SaleOrderOutboundDetail>;
348
+ }
349
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,6 +43,7 @@ export declare namespace StoreStockInTypes {
43
43
  productImage: string;
44
44
  imgList: string[];
45
45
  specName: string;
46
+ shelfLifeDays: number;
46
47
  storageMethod: string;
47
48
  classification: string;
48
49
  }
@@ -165,6 +166,7 @@ export declare namespace StoreStockInTypes {
165
166
  商品名称?: string;
166
167
  规格名称?: string;
167
168
  规格编码?: string;
169
+ '商品效期(天)'?: number;
168
170
  存储方式?: string;
169
171
  商品分类?: string;
170
172
  实发数量?: number;
@@ -186,6 +188,7 @@ export declare namespace StoreStockInTypes {
186
188
  skuId: string;
187
189
  skuCode: string;
188
190
  specName?: string;
191
+ shelfLifeDays: number;
189
192
  actualSentQuantity: number;
190
193
  receivedQuantity: number;
191
194
  productImage: string;
@@ -120,6 +120,8 @@ export declare namespace WarehouseInventoryTypes {
120
120
  warehouseName: string;
121
121
  /** 规格详情(使用/分隔的规格值) */
122
122
  specName: string;
123
+ /** 商品效期(天) */
124
+ shelfLifeDays: number;
123
125
  /** 库存数量 */
124
126
  availableStock: number;
125
127
  /** 单价(分) */
@@ -186,6 +188,7 @@ export declare namespace WarehouseInventoryTypes {
186
188
  商品名称: string;
187
189
  规格明细: string;
188
190
  规格编码: string;
191
+ '商品效期(天)': number;
189
192
  仓库: string;
190
193
  库存: number;
191
194
  单价: number;
@@ -9,6 +9,7 @@ declare class WarehouseStockInService extends BaseService implements WarehouseSt
9
9
  exportExcel(request: WarehouseStockInTypes.Request.ExportExcel): Promise<WarehouseStockInTypes.Response.ExportExcel>;
10
10
  saveDraft(request: WarehouseStockInTypes.Request.SaveDraft): Promise<void>;
11
11
  updateDetailRemark(request: WarehouseStockInTypes.Request.UpdateDetailRemark): Promise<void>;
12
+ pushWms(request: WarehouseStockInTypes.Request.PushWms): Promise<void>;
12
13
  }
13
14
  export declare const warehouseStockInService: WarehouseStockInService;
14
15
  export default warehouseStockInService;
@@ -42,6 +42,9 @@ let WarehouseStockInService = class WarehouseStockInService extends BaseService_
42
42
  updateDetailRemark(request) {
43
43
  return (0, http_1.callApi)(this.getApiUrl(this.updateDetailRemark), request);
44
44
  }
45
+ pushWms(request) {
46
+ return (0, http_1.callApi)(this.getApiUrl(this.pushWms), request);
47
+ }
45
48
  };
46
49
  __decorate([
47
50
  (0, tsoa_1.Post)('stock-in'),
@@ -71,6 +74,10 @@ __decorate([
71
74
  (0, tsoa_1.Post)('update-detail-remark'),
72
75
  __param(0, (0, tsoa_1.Body)())
73
76
  ], WarehouseStockInService.prototype, "updateDetailRemark", null);
77
+ __decorate([
78
+ (0, tsoa_1.Post)('push-wms'),
79
+ __param(0, (0, tsoa_1.Body)())
80
+ ], WarehouseStockInService.prototype, "pushWms", null);
74
81
  WarehouseStockInService = __decorate([
75
82
  (0, tsoa_1.Route)('WarehouseStockIn'),
76
83
  (0, tsoa_1.Tags)('warehouseStockIn')
@@ -17,6 +17,7 @@ export declare namespace WarehouseStockInTypes {
17
17
  receivableQuantity: number;
18
18
  receivedQuantity: number;
19
19
  remark: string;
20
+ wmsPushStatus?: string;
20
21
  purchaseOrderId: string;
21
22
  }
22
23
  /** 仓库入库单明细 */
@@ -46,6 +47,7 @@ export declare namespace WarehouseStockInTypes {
46
47
  productImage: string;
47
48
  imgList: string[];
48
49
  specName: string;
50
+ shelfLifeDays: number;
49
51
  storageMethod: string;
50
52
  classification: string;
51
53
  locationInfo?: string[];
@@ -91,6 +93,7 @@ export declare namespace WarehouseStockInTypes {
91
93
  skuIds?: string[];
92
94
  warehouseIds?: string[];
93
95
  status?: string;
96
+ wmsPushStatus?: string;
94
97
  }
95
98
  /** 查询入库单详情请求 */
96
99
  interface GetDetail {
@@ -146,6 +149,12 @@ export declare namespace WarehouseStockInTypes {
146
149
  skuIds?: string[];
147
150
  warehouseIds?: string[];
148
151
  status?: string;
152
+ wmsPushStatus?: string;
153
+ }
154
+ /** 推送WMS请求 */
155
+ interface PushWms {
156
+ ids: string[];
157
+ operator: string;
149
158
  }
150
159
  }
151
160
  /** 响应定义 */
@@ -165,6 +174,7 @@ export declare namespace WarehouseStockInTypes {
165
174
  receivableQuantity?: number;
166
175
  receivedQuantity: number;
167
176
  remark: string;
177
+ wmsPushStatus?: string;
168
178
  }
169
179
  /** 查询入库单列表响应 */
170
180
  interface GetList {
@@ -197,6 +207,7 @@ export declare namespace WarehouseStockInTypes {
197
207
  商品名称?: string;
198
208
  规格名称?: string;
199
209
  规格编码?: string;
210
+ '商品效期(天)'?: number;
200
211
  库位?: string;
201
212
  储藏方式?: string;
202
213
  商品分类?: string;
@@ -209,6 +220,7 @@ export declare namespace WarehouseStockInTypes {
209
220
  发货备注?: string;
210
221
  收货备注?: string;
211
222
  预计到仓时间?: string;
223
+ WMS推送状态?: string;
212
224
  }
213
225
  /** 导出Excel响应接口 */
214
226
  interface ExportExcel {
@@ -232,5 +244,7 @@ export declare namespace WarehouseStockInTypes {
232
244
  updateDetailRemark(request: Request.UpdateDetailRemark): Promise<void>;
233
245
  /** 保存入库单明细草稿 */
234
246
  saveDraft(request: Request.SaveDraft): Promise<void>;
247
+ /** 推送仓库入库单到WMS */
248
+ pushWms(request: Request.PushWms): Promise<void>;
235
249
  }
236
250
  }
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.56",
3
+ "version": "0.0.58",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",