import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 按检测项目树
 * @param query
 * @returns {*}
 */

export const itemsListByTree = (query?: any): any => {
  return request({
    url: '/dgtmedicine/testItemType/listByTree',
    method: 'get',
    params: query
  });
};
/**
 * 查询检测项目列表
 * @param query
 * @returns {*}
 */
export const itemsList = (query?: any): any => {
  return request({
    url: '/dgtmedicine/testItem/list',
    method: 'get',
    params: query
  });
}
/**
 * 查询检测执行标准列表
 * @param query
 * @returns {*}
 */
export const itemsStandardList = (query?: any): any => {
  return request({
    url: '/dgtmedicine/testPackage/listForBackground',
    method: 'get',
    params: query
  });
}