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.
65 lines
1.9 KiB
65 lines
1.9 KiB
import request from '@/config/axios'
|
|
|
|
export interface InspectionMainVO {
|
|
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 getInspectionMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/inspection/inspection-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/inspection/inspection-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询检验申请详情
|
|
export const getInspectionMain = async (id: number) => {
|
|
return await request.get({ url: `/inspection/inspection-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增检验申请
|
|
export const createInspectionMain = async (data: InspectionMainVO) => {
|
|
return await request.post({ url: `/inspection/inspection-main/create`, data })
|
|
}
|
|
|
|
// 修改检验申请
|
|
export const updateInspectionMain = async (data: InspectionMainVO) => {
|
|
return await request.put({ url: `/inspection/inspection-main/update`, data })
|
|
}
|
|
|
|
// 删除检验申请
|
|
export const deleteInspectionMain = async (id: number) => {
|
|
return await request.delete({ url: `/inspection/inspection-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出检验申请 Excel
|
|
export const exportInspectionMain = async (params) => {
|
|
return await request.download({ url: `/inspection/inspection-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/inspection/inspection-main/get-import-template' })
|
|
}
|
|
|