/* * @Author: zhp * @Date: 2023-11-06 15:38:12 * @LastEditTime: 2023-11-06 15:39:39 * @LastEditors: zhp * @Description: */ import request from '@/utils/request' // 创建质量检测类型基础 export function createQualityScrapDet(data) { return request({ url: '/base/quality-scrap-det/create', method: 'post', data: data }) } // 更新质量检测类型基础 export function updateQualityScrapDet(data) { return request({ url: '/base/quality-scrap-det/update', method: 'put', data: data }) } // 删除质量检测类型基础 export function deleteQualityScrapDet(id) { return request({ url: '/base/quality-scrap-det/delete?id=' + id, method: 'delete' }) } // 获得质量检测类型基础 export function getQualityScrapDet(id) { return request({ url: '/base/quality-scrap-det/get?id=' + id, method: 'get' }) } // 获得质量检测类型基础分页 export function getQualityScrapDetPage(query) { return request({ url: '/base/quality-scrap-det/page', method: 'get', params: query }) } // 导出质量检测类型基础 Excel export function exportQualityScrapTypeExcel(query) { return request({ url: '/base/quality-scrap-type/export-excel', method: 'get', params: query, responseType: 'blob' }) } export function getCode(query) { return request({ url: '/base/quality-scrap-det/getCode', method: 'get', params: query }) }