@cpzxrobot/sdk 1.2.66 → 1.2.67
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 +23 -1
- package/package.json +1 -1
- package/project_gateway.ts +28 -1
package/dist/project_gateway.js
CHANGED
|
@@ -88,7 +88,7 @@ class ProjectGateway extends Object {
|
|
|
88
88
|
}
|
|
89
89
|
get document() {
|
|
90
90
|
return {
|
|
91
|
-
//
|
|
91
|
+
// 获取文档列表
|
|
92
92
|
list: (args) => {
|
|
93
93
|
return this.context.ready.then((axios) => {
|
|
94
94
|
return axios.post(`/api/v2/coremde-sale/project/document/list`, args);
|
|
@@ -102,6 +102,28 @@ class ProjectGateway extends Object {
|
|
|
102
102
|
}
|
|
103
103
|
}, fileName);
|
|
104
104
|
});
|
|
105
|
+
},
|
|
106
|
+
// 上传项目文档
|
|
107
|
+
upload: (args) => {
|
|
108
|
+
return this.context.ready.then((axios) => {
|
|
109
|
+
return axios.post(`/api/v2/coremde-sale/project/document/upload`, args);
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
// 预览项目文档
|
|
113
|
+
view: (args) => {
|
|
114
|
+
return this.context.ready.then((axios) => {
|
|
115
|
+
return axios.get(`/api/v2/coremde-sale/project/document/view`, {
|
|
116
|
+
params: args
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
// 下载项目文档
|
|
121
|
+
download: (args) => {
|
|
122
|
+
return this.context.ready.then((axios) => {
|
|
123
|
+
return axios.get(`/api/v2/coremde-sale/project/document/download`, {
|
|
124
|
+
params: args
|
|
125
|
+
});
|
|
126
|
+
});
|
|
105
127
|
}
|
|
106
128
|
};
|
|
107
129
|
}
|
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
|
@@ -119,7 +119,7 @@ export class ProjectGateway extends Object {
|
|
|
119
119
|
|
|
120
120
|
get document() {
|
|
121
121
|
return {
|
|
122
|
-
//
|
|
122
|
+
// 获取文档列表
|
|
123
123
|
list: (args: {
|
|
124
124
|
pageNo: number;
|
|
125
125
|
pageSize: number;
|
|
@@ -137,6 +137,33 @@ export class ProjectGateway extends Object {
|
|
|
137
137
|
}
|
|
138
138
|
}, fileName);
|
|
139
139
|
});
|
|
140
|
+
},
|
|
141
|
+
// 上传项目文档
|
|
142
|
+
upload: (args: {
|
|
143
|
+
projectId: number;
|
|
144
|
+
files: any[];
|
|
145
|
+
groupId: number;
|
|
146
|
+
fileType: "base-info" | "inquiry" | "contract";
|
|
147
|
+
}) => {
|
|
148
|
+
return this.context.ready.then((axios) => {
|
|
149
|
+
return axios.post(`/api/v2/coremde-sale/project/document/upload`, args);
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
// 预览项目文档
|
|
153
|
+
view: (args: { documentId: number }) => {
|
|
154
|
+
return this.context.ready.then((axios) => {
|
|
155
|
+
return axios.get(`/api/v2/coremde-sale/project/document/view`, {
|
|
156
|
+
params: args
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
// 下载项目文档
|
|
161
|
+
download: (args: { documentId: number }) => {
|
|
162
|
+
return this.context.ready.then((axios) => {
|
|
163
|
+
return axios.get(`/api/v2/coremde-sale/project/document/download`, {
|
|
164
|
+
params: args
|
|
165
|
+
});
|
|
166
|
+
});
|
|
140
167
|
}
|
|
141
168
|
};
|
|
142
169
|
}
|