@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.23 → 0.0.24

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
@@ -125,6 +125,62 @@ export declare namespace ENUM {
125
125
  readonly RECORD_NOT_FOUND: "上传记录不存在";
126
126
  };
127
127
  }
128
+ namespace PRE_ALLOCATION_ORDER_ENUM {
129
+ /** 预配货单状态(数字类型) */
130
+ enum STATUS {
131
+ PENDING = 1,// 待提交
132
+ SUBMITTED = 2,// 已提交
133
+ CANCELLED = 3
134
+ }
135
+ enum STATUS_CHINESE {
136
+ PENDING = "\u5F85\u63D0\u4EA4",
137
+ SUBMITTED = "\u5DF2\u63D0\u4EA4",
138
+ CANCELLED = "\u5DF2\u4F5C\u5E9F"
139
+ }
140
+ /** 状态映射 */
141
+ const STATUS_MAP: {
142
+ readonly 1: STATUS_CHINESE.PENDING;
143
+ readonly 2: STATUS_CHINESE.SUBMITTED;
144
+ readonly 3: STATUS_CHINESE.CANCELLED;
145
+ };
146
+ /** 预配货单类型(数字类型) */
147
+ enum PRE_ORDER_TYPE {
148
+ CURRENT_DAY_ORDER = 1,// 当天订单
149
+ UNDELIVERED = 2,// 未发量
150
+ MANUAL_IMPORT = 3,// 人工导入
151
+ STORE_STOCK_IN_REPLENISH = 4,// 门店入库单补货
152
+ STORE_ACTIVE_APPLY = 5
153
+ }
154
+ enum PRE_ORDER_TYPE_CHINESE {
155
+ CURRENT_DAY_ORDER = "\u5F53\u5929\u8BA2\u5355",
156
+ UNDELIVERED = "\u672A\u53D1\u91CF",
157
+ MANUAL_IMPORT = "\u4EBA\u5DE5\u5BFC\u5165",
158
+ STORE_STOCK_IN_REPLENISH = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
159
+ STORE_ACTIVE_APPLY = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
160
+ }
161
+ /** 来源类型(数字类型) */
162
+ enum SOURCE_TYPE {
163
+ ORDER_WITH_COUPON = 1,// 订单(含券)
164
+ MANUAL_IMPORT = 2,// 人工导入
165
+ STORE_STOCK_IN_REPLENISH = 3,// 门店入库单补货
166
+ STORE_ACTIVE_APPLY = 4
167
+ }
168
+ enum SOURCE_TYPE_CHINESE {
169
+ ORDER_WITH_COUPON = "\u8BA2\u5355\uFF08\u542B\u5238\uFF09",
170
+ MANUAL_IMPORT = "\u4EBA\u5DE5\u5BFC\u5165",
171
+ STORE_STOCK_IN_REPLENISH = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27",
172
+ STORE_ACTIVE_APPLY = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
173
+ }
174
+ /** 错误消息常量 */
175
+ const ERROR_MESSAGES: {
176
+ readonly ORDER_NOT_FOUND: "预配货单不存在";
177
+ readonly ORDER_SUBMITTED: "预配货单已提交,不可操作";
178
+ readonly ORDER_CANCELLED: "预配货单已作废,不可操作";
179
+ readonly DETAIL_NOT_FOUND: "预配货单明细不存在";
180
+ readonly SKU_NOT_FOUND: "SKU编码在预配货单中不存在";
181
+ readonly CANNOT_REPEAL_SUBMITTED: "存在已提交的预配货单,无法撤回";
182
+ };
183
+ }
128
184
  namespace INVENTORY_ENUM {
129
185
  const enum OUTBOUND_TYPE_ENUM {
130
186
  ITEM_OUTBOUND = "ITEM_OUTBOUND",
package/enum.js CHANGED
@@ -144,4 +144,67 @@ var ENUM;
144
144
  RECORD_NOT_FOUND: '上传记录不存在',
145
145
  };
146
146
  })(PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM = ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM || (ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM = {}));
