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.
 
 
 

61 lines
1.5 KiB

import request from '@/config/axios'
export interface ItemVO {
deleteTime: Date
id: number
status: string
concurrencyStamp: number
remark: string
deleter: string
siteId: number
itemCode: string
itemName: string
itemType: string
qmsClass: string
dataType: string
dataVerify: string
dataStandvalue: string
dataDescripe: string
}
// 查询质检项目定义列表
export const getItemPage = async (params) => {
console.log(params);
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/mes/item/senior', data })
} else {
return await request.get({ url: `/mes/item/page`, params })
}
}
// 查询质检项目定义详情
export const getItem = async (id: number) => {
return await request.get({ url: `/mes/item/get?id=` + id })
}
// 新增质检项目定义
export const createItem = async (data: ItemVO) => {
return await request.post({ url: `/mes/item/create`, data })
}
// 修改质检项目定义
export const updateItem = async (data: ItemVO) => {
return await request.put({ url: `/mes/item/update`, data })
}
// 删除质检项目定义
export const deleteItem = async (id: number) => {
return await request.delete({ url: `/mes/item/delete?id=` + id })
}
// 导出质检项目定义 Excel
export const exportItem = async (params) => {
return await request.download({ url: `/mes/item/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/item/get-import-template' })
}