@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.49 → 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 +1 -0
- package/index.js +3 -1
- package/modules/allocationOrder/types.d.ts +4 -2
- package/modules/preAllocationOrder/routingFailureService.d.ts +15 -0
- package/modules/preAllocationOrder/routingFailureService.js +50 -0
- package/modules/preAllocationOrder/service.d.ts +4 -0
- package/modules/preAllocationOrder/service.js +10 -0
- package/modules/preAllocationOrder/types.d.ts +96 -0
- package/modules/storeReplenishOrder/service.d.ts +4 -0
- package/modules/storeReplenishOrder/service.js +10 -0
- package/modules/storeReplenishOrder/types.d.ts +36 -0
- package/modules/storeStockIn/types.d.ts +3 -3
- package/package.json +1 -1
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?:
|
|
170
|
+
deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
|
|
171
171
|
status?: string;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -198,6 +198,7 @@ export declare namespace AllocationOrderTypes {
|
|
|
198
198
|
* 退回预配货单请求
|
|
199
199
|
*/
|
|
200
200
|
interface RollbackPre {
|
|
201
|
+
warehouseId?: string;
|
|
201
202
|
pickingAt?: number;
|
|
202
203
|
orderIds?: string[];
|
|
203
204
|
operator?: string;
|
|
@@ -303,6 +304,7 @@ export declare namespace AllocationOrderTypes {
|
|
|
303
304
|
* 打印拣货单项目接口(按商品聚合)
|
|
304
305
|
*/
|
|
305
306
|
interface PrintPickingSheetItem {
|
|
307
|
+
skuId?: string;
|
|
306
308
|
商品名称?: string;
|
|
307
309
|
规格名称?: string;
|
|
308
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
|
}
|
|
@@ -22,6 +22,10 @@ declare class StoreReplenishOrderService extends BaseService implements StoreRep
|
|
|
22
22
|
* 获取补货审批列表
|
|
23
23
|
*/
|
|
24
24
|
getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
|
|
25
|
+
/**
|
|
26
|
+
* 导出补货审批Excel
|
|
27
|
+
*/
|
|
28
|
+
exportExcel(request: StoreReplenishOrderTypes.Request.ExportExcel): Promise<StoreReplenishOrderTypes.Response.ExportExcel>;
|
|
25
29
|
/**
|
|
26
30
|
* 批量拒绝补货申请
|
|
27
31
|
*/
|
|
@@ -51,6 +51,12 @@ let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseSe
|
|
|
51
51
|
getApprovalList(request) {
|
|
52
52
|
return (0, http_1.callApi)(this.getApiUrl(this.getApprovalList), request);
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* 导出补货审批Excel
|
|
56
|
+
*/
|
|
57
|
+
exportExcel(request) {
|
|
58
|
+
return (0, http_1.callApi)(this.getApiUrl(this.exportExcel), request);
|
|
59
|
+
}
|
|
54
60
|
/**
|
|
55
61
|
* 批量拒绝补货申请
|
|
56
62
|
*/
|
|
@@ -96,6 +102,10 @@ __decorate([
|
|
|
96
102
|
(0, tsoa_1.Post)('get-approval-list'),
|
|
97
103
|
__param(0, (0, tsoa_1.Body)())
|
|
98
104
|
], StoreReplenishOrderService.prototype, "getApprovalList", null);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, tsoa_1.Post)('export-excel'),
|
|
107
|
+
__param(0, (0, tsoa_1.Body)())
|
|
108
|
+
], StoreReplenishOrderService.prototype, "exportExcel", null);
|
|
99
109
|
__decorate([
|
|
100
110
|
(0, tsoa_1.Post)('batch-reject'),
|
|
101
111
|
__param(0, (0, tsoa_1.Body)())
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ENUM } from '../../enum';
|
|
1
2
|
export declare namespace StoreReplenishOrderTypes {
|
|
2
3
|
/** 实体定义 */
|
|
3
4
|
namespace Entity {
|
|
@@ -88,6 +89,9 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
88
89
|
approvalTimeStart?: number;
|
|
89
90
|
approvalTimeEnd?: number;
|
|
90
91
|
}
|
|
92
|
+
/** 导出补货审批Excel,请求参数与获取补货审批列表一致 */
|
|
93
|
+
interface ExportExcel extends GetApprovalList {
|
|
94
|
+
}
|
|
91
95
|
/** 批量拒绝补货申请 */
|
|
92
96
|
interface BatchReject {
|
|
93
97
|
ids: string[];
|
|
@@ -98,9 +102,12 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
98
102
|
interface ApproveReplenish {
|
|
99
103
|
id: string;
|
|
100
104
|
status: string;
|
|
105
|
+
warehouseId?: string;
|
|
106
|
+
deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
|
|
101
107
|
lossType?: string;
|
|
102
108
|
approvalNum?: number;
|
|
103
109
|
approvalReason: string;
|
|
110
|
+
approvalImages?: string[];
|
|
104
111
|
operator: string;
|
|
105
112
|
}
|
|
106
113
|
/** 更新审批理由 */
|
|
@@ -132,6 +139,30 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
132
139
|
rejectCount: number;
|
|
133
140
|
approveCount: number;
|
|
134
141
|
}
|
|
142
|
+
/** 导出补货审批Excel每一行字段 */
|
|
143
|
+
interface ExportExcelItem {
|
|
144
|
+
补货单号?: string;
|
|
145
|
+
补货单状态?: string;
|
|
146
|
+
申请类型?: string;
|
|
147
|
+
申请门店?: string;
|
|
148
|
+
商品id?: string;
|
|
149
|
+
商品名称?: string;
|
|
150
|
+
skuid?: string;
|
|
151
|
+
规格编码?: string;
|
|
152
|
+
规格详情?: string;
|
|
153
|
+
申请补货量?: number;
|
|
154
|
+
补货原因?: string;
|
|
155
|
+
同意补货量?: number;
|
|
156
|
+
申请时间?: string;
|
|
157
|
+
审批时间?: string;
|
|
158
|
+
记损方?: string;
|
|
159
|
+
审批备注?: string;
|
|
160
|
+
}
|
|
161
|
+
/** 导出补货审批Excel响应 */
|
|
162
|
+
interface ExportExcel {
|
|
163
|
+
data: ExportExcelItem[];
|
|
164
|
+
headerMap: string[];
|
|
165
|
+
}
|
|
135
166
|
/** 获取补货单详情响应 */
|
|
136
167
|
interface GetReplenishDetail {
|
|
137
168
|
/** 补货单基础信息 */
|
|
@@ -141,6 +172,8 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
141
172
|
createdAt: number;
|
|
142
173
|
storeId: string;
|
|
143
174
|
storeName: string;
|
|
175
|
+
warehouseId?: string;
|
|
176
|
+
deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
|
|
144
177
|
};
|
|
145
178
|
/** 商品信息 */
|
|
146
179
|
productInfo: {
|
|
@@ -166,6 +199,7 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
166
199
|
approvalNum?: number;
|
|
167
200
|
batchNo?: string;
|
|
168
201
|
approvalTime?: number;
|
|
202
|
+
approvalImages?: string[];
|
|
169
203
|
};
|
|
170
204
|
/** 审批记录 */
|
|
171
205
|
approvalRecords?: Array<{
|
|
@@ -188,6 +222,8 @@ export declare namespace StoreReplenishOrderTypes {
|
|
|
188
222
|
getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
|
|
189
223
|
/** 获取补货审批列表 */
|
|
190
224
|
getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
|
|
225
|
+
/** 导出补货审批Excel */
|
|
226
|
+
exportExcel(request: StoreReplenishOrderTypes.Request.ExportExcel): Promise<StoreReplenishOrderTypes.Response.ExportExcel>;
|
|
191
227
|
/** 批量拒绝补货申请 */
|
|
192
228
|
batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
|
|
193
229
|
/** 审批通过补货申请 */
|
|
@@ -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?:
|
|
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?:
|
|
126
|
+
deliveryMode?: ENUM.STORE_WAREHOUSE_ENUM.DELIVERY_MODE;
|
|
127
127
|
}
|
|
128
128
|
/** 店长查看入库单商品数据请求 */
|
|
129
129
|
interface GetStockInProducts {
|