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.9 KiB
61 lines
1.9 KiB
import request from '@/config/axios'
|
|
|
|
export interface CountRecordMainVO {
|
|
id : number
|
|
number : string
|
|
name : string
|
|
classification : string
|
|
isInAccount : string
|
|
status : string
|
|
}
|
|
|
|
// 查询备件盘点计划列表
|
|
export const getCountRecordMainPage = async (params) => {
|
|
params.status="CANGENERATE"
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = { ...params }
|
|
return await request.post({ url: '/eam/countRecordMain/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/countRecordMain/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询备件盘点计划详情
|
|
export const getCountRecordMain = async (id : number) => {
|
|
return await request.get({ url: `/eam/countRecordMain/get?id=` + id })
|
|
}
|
|
|
|
// 新增备件盘点计划
|
|
export const createCountRecordMain = async (data : CountRecordMainVO) => {
|
|
return await request.post({ url: `/eam/countRecordMain/create`, data })
|
|
}
|
|
|
|
// 修改备件盘点计划
|
|
export const updateCountRecordMain = async (data : CountRecordMainVO) => {
|
|
return await request.put({ url: `/eam/countRecordMain/update`, data })
|
|
}
|
|
|
|
// 删除备件盘点计划
|
|
export const deleteCountRecordMain = async (id : number) => {
|
|
return await request.delete({ url: `/eam/countRecordMain/delete?id=` + id })
|
|
}
|
|
// 盘点调整
|
|
export const adjustCountRecordMain = async (id : number) => {
|
|
return await request.get({ url: `/eam/countRecordMain/adjust?number=` + id })
|
|
}
|
|
|
|
// 导出备件盘点计划 Excel
|
|
export const handleMainExport = async (id : number) => {
|
|
return await request.download({ url: `/eam/countRecordMain/handleMainExport?id=` + id })
|
|
}
|
|
|
|
// 导出备件盘点计划 Excel
|
|
export const exportCounRecordMain = async (params) => {
|
|
return await request.download({ url: `/eam/countRecordMain/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/countRecordMain/get-import-template' })
|
|
}
|
|
|