heli-mes/mes-ui/mes-ui-admin-vue3/src/api/heli/partpurchaseorder/index.ts

85 lines
2.8 KiB
TypeScript
Raw Normal View History

2025-06-20 00:56:02 +08:00
import request from '@/config/axios'
2025-06-27 20:43:29 +08:00
export interface PartVO {
2025-06-20 00:56:02 +08:00
id: number
projectMaterialPlanNo: string
projectId: number
projectPlanId: number
submitUserId: number
submitTime: Date
auditor: number
auditTime: Date
status: number
description: string
}
2025-06-25 04:18:15 +08:00
// 获取零件采购订单生成分页
2025-06-20 00:56:02 +08:00
export const getPartPage = async (params) => {
2025-06-20 18:42:43 +08:00
return await request.get({ url: `/heli/purchase-order-make/getPartPurchaseOrderPage`, params })
2025-06-20 00:56:02 +08:00
}
2025-06-21 20:43:05 +08:00
export const submitForm = async (data) => {
return await request.post({ url: `/heli/purchase-order-no/submit`, data })
}
2025-06-24 20:31:33 +08:00
2025-06-25 04:18:15 +08:00
// 获取零件采购单审批分页
export const getPartCheckPage = async (params) => {
return await request.get({ url: `/heli/purchase-order-make/page`, params })
}
2025-08-17 20:11:38 +08:00
// 获取零件采购单审批分页
export const getPartCheckPages = async (params) => {
return await request.get({ url: `/heli/purchase-order-make/pages`, params })
}
2025-06-25 04:18:15 +08:00
// 查询采购单主
2025-06-24 20:31:33 +08:00
export const getPurchaseOrderMake = async (id: number) => {
return await request.get({ url: `/heli/purchase-order-make/get?id=` + id })
}
2025-06-25 04:18:15 +08:00
// 更新采购单主批准
export const updatePurchaseOrderMake = async (id: number) => {
return await request.put({ url: `/heli/purchase-order-make/updatePartCheck?id=` + id })
}
// 更新采购单主驳回
export const updatePurchaseOrderMakeNo = async (params) => {
return await request.put({ url: `/heli/purchase-order-make/updatePartCheckNo`, params })
}
2025-06-29 17:05:14 +08:00
export const reject = async (id:number) => {
return await request.get({ url: `/heli/purchase-order-make/reject?id=` +id })
2025-06-27 20:43:29 +08:00
}
export const approval = async (id: number) => {
2025-06-29 17:05:14 +08:00
return await request.get({ url: `/heli/purchase-order-make/approval?id=` + id })
2025-06-27 20:43:29 +08:00
}
// 获取零件采购订单生成分页
export const getDetail = async (params) => {
return await request.get({ url: `/heli/purchase-order-make/getDetail`, params })
}
2025-06-28 02:39:50 +08:00
// 零件采购单送审生成
2025-06-28 22:16:03 +08:00
export const createPurchaseOrderMakeAndDetail = async (data) => {
return await request.post({ url: `/heli/purchase-order-make/createPurchaseOrderMakeAndDetail`, data })
2025-06-28 02:39:50 +08:00
}
2025-06-30 17:05:12 +08:00
export const review = async (params) => {
return await request.get({ url: `/heli/purchase-order-make/review`, params })
}
export const obtainReviewDetails = async (id:number) => {
return await request.get({ url: `/heli/purchase-order-make/obtainReviewDetails?id=` +id })
}
2025-08-17 20:11:38 +08:00
export const rejects = async (id:number) => {
return await request.get({ url: `/heli/purchase-order-make/rejects?id=` +id })
}
2025-09-12 20:36:40 +08:00
export const approvals = async (data) => {
return await request.post({ url: `/heli/purchase-order-make/approvals`,data })
2025-08-17 20:11:38 +08:00
}
2025-10-21 08:58:59 +08:00
export const exportOut = async (params) => {
return await request.download({ url: `/heli/purchase-order-make/exportOut`, params })
}
2025-11-05 09:01:37 +08:00
export const updateDuEmp = async (data) => {
return await request.post({ url: `/heli/purchase-order-make/updateDuEmp`, data })
}