@cpzxrobot/sdk 1.2.33 → 1.2.34
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/package.json +1 -1
- package/project_gateway.ts +8 -8
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
|
@@ -62,7 +62,7 @@ export class ProjectGateway extends Object {
|
|
|
62
62
|
media: {
|
|
63
63
|
add: () => {
|
|
64
64
|
return this.context.ready.then((axios) => {
|
|
65
|
-
return axios.upload(`/api/v2/coremde-sale/project/feedback/media/upload`,{
|
|
65
|
+
return axios.upload(`/api/v2/coremde-sale/project/feedback/media/upload`, {
|
|
66
66
|
title: "请选择上传文件"
|
|
67
67
|
});
|
|
68
68
|
});
|
|
@@ -132,7 +132,7 @@ export class ProjectGateway extends Object {
|
|
|
132
132
|
params: {
|
|
133
133
|
id,
|
|
134
134
|
}
|
|
135
|
-
},fileName);
|
|
135
|
+
}, fileName);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
};
|
|
@@ -216,17 +216,17 @@ export class ProjectGateway extends Object {
|
|
|
216
216
|
return axios.post(`/api/v2/coremde-sale/project/inquiry/restart`, args);
|
|
217
217
|
});
|
|
218
218
|
},
|
|
219
|
-
export: (id: number,fileName: string = "询价.pdf") => {
|
|
219
|
+
export: (id: number, fileName: string = "询价.pdf") => {
|
|
220
220
|
return this.context.ready.then((axios) => {
|
|
221
221
|
return axios.getAndSave(`/api/v2/coremde-sale/project/inquiry/export`, {
|
|
222
222
|
params: {
|
|
223
223
|
id,
|
|
224
224
|
fileName
|
|
225
225
|
}
|
|
226
|
-
},fileName);
|
|
226
|
+
}, fileName);
|
|
227
227
|
});
|
|
228
228
|
},
|
|
229
|
-
approval:(args:any) =>{
|
|
229
|
+
approval: (args: any) => {
|
|
230
230
|
return this.context.ready.then((axios) => {
|
|
231
231
|
return axios.post(`/api/v2/coremde-sale/project/inquiry/approve`, args);
|
|
232
232
|
});
|
|
@@ -244,7 +244,7 @@ export class ProjectGateway extends Object {
|
|
|
244
244
|
get codePrefix() {
|
|
245
245
|
return {
|
|
246
246
|
// 添加code前缀
|
|
247
|
-
add: (args: { codePrefix: string; description: string,
|
|
247
|
+
add: (args: { codePrefix: string; description: string, groupId?: number, projectTypeld?: number }) => {
|
|
248
248
|
return this.context.ready.then((axios) => {
|
|
249
249
|
return axios.post(`/api/v2/coremde-sale/project/code-prefix/add`, args);
|
|
250
250
|
});
|
|
@@ -255,7 +255,7 @@ export class ProjectGateway extends Object {
|
|
|
255
255
|
pageSize: number;
|
|
256
256
|
projectCode?: string;
|
|
257
257
|
description?: string;
|
|
258
|
-
|
|
258
|
+
groupId?: number;
|
|
259
259
|
}) => {
|
|
260
260
|
return this.context.ready.then((axios) => {
|
|
261
261
|
return axios.post(`/api/v2/coremde-sale/project/code-prefix/list`, args);
|
|
@@ -268,7 +268,7 @@ export class ProjectGateway extends Object {
|
|
|
268
268
|
});
|
|
269
269
|
},
|
|
270
270
|
// 更新code前缀
|
|
271
|
-
update: (args: { codePrefix: string; description: string; id: number }) => {
|
|
271
|
+
update: (args: { codePrefix: string; description: string; id: number, projectTypeld?: number }) => {
|
|
272
272
|
return this.context.ready.then((axios) => {
|
|
273
273
|
return axios.post(`/api/v2/coremde-sale/project/code-prefix/update`, args);
|
|
274
274
|
});
|