@cpzxrobot/sdk 1.1.44 → 1.1.46
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/customer_gateway.ts +2 -2
- package/dist/customer_gateway.js +2 -2
- package/dist/project_gateway.js +3 -2
- package/package.json +1 -1
- package/project_gateway.ts +4 -3
package/customer_gateway.ts
CHANGED
|
@@ -43,10 +43,10 @@ export class CustomerGateway extends Object {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
accountManager(customerId: number) {
|
|
47
47
|
return this.context.ready.then((axios) => {
|
|
48
48
|
return axios.get(
|
|
49
|
-
`/api/v2/coremde-sale/customer/account-
|
|
49
|
+
`/api/v2/coremde-sale/customer/account-manager?customerId=${customerId}`,
|
|
50
50
|
);
|
|
51
51
|
});
|
|
52
52
|
}
|
package/dist/customer_gateway.js
CHANGED
|
@@ -31,9 +31,9 @@ class CustomerGateway extends Object {
|
|
|
31
31
|
return axios.post(`/api/v2/coremde-sale/customer/update`, args);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
accountManager(customerId) {
|
|
35
35
|
return this.context.ready.then((axios) => {
|
|
36
|
-
return axios.get(`/api/v2/coremde-sale/customer/account-
|
|
36
|
+
return axios.get(`/api/v2/coremde-sale/customer/account-manager?customerId=${customerId}`);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
get visit() {
|
package/dist/project_gateway.js
CHANGED
|
@@ -80,11 +80,12 @@ class ProjectGateway extends Object {
|
|
|
80
80
|
get material() {
|
|
81
81
|
return {
|
|
82
82
|
// 获取材料列表
|
|
83
|
-
list: (pageNo = undefined, pageSize = undefined) => {
|
|
83
|
+
list: (projectId, pageNo = undefined, pageSize = undefined) => {
|
|
84
84
|
return this.context.ready.then((axios) => {
|
|
85
85
|
var params = {
|
|
86
86
|
pageNo,
|
|
87
|
-
pageSize
|
|
87
|
+
pageSize,
|
|
88
|
+
projectId
|
|
88
89
|
};
|
|
89
90
|
return axios.post(`/api/v2/coremde-sale/project/material/list`, params);
|
|
90
91
|
});
|
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
|
@@ -112,13 +112,14 @@ export class ProjectGateway extends Object {
|
|
|
112
112
|
get material() {
|
|
113
113
|
return {
|
|
114
114
|
// 获取材料列表
|
|
115
|
-
list: (pageNo: number | undefined = undefined, pageSize: number | undefined = undefined) => {
|
|
115
|
+
list: (projectId: number, pageNo: number | undefined = undefined, pageSize: number | undefined = undefined) => {
|
|
116
116
|
return this.context.ready.then((axios) => {
|
|
117
117
|
var params = {
|
|
118
118
|
pageNo,
|
|
119
|
-
pageSize
|
|
119
|
+
pageSize,
|
|
120
|
+
projectId
|
|
120
121
|
}
|
|
121
|
-
return axios.post(`/api/v2/coremde-sale/project/material/list`,params);
|
|
122
|
+
return axios.post(`/api/v2/coremde-sale/project/material/list`, params);
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
}
|