@cpzxrobot/sdk 1.2.24 → 1.2.25
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 +7 -3
- package/dist/customer_gateway.js +7 -1
- package/package.json +1 -1
package/customer_gateway.ts
CHANGED
|
@@ -184,8 +184,6 @@ export class CustomerGateway extends Object {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
187
|
//获得客户类型列表
|
|
190
188
|
types() {
|
|
191
189
|
return this.context.ready.then((axios) => {
|
|
@@ -232,7 +230,13 @@ export class CustomerGateway extends Object {
|
|
|
232
230
|
return this.context.ready.then((axios) => {
|
|
233
231
|
return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
|
|
234
232
|
});
|
|
235
|
-
}
|
|
233
|
+
},
|
|
234
|
+
// 获取联系人列表
|
|
235
|
+
list: (id:number) => {
|
|
236
|
+
return this.context.ready.then((axios) => {
|
|
237
|
+
return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
|
|
238
|
+
});
|
|
239
|
+
},
|
|
236
240
|
}
|
|
237
241
|
}
|
|
238
242
|
}
|
package/dist/customer_gateway.js
CHANGED
|
@@ -166,7 +166,13 @@ class CustomerGateway extends Object {
|
|
|
166
166
|
return this.context.ready.then((axios) => {
|
|
167
167
|
return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
|
|
168
168
|
});
|
|
169
|
-
}
|
|
169
|
+
},
|
|
170
|
+
// 获取联系人列表
|
|
171
|
+
list: (id) => {
|
|
172
|
+
return this.context.ready.then((axios) => {
|
|
173
|
+
return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
|
|
174
|
+
});
|
|
175
|
+
},
|
|
170
176
|
};
|
|
171
177
|
}
|
|
172
178
|
}
|