@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.23 → 0.0.25
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 +56 -0
- package/enum.js +63 -0
- package/modules/preAllocationOrder/service.d.ts +12 -0
- package/modules/preAllocationOrder/service.js +30 -0
- package/modules/preAllocationOrder/types.d.ts +130 -22
- package/package.json +1 -1
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 = {}));
|
|
@@ -54,10 +54,22 @@ 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
|
+
getPreAllocationOrderDetails(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
|
|
57
61
|
/**
|
|
58
62
|
* 导出预配货单
|
|
59
63
|
*/
|
|
60
64
|
exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
|
|
65
|
+
/**
|
|
66
|
+
* 删除预配货单
|
|
67
|
+
*/
|
|
68
|
+
deletePreAllocationOrder(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
|
|
69
|
+
/**
|
|
70
|
+
* 删除预配货单明细
|
|
71
|
+
*/
|
|
72
|
+
deletePreAllocationOrderDetail(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrderDetail): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrderDetail>;
|
|
61
73
|
}
|
|
62
74
|
export declare const preAllocationOrderService: PreAllocationOrderService;
|
|
63
75
|
export default preAllocationOrderService;
|
|
@@ -99,12 +99,30 @@ 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
|
+
getPreAllocationOrderDetails(request) {
|
|
106
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getPreAllocationOrderDetails), request);
|
|
107
|
+
}
|
|
102
108
|
/**
|
|
103
109
|
* 导出预配货单
|
|
104
110
|
*/
|
|
105
111
|
exportPreAllocationOrders(request) {
|
|
106
112
|
return (0, http_1.callApi)(this.getApiUrl(this.exportPreAllocationOrders), request);
|
|
107
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* 删除预配货单
|
|
116
|
+
*/
|
|
117
|
+
deletePreAllocationOrder(request) {
|
|
118
|
+
return (0, http_1.callApi)(this.getApiUrl(this.deletePreAllocationOrder), request);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 删除预配货单明细
|
|
122
|
+
*/
|
|
123
|
+
deletePreAllocationOrderDetail(request) {
|
|
124
|
+
return (0, http_1.callApi)(this.getApiUrl(this.deletePreAllocationOrderDetail), request);
|
|
125
|
+
}
|
|
108
126
|
};
|
|
109
127
|
__decorate([
|
|
110
128
|
(0, tsoa_1.Post)('query-batch-list'),
|
|
@@ -158,10 +176,22 @@ __decorate([
|
|
|
158
176
|
(0, tsoa_1.Post)('batch-update-picking-num'),
|
|
159
177
|
__param(0, (0, tsoa_1.Body)())
|
|
160
178
|
], PreAllocationOrderService.prototype, "batchUpdatePickingNum", null);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, tsoa_1.Post)('details'),
|
|
181
|
+
__param(0, (0, tsoa_1.Body)())
|
|
182
|
+
], PreAllocationOrderService.prototype, "getPreAllocationOrderDetails", null);
|
|
161
183
|
__decorate([
|
|
162
184
|
(0, tsoa_1.Post)('export'),
|
|
163
185
|
__param(0, (0, tsoa_1.Body)())
|
|
164
186
|
], PreAllocationOrderService.prototype, "exportPreAllocationOrders", null);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, tsoa_1.Post)('delete'),
|
|
189
|
+
__param(0, (0, tsoa_1.Body)())
|
|
190
|
+
], PreAllocationOrderService.prototype, "deletePreAllocationOrder", null);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, tsoa_1.Post)('delete-detail'),
|
|
193
|
+
__param(0, (0, tsoa_1.Body)())
|
|
194
|
+
], PreAllocationOrderService.prototype, "deletePreAllocationOrderDetail", null);
|
|
165
195
|
PreAllocationOrderService = __decorate([
|
|
166
196
|
(0, tsoa_1.Route)('PreAllocationOrder'),
|
|
167
197
|
(0, tsoa_1.Tags)('preAllocationOrder')
|
|
@@ -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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
117
|
+
deliveryModes?: number[];
|
|
118
|
+
sourceTypes?: number[];
|
|
119
|
+
statuses?: number[];
|
|
79
120
|
}
|
|
80
121
|
/** 查询批次下的门店单据列表 */
|
|
81
122
|
interface QueryBatchStoreList {
|
|
82
|
-
|
|
123
|
+
batchIds?: string[];
|
|
124
|
+
batchNos?: string[];
|
|
83
125
|
pageIndex: number;
|
|
84
126
|
pageSize: number;
|
|
85
127
|
storeIds?: string[];
|
|
86
|
-
|
|
128
|
+
warehouseIds?: string[];
|
|
87
129
|
productIds?: string[];
|
|
88
130
|
skuCodes?: string[];
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
196
|
+
batchIds?: string[];
|
|
197
|
+
preAllocationOrderIds?: string[];
|
|
198
|
+
productIds?: string[];
|
|
199
|
+
skuCodes?: string[];
|
|
158
200
|
pageIndex?: number;
|
|
159
201
|
pageSize?: number;
|
|
160
202
|
}
|
|
@@ -169,33 +211,55 @@ export declare namespace PreAllocationOrderTypes {
|
|
|
169
211
|
}>;
|
|
170
212
|
operator: string;
|
|
171
213
|
}
|
|
214
|
+
/** 查询预配货单商品明细 */
|
|
215
|
+
interface GetPreAllocationOrderDetails {
|
|
216
|
+
preAllocationOrderId: string;
|
|
217
|
+
productIds?: string[];
|
|
218
|
+
skuCodes?: string[];
|
|
219
|
+
pageIndex?: number;
|
|
220
|
+
pageSize?: number;
|
|
221
|
+
}
|
|
172
222
|
/** 导出预配货单 */
|
|
173
223
|
interface ExportPreAllocationOrders {
|
|
174
224
|
filters?: {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
deliveryMode?:
|
|
225
|
+
batchNos?: string[];
|
|
226
|
+
warehouseIds?: string[];
|
|
227
|
+
storeIds?: string[];
|
|
228
|
+
productIds?: string[];
|
|
229
|
+
skuCodes?: string[];
|
|
230
|
+
deliveryMode?: number;
|
|
181
231
|
sourceType?: number;
|
|
182
232
|
batchStatus?: number;
|
|
183
233
|
status?: number;
|
|
184
234
|
};
|
|
185
235
|
batchIds?: string[];
|
|
186
236
|
preAllocationOrderIds?: string[];
|
|
237
|
+
pageIndex?: number;
|
|
238
|
+
pageSize?: number;
|
|
239
|
+
}
|
|
240
|
+
/** 删除预配货单 */
|
|
241
|
+
interface DeletePreAllocationOrder {
|
|
242
|
+
preAllocationOrderId: string;
|
|
243
|
+
operator: string;
|
|
244
|
+
reason?: string;
|
|
245
|
+
}
|
|
246
|
+
/** 删除预配货单明细 */
|
|
247
|
+
interface DeletePreAllocationOrderDetail {
|
|
248
|
+
preAllocationOrderDetailId: string;
|
|
249
|
+
operator: string;
|
|
250
|
+
reason?: string;
|
|
187
251
|
}
|
|
188
252
|
}
|
|
189
253
|
/** 响应结果定义 */
|
|
190
254
|
namespace Response {
|
|
191
255
|
/** 查询预配货批次列表响应 */
|
|
192
256
|
interface QueryBatchList {
|
|
193
|
-
list: Entity.
|
|
257
|
+
list: Entity.BatchListItem[];
|
|
194
258
|
total: number;
|
|
195
259
|
}
|
|
196
260
|
/** 查询批次下的门店单据列表响应 */
|
|
197
261
|
interface QueryBatchStoreList {
|
|
198
|
-
list: Entity.
|
|
262
|
+
list: Entity.StoreOrderListItem[];
|
|
199
263
|
total: number;
|
|
200
264
|
}
|
|
201
265
|
/** 上传Excel响应 */
|
|
@@ -281,6 +345,31 @@ export declare namespace PreAllocationOrderTypes {
|
|
|
281
345
|
message: string;
|
|
282
346
|
data: null;
|
|
283
347
|
}
|
|
348
|
+
/** 查询预配货单商品明细响应 */
|
|
349
|
+
interface GetPreAllocationOrderDetails {
|
|
350
|
+
code: number;
|
|
351
|
+
message: string;
|
|
352
|
+
data: {
|
|
353
|
+
list: Array<{
|
|
354
|
+
id: string;
|
|
355
|
+
skuCode: string;
|
|
356
|
+
productId: string;
|
|
357
|
+
productName: string;
|
|
358
|
+
specName: string;
|
|
359
|
+
storageMethod: string;
|
|
360
|
+
categoryName: string;
|
|
361
|
+
pickingNum: number;
|
|
362
|
+
saleNum: number;
|
|
363
|
+
normalOrderQty: number;
|
|
364
|
+
couponOrderQty: number;
|
|
365
|
+
refundQty: number;
|
|
366
|
+
undeliveredQty: number;
|
|
367
|
+
manualAdjustment: number;
|
|
368
|
+
pickingRemark?: string;
|
|
369
|
+
}>;
|
|
370
|
+
total: number;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
284
373
|
/** 导出预配货单响应 */
|
|
285
374
|
interface ExportPreAllocationOrders {
|
|
286
375
|
code: number;
|
|
@@ -292,8 +381,21 @@ export declare namespace PreAllocationOrderTypes {
|
|
|
292
381
|
width?: number;
|
|
293
382
|
}>;
|
|
294
383
|
data: any[];
|
|
384
|
+
total: number;
|
|
295
385
|
};
|
|
296
386
|
}
|
|
387
|
+
/** 删除预配货单响应 */
|
|
388
|
+
interface DeletePreAllocationOrder {
|
|
389
|
+
code: number;
|
|
390
|
+
message: string;
|
|
391
|
+
data: null;
|
|
392
|
+
}
|
|
393
|
+
/** 删除预配货单明细响应 */
|
|
394
|
+
interface DeletePreAllocationOrderDetail {
|
|
395
|
+
code: number;
|
|
396
|
+
message: string;
|
|
397
|
+
data: null;
|
|
398
|
+
}
|
|
297
399
|
}
|
|
298
400
|
/** PreAllocationOrder Controller 接口定义 */
|
|
299
401
|
interface PreAllocationOrderController {
|
|
@@ -323,7 +425,13 @@ export declare namespace PreAllocationOrderTypes {
|
|
|
323
425
|
searchProducts(request: PreAllocationOrderTypes.Request.SearchProducts): Promise<PreAllocationOrderTypes.Response.SearchProducts>;
|
|
324
426
|
/** 批量修改配货数量 */
|
|
325
427
|
batchUpdatePickingNum(request: PreAllocationOrderTypes.Request.BatchUpdatePickingNum): Promise<PreAllocationOrderTypes.Response.BatchUpdatePickingNum>;
|
|
428
|
+
/** 查询预配货单商品明细 */
|
|
429
|
+
getPreAllocationOrderDetails(request: PreAllocationOrderTypes.Request.GetPreAllocationOrderDetails): Promise<PreAllocationOrderTypes.Response.GetPreAllocationOrderDetails>;
|
|
326
430
|
/** 导出预配货单 */
|
|
327
431
|
exportPreAllocationOrders(request: PreAllocationOrderTypes.Request.ExportPreAllocationOrders): Promise<PreAllocationOrderTypes.Response.ExportPreAllocationOrders>;
|
|
432
|
+
/** 删除预配货单 */
|
|
433
|
+
deletePreAllocationOrder(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrder): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrder>;
|
|
434
|
+
/** 删除预配货单明细 */
|
|
435
|
+
deletePreAllocationOrderDetail(request: PreAllocationOrderTypes.Request.DeletePreAllocationOrderDetail): Promise<PreAllocationOrderTypes.Response.DeletePreAllocationOrderDetail>;
|
|
328
436
|
}
|
|
329
437
|
}
|