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.
71 lines
2.1 KiB
71 lines
2.1 KiB
import request from '@/config/axios'
|
|
|
|
export interface SparePartsOutLocationRecordMainVO {
|
|
id: number
|
|
number: string
|
|
theme: string
|
|
applyer: string
|
|
approver: number
|
|
approveContent: string
|
|
approveTime: Date
|
|
autoExamine: string
|
|
autoAgree: string
|
|
directCreateRecord: string
|
|
areaCode: string
|
|
locationCode: string
|
|
departmentCode: string
|
|
remark: string
|
|
siteId: string
|
|
available: string
|
|
deletionTime: Date
|
|
deleterId: byte[]
|
|
concurrencyStamp: number
|
|
}
|
|
|
|
// 查询领用出库记录主列表
|
|
export const getSparePartsOutLocationRecordMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = { ...params }
|
|
return await request.post({ url: '/eam/spare-parts-out-location-main-record/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/spare-parts-out-location-main-record/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询领用出库记录主详情
|
|
export const getSparePartsOutLocationRecordMain = async (id: number) => {
|
|
return await request.get({ url: `/eam/spare-parts-out-location-main-record/get?id=` + id })
|
|
}
|
|
|
|
// 新增领用出库记录主
|
|
export const createSparePartsOutLocationRecordMain = async (
|
|
data: SparePartsOutLocationRecordMainVO
|
|
) => {
|
|
return await request.post({ url: `/eam/spare-parts-out-location-main-record/create`, data })
|
|
}
|
|
|
|
// 修改领用出库记录主
|
|
export const updateSparePartsOutLocationRecordMain = async (
|
|
data: SparePartsOutLocationRecordMainVO
|
|
) => {
|
|
return await request.put({ url: `/eam/spare-parts-out-location-main-record/update`, data })
|
|
}
|
|
|
|
// 删除领用出库记录主
|
|
export const deleteSparePartsOutLocationRecordMain = async (id: number) => {
|
|
return await request.delete({ url: `/eam/spare-parts-out-location-main-record/delete?id=` + id })
|
|
}
|
|
|
|
// 导出领用出库记录主 Excel
|
|
export const exportSparePartsOutLocationRecordMain = async (params) => {
|
|
return await request.download({
|
|
url: `/eam/spare-parts-out-location-main-record/export-excel`,
|
|
params
|
|
})
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/spare-parts-out-location-main-record/get-import-template' })
|
|
}
|
|
|