|
|
@@ -31,7 +31,10 @@ export async function update(data) {
|
|
|
}
|
|
|
// 编辑记录方法
|
|
|
export async function updateRecordingMethod(data) {
|
|
|
- const res = await request.post(`/qms/quality_work_order/updateRecordingMethod`, data);
|
|
|
+ const res = await request.post(
|
|
|
+ `/qms/quality_work_order/updateRecordingMethod`,
|
|
|
+ data
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.message;
|
|
|
}
|
|
|
@@ -264,3 +267,12 @@ export async function craftFiles(qualityWorkOrderId) {
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
+
|
|
|
+// 工艺文件
|
|
|
+export async function mesCraftFiles(data) {
|
|
|
+ const res = await request.post(`/mes/workorder/craftFiles`, data);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|