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.5 KiB
51 lines
1.5 KiB
4 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface CountadjustPlanVO {
|
||
|
id : number
|
||
|
number : string
|
||
|
name : string
|
||
|
classification : string
|
||
|
isInAccount : string
|
||
|
status : string
|
||
|
}
|
||
|
|
||
|
// 查询备件盘点计划列表
|
||
|
export const getCountadjustPlanPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = { ...params }
|
||
|
return await request.post({ url: '/eam/countadjust-plan/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/eam/countadjust-plan/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询备件盘点计划详情
|
||
|
export const getCountadjustPlan = async (id : number) => {
|
||
|
return await request.get({ url: `/eam/countadjust-plan/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增备件盘点计划
|
||
|
export const createCountadjustPlan = async (data : CountadjustPlanVO) => {
|
||
|
return await request.post({ url: `/eam/countadjust-plan/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改备件盘点计划
|
||
|
export const updateCountadjustPlan = async (data : CountadjustPlanVO) => {
|
||
|
return await request.put({ url: `/eam/countadjust-plan/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除备件盘点计划
|
||
|
export const deleteCountadjustPlan = async (id : number) => {
|
||
|
return await request.delete({ url: `/eam/countadjust-plan/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出备件盘点计划 Excel
|
||
|
export const exportCountadjustPlan = async (params) => {
|
||
|
return await request.download({ url: `/eam/countadjust-plan/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/eam/countadjust-plan/get-import-template' })
|
||
|
}
|