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.
 
 
 
 

64 lines
2.0 KiB

import request from '@/config/axios'
export interface AssetsAccountControlsHistoryVO {
number: string
name: string
accountingUnit: string
specifications: string
locationNumber: string
beginUseDate: Date
supplierNumber: string
productionDate: Date
manageDept: string
unit: string
qty: number
costSubjectDesc: string
user: string
status: string
category: string
}
// 查询固定资产表操作记录列表
export const getAssetsAccountControlsHistoryPage = async (params) => {
params.category = '2'
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/fixed-assets-controls-history/senior', data })
} else {
return await request.get({ url: `/eam/fixed-assets-controls-history/page`, params })
}
}
// 查询固定资产表操作记录详情
export const getAssetsAccountControlsHistory = async (id: number) => {
return await request.get({ url: `/eam/fixed-assets-controls-history/get?id=` + id })
}
// 新增固定资产表操作记录
export const createAssetsAccountControlsHistory = async (data: AssetsAccountControlsHistoryVO) => {
data.category = '2'
return await request.post({ url: `/eam/fixed-assets-controls-history/create`, data })
}
// 修改固定资产表操作记录
export const updateAssetsAccountControlsHistory = async (data: AssetsAccountControlsHistoryVO) => {
return await request.put({ url: `/eam/fixed-assets-controls-history/update`, data })
}
// 删除固定资产表操作记录
export const deleteAssetsAccountControlsHistory = async (id: number) => {
return await request.delete({ url: `/eam/fixed-assets-controls-history/delete?id=` + id })
}
// 导出固定资产表操作记录 Excel
export const exportAssetsAccountControlsHistory = async (params) => {
params.category = '2'
return await request.download({ url: `/eam/fixed-assets-controls-history/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/fixed-assets-controls-history/get-import-template' })
}