|
|
@@ -1,5 +1,5 @@
|
|
|
import request from '@/utils/request';
|
|
|
-import {download} from "@/utils/file";
|
|
|
+import { download } from '@/utils/file';
|
|
|
|
|
|
// 获取列表
|
|
|
export async function getGroupPage(data) {
|
|
|
@@ -72,14 +72,15 @@ export async function removeMaterial(id) {
|
|
|
|
|
|
//根据产品ID bom获取工艺路线列表【产品管理】
|
|
|
export async function getBomRoutingList(categoryId) {
|
|
|
- const res = await request.get(`/main/bomCategory/bomRoutingListByCategoryId/${categoryId}`);
|
|
|
+ const res = await request.get(
|
|
|
+ `/main/bomCategory/bomRoutingListByCategoryId/${categoryId}`
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 根据产品ID获取bom列表
|
|
|
export async function getBomAssociationList(params) {
|
|
|
const res = await request.get(`/main/bomCategory/getList`, { params });
|
|
|
@@ -89,7 +90,6 @@ export async function getBomAssociationList(params) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 产品工序与模具关联
|
|
|
export async function categoryTaskPallet(data) {
|
|
|
const res = await request.post(`/main/category/categoryTaskPallet`, data);
|
|
|
@@ -134,22 +134,19 @@ export async function deletePackageDisposition(data) {
|
|
|
|
|
|
// 查询质检方案列表
|
|
|
export async function getQualityTemplate(data) {
|
|
|
- const res = await request.get(
|
|
|
- `/main/category/getQualityTemplate`
|
|
|
- );
|
|
|
+ const res = await request.get(`/qms/qualitytemplate/page`, {
|
|
|
+ params: data
|
|
|
+ });
|
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 导出
|
|
|
export async function exportFile(data) {
|
|
|
- const res = await request.post(
|
|
|
- '/main/category/export',data,{
|
|
|
- responseType: 'blob'
|
|
|
- }
|
|
|
- );
|
|
|
- download(res.data,'产品/物品数据.xlsx')
|
|
|
+ const res = await request.post('/main/category/export', data, {
|
|
|
+ responseType: 'blob'
|
|
|
+ });
|
|
|
+ download(res.data, '产品/物品数据.xlsx');
|
|
|
}
|