147
+ let PRE_ALLOCATION_ORDER_ENUM;
148
+ (function (PRE_ALLOCATION_ORDER_ENUM) {
149
+ /** 预配货单状态(数字类型) */
150
+ let STATUS;
151
+ (function (STATUS) {
152
+ STATUS[STATUS["PENDING"] = 1] = "PENDING";
153
+ STATUS[STATUS["SUBMITTED"] = 2] = "SUBMITTED";
154
+ STATUS[STATUS["CANCELLED"] = 3] = "CANCELLED";
155
+ })(STATUS = PRE_ALLOCATION_ORDER_ENUM.STATUS || (PRE_ALLOCATION_ORDER_ENUM.STATUS = {}));
156
+ let STATUS_CHINESE;
157
+ (function (STATUS_CHINESE) {
158
+ STATUS_CHINESE["PENDING"] = "\u5F85\u63D0\u4EA4";
159
+ STATUS_CHINESE["SUBMITTED"] = "\u5DF2\u63D0\u4EA4";
160
+ STATUS_CHINESE["CANCELLED"] = "\u5DF2\u4F5C\u5E9F";
161
+ })(STATUS_CHINESE = PRE_ALLOCATION_ORDER_ENUM.STATUS_CHINESE || (PRE_ALLOCATION_ORDER_ENUM.STATUS_CHINESE = {}));
162
+ /** 状态映射 */
163
+ PRE_ALLOCATION_ORDER_ENUM.STATUS_MAP = {
164
+ [STATUS.PENDING]: STATUS_CHINESE.PENDING,
165
+ [STATUS.SUBMITTED]: STATUS_CHINESE.SUBMITTED,
166
+ [STATUS.CANCELLED]: STATUS_CHINESE.CANCELLED,
167
+ };
168
+ /** 预配货单类型(数字类型) */
169
+ let PRE_ORDER_TYPE;
170
+ (function (PRE_ORDER_TYPE) {
171
+ PRE_ORDER_TYPE[PRE_ORDER_TYPE["CURRENT_DAY_ORDER"] = 1] = "CURRENT_DAY_ORDER";
172
+ PRE_ORDER_TYPE[PRE_ORDER_TYPE["UNDELIVERED"] = 2] = "UNDELIVERED";
173
+ PRE_ORDER_TYPE[PRE_ORDER_TYPE["MANUAL_IMPORT"] = 3] = "MANUAL_IMPORT";
174
+ PRE_ORDER_TYPE[PRE_ORDER_TYPE["STORE_STOCK_IN_REPLENISH"] = 4] = "STORE_STOCK_IN_REPLENISH";
175
+ PRE_ORDER_TYPE[PRE_ORDER_TYPE["STORE_ACTIVE_APPLY"] = 5] = "STORE_ACTIVE_APPLY";
176
+ })(PRE_ORDER_TYPE = PRE_ALLOCATION_ORDER_ENUM.PRE_ORDER_TYPE || (PRE_ALLOCATION_ORDER_ENUM.PRE_ORDER_TYPE = {}));
177
+ let PRE_ORDER_TYPE_CHINESE;
178
+ (function (PRE_ORDER_TYPE_CHINESE) {
179
+ PRE_ORDER_TYPE_CHINESE["CURRENT_DAY_ORDER"] = "\u5F53\u5929\u8BA2\u5355";
180
+ PRE_ORDER_TYPE_CHINESE["UNDELIVERED"] = "\u672A\u53D1\u91CF";
181
+ PRE_ORDER_TYPE_CHINESE["MANUAL_IMPORT"] = "\u4EBA\u5DE5\u5BFC\u5165";
182
+ PRE_ORDER_TYPE_CHINESE["STORE_STOCK_IN_REPLENISH"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
183
+ PRE_ORDER_TYPE_CHINESE["STORE_ACTIVE_APPLY"] = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
184
+ })(PRE_ORDER_TYPE_CHINESE = PRE_ALLOCATION_ORDER_ENUM.PRE_ORDER_TYPE_CHINESE || (PRE_ALLOCATION_ORDER_ENUM.PRE_ORDER_TYPE_CHINESE = {}));
185
+ /** 来源类型(数字类型) */
186
+ let SOURCE_TYPE;
187
+ (function (SOURCE_TYPE) {
188
+ SOURCE_TYPE[SOURCE_TYPE["ORDER_WITH_COUPON"] = 1] = "ORDER_WITH_COUPON";
189
+ SOURCE_TYPE[SOURCE_TYPE["MANUAL_IMPORT"] = 2] = "MANUAL_IMPORT";
190
+ SOURCE_TYPE[SOURCE_TYPE["STORE_STOCK_IN_REPLENISH"] = 3] = "STORE_STOCK_IN_REPLENISH";
191
+ SOURCE_TYPE[SOURCE_TYPE["STORE_ACTIVE_APPLY"] = 4] = "STORE_ACTIVE_APPLY";
192
+ })(SOURCE_TYPE = PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE || (PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE = {}));
193
+ let SOURCE_TYPE_CHINESE;
194
+ (function (SOURCE_TYPE_CHINESE) {
195
+ SOURCE_TYPE_CHINESE["ORDER_WITH_COUPON"] = "\u8BA2\u5355\uFF08\u542B\u5238\uFF09";
196
+ SOURCE_TYPE_CHINESE["MANUAL_IMPORT"] = "\u4EBA\u5DE5\u5BFC\u5165";
197
+ SOURCE_TYPE_CHINESE["STORE_STOCK_IN_REPLENISH"] = "\u95E8\u5E97\u5165\u5E93\u5355\u8865\u8D27";
198
+ SOURCE_TYPE_CHINESE["STORE_ACTIVE_APPLY"] = "\u95E8\u5E97\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
199
+ })(SOURCE_TYPE_CHINESE = PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE || (PRE_ALLOCATION_ORDER_ENUM.SOURCE_TYPE_CHINESE = {}));
200
+ /** 错误消息常量 */
201
+ PRE_ALLOCATION_ORDER_ENUM.ERROR_MESSAGES = {
202
+ ORDER_NOT_FOUND: '预配货单不存在',
203
+ ORDER_SUBMITTED: '预配货单已提交,不可操作',
204
+ ORDER_CANCELLED: '预配货单已作废,不可操作',
205
+ DETAIL_NOT_FOUND: '预配货单明细不存在',
206
+ SKU_NOT_FOUND: 'SKU编码在预配货单中不存在',
207
+ CANNOT_REPEAL_SUBMITTED: '存在已提交的预配货单,无法撤回',
208
+ };
209
+ })(PRE_ALLOCATION_ORDER_ENUM = ENUM.PRE_ALLOCATION_ORDER_ENUM || (ENUM.PRE_ALLOCATION_ORDER_ENUM = {}));
147
210
  })(ENUM || (exports.ENUM = ENUM = {}));
