|
|
@@ -92,7 +92,7 @@ export async function reportCount (params) {
|
|
|
|
|
|
// 详情页-tab列表
|
|
|
export async function reportPage (data) {
|
|
|
- const res = await request.get('/mes/workreport/page', { params: data });
|
|
|
+ const res = await request.post('/mes/workreport/page', data );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -107,3 +107,12 @@ export async function getInfoById (id) {
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
+
|
|
|
+// 冲销接口
|
|
|
+export async function writeOffWork (data) {
|
|
|
+ const res = await request.post(`/mes/workreport/writeOff`, data);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|