From d29340b968cbdc72c9adb7e244b490c67dfc4ff0 Mon Sep 17 00:00:00 2001 From: xs Date: Tue, 25 Feb 2025 19:30:26 +0800 Subject: [PATCH] =?UTF-8?q?1.2.1=20=E7=94=9F=E4=BA=A7bom=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E6=A0=91=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/baseStructureBom/index.ts | 43 ++ src/views/mes/baseStructureBom/index.vue | 685 ++++++++++++----------- 2 files changed, 414 insertions(+), 314 deletions(-) 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 @@