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.
51 lines
1.4 KiB
51 lines
1.4 KiB
import request from '@/config/axios'
|
|
|
|
export interface MonthPlanVO {
|
|
id: number
|
|
workshop: string
|
|
years: localdate
|
|
planNum: number
|
|
completeNum: number
|
|
available: string
|
|
}
|
|
|
|
// 查询生产月计划管理列表
|
|
export const getMonthPlanPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/pszc/month-plan/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/pszc/month-plan/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询生产月计划管理详情
|
|
export const getMonthPlan = async (id: number) => {
|
|
return await request.get({ url: `/pszc/month-plan/get?id=` + id })
|
|
}
|
|
|
|
// 新增生产月计划管理
|
|
export const createMonthPlan = async (data: MonthPlanVO) => {
|
|
return await request.post({ url: `/pszc/month-plan/create`, data })
|
|
}
|
|
|
|
// 修改生产月计划管理
|
|
export const updateMonthPlan = async (data: MonthPlanVO) => {
|
|
return await request.put({ url: `/pszc/month-plan/update`, data })
|
|
}
|
|
|
|
// 删除生产月计划管理
|
|
export const deleteMonthPlan = async (id: number) => {
|
|
return await request.delete({ url: `/pszc/month-plan/delete?id=` + id })
|
|
}
|
|
|
|
// 导出生产月计划管理 Excel
|
|
export const exportMonthPlan = async (params) => {
|
|
return await request.download({ url: `/pszc/month-plan/export-excel`, params })
|
|
}
|
|
|
|
// 下载导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/pszc/month-plan/get-import-template' })
|
|
}
|