|
|
@@ -1,7 +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}`);
|
|
|
@@ -11,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);
|
|
|
@@ -76,8 +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(`/qms/qmsrecordrulesplan/revoke`, id);
|
|
|
@@ -107,22 +102,15 @@ export async function recordrulesplanManualDispatchOrder(body) {
|
|
|
|
|
|
// /mes/recordrulesplan/reManualDispatchOrder
|
|
|
export async function recordrulesplanReManualDispatchOrder(body) {
|
|
|
- const res = await request.put(
|
|
|
- `/qms/qmsrecordrulesorder/reassign`,
|
|
|
- body
|
|
|
- );
|
|
|
+ const res = await request.put(`/qms/qmsrecordrulesorder/reassign`, body);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
export async function producetaskrulerecordSaveOrUpdateAndSubmit(body) {
|
|
|
- const res = await request.put(
|
|
|
- `/qms/qmsrecordrulesorder/reportingWork`,
|
|
|
- body
|
|
|
- );
|
|
|
+ const res = await request.put(`/qms/qmsrecordrulesorder/reportingWork`, body);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
@@ -137,5 +125,9 @@ export async function getById(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+export async function checkReportingWork(id) {
|
|
|
+ const res = await request.get(
|
|
|
+ '/qms/qmsrecordrulesorder/checkReportingWork/' + id
|
|
|
+ );
|
|
|
+ return res.data.code;
|
|
|
+}
|