|
@@ -211,4 +211,13 @@ export async function planDetails(id) {
|
|
|
return res.data;
|
|
return res.data;
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
-}
|
|
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 验证
|
|
|
|
|
+export async function checkTemplateById(id) {
|
|
|
|
|
+ const res = await request.get(`/qms/quality_plan/checkTemplateById/${id}`);
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ return res.data;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|