|
|
@@ -1,7 +1,5 @@
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// 生成编码
|
|
|
export async function getCode(code) {
|
|
|
const res = await request.get(`/main/codemanage/getCode/` + code, {});
|
|
|
@@ -11,7 +9,6 @@ export async function getCode(code) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 工单列表
|
|
|
export async function workorderPage(data) {
|
|
|
const res = await request.post('/pda/mes/workorder/page', data);
|
|
|
@@ -21,9 +18,7 @@ export async function workorderPage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-// 工单列表
|
|
|
+// 工单列表
|
|
|
export async function workorderPage2(data) {
|
|
|
const res = await request.post('/mes/workorder/taskReportPage2', data);
|
|
|
if (res.data.code == 0) {
|
|
|
@@ -32,8 +27,7 @@ export async function workorderPage2(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-// 工单列表
|
|
|
+// 工单列表
|
|
|
|
|
|
export async function pickTaskReportPage(data) {
|
|
|
const res = await request.post('/mes/workorder/pickTaskReportPage', data);
|
|
|
@@ -43,12 +37,14 @@ export async function pickTaskReportPage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+// 查询 工序的工步列表
|
|
|
+export async function listByParam(id) {
|
|
|
+ const res = await request.get('/main/categoryparamstep/listByParamId/' + id);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|
|
|
|
|
|
// 查询库存台账首页列表
|
|
|
|
|
|
@@ -82,11 +78,6 @@ export async function listInProduct(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// 父级ID查询分类树
|
|
|
export async function treeByPid(data) {
|
|
|
const res = await request.get('/pda/main/categoryLevel/pdaTreeByPid', {
|
|
|
@@ -98,7 +89,6 @@ export async function treeByPid(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 根据工单ids获取工单列表
|
|
|
export async function workorderList(data) {
|
|
|
const res = await request.post('/mes/workorder/list', data);
|
|
|
@@ -117,8 +107,6 @@ export async function znworkorderList(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// pda报工保存
|
|
|
|
|
|
export async function jobSave(data) {
|
|
|
@@ -129,8 +117,6 @@ export async function jobSave(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// pda报工保存缓存
|
|
|
|
|
|
export async function saveCache(data) {
|
|
|
@@ -141,12 +127,8 @@ export async function saveCache(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// pda报工查缓存
|
|
|
|
|
|
-
|
|
|
-
|
|
|
export async function getCache(data) {
|
|
|
const res = await request.post('/mes/workreport/getCache', data);
|
|
|
if (res.data.code == 0) {
|
|
|
@@ -155,10 +137,6 @@ export async function getCache(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// 清空缓存
|
|
|
export async function removeCache(data) {
|
|
|
const res = await request.post('/mes/workreport/removeCache', data);
|
|
|
@@ -168,9 +146,6 @@ export async function removeCache(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// PDA 碳谷 入库查询
|
|
|
|
|
|
export async function listPcToWarehouseTG(data) {
|
|
|
@@ -189,7 +164,6 @@ export async function listPCToWarehouse(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// pda根据工单id和工序id查询报工详情
|
|
|
export async function listWorkReport(data) {
|
|
|
const res = await request.post('/pda/mes/workreport/listWorkReport', data);
|
|
|
@@ -199,8 +173,6 @@ export async function listWorkReport(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// pda根据工单id和工序id查询报工详情 (入库)
|
|
|
export async function listApplystorage(data) {
|
|
|
const res = await request.get('/mes/applystorage/list', {
|
|
|
@@ -212,10 +184,12 @@ export async function listApplystorage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 获取配置信息
|
|
|
export async function packageDisposition(data) {
|
|
|
- const res = await request.get('/main/category/packageDisposition/'+data,{});
|
|
|
+ const res = await request.get(
|
|
|
+ '/main/category/packageDisposition/' + data,
|
|
|
+ {}
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -266,7 +240,10 @@ export async function createInProduct(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
export async function createInProductBatchTG(data) {
|
|
|
- const res = await request.post('/pda/mes/workreport/createInProductBatchTG', data);
|
|
|
+ const res = await request.post(
|
|
|
+ '/pda/mes/workreport/createInProductBatchTG',
|
|
|
+ data
|
|
|
+ );
|
|
|
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|