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.
 
 
 

56 lines
1.6 KiB

import request from '@/config/axios'
export interface ReportpStoreVO {
status: string
remark: string
planDayCode: string
workBillNo: string
batchCode: string
reportUuid: string
itemBasicCode: string
itemCounts: number
itemUom: string
workstationCode: string
productCode: string
}
// 查询工序报工物料明细列表
export const getReportpStorePage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/reportp-store/senior', data })
} else {
return await request.get({ url: `/mes/reportp-store/page`, params })
}
}
// 查询工序报工物料明细详情
export const getReportpStore = async (id: number) => {
return await request.get({ url: `/mes/reportp-store/get?id=` + id })
}
// 新增工序报工物料明细
export const createReportpStore = async (data: ReportpStoreVO) => {
return await request.post({ url: `/mes/reportp-store/create`, data })
}
// 修改工序报工物料明细
export const updateReportpStore = async (data: ReportpStoreVO) => {
return await request.put({ url: `/mes/reportp-store/update`, data })
}
// 删除工序报工物料明细
export const deleteReportpStore = async (id: number) => {
return await request.delete({ url: `/mes/reportp-store/delete?id=` + id })
}
// 导出工序报工物料明细 Excel
export const exportReportpStore = async (params) => {
return await request.download({ url: `/mes/reportp-store/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/reportp-store/get-import-template' })
}