@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.39 → 0.0.41
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 +102 -2
- package/enum.js +110 -0
- package/index.d.ts +12 -0
- package/index.js +17 -5
- package/modules/allocationOrder/types.d.ts +4 -1
- package/modules/logistics/types.d.ts +9 -7
- package/modules/pickingRule/types.d.ts +2 -2
- package/modules/preAllocationOrder/service.d.ts +9 -1
- package/modules/preAllocationOrder/service.js +24 -4
- package/modules/preAllocationOrder/types.d.ts +49 -7
- package/modules/productStatistics/service.d.ts +8 -0
- package/modules/productStatistics/service.js +37 -0
- package/modules/productStatistics/types.d.ts +39 -0
- package/modules/productStatistics/types.js +2 -0
- package/modules/storeProductFulfill/service.d.ts +9 -0
- package/modules/storeProductFulfill/service.js +44 -0
- package/modules/storeProductFulfill/types.d.ts +92 -0
- package/modules/storeProductFulfill/types.js +2 -0
- package/modules/storeReplenishOrder/service.d.ts +43 -0
- package/modules/storeReplenishOrder/service.js +120 -0
- package/modules/storeReplenishOrder/types.d.ts +200 -0
- package/modules/storeReplenishOrder/types.js +2 -0
- package/modules/storeStockIn/types.d.ts +4 -0
- package/modules/warehouseInventory/service.d.ts +14 -0
- package/modules/warehouseInventory/service.js +78 -0
- package/modules/warehouseInventory/types.d.ts +225 -0
- package/modules/warehouseInventory/types.js +2 -0
- package/modules/warehouseLocation/service.d.ts +9 -0
- package/modules/warehouseLocation/service.js +44 -0
- package/modules/warehouseLocation/types.d.ts +64 -0
- package/modules/warehouseLocation/types.js +2 -0
- package/modules/warehouseStockIn/service.d.ts +14 -0
- package/modules/warehouseStockIn/service.js +79 -0
- package/modules/warehouseStockIn/types.d.ts +236 -0
- package/modules/warehouseStockIn/types.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
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.productStatisticsService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let ProductStatisticsService = class ProductStatisticsService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/product-statistics';
|
|
23
|
+
}
|
|
24
|
+
getStockInProductStats(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getStockInProductStats), request);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, tsoa_1.Post)('get-stock-in-product-stats'),
|
|
30
|
+
__param(0, (0, tsoa_1.Body)())
|
|
31
|
+
], ProductStatisticsService.prototype, "getStockInProductStats", null);
|
|
32
|
+
ProductStatisticsService = __decorate([
|
|
33
|
+
(0, tsoa_1.Route)('ProductStatistics'),
|
|
34
|
+
(0, tsoa_1.Tags)('productStatistics')
|
|
35
|
+
], ProductStatisticsService);
|
|
36
|
+
exports.productStatisticsService = new ProductStatisticsService();
|
|
37
|
+
exports.default = exports.productStatisticsService;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare namespace ProductStatisticsTypes {
|
|
2
|
+
/** 实体定义 */
|
|
3
|
+
namespace Entity {
|
|
4
|
+
/** 入库单商品统计项 */
|
|
5
|
+
interface StockInProductStat {
|
|
6
|
+
productId: string;
|
|
7
|
+
productName: string;
|
|
8
|
+
price: number;
|
|
9
|
+
productImage: string;
|
|
10
|
+
classification: string;
|
|
11
|
+
storageMethod: string;
|
|
12
|
+
dispatchType: string;
|
|
13
|
+
pickType: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** 请求定义 */
|
|
17
|
+
namespace Request {
|
|
18
|
+
/** 查询入库单商品统计请求 */
|
|
19
|
+
interface GetStockInProductStats {
|
|
20
|
+
storeId: string;
|
|
21
|
+
updatedAtStart?: number;
|
|
22
|
+
updatedAtEnd?: number;
|
|
23
|
+
pageIndex: number;
|
|
24
|
+
pageSize: number;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** 响应定义 */
|
|
28
|
+
namespace Response {
|
|
29
|
+
/** 查询入库单商品统计响应 */
|
|
30
|
+
interface GetStockInProductStats {
|
|
31
|
+
products: Entity.StockInProductStat[];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** ProductStatistics Controller 接口定义 */
|
|
35
|
+
interface ProductStatisticsController {
|
|
36
|
+
/** 查询入库单商品统计 */
|
|
37
|
+
getStockInProductStats(request: ProductStatisticsTypes.Request.GetStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoreProductFulfillTypes } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class StoreProductFulfillService extends BaseService implements StoreProductFulfillTypes.StoreProductFulfillController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
getStoreProducts(request: StoreProductFulfillTypes.Request.GetStoreProducts): Promise<StoreProductFulfillTypes.Response.GetStoreProducts>;
|
|
6
|
+
getProductFulfillDetails(request: StoreProductFulfillTypes.Request.GetProductFulfillDetails): Promise<StoreProductFulfillTypes.Response.GetProductFulfillDetails>;
|
|
7
|
+
}
|
|
8
|
+
export declare const storeProductFulfillService: StoreProductFulfillService;
|
|
9
|
+
export default storeProductFulfillService;
|
|
@@ -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.storeProductFulfillService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let StoreProductFulfillService = class StoreProductFulfillService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/store-product-fulfill';
|
|
23
|
+
}
|
|
24
|
+
getStoreProducts(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getStoreProducts), request);
|
|
26
|
+
}
|
|
27
|
+
getProductFulfillDetails(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getProductFulfillDetails), request);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, tsoa_1.Post)('get-store-products'),
|
|
33
|
+
__param(0, (0, tsoa_1.Body)())
|
|
34
|
+
], StoreProductFulfillService.prototype, "getStoreProducts", null);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, tsoa_1.Post)('get-product-fulfill-details'),
|
|
37
|
+
__param(0, (0, tsoa_1.Body)())
|
|
38
|
+
], StoreProductFulfillService.prototype, "getProductFulfillDetails", null);
|
|
39
|
+
StoreProductFulfillService = __decorate([
|
|
40
|
+
(0, tsoa_1.Route)('StoreProductFulfill'),
|
|
41
|
+
(0, tsoa_1.Tags)('storeProductFulfill')
|
|
42
|
+
], StoreProductFulfillService);
|
|
43
|
+
exports.storeProductFulfillService = new StoreProductFulfillService();
|
|
44
|
+
exports.default = exports.storeProductFulfillService;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare namespace StoreProductFulfillTypes {
|
|
2
|
+
/** 门店商品履约商品项 */
|
|
3
|
+
interface StoreProductItem {
|
|
4
|
+
productId: string;
|
|
5
|
+
productName: string;
|
|
6
|
+
productImage: string;
|
|
7
|
+
imgList: string[];
|
|
8
|
+
skuId: string;
|
|
9
|
+
skuCode: string;
|
|
10
|
+
specName: string;
|
|
11
|
+
storeId: string;
|
|
12
|
+
storeName: string;
|
|
13
|
+
price: number;
|
|
14
|
+
classification: string;
|
|
15
|
+
storageMethod: string;
|
|
16
|
+
pickType: string;
|
|
17
|
+
dispatchType: string;
|
|
18
|
+
}
|
|
19
|
+
/** 入库记录项 */
|
|
20
|
+
interface StockInItem {
|
|
21
|
+
allocationOrderId: string;
|
|
22
|
+
stockInOrderId: string;
|
|
23
|
+
stockInTime: number;
|
|
24
|
+
stockInQty: number;
|
|
25
|
+
}
|
|
26
|
+
/** 补货提示项 */
|
|
27
|
+
interface ReplenishTipItem {
|
|
28
|
+
replenishOrderId: string;
|
|
29
|
+
replenishQty: number;
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
32
|
+
/** 人工调整提示项 */
|
|
33
|
+
interface ManualAdjustTipItem {
|
|
34
|
+
adjustReason: string;
|
|
35
|
+
adjustQty: number;
|
|
36
|
+
operator: string;
|
|
37
|
+
}
|
|
38
|
+
/** 商品履约明细项 */
|
|
39
|
+
interface ProductFulfillDetailItem {
|
|
40
|
+
batchNo: string;
|
|
41
|
+
plannedQty: number;
|
|
42
|
+
salesQty: number;
|
|
43
|
+
replenishQty: number;
|
|
44
|
+
unVerifiedReturnQty: number;
|
|
45
|
+
manualAdjustQty: number;
|
|
46
|
+
stockInQty: number;
|
|
47
|
+
stockInList: StockInItem[];
|
|
48
|
+
replenishTips: ReplenishTipItem[];
|
|
49
|
+
manualAdjustTips: ManualAdjustTipItem[];
|
|
50
|
+
}
|
|
51
|
+
/** 请求定义 */
|
|
52
|
+
namespace Request {
|
|
53
|
+
/** 获取门店入库商品列表请求(按 skuId 合并) */
|
|
54
|
+
interface GetStoreProducts {
|
|
55
|
+
storeIds?: string[];
|
|
56
|
+
productIds?: string[];
|
|
57
|
+
skuIds?: string[];
|
|
58
|
+
skuCodes?: string[];
|
|
59
|
+
pageIndex: number;
|
|
60
|
+
pageSize: number;
|
|
61
|
+
}
|
|
62
|
+
/** 获取商品履约明细请求 */
|
|
63
|
+
interface GetProductFulfillDetails {
|
|
64
|
+
storeId: string;
|
|
65
|
+
skuId: string;
|
|
66
|
+
productId: string;
|
|
67
|
+
batchNo?: string;
|
|
68
|
+
replenishOrderId?: string;
|
|
69
|
+
allocationOrderId?: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/** 响应定义 */
|
|
73
|
+
namespace Response {
|
|
74
|
+
/** 获取门店入库商品列表响应 */
|
|
75
|
+
interface GetStoreProducts {
|
|
76
|
+
total: number;
|
|
77
|
+
list: StoreProductItem[];
|
|
78
|
+
}
|
|
79
|
+
/** 获取商品履约明细响应 */
|
|
80
|
+
interface GetProductFulfillDetails {
|
|
81
|
+
productInfo: StoreProductItem;
|
|
82
|
+
list: ProductFulfillDetailItem[];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** StoreProductFulfill Controller 接口定义 */
|
|
86
|
+
interface StoreProductFulfillController {
|
|
87
|
+
/** 获取门店入库商品列表(按 skuId 合并) */
|
|
88
|
+
getStoreProducts(request: Request.GetStoreProducts): Promise<Response.GetStoreProducts>;
|
|
89
|
+
/** 获取商品履约明细 */
|
|
90
|
+
getProductFulfillDetails(request: Request.GetProductFulfillDetails): Promise<Response.GetProductFulfillDetails>;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { StoreReplenishOrderTypes } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class StoreReplenishOrderService extends BaseService implements StoreReplenishOrderTypes.StoreReplenishOrderController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* 申请补货
|
|
7
|
+
*/
|
|
8
|
+
applyReplenish(request: StoreReplenishOrderTypes.Request.ApplyReplenish): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* 撤销补货申请
|
|
11
|
+
*/
|
|
12
|
+
cancelReplenish(request: StoreReplenishOrderTypes.Request.CancelReplenish): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* 查询补货申请历史
|
|
15
|
+
*/
|
|
16
|
+
getReplenishHistory(request: StoreReplenishOrderTypes.Request.GetReplenishHistory): Promise<StoreReplenishOrderTypes.Response.GetReplenishHistory>;
|
|
17
|
+
/**
|
|
18
|
+
* 获取补货单详情
|
|
19
|
+
*/
|
|
20
|
+
getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
|
|
21
|
+
/**
|
|
22
|
+
* 获取补货审批列表
|
|
23
|
+
*/
|
|
24
|
+
getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
|
|
25
|
+
/**
|
|
26
|
+
* 批量拒绝补货申请
|
|
27
|
+
*/
|
|
28
|
+
batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* 审批通过补货申请
|
|
31
|
+
*/
|
|
32
|
+
approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* 撤销审批
|
|
35
|
+
*/
|
|
36
|
+
revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* 更新审批理由
|
|
39
|
+
*/
|
|
40
|
+
updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
export declare const storeReplenishOrderService: StoreReplenishOrderService;
|
|
43
|
+
export default storeReplenishOrderService;
|
|
@@ -0,0 +1,120 @@
|
|
|
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.storeReplenishOrderService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/store-replenish-order';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 申请补货
|
|
26
|
+
*/
|
|
27
|
+
applyReplenish(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.applyReplenish), request);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 撤销补货申请
|
|
32
|
+
*/
|
|
33
|
+
cancelReplenish(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.cancelReplenish), request);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 查询补货申请历史
|
|
38
|
+
*/
|
|
39
|
+
getReplenishHistory(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getReplenishHistory), request);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 获取补货单详情
|
|
44
|
+
*/
|
|
45
|
+
getReplenishDetail(request) {
|
|
46
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getReplenishDetail), request);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 获取补货审批列表
|
|
50
|
+
*/
|
|
51
|
+
getApprovalList(request) {
|
|
52
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getApprovalList), request);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 批量拒绝补货申请
|
|
56
|
+
*/
|
|
57
|
+
batchReject(request) {
|
|
58
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchReject), request);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 审批通过补货申请
|
|
62
|
+
*/
|
|
63
|
+
approveReplenish(request) {
|
|
64
|
+
return (0, http_1.callApi)(this.getApiUrl(this.approveReplenish), request);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 撤销审批
|
|
68
|
+
*/
|
|
69
|
+
revokeApproval(request) {
|
|
70
|
+
return (0, http_1.callApi)(this.getApiUrl(this.revokeApproval), request);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 更新审批理由
|
|
74
|
+
*/
|
|
75
|
+
updateApprovalReason(request) {
|
|
76
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateApprovalReason), request);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, tsoa_1.Post)('apply-replenish'),
|
|
81
|
+
__param(0, (0, tsoa_1.Body)())
|
|
82
|
+
], StoreReplenishOrderService.prototype, "applyReplenish", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, tsoa_1.Post)('cancel-replenish'),
|
|
85
|
+
__param(0, (0, tsoa_1.Body)())
|
|
86
|
+
], StoreReplenishOrderService.prototype, "cancelReplenish", null);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, tsoa_1.Post)('get-replenish-history'),
|
|
89
|
+
__param(0, (0, tsoa_1.Body)())
|
|
90
|
+
], StoreReplenishOrderService.prototype, "getReplenishHistory", null);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, tsoa_1.Post)('get-replenish-detail'),
|
|
93
|
+
__param(0, (0, tsoa_1.Body)())
|
|
94
|
+
], StoreReplenishOrderService.prototype, "getReplenishDetail", null);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, tsoa_1.Post)('get-approval-list'),
|
|
97
|
+
__param(0, (0, tsoa_1.Body)())
|
|
98
|
+
], StoreReplenishOrderService.prototype, "getApprovalList", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, tsoa_1.Post)('batch-reject'),
|
|
101
|
+
__param(0, (0, tsoa_1.Body)())
|
|
102
|
+
], StoreReplenishOrderService.prototype, "batchReject", null);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, tsoa_1.Post)('approve-replenish'),
|
|
105
|
+
__param(0, (0, tsoa_1.Body)())
|
|
106
|
+
], StoreReplenishOrderService.prototype, "approveReplenish", null);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, tsoa_1.Post)('revoke-approval'),
|
|
109
|
+
__param(0, (0, tsoa_1.Body)())
|
|
110
|
+
], StoreReplenishOrderService.prototype, "revokeApproval", null);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, tsoa_1.Post)('update-approval-reason'),
|
|
113
|
+
__param(0, (0, tsoa_1.Body)())
|
|
114
|
+
], StoreReplenishOrderService.prototype, "updateApprovalReason", null);
|
|
115
|
+
StoreReplenishOrderService = __decorate([
|
|
116
|
+
(0, tsoa_1.Route)('StoreReplenishOrder'),
|
|
117
|
+
(0, tsoa_1.Tags)('storeReplenishOrder')
|
|
118
|
+
], StoreReplenishOrderService);
|
|
119
|
+
exports.storeReplenishOrderService = new StoreReplenishOrderService();
|
|
120
|
+
exports.default = exports.storeReplenishOrderService;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
export declare namespace StoreReplenishOrderTypes {
|
|
2
|
+
/** 实体定义 */
|
|
3
|
+
namespace Entity {
|
|
4
|
+
/** 媒体文件 */
|
|
5
|
+
interface MediaFile {
|
|
6
|
+
url: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
/** 补货申请历史列表项(轻量级) */
|
|
10
|
+
interface ReplenishHistoryItem {
|
|
11
|
+
id: string;
|
|
12
|
+
status: string;
|
|
13
|
+
productId: string;
|
|
14
|
+
productName: string;
|
|
15
|
+
imgList: string[];
|
|
16
|
+
productImage?: string;
|
|
17
|
+
skuId: string;
|
|
18
|
+
skuCode: string;
|
|
19
|
+
specName?: string;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
applyNum: number;
|
|
22
|
+
}
|
|
23
|
+
/** 补货审批列表项 */
|
|
24
|
+
interface ReplenishApprovalItem {
|
|
25
|
+
id: string;
|
|
26
|
+
applyType: string;
|
|
27
|
+
storeName: string;
|
|
28
|
+
productImage?: string;
|
|
29
|
+
imgList: string[];
|
|
30
|
+
productName: string;
|
|
31
|
+
productId: string;
|
|
32
|
+
skuId: string;
|
|
33
|
+
specName: string;
|
|
34
|
+
skuCode: string;
|
|
35
|
+
dispatchType: string;
|
|
36
|
+
applyNum: number;
|
|
37
|
+
approvalNum: number;
|
|
38
|
+
status: string;
|
|
39
|
+
createdAt: number;
|
|
40
|
+
approvalTime?: number;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** 请求参数定义 */
|
|
44
|
+
namespace Request {
|
|
45
|
+
/** 申请补货 */
|
|
46
|
+
interface ApplyReplenish {
|
|
47
|
+
productId: string;
|
|
48
|
+
skuId: string;
|
|
49
|
+
stockInOrderId?: string;
|
|
50
|
+
applyNum: number;
|
|
51
|
+
applyReason: string;
|
|
52
|
+
mediaFiles?: Entity.MediaFile[];
|
|
53
|
+
operator: string;
|
|
54
|
+
storeId: string;
|
|
55
|
+
}
|
|
56
|
+
/** 撤销补货申请 */
|
|
57
|
+
interface CancelReplenish {
|
|
58
|
+
id: string;
|
|
59
|
+
}
|
|
60
|
+
/** 查询补货申请历史 */
|
|
61
|
+
interface GetReplenishHistory {
|
|
62
|
+
storeId: string;
|
|
63
|
+
status?: string;
|
|
64
|
+
productName?: string;
|
|
65
|
+
productIds?: string[];
|
|
66
|
+
createdAtStart?: number;
|
|
67
|
+
createdAtEnd?: number;
|
|
68
|
+
pageIndex?: number;
|
|
69
|
+
pageSize?: number;
|
|
70
|
+
}
|
|
71
|
+
/** 获取补货单详情 */
|
|
72
|
+
interface GetReplenishDetail {
|
|
73
|
+
id: string;
|
|
74
|
+
}
|
|
75
|
+
/** 获取补货审批列表 */
|
|
76
|
+
interface GetApprovalList {
|
|
77
|
+
pageIndex?: number;
|
|
78
|
+
pageSize?: number;
|
|
79
|
+
storeIds?: string[];
|
|
80
|
+
productIds?: string[];
|
|
81
|
+
skuIds?: string[];
|
|
82
|
+
skuCodes?: string[];
|
|
83
|
+
createdAtStart?: number;
|
|
84
|
+
createdAtEnd?: number;
|
|
85
|
+
applyType?: string;
|
|
86
|
+
ids?: string[];
|
|
87
|
+
status?: string;
|
|
88
|
+
approvalTimeStart?: number;
|
|
89
|
+
approvalTimeEnd?: number;
|
|
90
|
+
}
|
|
91
|
+
/** 批量拒绝补货申请 */
|
|
92
|
+
interface BatchReject {
|
|
93
|
+
ids: string[];
|
|
94
|
+
reason: string;
|
|
95
|
+
operator: string;
|
|
96
|
+
}
|
|
97
|
+
/** 审批通过补货申请 */
|
|
98
|
+
interface ApproveReplenish {
|
|
99
|
+
id: string;
|
|
100
|
+
status: string;
|
|
101
|
+
lossType?: string;
|
|
102
|
+
approvalNum?: number;
|
|
103
|
+
approvalReason: string;
|
|
104
|
+
operator: string;
|
|
105
|
+
}
|
|
106
|
+
/** 更新审批理由 */
|
|
107
|
+
interface UpdateApprovalReason {
|
|
108
|
+
id: string;
|
|
109
|
+
approvalReason: string;
|
|
110
|
+
operator: string;
|
|
111
|
+
}
|
|
112
|
+
/** 撤销审批 */
|
|
113
|
+
interface RevokeApproval {
|
|
114
|
+
id: string;
|
|
115
|
+
reason: string;
|
|
116
|
+
operator: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/** 响应结果定义 */
|
|
120
|
+
namespace Response {
|
|
121
|
+
/** 查询补货申请历史响应 */
|
|
122
|
+
interface GetReplenishHistory {
|
|
123
|
+
list: Entity.ReplenishHistoryItem[];
|
|
124
|
+
total: number;
|
|
125
|
+
}
|
|
126
|
+
/** 获取补货审批列表响应 */
|
|
127
|
+
interface GetApprovalList {
|
|
128
|
+
list: Entity.ReplenishApprovalItem[];
|
|
129
|
+
total: number;
|
|
130
|
+
totalCount: number;
|
|
131
|
+
pendingCount: number;
|
|
132
|
+
rejectCount: number;
|
|
133
|
+
approveCount: number;
|
|
134
|
+
}
|
|
135
|
+
/** 获取补货单详情响应 */
|
|
136
|
+
interface GetReplenishDetail {
|
|
137
|
+
/** 补货单基础信息 */
|
|
138
|
+
baseInfo: {
|
|
139
|
+
id: string;
|
|
140
|
+
status: string;
|
|
141
|
+
createdAt: number;
|
|
142
|
+
storeId: string;
|
|
143
|
+
storeName: string;
|
|
144
|
+
};
|
|
145
|
+
/** 商品信息 */
|
|
146
|
+
productInfo: {
|
|
147
|
+
productId: string;
|
|
148
|
+
skuId: string;
|
|
149
|
+
skuCode: string;
|
|
150
|
+
productName: string;
|
|
151
|
+
imgList: string[];
|
|
152
|
+
dispatchType: string;
|
|
153
|
+
specName: string;
|
|
154
|
+
productImage?: string;
|
|
155
|
+
};
|
|
156
|
+
/** 申请信息 */
|
|
157
|
+
applyInfo: {
|
|
158
|
+
applyReason: string;
|
|
159
|
+
applyNum: number;
|
|
160
|
+
mediaFiles?: Entity.MediaFile[];
|
|
161
|
+
};
|
|
162
|
+
/** 审批信息 */
|
|
163
|
+
approvalInfo?: {
|
|
164
|
+
approvalReason?: string;
|
|
165
|
+
lossType?: string;
|
|
166
|
+
approvalNum?: number;
|
|
167
|
+
batchNo?: string;
|
|
168
|
+
approvalTime?: number;
|
|
169
|
+
};
|
|
170
|
+
/** 审批记录 */
|
|
171
|
+
approvalRecords?: Array<{
|
|
172
|
+
approver: string;
|
|
173
|
+
approvalTime: number;
|
|
174
|
+
reason: string;
|
|
175
|
+
status: string;
|
|
176
|
+
}>;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/** StoreReplenishOrder Controller 接口定义 */
|
|
180
|
+
interface StoreReplenishOrderController {
|
|
181
|
+
/** 申请补货 */
|
|
182
|
+
applyReplenish(request: StoreReplenishOrderTypes.Request.ApplyReplenish): Promise<void>;
|
|
183
|
+
/** 撤销补货申请 */
|
|
184
|
+
cancelReplenish(request: StoreReplenishOrderTypes.Request.CancelReplenish): Promise<void>;
|
|
185
|
+
/** 查询补货申请历史 */
|
|
186
|
+
getReplenishHistory(request: StoreReplenishOrderTypes.Request.GetReplenishHistory): Promise<StoreReplenishOrderTypes.Response.GetReplenishHistory>;
|
|
187
|
+
/** 获取补货单详情 */
|
|
188
|
+
getReplenishDetail(request: StoreReplenishOrderTypes.Request.GetReplenishDetail): Promise<StoreReplenishOrderTypes.Response.GetReplenishDetail>;
|
|
189
|
+
/** 获取补货审批列表 */
|
|
190
|
+
getApprovalList(request: StoreReplenishOrderTypes.Request.GetApprovalList): Promise<StoreReplenishOrderTypes.Response.GetApprovalList>;
|
|
191
|
+
/** 批量拒绝补货申请 */
|
|
192
|
+
batchReject(request: StoreReplenishOrderTypes.Request.BatchReject): Promise<void>;
|
|
193
|
+
/** 审批通过补货申请 */
|
|
194
|
+
approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
|
|
195
|
+
/** 撤销审批 */
|
|
196
|
+
revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
|
|
197
|
+
/** 更新审批理由 */
|
|
198
|
+
updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -71,6 +71,7 @@ export declare namespace StoreStockInTypes {
|
|
|
71
71
|
pageIndex: number;
|
|
72
72
|
pageSize: number;
|
|
73
73
|
productIds?: string[];
|
|
74
|
+
skuIds?: string[];
|
|
74
75
|
skuCodes?: string[];
|
|
75
76
|
}
|
|
76
77
|
/** 查询入库单列表请求 */
|
|
@@ -84,6 +85,7 @@ export declare namespace StoreStockInTypes {
|
|
|
84
85
|
receivedTimeStart?: number;
|
|
85
86
|
receivedTimeEnd?: number;
|
|
86
87
|
productIds?: string[];
|
|
88
|
+
skuIds?: string[];
|
|
87
89
|
skuCodes?: string[];
|
|
88
90
|
storeIds?: string[];
|
|
89
91
|
warehouseIds?: string[];
|
|
@@ -112,6 +114,7 @@ export declare namespace StoreStockInTypes {
|
|
|
112
114
|
receivedTimeStart?: number;
|
|
113
115
|
receivedTimeEnd?: number;
|
|
114
116
|
productIds?: string[];
|
|
117
|
+
skuIds?: string[];
|
|
115
118
|
skuCodes?: string[];
|
|
116
119
|
storeIds?: string[];
|
|
117
120
|
warehouseIds?: string[];
|
|
@@ -173,6 +176,7 @@ export declare namespace StoreStockInTypes {
|
|
|
173
176
|
}
|
|
174
177
|
/** 入库单商品项 */
|
|
175
178
|
interface StockInProductItem {
|
|
179
|
+
detailId: string;
|
|
176
180
|
productId: string;
|
|
177
181
|
productName: string;
|
|
178
182
|
skuId: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WarehouseInventoryTypes } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
declare class WarehouseInventoryService extends BaseService implements WarehouseInventoryTypes.WarehouseInventoryController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
inventoryList(request: WarehouseInventoryTypes.Request.GetInventoryList): Promise<WarehouseInventoryTypes.Response.GetInventoryList>;
|
|
6
|
+
inventoryRecordList(request: WarehouseInventoryTypes.Request.GetInventoryRecordList): Promise<WarehouseInventoryTypes.Response.GetInventoryRecordList>;
|
|
7
|
+
importInventory(request: WarehouseInventoryTypes.Request.ImportInventory): Promise<WarehouseInventoryTypes.Response.ImportInventory>;
|
|
8
|
+
exportInventory(request: WarehouseInventoryTypes.Request.ExportInventory): Promise<WarehouseInventoryTypes.Response.ExportInventory>;
|
|
9
|
+
batchStockOperation(request: WarehouseInventoryTypes.Request.BatchStockOperation): Promise<void>;
|
|
10
|
+
setDeductionSwitch(request: WarehouseInventoryTypes.Request.SetDeductionSwitch): Promise<void>;
|
|
11
|
+
getDeductionSwitch(request: WarehouseInventoryTypes.Request.GetDeductionSwitch): Promise<WarehouseInventoryTypes.Response.GetDeductionSwitch>;
|
|
12
|
+
}
|
|
13
|
+
export declare const warehouseInventoryService: WarehouseInventoryService;
|
|
14
|
+
export default warehouseInventoryService;
|