|
|
@@ -1,6 +1,5 @@
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
-
|
|
|
// 供应商列表
|
|
|
export async function contactList(params) {
|
|
|
const res = await request.get(`/eom/contact/page`, { params });
|
|
|
@@ -10,19 +9,17 @@ export async function contactList(params) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// 获取产品BOM列表
|
|
|
export async function getBomPageCategoryId(params) {
|
|
|
- const res = await request.get(`/main/bomCategory/pageByCategoryId`, { params });
|
|
|
+ const res = await request.get(`/main/bomCategory/pageByCategoryId`, {
|
|
|
+ params
|
|
|
+ });
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 不通过任务,关闭流程
|
|
|
|
|
|
export async function notPass(data) {
|
|
|
@@ -33,9 +30,15 @@ export async function notPass(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+// 查询BOM树 详情
|
|
|
+export async function getBomGetById(id) {
|
|
|
+ const res = await request.get(`/main/bomCategory/getById/${id}`);
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ console.log(res.data, '+++++++++++++++++++++++');
|
|
|
+ return res.data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
+}
|
|
|
|
|
|
// 嘉实医药不通过任务,关闭流程
|
|
|
|
|
|
@@ -57,17 +60,12 @@ export async function deviceNotPass(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// 批量修改
|
|
|
|
|
|
-export async function batchUpdate (data) {
|
|
|
+export async function batchUpdate(data) {
|
|
|
const res = await request.post('/main/bomCategory/batchUpdate', data);
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|