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.
|
|
|
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
|
|
|
|
woNumber: string
|
|
|
|
woLine: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询生产计划主列表
|
|
|
|
export const getProductionMainPage = async (params) => {
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/production-main/senior', data })
|
|
|
|
} else {
|
|
|
|
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 })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/production-main/get-import-template' })
|
|
|
|
}
|