gaojs
6 months ago
5 changed files with 239 additions and 38 deletions
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ItemRequestDetailVO { |
|||
deleteTime: Date |
|||
id: number |
|||
status: string |
|||
concurrencyStamp: number |
|||
remark: string |
|||
deleter: string |
|||
requestBillNo: string |
|||
itemBasicCode: string |
|||
itemCounts: number |
|||
itemUom: string |
|||
siteId: number |
|||
} |
|||
|
|||
// 查询叫料申请明细列表
|
|||
export const getItemRequestDetailPage = async (params) => { |
|||
if (params.isSearch) { |
|||
delete params.isSearch |
|||
const data = {...params} |
|||
return await request.post({ url: '/mes/item-request-detail/senior', data }) |
|||
} else { |
|||
return await request.get({ url: `/mes/item-request-detail/page`, params }) |
|||
} |
|||
} |
|||
|
|||
// 查询叫料申请明细详情
|
|||
export const getItemRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/mes/item-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增叫料申请明细
|
|||
export const createItemRequestDetail = async (data: ItemRequestDetailVO) => { |
|||
return await request.post({ url: `/mes/item-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改叫料申请明细
|
|||
export const updateItemRequestDetail = async (data: ItemRequestDetailVO) => { |
|||
return await request.put({ url: `/mes/item-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除叫料申请明细
|
|||
export const deleteItemRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/mes/item-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出叫料申请明细 Excel
|
|||
export const exportItemRequestDetail = async (params) => { |
|||
return await request.download({ url: `/mes/item-request-detail/export-excel`, params }) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export const importTemplate = () => { |
|||
return request.download({ url: '/mes/item-request-detail/get-import-template' }) |
|||
} |
Loading…
Reference in new issue