|
|
@@ -1,6 +1,5 @@
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
-
|
|
|
// /main/recordrules/getById/{id} 查看详情
|
|
|
export async function recordrulesGetById(id) {
|
|
|
const res = await request.get(`/main/recordrules/getById/${id}`);
|
|
|
@@ -10,7 +9,6 @@ export async function recordrulesGetById(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 规则记录分页查询
|
|
|
export async function recordrulesPage(body) {
|
|
|
const res = await request.post(`/main/recordrules/page`, body);
|
|
|
@@ -75,7 +73,6 @@ export async function getRecordRulesPlanDetail(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// /mes/recordrulesplan/revoke post 撤回
|
|
|
export async function recordrulesplanRevoke(id) {
|
|
|
const res = await request.put(`/pcs/recordRulesPlan/revoke`, id);
|
|
|
@@ -105,10 +102,7 @@ export async function recordrulesplanManualDispatchOrder(body) {
|
|
|
|
|
|
// /mes/recordrulesplan/reManualDispatchOrder
|
|
|
export async function recordrulesplanReManualDispatchOrder(body) {
|
|
|
- const res = await request.put(
|
|
|
- `/pcs/recordrulesorder/reassign`,
|
|
|
- body
|
|
|
- );
|
|
|
+ const res = await request.put(`/pcs/recordrulesorder/reassign`, body);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -117,21 +111,23 @@ export async function recordrulesplanReManualDispatchOrder(body) {
|
|
|
|
|
|
// /mes/producetaskrulerecord/saveOrUpdateAndSubmit 报工
|
|
|
export async function producetaskrulerecordSaveOrUpdateAndSubmit(body) {
|
|
|
- const res = await request.put(
|
|
|
- `/pcs/recordrulesorder/reportingWork`,
|
|
|
- body
|
|
|
- );
|
|
|
+ const res = await request.put(`/pcs/recordrulesorder/reportingWork`, body);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
export async function getById(id) {
|
|
|
const res = await request.get('/pcs/recordrulesorder/getById/' + id);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
-}
|
|
|
+}
|
|
|
+export async function checkReportingWork(id) {
|
|
|
+ const res = await request.get(
|
|
|
+ '/pcs/recordrulesorder/checkReportingWork/' + id
|
|
|
+ );
|
|
|
+ return res.data.code;
|
|
|
+}
|