@cpzxrobot/sdk 1.1.55 → 1.1.57
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/contract_gateway.ts +1 -1
- package/customer_gateway.ts +1 -0
- package/dist/product_gateway.js +14 -0
- package/dist/project_gateway.js +9 -0
- package/package.json +1 -1
- package/product_gateway.ts +23 -1
- package/project_gateway.ts +14 -3
package/contract_gateway.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class ContractGateway extends Object {
|
|
|
12
12
|
pageNo: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
name: string;
|
|
15
|
-
|
|
15
|
+
companyId: number;
|
|
16
16
|
}) {
|
|
17
17
|
return this.context.ready.then((axios) => {
|
|
18
18
|
return axios.post(`/api/v2/coremde-sale/contract/list`, args);
|
package/customer_gateway.ts
CHANGED
package/dist/product_gateway.js
CHANGED
|
@@ -16,6 +16,20 @@ class ProductGateway extends Object {
|
|
|
16
16
|
return axios.get(`/api/v2/coremde-sale/product/get?id=${id}`);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
+
types(companyId, pageNo = undefined, pageSize = undefined) {
|
|
20
|
+
var args = {
|
|
21
|
+
companyId: companyId,
|
|
22
|
+
};
|
|
23
|
+
if (pageNo) {
|
|
24
|
+
args.pageNo = pageNo;
|
|
25
|
+
}
|
|
26
|
+
if (pageSize) {
|
|
27
|
+
args.pageSize = pageSize;
|
|
28
|
+
}
|
|
29
|
+
return this.context.ready.then((axios) => {
|
|
30
|
+
return axios.post(`/api/v2/coremde-sale/product/type/list`, args);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
19
33
|
get price() {
|
|
20
34
|
return {
|
|
21
35
|
list: (args) => {
|
package/dist/project_gateway.js
CHANGED
|
@@ -75,6 +75,15 @@ class ProjectGateway extends Object {
|
|
|
75
75
|
return axios.post(`/api/v2/coremde-sale/project/document/list`, args);
|
|
76
76
|
});
|
|
77
77
|
},
|
|
78
|
+
export: (id, fileName = "项目文档.pdf") => {
|
|
79
|
+
return this.context.ready.then((axios) => {
|
|
80
|
+
return axios.getAndSave(`/api/v2/coremde-sale/project/document/export`, {
|
|
81
|
+
params: {
|
|
82
|
+
id,
|
|
83
|
+
}
|
|
84
|
+
}, fileName);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
78
87
|
};
|
|
79
88
|
}
|
|
80
89
|
get material() {
|
package/package.json
CHANGED
package/product_gateway.ts
CHANGED
|
@@ -12,7 +12,8 @@ export class ProductGateway extends Object {
|
|
|
12
12
|
pageNo: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
name: string;
|
|
15
|
-
|
|
15
|
+
typeId: number;
|
|
16
|
+
companyId: number;
|
|
16
17
|
}) {
|
|
17
18
|
|
|
18
19
|
return this.context.ready.then((axios) => {
|
|
@@ -26,6 +27,25 @@ export class ProductGateway extends Object {
|
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
types(companyId: number,pageNo:number| undefined = undefined,pageSize:number| undefined = undefined) {
|
|
31
|
+
var args :{
|
|
32
|
+
companyId: number,
|
|
33
|
+
pageNo?:number,
|
|
34
|
+
pageSize?:number,
|
|
35
|
+
} = {
|
|
36
|
+
companyId: companyId,
|
|
37
|
+
}
|
|
38
|
+
if(pageNo){
|
|
39
|
+
args.pageNo = pageNo
|
|
40
|
+
}
|
|
41
|
+
if(pageSize){
|
|
42
|
+
args.pageSize = pageSize
|
|
43
|
+
}
|
|
44
|
+
return this.context.ready.then((axios) => {
|
|
45
|
+
return axios.post(`/api/v2/coremde-sale/product/type/list`, args);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
29
49
|
get price() {
|
|
30
50
|
return {
|
|
31
51
|
list: (args: {
|
|
@@ -49,6 +69,7 @@ export class ProductGateway extends Object {
|
|
|
49
69
|
pageNo: number;
|
|
50
70
|
pageSize: number;
|
|
51
71
|
createUserId: number;
|
|
72
|
+
companyId: number;
|
|
52
73
|
fileName?: string;
|
|
53
74
|
}) => {
|
|
54
75
|
if (!args.fileName) {
|
|
@@ -63,6 +84,7 @@ export class ProductGateway extends Object {
|
|
|
63
84
|
add: (args: {
|
|
64
85
|
product_id: number;
|
|
65
86
|
price: number;
|
|
87
|
+
companyId: number;
|
|
66
88
|
remark?: string;
|
|
67
89
|
}) => {
|
|
68
90
|
return this.context.ready.then((axios) => {
|
package/project_gateway.ts
CHANGED
|
@@ -12,9 +12,9 @@ export class ProjectGateway extends Object {
|
|
|
12
12
|
pageNo: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
name: string;
|
|
15
|
-
|
|
16
|
-
projectProgress
|
|
17
|
-
customerId
|
|
15
|
+
companyId: number;
|
|
16
|
+
projectProgress?: string;
|
|
17
|
+
customerId?: number;
|
|
18
18
|
}) {
|
|
19
19
|
|
|
20
20
|
return this.context.ready.then((axios) => {
|
|
@@ -43,6 +43,7 @@ export class ProjectGateway extends Object {
|
|
|
43
43
|
pageNo: number;
|
|
44
44
|
pageSize: number;
|
|
45
45
|
projectId: number;
|
|
46
|
+
companyId: number;
|
|
46
47
|
}) => {
|
|
47
48
|
return this.context.ready.then((axios) => {
|
|
48
49
|
return axios.post(`/api/v2/coremde-sale/project/feedback/list`, args);
|
|
@@ -105,6 +106,15 @@ export class ProjectGateway extends Object {
|
|
|
105
106
|
return axios.post(`/api/v2/coremde-sale/project/document/list`, args);
|
|
106
107
|
});
|
|
107
108
|
},
|
|
109
|
+
export: (id: number, fileName: string = "项目文档.pdf") => {
|
|
110
|
+
return this.context.ready.then((axios) => {
|
|
111
|
+
return axios.getAndSave(`/api/v2/coremde-sale/project/document/export`, {
|
|
112
|
+
params: {
|
|
113
|
+
id,
|
|
114
|
+
}
|
|
115
|
+
},fileName);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
108
118
|
};
|
|
109
119
|
}
|
|
110
120
|
|
|
@@ -139,6 +149,7 @@ export class ProjectGateway extends Object {
|
|
|
139
149
|
pageNo: number;
|
|
140
150
|
pageSize: number;
|
|
141
151
|
name: string;
|
|
152
|
+
companyId: number;
|
|
142
153
|
}) => {
|
|
143
154
|
return this.context.ready.then((axios) => {
|
|
144
155
|
return axios.post(`/api/v2/coremde-sale/project/inquiry/list`, args);
|