import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL
// const BASE_URL = 'https://lhlas-dev.zrubft.com'
// const BASE_URL = 'http://158.226.90.148:10022'


// 1. 查热搜企业列表
export const queryReportCompanyInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/queryReportCompanyInfo', params, 'POST');
//2. 保存基本信息
export const updateReportCompanyInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/updateReportCompanyInfo', params, 'POST');
// 3. 股东信息
export const queryPartnerInfos = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/queryPartnerInfos', params, 'POST');
// 4. 添加股东信息
export const updatePartnerInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/updatePartnerInfo', params, 'POST');
// 4. 添加股东信息
export const addPartnerInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/addPartnerInfo', params, 'POST');
// 5. 删除股东信息
export const deletePartnerInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/deletePartnerInfo', params, 'POST');
// 6. 经营情况
export const queryOperateCase = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/queryOperateCase', params, 'POST');
// 7. 经营情况新增
export const addOperateCase = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/addOperateCase', params, 'POST');
// 8. 经营情况修改
export const updateOperateCase = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/updateOperateCase', params, 'POST');

// 9. 上下游列表查询
export const querySupplierInfos = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/querySupplierInfos', params, 'POST');
// 10. 添加上下游
export const addSupplierInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/addSupplierInfo', params, 'POST');
// 11. 修改上下游
export const updateSupplierInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/updateSupplierInfo', params, 'POST');
// 12. 删除上下游
export const deleteSupplierInfo = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/deleteSupplierInfo', params, 'POST');
// 13. 查询资产负债情况
export const queryAssetDebt = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/queryAssetDebt', params, 'POST');
// 13. 添加资产负债情况
export const addAssetDebt = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/addAssetDebt', params, 'POST');
// 14. 修改资产负债情况
export const updateAssetDebt = (params) => ajax(BASE_URL + '/huiqicha/mobile/report/updateAssetDebt', params, 'POST');