@cpzxrobot/sdk 1.2.74 → 1.2.76
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/dist/project_gateway.js +1 -1
- package/dist/quotation_gateway.js +1 -1
- package/dist/user_gateway.js +1 -1
- package/package.json +1 -1
- package/project_gateway.ts +1 -1
- package/quotation_gateway.ts +1 -1
- package/user_gateway.ts +1 -1
package/dist/project_gateway.js
CHANGED
|
@@ -120,7 +120,7 @@ class ProjectGateway extends Object {
|
|
|
120
120
|
// 下载项目文档
|
|
121
121
|
download: (args) => {
|
|
122
122
|
return this.context.ready.then((axios) => {
|
|
123
|
-
return axios.
|
|
123
|
+
return axios.getAndPreview(`/api/v2/coremde-sale/project/document/download`, {
|
|
124
124
|
params: args
|
|
125
125
|
});
|
|
126
126
|
});
|
|
@@ -13,7 +13,7 @@ class QuotationGateway extends Object {
|
|
|
13
13
|
}
|
|
14
14
|
add(args) {
|
|
15
15
|
return this.context.ready.then((axios) => {
|
|
16
|
-
return axios.
|
|
16
|
+
return axios.upload(`/api/v2/coremde-sale/quotation/add`, args);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
get(id) {
|
package/dist/user_gateway.js
CHANGED
|
@@ -289,7 +289,7 @@ class UserGateway extends Object {
|
|
|
289
289
|
return {
|
|
290
290
|
list: async (params) => {
|
|
291
291
|
var axios = await this.context.ready;
|
|
292
|
-
return axios.post('/api/v2/task/list', params);
|
|
292
|
+
return axios.post('/api/v2/coremde-sale/task/list', params);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
}
|
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
|
@@ -160,7 +160,7 @@ export class ProjectGateway extends Object {
|
|
|
160
160
|
// 下载项目文档
|
|
161
161
|
download: (args: { documentId: number }) => {
|
|
162
162
|
return this.context.ready.then((axios) => {
|
|
163
|
-
return axios.
|
|
163
|
+
return axios.getAndPreview(`/api/v2/coremde-sale/project/document/download`, {
|
|
164
164
|
params: args
|
|
165
165
|
});
|
|
166
166
|
});
|
package/quotation_gateway.ts
CHANGED
|
@@ -22,7 +22,7 @@ export class QuotationGateway extends Object {
|
|
|
22
22
|
|
|
23
23
|
add(args: any) {
|
|
24
24
|
return this.context.ready.then((axios) => {
|
|
25
|
-
return axios.
|
|
25
|
+
return axios.upload(`/api/v2/coremde-sale/quotation/add`, args);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
package/user_gateway.ts
CHANGED
|
@@ -326,7 +326,7 @@ export class UserGateway extends Object {
|
|
|
326
326
|
applyUserId: number
|
|
327
327
|
}) => {
|
|
328
328
|
var axios = await this.context.ready;
|
|
329
|
-
return axios.post('/api/v2/task/list', params);
|
|
329
|
+
return axios.post('/api/v2/coremde-sale/task/list', params);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|