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.
58 lines
1.4 KiB
58 lines
1.4 KiB
import request from '@/config/axios'
|
|
|
|
export interface XRayVO {
|
|
id: number
|
|
code: string
|
|
dqd: string
|
|
tyd: string
|
|
hipotRst: string
|
|
station: string
|
|
processStartTime: string
|
|
processEndTime: string
|
|
loginId: string
|
|
coreId: number
|
|
rework: number
|
|
inBoundRst: string
|
|
inBoundFinsh: string
|
|
}
|
|
|
|
// 查询X-RAY列表
|
|
export const getXRayPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/opc/xray/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/opc/xray/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询X-RAY详情
|
|
export const getXRay = async (id: number) => {
|
|
return await request.get({ url: `/opc/xray/get?id=` + id })
|
|
}
|
|
|
|
// 新增X-RAY
|
|
export const createXRay = async (data: XRayVO) => {
|
|
return await request.post({ url: `/opc/xray/create`, data })
|
|
}
|
|
|
|
// 修改X-RAY
|
|
export const updateXRay = async (data: XRayVO) => {
|
|
return await request.put({ url: `/opc/xray/update`, data })
|
|
}
|
|
|
|
// 删除X-RAY
|
|
export const deleteXRay = async (id: number) => {
|
|
return await request.delete({ url: `/opc/xray/delete?id=` + id })
|
|
}
|
|
|
|
// 导出X-RAY Excel
|
|
export const exportXRay = async (params) => {
|
|
return await request.download({ url: `/opc/xray/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/opc/xray/get-import-template' })
|
|
}
|
|
|