94 lines
2.8 KiB
TypeScript
94 lines
2.8 KiB
TypeScript
import request from '@/config/axios'
|
||
|
||
export interface ProcessBomVO {
|
||
id: number
|
||
code: string
|
||
planId: number
|
||
projectId: number
|
||
projectSubId: number
|
||
projectSubName: string
|
||
projectSubCode: string
|
||
version: number
|
||
bomStatus: number
|
||
remark: string
|
||
status: number
|
||
active: string
|
||
activeOpinion: string
|
||
}
|
||
|
||
// 查询工艺bom分页
|
||
export const getProcessBomPage = async (params) => {
|
||
return await request.get({ url: `/heli/process-bom/page`, params })
|
||
}
|
||
export const detailpages = async (params) => {
|
||
return await request.get({ url: `/heli/process-bom/detailpages`, params })
|
||
}
|
||
// 查询工艺bom审核分页
|
||
export const getProcessBomPages = async (params) => {
|
||
return await request.get({ url: `/heli/process-bom/pages`, params })
|
||
}
|
||
|
||
// 查询工艺bom详情
|
||
export const getProcessBom = async (id: number) => {
|
||
return await request.get({ url: `/heli/process-bom/get?id=` + id })
|
||
}
|
||
|
||
// 新增工艺bom
|
||
export const createProcessBom = async (data: ProcessBomVO) => {
|
||
return await request.post({ url: `/heli/process-bom/create`, data })
|
||
}
|
||
|
||
// 修改工艺bom
|
||
export const updateProcessBom = async (data: ProcessBomVO) => {
|
||
return await request.put({ url: `/heli/process-bom/update`, data })
|
||
}
|
||
|
||
// 删除工艺bom
|
||
export const deleteProcessBom = async (id: number) => {
|
||
return await request.delete({ url: `/heli/process-bom/delete?id=` + id })
|
||
}
|
||
|
||
// 导出工艺bom Excel
|
||
export const exportProcessBom = async (params) => {
|
||
return await request.download({ url: `/heli/process-bom/export-excel`, params })
|
||
}
|
||
|
||
// ==================== 子表(工艺bom明细) ====================
|
||
|
||
// 获得工艺bom明细列表
|
||
export const getProcessBomDetailListByBomId = async (bomId) => {
|
||
return await request.get({ url: `/heli/process-bom/process-bom-detail/list-by-bom-id?bomId=` + bomId })
|
||
}
|
||
|
||
// 获得工艺bom明细列表
|
||
export const getProcessBomDetailListByBomIdbyid = async (bomId) => {
|
||
return await request.get({ url: `/heli/process-bom/process-bom-detail/list-by-bom-idbyid?bomId=` + bomId })
|
||
}
|
||
|
||
|
||
|
||
|
||
export const deleteProcessBomDetail = async (id: number) => {
|
||
return await request.delete({ url: `/heli/process-bom/process-bom-detail/delete?id=` + id })
|
||
}
|
||
|
||
export async function operateProcessBom(data: ProcessBomVO) {
|
||
return await request.post({ url: `/heli/process-bom/operate`, data })
|
||
}
|
||
|
||
// 查询标准件物料需求计划
|
||
export const getStandardPage = async (params) => {
|
||
return await request.get({ url: `/heli/process-bom/getStandardPage`, params })
|
||
}
|
||
export const submitForm = async (data) => {
|
||
return await request.post({ url: `/heli/process-bom/submit`, data })
|
||
}
|
||
export const withdraw = async (code) => {
|
||
return await request.get({ url: `/heli/process-bom/withdraw?code=` + code })
|
||
}
|
||
// 导出工艺bom Excel
|
||
export const exportStandard = async (params) => {
|
||
return await request.download({ url: `/heli/process-bom/exportStandard`, params })
|
||
}
|
||
|