@@ -28,6 +28,22 @@ export declare namespace PreAllocationOrderTypes {
28
28
  submittedStoreCount: number;
29
29
  createdAt: number;
30
30
  }
31
+ /** 批次列表项 */
32
+ interface BatchListItem {
33
+ id: string;
34
+ batchNo: string;
35
+ pickingDate: number;
36
+ warehouseId: string;
37
+ warehouseName: string;
38
+ storeCount: number;
39
+ submittedStoreCount: number;
40
+ totalSkuCount: number;
41
+ totalPickingNum: number;
42
+ status: number;
43
+ statusText: string;
44
+ createdAt: number;
45
+ updatedAt: number;
46
+ }
31
47
  /** 预配货单 */
32
48
  interface PreAllocationOrder {
33
49
  preAllocationOrderId: string;
@@ -42,6 +58,30 @@ export declare namespace PreAllocationOrderTypes {
42
58
  status: number;
43
59
  createdAt: number;
44
60
  }
61
+ /** 来源标签 */
62
+ interface SourceTag {
63
+ type: number;
64
+ label: string;
65
+ color: string;
66
+ }
67
+ /** 门店单据列表项 */
68
+ interface StoreOrderListItem {
69
+ id: string;
70
+ batchId: string;
71
+ batchNo: string;
72
+ storeId: string;
73
+ storeName: string;
74
+ skuCount: number;
75
+ totalPickingNum: number;
76
+ totalSaleNum: number;
77
+ deliveryMode: string;
78
+ sourceType: number;
79
+ sourceTypeTags: SourceTag[];
80
+ status: number;
81
+ statusText: string;
82
+ createdAt: number;
83
+ updatedAt: number;
84
+ }
45
85
  /** 商品信息 */
46
86
  interface Product {
47
87
  skuCode: string;
@@ -66,30 +106,31 @@ export declare namespace PreAllocationOrderTypes {
66
106
  namespace Request {
67
107
  /** 查询预配货批次列表 */
68
108
  interface QueryBatchList {
109
+ batchIds?: string[];
110
+ batchNos?: string[];
69
111
  pageIndex: number;
70
112
  pageSize: number;
71
- batchNo?: string;
72
- warehouseId?: string;
73
113
  storeIds?: string[];
114
+ warehouseIds?: string[];
74
115
  productIds?: string[];
75
116
  skuCodes?: string[];
76
- deliveryMode?: string;
77
- sourceType?: number;
78
- batchStatus?: number;
117
+ deliveryModes?: number[];
118
+ sourceTypes?: number[];
119
+ statuses?: number[];
79
120
  }
80
121
  /** 查询批次下的门店单据列表 */
81
122
  interface QueryBatchStoreList {
82
- batchId: string;
123
+ batchIds?: string[];
124
+ batchNos?: string[];
83
125
  pageIndex: number;
84
126
  pageSize: number;
85
127
  storeIds?: string[];
86
- storeName?: string;
128
+ warehouseIds?: string[];
87
129
  productIds?: string[];
88
130
  skuCodes?: string[];
89
- deliveryMode?: string;
90
- sourceType?: number;
91
- batchStatus?: number;
92
- status?: number;
131
+ deliveryModes?: number[];
132
+ sourceTypes?: number[];
133
+ statuses?: number[];
93
134
  }
94
135
  /** 上传Excel */
95
136
  interface UploadExcel {
@@ -152,9 +193,10 @@ export declare namespace PreAllocationOrderTypes {
152
193
  }
153
194
  /** 搜索商品 */
154
195
  interface SearchProducts {
155
- preAllocationOrderIds: string[];
156
- productName?: string;
157
- skuCode?: string;
196
+ batchIds?: string[];
197
+ preAllocationOrderIds?: string[];
198
+ productIds?: string[];
199
+ skuCodes?: string[];
158
200
  pageIndex?: number;
159
201
  pageSize?: number;
160
202
  }
@@ -172,30 +214,32 @@ export declare namespace PreAllocationOrderTypes {
172
214
  /** 导出预配货单 */
173
215
  interface ExportPreAllocationOrders {
174
216
  filters?: {
175
- batchNo?: string;
176
- warehouseId?: string;
177
- storeId?: string;
178
- productId?: string;
179
- skuCode?: string;
180
- deliveryMode?: string;
217
+ batchNos?: string[];
218
+ warehouseIds?: string[];
219
+ storeIds?: string[];
220
+ productIds?: string[];
221
+ skuCodes?: string[];
222
+ deliveryMode?: number;
181
223
  sourceType?: number;
182
224
  batchStatus?: number;
183
225
  status?: number;
184
226
  };
185
227
  batchIds?: string[];
186
228
  preAllocationOrderIds?: string[];
229
+ pageIndex?: number;
230
+ pageSize?: number;
187
231
  }
188
232
  }
189
233
  /** 响应结果定义 */
190
234
  namespace Response {
191
235
  /** 查询预配货批次列表响应 */
192
236
  interface QueryBatchList {
193
- list: Entity.PreAllocationBatch[];
237
+ list: Entity.BatchListItem[];
194
238
  total: number;
195
239
  }
196
240
  /** 查询批次下的门店单据列表响应 */
197
241
  interface QueryBatchStoreList {
198
- list: Entity.PreAllocationOrder[];
242
+ list: Entity.StoreOrderListItem[];
199
243
  total: number;
200
244
  }
201
245
  /** 上传Excel响应 */
@@ -292,6 +336,7 @@ export declare namespace PreAllocationOrderTypes {
292
336
  width?: number;
293
337
  }>;
294
338
  data: any[];
339
+ total: number;
295
340
  };
296
341
  }
297
342
  }
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.23",
3
+ "version": "0.0.24",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",