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
2.0 KiB
66 lines
2.0 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface InspectionJobDetailVO {
|
||
|
number: string
|
||
|
applicationDate: localdate
|
||
|
applicationTime: Date
|
||
|
requestStartTime: Date
|
||
|
requestEndTime: Date
|
||
|
finishTime: Date
|
||
|
supplierCode: string
|
||
|
materialCode: string
|
||
|
batch: string
|
||
|
requestInspectionNum: number
|
||
|
referenceOrderCode: string
|
||
|
referenceOrderRow: number
|
||
|
referenceCertificateCode: string
|
||
|
referenceCertificateRow: number
|
||
|
inspectionSchemeCode: string
|
||
|
inspectionStageCode: string
|
||
|
applicationPackageCode: string
|
||
|
inspectionLevel: string
|
||
|
aqlValue: number
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询检验申请列表
|
||
|
export const getInspectionJobDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/inspection/inspection-job-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/inspection/inspection-job-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询检验申请详情
|
||
|
export const getInspectionJobDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/inspection/inspection-job-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增检验申请
|
||
|
export const createInspectionJobDetail = async (data: InspectionJobDetailVO) => {
|
||
|
return await request.post({ url: `/inspection/inspection-job-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改检验申请
|
||
|
export const updateInspectionJobDetail = async (data: InspectionJobDetailVO) => {
|
||
|
return await request.put({ url: `/inspection/inspection-job-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除检验申请
|
||
|
export const deleteInspectionJobDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/inspection/inspection-job-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出检验申请 Excel
|
||
|
export const exportInspectionJobDetail = async (params) => {
|
||
|
return await request.download({ url: `/inspection/inspection-job-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/inspection/inspection-job-detail/get-import-template' })
|
||
|
}
|