/** * 核查数据管理 */ import request from '../../index' import type { IListQuery } from '@/views/equipement/standard/checkData/checkData-interface' const prefix = 'standard/check/info' // 列表查询 export function getCheckDataList(data: IListQuery) { return request({ url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, method: 'post', data, }) } // 导出列表 export function exportCheckDataList(data: Omit<IListQuery, 'limit' | 'offset'>) { return request({ url: `${prefix}/listExport`, method: 'post', responseType: 'blob', data, }) } // 新增 export function addCheckData(data: any) { return request({ url: `${prefix}/add`, method: 'post', data, }) } // 编辑 export function updateCheckData(data: any) { return request({ url: `${prefix}/update`, method: 'post', data, }) } // 详情 export function getInfo(data: any) { return request({ url: `${prefix}/detail`, method: 'post', data, }) } // 生成结果处理 export function calculateHandle(data: any) { return request({ url: '/standard/check/info/calculateHandle', method: 'post', data, }) } // 稳定性的历史示值查询 export function getHistoryIndication(data: { 'belongStandardEquipment': string 'checkDate': string 'checkParam': string 'conclusion': string 'equipmentId': string 'params': string 'stabilityExamine': string 'standardEquipmentId': string }) { return request({ url: '/standard/check/info/stability/historyIndication', method: 'post', data, }) } // 删除核查数据 export function deleteCheckData(data: { id: string }) { return request({ url: '/standard/check/info/delete', method: 'post', data, }) }