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.
55 lines
1.6 KiB
55 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface DismantlingMainVO {
|
|
deleteTime: Date
|
|
id: number
|
|
status: string
|
|
concurrencyStamp: number
|
|
remark: string
|
|
deleter: string
|
|
siteId: number
|
|
dismantlingBillno: string
|
|
productionCode: string
|
|
workbillType: string
|
|
}
|
|
|
|
// 查询报废拆解登记主列表
|
|
export const getDismantlingMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/mes/dismantling-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/mes/dismantling-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询报废拆解登记主详情
|
|
export const getDismantlingMain = async (id: number) => {
|
|
return await request.get({ url: `/mes/dismantling-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增报废拆解登记主
|
|
export const createDismantlingMain = async (data: DismantlingMainVO) => {
|
|
return await request.post({ url: `/mes/dismantling-main/create`, data })
|
|
}
|
|
|
|
// 修改报废拆解登记主
|
|
export const updateDismantlingMain = async (data: DismantlingMainVO) => {
|
|
return await request.put({ url: `/mes/dismantling-main/update`, data })
|
|
}
|
|
|
|
// 删除报废拆解登记主
|
|
export const deleteDismantlingMain = async (id: number) => {
|
|
return await request.delete({ url: `/mes/dismantling-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出报废拆解登记主 Excel
|
|
export const exportDismantlingMain = async (params) => {
|
|
return await request.download({ url: `/mes/dismantling-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/mes/dismantling-main/get-import-template' })
|
|
}
|