You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ProductionDetailVO {
|
||
|
bomVersion: string
|
||
|
goodQty: number
|
||
|
notGoodQty: number
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
planQty: number
|
||
|
uom: string
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询生产计划子列表
|
||
|
export const getProductionDetailPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/production-detail/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询生产计划子详情
|
||
|
export const getProductionDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/production-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增生产计划子
|
||
|
export const createProductionDetail = async (data: ProductionDetailVO) => {
|
||
|
return await request.post({ url: `/wms/production-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改生产计划子
|
||
|
export const updateProductionDetail = async (data: ProductionDetailVO) => {
|
||
|
return await request.put({ url: `/wms/production-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除生产计划子
|
||
|
export const deleteProductionDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/production-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出生产计划子 Excel
|
||
|
export const exportProductionDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/production-detail/export-excel`, params })
|
||
|
}
|