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.
66 lines
1.8 KiB
66 lines
1.8 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface InspectRequestMainVO {
|
||
|
purchaseReceiptRecordNumber: string
|
||
|
supplierCode: string
|
||
|
number: string
|
||
|
businessType: string
|
||
|
fromWarehouseCode: string
|
||
|
fromAreaCodes: string
|
||
|
fromLocationTypes: string
|
||
|
remark: string
|
||
|
createTime: Date
|
||
|
creator: string
|
||
|
requestTime: Date
|
||
|
dueTime: Date
|
||
|
departmentCode: string
|
||
|
status: string
|
||
|
updateTime: Date
|
||
|
updater: string
|
||
|
poNumber: string
|
||
|
poLine: string
|
||
|
batch: string
|
||
|
itemCode: string
|
||
|
inspectType: string
|
||
|
nextAction: string
|
||
|
sampleMethod: string
|
||
|
uom: string
|
||
|
receiveQty: number
|
||
|
sampleQty: number
|
||
|
ownerCode: string
|
||
|
autoCommit: string
|
||
|
autoAgree: string
|
||
|
autoExecute: string
|
||
|
directCreateRecord: string
|
||
|
}
|
||
|
|
||
|
// 查询检验申请主列表
|
||
|
export const getInspectRequestMainPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/inspect-request-main/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询检验申请主详情
|
||
|
export const getInspectRequestMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/inspect-request-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增检验申请主
|
||
|
export const createInspectRequestMain = async (data: InspectRequestMainVO) => {
|
||
|
return await request.post({ url: `/wms/inspect-request-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改检验申请主
|
||
|
export const updateInspectRequestMain = async (data: InspectRequestMainVO) => {
|
||
|
return await request.put({ url: `/wms/inspect-request-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除检验申请主
|
||
|
export const deleteInspectRequestMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/inspect-request-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出检验申请主 Excel
|
||
|
export const exportInspectRequestMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/inspect-request-main/export-excel`, params })
|
||
|
}
|