company.js 782 Bytes
import { request } from "@/utils/request";

/**
 * @method 查询运输单位信息
 */
export async function queryDisposalSiteList() {
   return await request.get(
    `/disposalSite/list`
  );
}


/**
 * @method 企业详情
 */
export async function queryEnterpriseList(params) {
   return await request.get(
     `/order/docking/up/company`,
     {params:params}
  );
}

/**
 * @method 企业详情
 */
export async function queryEnterpriseById(id) {
   return await request.get(
     `/unit/enterprise/${id}`
  );
}

/**
 * @method 根据能源类型获取公司名称列表
 */
export async function queryCompaniesByEnergyType(energyType) {
    return await request.get(
        `/gar/car/requestStrByEnergyType`,
        {
            params: {energyType}
        }
    );
}