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.
63 lines
1.9 KiB
63 lines
1.9 KiB
import request from '@/config/axios'
|
|
|
|
export interface ItemApplyMainVO {
|
|
number: string
|
|
name: string
|
|
type: string
|
|
applyId: number
|
|
applyDeptId: number
|
|
approveId: number
|
|
approveTime: Date
|
|
outId: number
|
|
outTime: Date
|
|
siteId: string
|
|
available: string
|
|
concurrencyStamp: number
|
|
}
|
|
|
|
// 查询备件申领记录主列表
|
|
export const getItemApplyMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/eam/item-apply-request-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/item-apply-request-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询备件申领记录主详情
|
|
export const getItemApplyMain = async (id: number) => {
|
|
return await request.get({ url: `/eam/item-apply-request-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增备件申领记录主
|
|
export const createItemApplyMain = async (data: ItemApplyMainVO) => {
|
|
return await request.post({ url: `/eam/item-apply-request-main/create`, data })
|
|
}
|
|
|
|
// 修改备件申领记录主
|
|
export const updateItemApplyMain = async (data: ItemApplyMainVO) => {
|
|
return await request.put({ url: `/eam/item-apply-request-main/update`, data })
|
|
}
|
|
|
|
// 删除备件申领记录主
|
|
export const deleteItemApplyMain = async (id: number) => {
|
|
return await request.delete({ url: `/eam/item-apply-request-main/delete?id=` + id })
|
|
}
|
|
|
|
// 撤销备件申领记录主
|
|
export const backoutItemApplyMain = async (id: number) => {
|
|
return await request.get({ url: `/eam/item-apply-request-main/backout?id=` + id })
|
|
}
|
|
|
|
|
|
// 导出备件申领记录主 Excel
|
|
export const exportItemApplyMain = async (params) => {
|
|
return await request.download({ url: `/eam/item-apply-request-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/item-apply-request-main/get-import-template' })
|
|
}
|
|
|