gaojs
7 months ago
4 changed files with 267 additions and 4 deletions
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DismantlingDetailVO { |
|||
deleteTime: Date |
|||
id: number |
|||
status: string |
|||
concurrencyStamp: number |
|||
remark: string |
|||
deleter: string |
|||
siteId: number |
|||
mainBiilno: string |
|||
materialCode: string |
|||
materialStauts: string |
|||
materialProcessstauts: string |
|||
} |
|||
|
|||
// 查询报废拆解明细列表
|
|||
export const getDismantlingDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/mes/dismantling-detail/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/mes/dismantling-detail/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询报废拆解明细详情
|
|||
export const getDismantlingDetail = async (id: number) => { |
|||
return await request.get({ url: `/mes/dismantling-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增报废拆解明细
|
|||
export const createDismantlingDetail = async (data: DismantlingDetailVO) => { |
|||
return await request.post({ url: `/mes/dismantling-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改报废拆解明细
|
|||
export const updateDismantlingDetail = async (data: DismantlingDetailVO) => { |
|||
return await request.put({ url: `/mes/dismantling-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除报废拆解明细
|
|||
export const deleteDismantlingDetail = async (id: number) => { |
|||
return await request.delete({ url: `/mes/dismantling-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出报废拆解明细 Excel
|
|||
export const exportDismantlingDetail = async (params) => { |
|||
return await request.download({ url: `/mes/dismantling-detail/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/mes/dismantling-detail/get-import-template' }) |
|||
} |
Loading…
Reference in new issue