2025-06-22 00:08:59 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface PurchaseOrderNoDetailVO {
|
|
|
|
id: number
|
|
|
|
purchaseOrderId: number
|
|
|
|
boomDetailId: number
|
|
|
|
boomName: string
|
|
|
|
boomSpec: string
|
|
|
|
boomUnit: string
|
|
|
|
composition: string
|
|
|
|
purchaseAmount: number
|
|
|
|
estimatedPrice: number
|
|
|
|
actualPrice: number
|
|
|
|
arriveTime: Date
|
|
|
|
description: string
|
|
|
|
boomAmount: number
|
|
|
|
requireTime: Date
|
|
|
|
projectMaterialPlanId: number
|
|
|
|
projectMaterialPlanBoomId: number
|
|
|
|
projectPlanSubId: number
|
|
|
|
name: string
|
|
|
|
nameSim: string
|
|
|
|
projectId: number
|
|
|
|
projectPlanId: number
|
|
|
|
customerId: number
|
|
|
|
brief: string
|
|
|
|
projectName: string
|
|
|
|
projectNameSim: string
|
|
|
|
materialId: number
|
2025-06-24 09:19:47 +08:00
|
|
|
receivingStatus: number
|
2025-06-22 00:08:59 +08:00
|
|
|
storageId: number
|
|
|
|
storageMatId: number
|
|
|
|
purchaseRemAmount: number
|
|
|
|
theWeight: number
|
|
|
|
duEmpId: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询采购订单明细分页
|
|
|
|
export const getPurchaseOrderNoDetailPage = async (params) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/page`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询采购订单明细详情
|
|
|
|
export const getPurchaseOrderNoDetail = async (id: number) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增采购订单明细
|
|
|
|
export const createPurchaseOrderNoDetail = async (data: PurchaseOrderNoDetailVO) => {
|
|
|
|
return await request.post({ url: `/heli/purchase-order-no-detail/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改采购订单明细
|
|
|
|
export const updatePurchaseOrderNoDetail = async (data: PurchaseOrderNoDetailVO) => {
|
|
|
|
return await request.put({ url: `/heli/purchase-order-no-detail/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除采购订单明细
|
|
|
|
export const deletePurchaseOrderNoDetail = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/heli/purchase-order-no-detail/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出采购订单明细 Excel
|
|
|
|
export const exportPurchaseOrderNoDetail = async (params) => {
|
|
|
|
return await request.download({ url: `/heli/purchase-order-no-detail/export-excel`, params })
|
|
|
|
}
|
|
|
|
export const getPurchaseOrderNoDetailById = async (id: number) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/getPurchaseOrderNoDetailById?id=` + id })
|
|
|
|
}
|
|
|
|
export const verification = async (data) => {
|
|
|
|
return await request.post({ url: `/heli/purchase-order-no-detail/verification`, data })
|
|
|
|
}
|
|
|
|
export const receiveGoods= async (data) => {
|
|
|
|
return await request.post({ url: `/heli/purchase-order-no-detail/receiveGoods`, data })
|
|
|
|
}
|
2025-06-27 20:43:29 +08:00
|
|
|
// 查询采购订单明细分页
|
|
|
|
export const received = async (params) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/received`, params })
|
|
|
|
}
|
|
|
|
// 导出采购订单明细 Excel
|
|
|
|
export const exportReceived = async (params) => {
|
|
|
|
return await request.download({ url: `/heli/purchase-order-no-detail/exportReceived`, params })
|
|
|
|
}
|
2025-08-04 15:43:45 +08:00
|
|
|
export const getOutsourcingExpenses = async (params) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/getOutsourcingExpenses`, params })
|
|
|
|
}
|
|
|
|
// 导出外协费用 Excel
|
|
|
|
export const exportOutsourcing = async (params) => {
|
|
|
|
return await request.download({ url: `/heli/purchase-order-no-detail/exportOutsourcing`, params })
|
|
|
|
}
|
2025-09-05 16:03:50 +08:00
|
|
|
export const updateFrom= async (data) => {
|
|
|
|
return await request.post({ url: `/heli/purchase-order-no-detail/updateFrom`, data })
|
|
|
|
}
|
2025-09-15 08:15:22 +08:00
|
|
|
export const getReceiveGoodDetail = async (params) => {
|
|
|
|
return await request.get({ url: `/heli/purchase-order-no-detail/getReceiveGoodDetail`, params })
|
|
|
|
}
|