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.

94 lines
2.6 KiB

8 months ago
import request from '@/config/axios'
export interface InspectRecordMainVO {
requestNumber: string
jobNumber: string
purchaseReceiptRecordNumber: string
supplierCode: string
outTransactionType: string
inTransactionType: string
executeTime: Date
activeDate: Date
requestTime: Date
dueTime: Date
departmentCode: string
interfaceType: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
code: string
poNumber: string
poLine: string
batch: string
inspectType: string
nextAction: string
sampleMethod: string
uom: string
receiveQty: number
batchGoodQty: number
batchFaildQty: number
batchCrackQty: number
batchNotPassedQty: number
itemCode: string
fromWarehouseCode: string
fromAreaCodes: string
ownerCode: string
available: string
sampleQty: number
fromAreaTypes: string
putawayRequestFlag: boolean
}
// 查询检验记录主列表
export const getInspectRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/inspect-record-main/senior', data })
} else {
return await request.get({ url: `/wms/inspect-record-main/page`, params })
}
}
// 查询检验记录主详情
export const getInspectRecordMain = async (id: number) => {
return await request.get({ url: `/wms/inspect-record-main/get?id=` + id })
}
// 新增检验记录主
export const createInspectRecordMain = async (data: InspectRecordMainVO) => {
return await request.post({ url: `/wms/inspect-record-main/create`, data })
}
// 修改检验记录主
export const updateInspectRecordMain = async (data: InspectRecordMainVO) => {
return await request.put({ url: `/wms/inspect-record-main/update`, data })
}
// 删除检验记录主
export const deleteInspectRecordMain = async (id: number) => {
return await request.delete({ url: `/wms/inspect-record-main/delete?id=` + id })
}
// 导出检验记录主 Excel
export const exportInspectRecordMain = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/inspect-record-main/export-excel-senior`, data })
} else {
return await request.download({url: `/wms/inspect-record-main/export-excel`, params})
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/inspect-record-main/get-import-template' })
}
// 创建上架申请
export const createPutAwayRequest = async (number:string) => {
return await request.post({ url: `/wms/inspect-record-main/createPutAwayRequestPC?number=`+number })
}