|
|
@@ -19,8 +19,12 @@ export async function workorderPage(data) {
|
|
|
}
|
|
|
|
|
|
// 工单列表
|
|
|
-export async function workorderPage2(data) {
|
|
|
- const res = await request.post('/mes/workorder/taskReportPage2', data);
|
|
|
+export async function workorderPage2(data, config = {}) {
|
|
|
+ const res = await request.post(
|
|
|
+ '/mes/workorder/taskReportPage2',
|
|
|
+ data,
|
|
|
+ config
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -367,10 +371,7 @@ export async function fileReleaseAPI(data) {
|
|
|
|
|
|
// 获取工单内所有产品,产品编码和产品名称
|
|
|
export async function getAllProductInWorkOrder(body) {
|
|
|
- const res = await request.post(
|
|
|
- `/mes/workorder/getProductInWorkOrder`,
|
|
|
- body
|
|
|
- );
|
|
|
+ const res = await request.post(`/mes/workorder/getProductInWorkOrder`, body);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -379,7 +380,10 @@ export async function getAllProductInWorkOrder(body) {
|
|
|
|
|
|
// /mes/workorder/craftFiles/batchRecordPage
|
|
|
export async function batchRecordPage(data) {
|
|
|
- const res = await request.post('/mes/workorder/craftFiles/batchRecordPage', data);
|
|
|
+ const res = await request.post(
|
|
|
+ '/mes/workorder/craftFiles/batchRecordPage',
|
|
|
+ data
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|