@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.5 → 0.0.7
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 +5 -5
- package/enum.js +5 -5
- package/index.d.ts +5 -0
- package/index.js +13 -6
- package/modules/allocationOrder/service.d.ts +47 -0
- package/modules/allocationOrder/service.js +130 -0
- package/modules/allocationOrder/types.d.ts +330 -0
- package/modules/allocationOrder/types.js +2 -0
- package/modules/logistics/service.d.ts +15 -0
- package/modules/logistics/service.js +94 -0
- package/modules/logistics/types.d.ts +188 -0
- package/modules/logistics/types.js +2 -0
- package/modules/storeStockIn/service.d.ts +1 -1
- package/modules/storeStockIn/service.js +4 -4
- package/modules/storeStockIn/types.d.ts +9 -9
- package/package.json +2 -1
- package/utils/http-copy.d.ts +10 -0
- package/utils/http-copy.js +107 -0
- package/utils/http.d.ts +1 -0
- package/utils/http.js +91 -90
package/enum.d.ts
CHANGED
|
@@ -50,13 +50,13 @@ export declare namespace ENUM {
|
|
|
50
50
|
enum STATUS {
|
|
51
51
|
PENDING = "PENDING",
|
|
52
52
|
PARTIAL = "PARTIAL",
|
|
53
|
-
|
|
53
|
+
SHIPPED = "SHIPPED",
|
|
54
54
|
EARLY_COMPLETED = "EARLY_COMPLETED"
|
|
55
55
|
}
|
|
56
56
|
enum STATUS_CHINESE {
|
|
57
57
|
PENDING = "\u5F85\u53D1\u8D27",
|
|
58
58
|
PARTIAL = "\u90E8\u5206\u53D1\u8D27",
|
|
59
|
-
|
|
59
|
+
SHIPPED = "\u5DF2\u53D1\u8D27",
|
|
60
60
|
EARLY_COMPLETED = "\u63D0\u524D\u5B8C\u6210"
|
|
61
61
|
}
|
|
62
62
|
/** 错误消息常量 */
|
|
@@ -69,9 +69,9 @@ export declare namespace ENUM {
|
|
|
69
69
|
};
|
|
70
70
|
/** 状态转换规则 */
|
|
71
71
|
const STATUS_TRANSITIONS: {
|
|
72
|
-
readonly PENDING: readonly ["PARTIAL", "
|
|
73
|
-
readonly PARTIAL: readonly ["
|
|
74
|
-
readonly
|
|
72
|
+
readonly PENDING: readonly ["PARTIAL", "SHIPPED", "EARLY_COMPLETED"];
|
|
73
|
+
readonly PARTIAL: readonly ["SHIPPED", "EARLY_COMPLETED"];
|
|
74
|
+
readonly SHIPPED: readonly [];
|
|
75
75
|
readonly EARLY_COMPLETED: readonly [];
|
|
76
76
|
};
|
|
77
77
|
}
|
package/enum.js
CHANGED
|
@@ -62,14 +62,14 @@ var ENUM;
|
|
|
62
62
|
(function (STATUS) {
|
|
63
63
|
STATUS["PENDING"] = "PENDING";
|
|
64
64
|
STATUS["PARTIAL"] = "PARTIAL";
|
|
65
|
-
STATUS["
|
|
65
|
+
STATUS["SHIPPED"] = "SHIPPED";
|
|
66
66
|
STATUS["EARLY_COMPLETED"] = "EARLY_COMPLETED";
|
|
67
67
|
})(STATUS = ALLOCATION_ORDER_ENUM.STATUS || (ALLOCATION_ORDER_ENUM.STATUS = {}));
|
|
68
68
|
let STATUS_CHINESE;
|
|
69
69
|
(function (STATUS_CHINESE) {
|
|
70
70
|
STATUS_CHINESE["PENDING"] = "\u5F85\u53D1\u8D27";
|
|
71
71
|
STATUS_CHINESE["PARTIAL"] = "\u90E8\u5206\u53D1\u8D27";
|
|
72
|
-
STATUS_CHINESE["
|
|
72
|
+
STATUS_CHINESE["SHIPPED"] = "\u5DF2\u53D1\u8D27";
|
|
73
73
|
STATUS_CHINESE["EARLY_COMPLETED"] = "\u63D0\u524D\u5B8C\u6210";
|
|
74
74
|
})(STATUS_CHINESE = ALLOCATION_ORDER_ENUM.STATUS_CHINESE || (ALLOCATION_ORDER_ENUM.STATUS_CHINESE = {}));
|
|
75
75
|
/** 错误消息常量 */
|
|
@@ -82,9 +82,9 @@ var ENUM;
|
|
|
82
82
|
};
|
|
83
83
|
/** 状态转换规则 */
|
|
84
84
|
ALLOCATION_ORDER_ENUM.STATUS_TRANSITIONS = {
|
|
85
|
-
PENDING: ['PARTIAL', '
|
|
86
|
-
PARTIAL: ['
|
|
87
|
-
|
|
85
|
+
PENDING: ['PARTIAL', 'SHIPPED', 'EARLY_COMPLETED'],
|
|
86
|
+
PARTIAL: ['SHIPPED', 'EARLY_COMPLETED'],
|
|
87
|
+
SHIPPED: [],
|
|
88
88
|
EARLY_COMPLETED: [],
|
|
89
89
|
};
|
|
90
90
|
})(ALLOCATION_ORDER_ENUM = ENUM.ALLOCATION_ORDER_ENUM || (ENUM.ALLOCATION_ORDER_ENUM = {}));
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export { allocationService } from './modules/allocation/service';
|
|
2
2
|
export type { Service as AllocationServiceTypes } from './modules/allocation/types';
|
|
3
|
+
export { logisticsService } from './modules/logistics/service';
|
|
4
|
+
export type { Service as LogisticsServiceTypes } from './modules/logistics/types';
|
|
5
|
+
export { ENUM as DEMO_ENUM } from './enum';
|
|
6
|
+
export { allocationOrderService } from './modules/allocationOrder/service';
|
|
7
|
+
export { AllocationOrderTypes } from './modules/allocationOrder/types';
|
|
3
8
|
export { storeStockInService } from './modules/storeStockIn/service';
|
|
4
9
|
export { StoreStockInTypes } from './modules/storeStockIn/types';
|
|
5
10
|
export { preAllocationOrderService } from './modules/preAllocationOrder/service';
|
package/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ENUM = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationService = void 0;
|
|
3
|
+
exports.ENUM = exports.preAllocationOrderService = exports.storeStockInService = exports.allocationOrderService = exports.DEMO_ENUM = exports.logisticsService = exports.allocationService = void 0;
|
|
4
4
|
var service_1 = require("./modules/allocation/service");
|
|
5
5
|
Object.defineProperty(exports, "allocationService", { enumerable: true, get: function () { return service_1.allocationService; } });
|
|
6
|
-
var service_2 = require("./modules/
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var service_3 = require("./modules/preAllocationOrder/service");
|
|
9
|
-
Object.defineProperty(exports, "preAllocationOrderService", { enumerable: true, get: function () { return service_3.preAllocationOrderService; } });
|
|
6
|
+
var service_2 = require("./modules/logistics/service");
|
|
7
|
+
Object.defineProperty(exports, "logisticsService", { enumerable: true, get: function () { return service_2.logisticsService; } });
|
|
10
8
|
var enum_1 = require("./enum");
|
|
11
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "DEMO_ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
|
|
10
|
+
var service_3 = require("./modules/allocationOrder/service");
|
|
11
|
+
Object.defineProperty(exports, "allocationOrderService", { enumerable: true, get: function () { return service_3.allocationOrderService; } });
|
|
12
|
+
var service_4 = require("./modules/storeStockIn/service");
|
|
13
|
+
Object.defineProperty(exports, "storeStockInService", { enumerable: true, get: function () { return service_4.storeStockInService; } });
|
|
14
|
+
var service_5 = require("./modules/preAllocationOrder/service");
|
|
15
|
+
Object.defineProperty(exports, "preAllocationOrderService", { enumerable: true, get: function () { return service_5.preAllocationOrderService; } });
|
|
16
|
+
var enum_2 = require("./enum");
|
|
17
|
+
Object.defineProperty(exports, "ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
|
|
12
18
|
// 服务.模块.枚举名称.枚举值 示例: DEMO_ENUM.ORDER_ENUM.STATUS.PENDING
|
|
13
19
|
// 门店入库单枚举示例: ENUM.STORE_STOCK_IN_ORDER_ENUM.STATUS.PENDING
|
|
14
20
|
// 预配货单上传枚举示例: ENUM.PRE_ALLOCATION_ORDER_UPLOAD_EXCEL_ENUM.STATUS.PROCESSING
|
|
21
|
+
// 配货单枚举示例: ENUM.ALLOCATION_ORDER_ENUM.STATUS.PENDING
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AllocationOrderTypes } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class AllocationOrderService extends BaseService implements AllocationOrderTypes.AllocationOrderController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* 获取配货单列表
|
|
7
|
+
*/
|
|
8
|
+
list(request: AllocationOrderTypes.Request.GetList): Promise<AllocationOrderTypes.Response.GetList>;
|
|
9
|
+
/**
|
|
10
|
+
* 获取配货单详情
|
|
11
|
+
*/
|
|
12
|
+
detail(request: AllocationOrderTypes.Request.GetDetail): Promise<AllocationOrderTypes.Response.GetDetail>;
|
|
13
|
+
/**
|
|
14
|
+
* 批量更新配货单明细备注
|
|
15
|
+
*/
|
|
16
|
+
batchUpdateDetailRemarks(request: AllocationOrderTypes.Request.BatchUpdateDetailRemarks): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* 发货
|
|
19
|
+
*/
|
|
20
|
+
ship(request: AllocationOrderTypes.Request.Ship): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* 保存草稿
|
|
23
|
+
*/
|
|
24
|
+
saveDraft(request: AllocationOrderTypes.Request.SaveDraft): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* 撤销发货
|
|
27
|
+
*/
|
|
28
|
+
cancelShip(request: AllocationOrderTypes.Request.CancelShip): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* 导出配货单Excel
|
|
31
|
+
*/
|
|
32
|
+
exportExcel(request: AllocationOrderTypes.Request.ExportExcel): Promise<AllocationOrderTypes.Response.ExportExcel>;
|
|
33
|
+
/**
|
|
34
|
+
* 打印拣货单
|
|
35
|
+
*/
|
|
36
|
+
printPickingSheet(request: AllocationOrderTypes.Request.PrintPickingSheet): Promise<AllocationOrderTypes.Response.PrintPickingSheet>;
|
|
37
|
+
/**
|
|
38
|
+
* 打印发货签收单
|
|
39
|
+
*/
|
|
40
|
+
printDeliveryReceipt(request: AllocationOrderTypes.Request.PrintDeliveryReceipt): Promise<AllocationOrderTypes.Response.PrintDeliveryReceipt>;
|
|
41
|
+
/**
|
|
42
|
+
* 退回预配货单
|
|
43
|
+
*/
|
|
44
|
+
rollbackPre(request: AllocationOrderTypes.Request.RollbackPre): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
export declare const allocationOrderService: AllocationOrderService;
|
|
47
|
+
export default allocationOrderService;
|
|
@@ -0,0 +1,130 @@
|
|
|
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.allocationOrderService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let AllocationOrderService = class AllocationOrderService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/allocation-order';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 获取配货单列表
|
|
26
|
+
*/
|
|
27
|
+
list(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.list), request);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 获取配货单详情
|
|
32
|
+
*/
|
|
33
|
+
detail(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.detail), request);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 批量更新配货单明细备注
|
|
38
|
+
*/
|
|
39
|
+
batchUpdateDetailRemarks(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchUpdateDetailRemarks), request);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 发货
|
|
44
|
+
*/
|
|
45
|
+
ship(request) {
|
|
46
|
+
return (0, http_1.callApi)(this.getApiUrl(this.ship), request);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 保存草稿
|
|
50
|
+
*/
|
|
51
|
+
saveDraft(request) {
|
|
52
|
+
return (0, http_1.callApi)(this.getApiUrl(this.saveDraft), request);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 撤销发货
|
|
56
|
+
*/
|
|
57
|
+
cancelShip(request) {
|
|
58
|
+
return (0, http_1.callApi)(this.getApiUrl(this.cancelShip), request);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 导出配货单Excel
|
|
62
|
+
*/
|
|
63
|
+
exportExcel(request) {
|
|
64
|
+
return (0, http_1.callApi)(this.getApiUrl(this.exportExcel), request);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 打印拣货单
|
|
68
|
+
*/
|
|
69
|
+
printPickingSheet(request) {
|
|
70
|
+
return (0, http_1.callApi)(this.getApiUrl(this.printPickingSheet), request);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 打印发货签收单
|
|
74
|
+
*/
|
|
75
|
+
printDeliveryReceipt(request) {
|
|
76
|
+
return (0, http_1.callApi)(this.getApiUrl(this.printDeliveryReceipt), request);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 退回预配货单
|
|
80
|
+
*/
|
|
81
|
+
rollbackPre(request) {
|
|
82
|
+
return (0, http_1.callApi)(this.getApiUrl(this.rollbackPre), request);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, tsoa_1.Post)('list'),
|
|
87
|
+
__param(0, (0, tsoa_1.Body)())
|
|
88
|
+
], AllocationOrderService.prototype, "list", null);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, tsoa_1.Post)('detail'),
|
|
91
|
+
__param(0, (0, tsoa_1.Body)())
|
|
92
|
+
], AllocationOrderService.prototype, "detail", null);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, tsoa_1.Post)('batch-update-detail-remarks'),
|
|
95
|
+
__param(0, (0, tsoa_1.Body)())
|
|
96
|
+
], AllocationOrderService.prototype, "batchUpdateDetailRemarks", null);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, tsoa_1.Post)('ship'),
|
|
99
|
+
__param(0, (0, tsoa_1.Body)())
|
|
100
|
+
], AllocationOrderService.prototype, "ship", null);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, tsoa_1.Post)('save-draft'),
|
|
103
|
+
__param(0, (0, tsoa_1.Body)())
|
|
104
|
+
], AllocationOrderService.prototype, "saveDraft", null);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, tsoa_1.Post)('cancel-ship'),
|
|
107
|
+
__param(0, (0, tsoa_1.Body)())
|
|
108
|
+
], AllocationOrderService.prototype, "cancelShip", null);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, tsoa_1.Post)('export-excel'),
|
|
111
|
+
__param(0, (0, tsoa_1.Body)())
|
|
112
|
+
], AllocationOrderService.prototype, "exportExcel", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, tsoa_1.Post)('print-picking-sheet'),
|
|
115
|
+
__param(0, (0, tsoa_1.Body)())
|
|
116
|
+
], AllocationOrderService.prototype, "printPickingSheet", null);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, tsoa_1.Post)('print-delivery-receipt'),
|
|
119
|
+
__param(0, (0, tsoa_1.Body)())
|
|
120
|
+
], AllocationOrderService.prototype, "printDeliveryReceipt", null);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, tsoa_1.Post)('rollback-pre'),
|
|
123
|
+
__param(0, (0, tsoa_1.Body)())
|
|
124
|
+
], AllocationOrderService.prototype, "rollbackPre", null);
|
|
125
|
+
AllocationOrderService = __decorate([
|
|
126
|
+
(0, tsoa_1.Route)('AllocationOrder'),
|
|
127
|
+
(0, tsoa_1.Tags)('allocationOrder')
|
|
128
|
+
], AllocationOrderService);
|
|
129
|
+
exports.allocationOrderService = new AllocationOrderService();
|
|
130
|
+
exports.default = exports.allocationOrderService;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { ENUM } from '../../enum';
|
|
2
|
+
export declare namespace AllocationOrderTypes {
|
|
3
|
+
namespace Entity {
|
|
4
|
+
/**
|
|
5
|
+
* 配货单主表实体
|
|
6
|
+
*/
|
|
7
|
+
interface AllocationOrder {
|
|
8
|
+
id: string;
|
|
9
|
+
createdAt: number;
|
|
10
|
+
updatedAt: number;
|
|
11
|
+
deletedAt: number;
|
|
12
|
+
stockInOrderId: string;
|
|
13
|
+
pickingAt: number;
|
|
14
|
+
storeId: string;
|
|
15
|
+
warehouseId: string;
|
|
16
|
+
status: ENUM.ALLOCATION_ORDER_ENUM.STATUS;
|
|
17
|
+
shouldNum: number;
|
|
18
|
+
realNum: number;
|
|
19
|
+
creator: string;
|
|
20
|
+
updater: string;
|
|
21
|
+
shippedAt: number | null;
|
|
22
|
+
estimatedArrivalAt: number | null;
|
|
23
|
+
needNextHandle: number;
|
|
24
|
+
remark: string | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 配货单扩展实体(包含关联数据)
|
|
28
|
+
*/
|
|
29
|
+
interface AllocationOrderWithExtension extends AllocationOrder {
|
|
30
|
+
storeName?: string;
|
|
31
|
+
warehouseName?: string;
|
|
32
|
+
deliveryMode?: number;
|
|
33
|
+
regionName?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 配货单明细实体
|
|
37
|
+
*/
|
|
38
|
+
interface AllocationOrderDetail {
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: number;
|
|
41
|
+
updatedAt: number;
|
|
42
|
+
deletedAt: number;
|
|
43
|
+
allocationOrderId: string;
|
|
44
|
+
storeId: string;
|
|
45
|
+
productId: string;
|
|
46
|
+
skuId: string;
|
|
47
|
+
skuCode: string;
|
|
48
|
+
pickingNum: number;
|
|
49
|
+
shippedNum: number;
|
|
50
|
+
remainNum: number;
|
|
51
|
+
nextPickingNum: number;
|
|
52
|
+
shouldPickNum: number;
|
|
53
|
+
pickingRemark: string | null;
|
|
54
|
+
shippingRemark: string | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 配货单明细扩展实体(包含商品信息)
|
|
58
|
+
*/
|
|
59
|
+
interface AllocationOrderDetailWithProduct extends AllocationOrderDetail {
|
|
60
|
+
productName: string;
|
|
61
|
+
specName: string;
|
|
62
|
+
storageMethod: string;
|
|
63
|
+
classification: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 发货项
|
|
67
|
+
*/
|
|
68
|
+
interface ShipItem {
|
|
69
|
+
detailId: string;
|
|
70
|
+
shippedNum: number;
|
|
71
|
+
pickingRemark?: string;
|
|
72
|
+
shippingRemark?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 草稿项
|
|
76
|
+
*/
|
|
77
|
+
interface DraftItem {
|
|
78
|
+
detailId: string;
|
|
79
|
+
shippedNum: number;
|
|
80
|
+
pickingRemark?: string;
|
|
81
|
+
shippingRemark?: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
namespace Request {
|
|
85
|
+
/**
|
|
86
|
+
* 获取配货单列表请求
|
|
87
|
+
*/
|
|
88
|
+
interface GetList {
|
|
89
|
+
pageIndex: number;
|
|
90
|
+
pageSize: number;
|
|
91
|
+
id?: string;
|
|
92
|
+
pickingAtStart?: number;
|
|
93
|
+
pickingAtEnd?: number;
|
|
94
|
+
shippedAtStart?: number;
|
|
95
|
+
shippedAtEnd?: number;
|
|
96
|
+
productIds?: string[];
|
|
97
|
+
skuCodes?: string[];
|
|
98
|
+
warehouseIds?: string[];
|
|
99
|
+
storeIds?: string[];
|
|
100
|
+
deliveryMode?: number;
|
|
101
|
+
status?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 获取配货单详情请求
|
|
105
|
+
*/
|
|
106
|
+
interface GetDetail {
|
|
107
|
+
allocationOrderId: string;
|
|
108
|
+
pageIndex: number;
|
|
109
|
+
pageSize: number;
|
|
110
|
+
productIds?: string[];
|
|
111
|
+
skuCodes?: string[];
|
|
112
|
+
minRemainNum?: number;
|
|
113
|
+
maxRemainNum?: number;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 批量更新明细备注请求
|
|
117
|
+
*/
|
|
118
|
+
interface BatchUpdateDetailRemarks {
|
|
119
|
+
orderId: string;
|
|
120
|
+
operator: string;
|
|
121
|
+
items: {
|
|
122
|
+
detailId: string;
|
|
123
|
+
pickingRemark?: string;
|
|
124
|
+
shippingRemark?: string;
|
|
125
|
+
}[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 发货请求
|
|
129
|
+
*/
|
|
130
|
+
interface Ship {
|
|
131
|
+
allocationId: string;
|
|
132
|
+
items: Entity.ShipItem[];
|
|
133
|
+
operator: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* 保存草稿请求
|
|
137
|
+
*/
|
|
138
|
+
interface SaveDraft {
|
|
139
|
+
allocationId: string;
|
|
140
|
+
items: Entity.DraftItem[];
|
|
141
|
+
operator: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 撤销发货请求
|
|
145
|
+
*/
|
|
146
|
+
interface CancelShip {
|
|
147
|
+
allocationId: string;
|
|
148
|
+
operator?: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* 导出配货单Excel请求
|
|
152
|
+
*/
|
|
153
|
+
interface ExportExcel {
|
|
154
|
+
pageIndex: number;
|
|
155
|
+
pageSize: number;
|
|
156
|
+
ids?: string[];
|
|
157
|
+
pickingAtStart?: number;
|
|
158
|
+
pickingAtEnd?: number;
|
|
159
|
+
shippedAtStart?: number;
|
|
160
|
+
shippedAtEnd?: number;
|
|
161
|
+
productIds?: string[];
|
|
162
|
+
skuCodes?: string[];
|
|
163
|
+
storeIds?: string[];
|
|
164
|
+
warehouseIds?: string[];
|
|
165
|
+
deliveryMode?: number;
|
|
166
|
+
status?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 打印拣货单请求
|
|
170
|
+
*/
|
|
171
|
+
interface PrintPickingSheet {
|
|
172
|
+
pageIndex: number;
|
|
173
|
+
pageSize: number;
|
|
174
|
+
ids?: string[];
|
|
175
|
+
pickingAtStart?: number;
|
|
176
|
+
pickingAtEnd?: number;
|
|
177
|
+
shippedAtStart?: number;
|
|
178
|
+
shippedAtEnd?: number;
|
|
179
|
+
productIds?: string[];
|
|
180
|
+
skuCodes?: string[];
|
|
181
|
+
storeIds?: string[];
|
|
182
|
+
warehouseIds?: string[];
|
|
183
|
+
deliveryMode?: number;
|
|
184
|
+
status?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 打印发货签收单请求
|
|
188
|
+
*/
|
|
189
|
+
interface PrintDeliveryReceipt {
|
|
190
|
+
orderIds: string[];
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 退回预配货单请求
|
|
194
|
+
*/
|
|
195
|
+
interface RollbackPre {
|
|
196
|
+
pickingAt?: number;
|
|
197
|
+
orderIds?: string[];
|
|
198
|
+
operator?: string;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
namespace Response {
|
|
202
|
+
/**
|
|
203
|
+
* 获取配货单列表响应
|
|
204
|
+
*/
|
|
205
|
+
interface GetList {
|
|
206
|
+
total: number;
|
|
207
|
+
list: Entity.AllocationOrderWithExtension[];
|
|
208
|
+
totalCount: number;
|
|
209
|
+
pendingCount: number;
|
|
210
|
+
partialCount: number;
|
|
211
|
+
shippedCount: number;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* 获取配货单详情响应
|
|
215
|
+
*/
|
|
216
|
+
interface GetDetail {
|
|
217
|
+
order: Entity.AllocationOrder;
|
|
218
|
+
details: Entity.AllocationOrderDetailWithProduct[];
|
|
219
|
+
total: number;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* 导出Excel项目接口
|
|
223
|
+
*/
|
|
224
|
+
interface ExportExcelItem {
|
|
225
|
+
单号?: string;
|
|
226
|
+
建议配货日期?: string;
|
|
227
|
+
仓库?: string;
|
|
228
|
+
门店?: string;
|
|
229
|
+
门店地址?: string;
|
|
230
|
+
门店联系电话?: string;
|
|
231
|
+
商品应发?: number;
|
|
232
|
+
商品实发?: number;
|
|
233
|
+
发货时间?: string;
|
|
234
|
+
配送模式?: string;
|
|
235
|
+
状态?: string;
|
|
236
|
+
productId?: string;
|
|
237
|
+
skuId?: string;
|
|
238
|
+
商品名称?: string;
|
|
239
|
+
规格名称?: string;
|
|
240
|
+
规格编码?: string;
|
|
241
|
+
库位信息?: string;
|
|
242
|
+
储藏方式?: string;
|
|
243
|
+
商品分类?: string;
|
|
244
|
+
配货数量?: number;
|
|
245
|
+
应拣数量?: number;
|
|
246
|
+
已发数量?: number;
|
|
247
|
+
剩余待发数量?: number;
|
|
248
|
+
配货备注?: string;
|
|
249
|
+
发货备注?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* 导出Excel响应接口
|
|
253
|
+
*/
|
|
254
|
+
interface ExportExcel {
|
|
255
|
+
data: ExportExcelItem[];
|
|
256
|
+
headerMap: string[];
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* 打印拣货单项目接口(按商品聚合)
|
|
260
|
+
*/
|
|
261
|
+
interface PrintPickingSheetItem {
|
|
262
|
+
商品名称?: string;
|
|
263
|
+
规格名称?: string;
|
|
264
|
+
规格编码?: string;
|
|
265
|
+
商品分类?: string;
|
|
266
|
+
储藏方式?: string;
|
|
267
|
+
库位信息?: string;
|
|
268
|
+
总计应拣数量?: number;
|
|
269
|
+
[storeName: string]: string | number | undefined;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* 打印拣货单响应接口
|
|
273
|
+
*/
|
|
274
|
+
interface PrintPickingSheet {
|
|
275
|
+
data: PrintPickingSheetItem[];
|
|
276
|
+
headerMap: string[];
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 发货签收单商品项
|
|
280
|
+
*/
|
|
281
|
+
interface DeliveryReceiptItem {
|
|
282
|
+
productName?: string;
|
|
283
|
+
specName?: string;
|
|
284
|
+
skuCode?: string;
|
|
285
|
+
classification?: string;
|
|
286
|
+
storageMethod?: string;
|
|
287
|
+
shippedQuantity?: number;
|
|
288
|
+
receivedQuantity?: number;
|
|
289
|
+
pickingRemark?: string;
|
|
290
|
+
shippingRemark?: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* 发货签收单数据
|
|
294
|
+
*/
|
|
295
|
+
interface DeliveryReceiptData {
|
|
296
|
+
allocationOrderId: string;
|
|
297
|
+
pickingDate?: string;
|
|
298
|
+
warehouseName?: string;
|
|
299
|
+
storeRemark: string;
|
|
300
|
+
deliveryMode?: string;
|
|
301
|
+
storeName?: string;
|
|
302
|
+
storePhone?: string;
|
|
303
|
+
storeAddress?: string;
|
|
304
|
+
driverNotice?: string;
|
|
305
|
+
qrCodeUrl?: string;
|
|
306
|
+
items: DeliveryReceiptItem[];
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* 打印发货签收单响应接口
|
|
310
|
+
*/
|
|
311
|
+
interface PrintDeliveryReceipt {
|
|
312
|
+
list: DeliveryReceiptData[];
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* 配货单控制器接口
|
|
317
|
+
*/
|
|
318
|
+
interface AllocationOrderController {
|
|
319
|
+
list(request: Request.GetList): Promise<Response.GetList>;
|
|
320
|
+
detail(request: Request.GetDetail): Promise<Response.GetDetail>;
|
|
321
|
+
batchUpdateDetailRemarks(request: Request.BatchUpdateDetailRemarks): Promise<void>;
|
|
322
|
+
ship(request: Request.Ship): Promise<void>;
|
|
323
|
+
saveDraft(request: Request.SaveDraft): Promise<void>;
|
|
324
|
+
cancelShip(request: Request.CancelShip): Promise<void>;
|
|
325
|
+
exportExcel(request: Request.ExportExcel): Promise<Response.ExportExcel>;
|
|
326
|
+
printPickingSheet(request: Request.PrintPickingSheet): Promise<Response.PrintPickingSheet>;
|
|
327
|
+
printDeliveryReceipt(request: Request.PrintDeliveryReceipt): Promise<Response.PrintDeliveryReceipt>;
|
|
328
|
+
rollbackPre(request: Request.RollbackPre): Promise<void>;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Service } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class LogisticsService extends BaseService implements Service.LogisticsController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
batchImportWaybill(request: Service.Request.BatchImportWaybill): Promise<void>;
|
|
6
|
+
getWaybillList(request: Service.Request.GetWaybillList): Promise<Service.Response.GetWaybillList>;
|
|
7
|
+
writeWaybill(request: Service.Request.WriteWaybill): Promise<void>;
|
|
8
|
+
getCarrierList(request: Service.Request.GetCarrierList): Promise<Service.Response.GetCarrierList>;
|
|
9
|
+
getStoreStockInOrderList(request: Service.Request.GetStoreStockInOrderList): Promise<Service.Response.GetStoreStockInOrderList>;
|
|
10
|
+
getStoreStockInOrderDetailList(request: Service.Request.GetStoreStockInOrderDetailList): Promise<Service.Response.GetStoreStockInOrderDetailList>;
|
|
11
|
+
getStoreStockInOrderLogisticsList(request: Service.Request.GetStoreStockInOrderLogisticsList): Promise<Service.Response.GetStoreStockInOrderLogisticsList>;
|
|
12
|
+
getProductList(request: Service.Request.GetProductList): Promise<Service.Response.GetProductList>;
|
|
13
|
+
}
|
|
14
|
+
export declare const logisticsService: LogisticsService;
|
|
15
|
+
export default logisticsService;
|