import request from '@/utils/request';
|
|
|
// export function searchCompanyList(data) {
|
// return request({
|
// url: 'companyInfo/findCompanyInfo',
|
// method: 'put',
|
// data
|
// });
|
// }
|
|
export function searchCompanyList(data) {
|
return request({
|
url: 'enterpriseManage/select/getEnterpriseInfoByCondition',
|
method: 'post',
|
data
|
});
|
}
|
|
// export function saveCompanyInfo(data) {
|
// return request({
|
// url: 'companyInfo/svarInfo',
|
// method: 'put',
|
// headers:{
|
// 'Content-Type': 'multipart/form-data'
|
// },
|
// data
|
// });
|
// }
|
|
export function saveCompanyInfo(data) {
|
return request({
|
url: 'enterpriseManage/insert/saveEnterpriseInfo',
|
method: 'post',
|
data
|
});
|
}
|
|
// export function updateCompanyInfo(data) {
|
// return request({
|
// url: 'companyInfo/updateInfo',
|
// method: 'put',
|
// headers:{
|
// 'Content-Type': 'multipart/form-data'
|
// },
|
// data
|
// });
|
// }
|
export function updateCompanyInfo(data) {
|
return request({
|
url: 'enterpriseManage/update/updateEnterpriseInfoById',
|
method: 'post',
|
data
|
});
|
}
|
// export function deleteById(data) {
|
// return request({
|
// url: 'companyInfo/deleteById',
|
// method: 'put',
|
// data
|
// });
|
// }
|
|
export function deleteById(data) {
|
return request({
|
url: 'enterpriseManage/delete/deleteEnterpriseInfoById',
|
method: 'post',
|
data
|
});
|
}
|
|
// export function getOneCompany(data) {
|
// return request({
|
// url: 'companyInfo/getOne',
|
// method: 'put',
|
// data
|
// });
|
// }
|
|
export function getTechType(data) {
|
return request({
|
url: 'technologyType/select/selectTechnologyTypeList',
|
method: 'post',
|
data
|
});
|
}
|
|
export function addTechType(data) {
|
return request({
|
url: 'technologyType/insert/saveTechnologyType',
|
method: 'post',
|
data
|
});
|
}
|
|
export function updateTechType(data) {
|
return request({
|
url: 'technologyType/update/updateTechnologyType',
|
method: 'post',
|
data
|
});
|
}
|
|
export function deleteTechType(data) {
|
return request({
|
url: 'technologyType/delete/deleteTechnologyType',
|
method: 'post',
|
data
|
});
|
}
|
// 获取某市级企业信息列表
|
export function getOneCompany(data) {
|
return request({
|
url: 'enterpriseManage/select/getEnterpriseInfoByCity',
|
method: 'post',
|
data
|
});
|
}
|
// 根据id获取企业信息
|
export function getEnterpriseInfoById(data) {
|
return request({
|
url: 'enterpriseManage/select/getEnterpriseInfoById',
|
method: 'post',
|
data
|
});
|
}
|
// 条件查询企业信息列表
|
export function getAllCompany(data) {
|
return request({
|
url: 'enterpriseManage/select/getEnterpriseInfoByCondition',
|
method: 'post',
|
data
|
});
|
}
|
|
// export function importCompanyData(data) {
|
// return request({
|
// url: 'companyInfo/importData',
|
// method: 'put',
|
// headers:{
|
// 'Content-Type': 'multipart/form-data'
|
// },
|
// data
|
// });
|
// }
|
|
export function importCompanyData(data) {
|
return request({
|
url: 'enterpriseManage/import/importData',
|
method: 'post',
|
headers:{
|
'Content-Type': 'multipart/form-data'
|
},
|
data
|
});
|
}
|
|
export function exportCompanyData(data) {
|
return request({
|
url: 'companyInfo/export',
|
method: 'post',
|
responseType: 'arraybuffer',
|
data
|
});
|
}
|
|
// export function downLoadTemplate(data) {
|
// return request({
|
// url: 'companyInfo/downLoadTemplate',
|
// method: 'post',
|
// responseType: 'arraybuffer',
|
// data
|
// });
|
// }
|
|
export function downLoadTemplate(data) {
|
return request({
|
url: 'enterpriseManage/download/downLoadTemplate',
|
method: 'post',
|
responseType: 'arraybuffer',
|
data
|
});
|
}
|
|
export function getAreaInfo() {
|
return request({
|
url: 'areaInfo/getAreaInfo',
|
method: 'post',
|
});
|
}
|
export function getProvinceInfo() {
|
return request({
|
url: 'enterpriseManage/select/countProvinceData',
|
method: 'post',
|
});
|
}
|