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.
57 lines
1.7 KiB
57 lines
1.7 KiB
11 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface CountJobMainVO {
|
||
|
id : number
|
||
|
number : string
|
||
|
name : string
|
||
|
classification : string
|
||
|
isInAccount : string
|
||
|
status : string
|
||
|
}
|
||
|
|
||
|
// 查询备件盘点计划列表
|
||
|
export const getCountJobMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = { ...params }
|
||
|
return await request.post({ url: '/eam/countJobMain/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/eam/countJobMain/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询备件盘点计划详情
|
||
|
export const getCountJobMain = async (id : number) => {
|
||
|
return await request.get({ url: `/eam/countJobMain/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增备件盘点计划
|
||
|
export const createCountJobMain = async (data : CountJobMainVO) => {
|
||
|
return await request.post({ url: `/eam/countJobMain/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改备件盘点计划
|
||
|
export const updateCountJobMain = async (data : CountJobMainVO) => {
|
||
|
return await request.put({ url: `/eam/countJobMain/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除备件盘点计划
|
||
|
export const deleteCountJobMain = async (id : number) => {
|
||
|
return await request.delete({ url: `/eam/countJobMain/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出备件盘点计划 Excel
|
||
|
export const handleMainExport = async (id : number) => {
|
||
|
return await request.download({ url: `/eam/countJobMain/handleMainExport?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出备件盘点计划 Excel
|
||
|
export const exportCountJobMain = async (params) => {
|
||
|
return await request.download({ url: `/eam/countJobMain/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/eam/countJobMain/get-import-template' })
|
||
|
}
|