@cpzxrobot/sdk 1.2.23 → 1.2.24
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 +41 -6
- package/dist/customer_gateway.js +29 -6
- package/package.json +1 -1
package/customer_gateway.ts
CHANGED
|
@@ -73,12 +73,12 @@ export class CustomerGateway extends Object {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
///contact/list
|
|
77
|
-
contact(id: number) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
76
|
+
// ///contact/list
|
|
77
|
+
// contact(id: number) {
|
|
78
|
+
// return this.context.ready.then((axios) => {
|
|
79
|
+
// return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
|
|
80
|
+
// });
|
|
81
|
+
// }
|
|
82
82
|
|
|
83
83
|
get visit() {
|
|
84
84
|
return {
|
|
@@ -200,4 +200,39 @@ export class CustomerGateway extends Object {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
// 联系人管理
|
|
204
|
+
get contact() {
|
|
205
|
+
return {
|
|
206
|
+
// 新增联系人
|
|
207
|
+
add: (args: {
|
|
208
|
+
contactName: string;
|
|
209
|
+
contactPhone: string;
|
|
210
|
+
position: string;
|
|
211
|
+
customerId: number;
|
|
212
|
+
}) => {
|
|
213
|
+
return this.context.ready.then((axios) => {
|
|
214
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/add`, args);
|
|
215
|
+
});
|
|
216
|
+
},
|
|
217
|
+
// 修改联系人
|
|
218
|
+
update: (args: {
|
|
219
|
+
contactName: string;
|
|
220
|
+
contactPhone: string;
|
|
221
|
+
position: string;
|
|
222
|
+
id: number;
|
|
223
|
+
}) => {
|
|
224
|
+
return this.context.ready.then((axios) => {
|
|
225
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/update`, args);
|
|
226
|
+
});
|
|
227
|
+
},
|
|
228
|
+
// 删除联系人
|
|
229
|
+
delete: (args: {
|
|
230
|
+
id: number;
|
|
231
|
+
}) => {
|
|
232
|
+
return this.context.ready.then((axios) => {
|
|
233
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
203
238
|
}
|
package/dist/customer_gateway.js
CHANGED
|
@@ -54,12 +54,12 @@ class CustomerGateway extends Object {
|
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
///contact/list
|
|
58
|
-
contact(id) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
57
|
+
// ///contact/list
|
|
58
|
+
// contact(id: number) {
|
|
59
|
+
// return this.context.ready.then((axios) => {
|
|
60
|
+
// return axios.get(`/api/v2/coremde-sale/customer/contact/list?id=${id}`);
|
|
61
|
+
// });
|
|
62
|
+
// }
|
|
63
63
|
get visit() {
|
|
64
64
|
return {
|
|
65
65
|
add: (args) => {
|
|
@@ -146,5 +146,28 @@ class CustomerGateway extends Object {
|
|
|
146
146
|
return axios.get(`/api/v2/coremde-sale/customer/category/list`);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
+
// 联系人管理
|
|
150
|
+
get contact() {
|
|
151
|
+
return {
|
|
152
|
+
// 新增联系人
|
|
153
|
+
add: (args) => {
|
|
154
|
+
return this.context.ready.then((axios) => {
|
|
155
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/add`, args);
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
// 修改联系人
|
|
159
|
+
update: (args) => {
|
|
160
|
+
return this.context.ready.then((axios) => {
|
|
161
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/update`, args);
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
// 删除联系人
|
|
165
|
+
delete: (args) => {
|
|
166
|
+
return this.context.ready.then((axios) => {
|
|
167
|
+
return axios.post(`/api/v2/coremde-sale/customer/contact/delete`, args);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
149
172
|
}
|
|
150
173
|
exports.CustomerGateway = CustomerGateway;
|