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.
52 lines
1.4 KiB
52 lines
1.4 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ProductionMainVO {
|
||
|
displayOrder: number
|
||
|
workshop: string
|
||
|
productionLine: string
|
||
|
shift: string
|
||
|
team: string
|
||
|
planDate: Date
|
||
|
number: string
|
||
|
businessType: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
beginTime: Date
|
||
|
endTime: Date
|
||
|
status: string
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询生产计划主列表
|
||
|
export const getProductionMainPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/production-main/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询生产计划主详情
|
||
|
export const getProductionMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/production-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增生产计划主
|
||
|
export const createProductionMain = async (data: ProductionMainVO) => {
|
||
|
return await request.post({ url: `/wms/production-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改生产计划主
|
||
|
export const updateProductionMain = async (data: ProductionMainVO) => {
|
||
|
return await request.put({ url: `/wms/production-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除生产计划主
|
||
|
export const deleteProductionMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/production-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出生产计划主 Excel
|
||
|
export const exportProductionMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/production-main/export-excel`, params })
|
||
|
}
|