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.7 KiB
56 lines
1.7 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ProductrepairRequestMainVO {
|
||
|
workshopCode: string
|
||
|
team: string
|
||
|
shift: string
|
||
|
fromWarehouseCode: string
|
||
|
number: string
|
||
|
businessType: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
requestTime: Date
|
||
|
dueTime: Date
|
||
|
departmentCode: string
|
||
|
status: string
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
fromLocationTypes: string
|
||
|
fromAreaCodes: string
|
||
|
autoCommit: string
|
||
|
autoAgree: string
|
||
|
autoExecute: string
|
||
|
directCreateRecord: string
|
||
|
}
|
||
|
|
||
|
// 查询制品返修申请主列表
|
||
|
export const getProductrepairRequestMainPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/productrepair-request-main/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询制品返修申请主详情
|
||
|
export const getProductrepairRequestMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/productrepair-request-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增制品返修申请主
|
||
|
export const createProductrepairRequestMain = async (data: ProductrepairRequestMainVO) => {
|
||
|
return await request.post({ url: `/wms/productrepair-request-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改制品返修申请主
|
||
|
export const updateProductrepairRequestMain = async (data: ProductrepairRequestMainVO) => {
|
||
|
return await request.put({ url: `/wms/productrepair-request-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除制品返修申请主
|
||
|
export const deleteProductrepairRequestMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/productrepair-request-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出制品返修申请主 Excel
|
||
|
export const exportProductrepairRequestMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/productrepair-request-main/export-excel`, params })
|
||
|
}
|