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.
61 lines
1.8 KiB
61 lines
1.8 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface MesOrderMonthMainVO {
|
||
|
deleteTime: Date
|
||
|
id: number
|
||
|
status: string
|
||
|
concurrencyStamp: number
|
||
|
remark: string
|
||
|
deleter: string
|
||
|
siteId: number
|
||
|
sourceType: string
|
||
|
planMasterCode: string
|
||
|
planSubCode: string
|
||
|
planType: string
|
||
|
checker: string
|
||
|
checkDate: string
|
||
|
factoryCode: string
|
||
|
factoryName: string
|
||
|
}
|
||
|
|
||
|
// 查询订单计划月主列表
|
||
|
export const getMesOrderMonthMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/plan/mes-order-month-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/plan/mes-order-month-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询订单计划月主详情
|
||
|
export const getMesOrderMonthMain = async (id: number) => {
|
||
|
return await request.get({ url: `/plan/mes-order-month-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增订单计划月主
|
||
|
export const createMesOrderMonthMain = async (data: MesOrderMonthMainVO) => {
|
||
|
return await request.post({ url: `/plan/mes-order-month-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改订单计划月主
|
||
|
export const updateMesOrderMonthMain = async (data: MesOrderMonthMainVO) => {
|
||
|
return await request.put({ url: `/plan/mes-order-month-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除订单计划月主
|
||
|
export const deleteMesOrderMonthMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/plan/mes-order-month-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出订单计划月主 Excel
|
||
|
export const exportMesOrderMonthMain = async (params) => {
|
||
|
return await request.download({ url: `/plan/mes-order-month-main/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/plan/mes-order-month-main/get-import-template' })
|
||
|
}
|