@be-link/flow-cli-nodejs 0.0.4 → 0.0.6
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.
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Service } from './types';
|
|
2
2
|
import BaseService from '../service';
|
|
3
|
-
declare class FlowCoreService extends BaseService implements Service.
|
|
4
|
-
|
|
3
|
+
declare class FlowCoreService extends BaseService implements Service.FlowCoreController {
|
|
4
|
+
queryOrderNumBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryOrderNumBySupplierIdsRsp[]>;
|
|
5
|
+
queryFlowOrderIdsBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp[]>;
|
|
6
|
+
queryFlowPageOrderIdsBySupplierId(param: Service.Request.QueryFlowPageOrderIdsBySupplierIdReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp>;
|
|
7
|
+
updateChangeFlowStatus(param: Service.Request.IUpdateChangeFlowStatusReq): Promise<void>;
|
|
8
|
+
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp>;
|
|
5
9
|
addOrderChangeFlow(param: Service.Request.IAddOrderChangeFlowReq): Promise<void>;
|
|
6
10
|
addOrderNormalChangeFlow(param: Service.Request.IAddOrderNormalChangeFlowReq): Promise<void>;
|
|
7
11
|
listChangeFlowRecordByOrderId(param: Service.Request.IListChangeFlowRecordByOrderIdReq): Promise<Service.Response.IListChangeFlowRecordByOrderIdRsp[]>;
|
|
@@ -10,6 +10,18 @@ class FlowCoreService extends service_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/core';
|
|
12
12
|
}
|
|
13
|
+
queryOrderNumBySupplierIds(param) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryOrderNumBySupplierIds), param);
|
|
15
|
+
}
|
|
16
|
+
queryFlowOrderIdsBySupplierIds(param) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryFlowOrderIdsBySupplierIds), param);
|
|
18
|
+
}
|
|
19
|
+
queryFlowPageOrderIdsBySupplierId(param) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryFlowPageOrderIdsBySupplierId), param);
|
|
21
|
+
}
|
|
22
|
+
updateChangeFlowStatus(param) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateChangeFlowStatus), param);
|
|
24
|
+
}
|
|
13
25
|
listChangeFlowRecord(param) {
|
|
14
26
|
return (0, http_1.callApi)(this.getApiUrl(this.listChangeFlowRecord), param);
|
|
15
27
|
}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import * as FlowConstants from 'vitality-meta/enums/flow';
|
|
2
1
|
export declare namespace Service {
|
|
3
2
|
namespace Request {
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
interface QueryFlowPageOrderIdsBySupplierIdReq {
|
|
4
|
+
supplierId: string;
|
|
5
|
+
status: string;
|
|
6
|
+
pageIndex: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
}
|
|
9
|
+
interface QueryFlowOrderIdsBySupplierIdsReq {
|
|
10
|
+
supplierIds: string[];
|
|
11
|
+
}
|
|
12
|
+
interface IUser {
|
|
13
|
+
sponsorName: string;
|
|
14
|
+
sponsorRole: string;
|
|
15
|
+
}
|
|
16
|
+
interface IUpdateChangeFlowStatusReq {
|
|
17
|
+
id: string;
|
|
18
|
+
status: string;
|
|
19
|
+
user: IUser;
|
|
20
|
+
desc: string;
|
|
10
21
|
}
|
|
11
22
|
interface IListChangeFlowRecordByOrderIdReq {
|
|
12
23
|
orderId: string;
|
|
@@ -15,17 +26,13 @@ export declare namespace Service {
|
|
|
15
26
|
[key: string]: 'ASC' | 'DESC';
|
|
16
27
|
};
|
|
17
28
|
}
|
|
18
|
-
interface
|
|
19
|
-
|
|
20
|
-
statusList
|
|
29
|
+
interface IListChangeFlowRecordReq {
|
|
30
|
+
orderIds: string[];
|
|
31
|
+
statusList?: string[];
|
|
21
32
|
sort: {
|
|
22
33
|
[key: string]: 'ASC' | 'DESC';
|
|
23
34
|
};
|
|
24
35
|
}
|
|
25
|
-
interface IUser {
|
|
26
|
-
sponsorName: string;
|
|
27
|
-
sponsorRole: FlowConstants.SponsorRoleEnum;
|
|
28
|
-
}
|
|
29
36
|
interface IAddOrderNormalChangeFlowReq {
|
|
30
37
|
orderId: string;
|
|
31
38
|
desc: string;
|
|
@@ -34,7 +41,7 @@ export declare namespace Service {
|
|
|
34
41
|
}
|
|
35
42
|
interface IAddOrderChangeFlowReq {
|
|
36
43
|
orderId: string;
|
|
37
|
-
type:
|
|
44
|
+
type: string;
|
|
38
45
|
desc: string;
|
|
39
46
|
attachment?: string[];
|
|
40
47
|
reasonTypeDetail: string;
|
|
@@ -42,32 +49,42 @@ export declare namespace Service {
|
|
|
42
49
|
}
|
|
43
50
|
}
|
|
44
51
|
namespace Response {
|
|
45
|
-
interface
|
|
52
|
+
interface IListChangeFlowRecordByOrderIdRsp {
|
|
53
|
+
sponsorName: string;
|
|
46
54
|
createdAt: number;
|
|
47
|
-
type:
|
|
55
|
+
type: string;
|
|
48
56
|
status: string;
|
|
49
57
|
desc: string;
|
|
50
|
-
id: string;
|
|
51
58
|
reasonTypeDetail: string;
|
|
52
|
-
|
|
59
|
+
id: string;
|
|
53
60
|
rejectionDetail: string;
|
|
54
61
|
}
|
|
55
|
-
interface
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
interface IQueryOrderNumBySupplierIdsRsp {
|
|
63
|
+
supplierId: string;
|
|
64
|
+
orderNum: number;
|
|
58
65
|
}
|
|
59
|
-
interface
|
|
60
|
-
|
|
66
|
+
interface IQueryFlowOrderIdsBySupplierIdsRsp {
|
|
67
|
+
supplierId: string;
|
|
68
|
+
orderIds: string[];
|
|
69
|
+
}
|
|
70
|
+
interface IListChangeFlowRecordRsp {
|
|
61
71
|
createdAt: number;
|
|
62
|
-
type:
|
|
72
|
+
type: string;
|
|
63
73
|
status: string;
|
|
64
74
|
desc: string;
|
|
65
|
-
reasonTypeDetail: string;
|
|
66
75
|
id: string;
|
|
67
|
-
|
|
76
|
+
reasonTypeDetail: string;
|
|
77
|
+
}
|
|
78
|
+
interface IChangeFlowRecordRsp {
|
|
79
|
+
orderId: string;
|
|
80
|
+
recordList: IListChangeFlowRecordRsp[];
|
|
68
81
|
}
|
|
69
82
|
}
|
|
70
|
-
interface
|
|
83
|
+
interface FlowCoreController {
|
|
84
|
+
queryOrderNumBySupplierIds(req: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryOrderNumBySupplierIdsRsp[]>;
|
|
85
|
+
queryFlowOrderIdsBySupplierIds(req: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp[]>;
|
|
86
|
+
queryFlowPageOrderIdsBySupplierId(param: Service.Request.QueryFlowPageOrderIdsBySupplierIdReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp>;
|
|
87
|
+
updateChangeFlowStatus(param: Service.Request.IUpdateChangeFlowStatusReq): Promise<void>;
|
|
71
88
|
/**
|
|
72
89
|
* 创建普通变更流
|
|
73
90
|
* @path /core/update-order-invoice
|
|
@@ -87,6 +104,6 @@ export declare namespace Service {
|
|
|
87
104
|
* 查询供应商订单变更记录 订单维度分组
|
|
88
105
|
* @path /core/list-change-flow-record
|
|
89
106
|
*/
|
|
90
|
-
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.
|
|
107
|
+
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp>;
|
|
91
108
|
}
|
|
92
109
|
}
|