diff --git a/src/api/mes/baseStructureBom/index.ts b/src/api/mes/baseStructureBom/index.ts index a55ef76..7fada24 100644 --- a/src/api/mes/baseStructureBom/index.ts +++ b/src/api/mes/baseStructureBom/index.ts @@ -1,6 +1,7 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { BaseStructureBomVO, BaseStructureBomForm, BaseStructureBomQuery } from '@/api/mes/baseStructureBom/types'; +import {BaseMaterialTypeQuery,BaseMaterialTypeVO} from "./../baseMaterialType/types"; /** * 查询结构BOM信息列表 @@ -75,3 +76,45 @@ export function getBaseStructureBomList (query) { params: query }); }; + + +/** + * 查询物料结构树下拉树结构 + */ +export const structureBomTreeSelect = (): AxiosPromise => { + return request({ + url: '/mes/baseStructureBom/structureBomTree', + method: 'get' + }); +}; + + +/** + * 分页查询结构BOM信息列表 + * @param query + * @returns {*} + */ + +export const pageListBaseStructureBom = (query?: BaseStructureBomQuery): AxiosPromise => { + return request({ + url: '/mes/baseStructureBom/pageList', + method: 'get', + params: query + }); +}; + + +/** + * 查询物料类型列表 + * @param query + * @returns {*} + */ + +export const getMaterialTypeList = (query?: BaseMaterialTypeQuery): AxiosPromise => { + return request({ + url: '/mes/baseStructureBom/getMaterialTypeList', + method: 'get', + params: query + }); +}; + diff --git a/src/views/mes/baseStructureBom/index.vue b/src/views/mes/baseStructureBom/index.vue index 809896a..5a65319 100644 --- a/src/views/mes/baseStructureBom/index.vue +++ b/src/views/mes/baseStructureBom/index.vue @@ -1,240 +1,226 @@