|
|
@@ -98,6 +98,16 @@ export async function reportPage (data) {
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
+// 打印详情页-tab列表
|
|
|
+export async function printWorkOrderInfo (workOrderId) {
|
|
|
+ const res = await request.get(
|
|
|
+ `/mes/workreport/printWorkOrderInfo/${workOrderId}`
|
|
|
+ );
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|
|
|
|
|
|
// 获取详情页数据
|
|
|
export async function getInfoById (id) {
|
|
|
@@ -135,13 +145,11 @@ export async function getDeviceByTaskId (params) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-// 获取槽数
|
|
|
+// 获取槽数
|
|
|
export async function getSoltNum (id) {
|
|
|
- const res = await request.get(
|
|
|
- `/main/categorypallet/getByCategoryId/${id}`
|
|
|
- );
|
|
|
+ const res = await request.get(`/main/categorypallet/getByCategoryId/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
-}
|
|
|
+}
|