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.
76 lines
2.1 KiB
76 lines
2.1 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface InspectRecordDetailVO {
|
||
|
packingNumber: string
|
||
|
containerNumber: string
|
||
|
fromLocationCode: string
|
||
|
fromLocationGroupCode: string
|
||
|
fromAreaCode: string
|
||
|
sampleQty: number
|
||
|
goodQty: number
|
||
|
failedQty: number
|
||
|
crackQty: number
|
||
|
notPassedQty: number
|
||
|
failedReason: string
|
||
|
photos: string
|
||
|
inspectUser: string
|
||
|
inspectResult: string
|
||
|
appearance: string
|
||
|
volume: string
|
||
|
weight: string
|
||
|
otherProperties: string
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
remark: string
|
||
|
creationTime: Date
|
||
|
creator: string
|
||
|
itemName: string
|
||
|
itemDesc1: string
|
||
|
itemDesc2: string
|
||
|
projectCode: string
|
||
|
uom: string
|
||
|
code: string
|
||
|
interfaceType: string
|
||
|
jobDetailId: string
|
||
|
}
|
||
|
|
||
|
// 查询检验记录子列表
|
||
|
export const getInspectRecordDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/inspect-record-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/inspect-record-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询检验记录子详情
|
||
|
export const getInspectRecordDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/inspect-record-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增检验记录子
|
||
|
export const createInspectRecordDetail = async (data: InspectRecordDetailVO) => {
|
||
|
return await request.post({ url: `/wms/inspect-record-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改检验记录子
|
||
|
export const updateInspectRecordDetail = async (data: InspectRecordDetailVO) => {
|
||
|
return await request.put({ url: `/wms/inspect-record-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除检验记录子
|
||
|
export const deleteInspectRecordDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/inspect-record-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出检验记录子 Excel
|
||
|
export const exportInspectRecordDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/inspect-record-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/inspect-record-detail/get-import-template' })
|
||
|
}
|