You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 分页条件查询省重点企业
|
|
|
|
export function listEnterprise(query) {
|
|
|
|
return request({
|
|
|
|
url: '/bKeyEnterprise',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增省重点企业
|
|
|
|
export function addEnterprise(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bKeyEnterprise',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//修改省重点企业
|
|
|
|
export function updateEnterprise(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bKeyEnterprise',
|
|
|
|
method: 'put',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//删除省重点企业
|
|
|
|
export function deleteEnterprise(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bKeyEnterprise',
|
|
|
|
method: 'delete',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//导入省重点企业
|
|
|
|
export function exportEnterprise(data) {
|
|
|
|
return request({
|
|
|
|
url: '/bKeyEnterprise/common/importExcel',
|
|
|
|
method: 'post',
|
|
|
|
data,
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//通过主键查询单条省重点企业
|
|
|
|
export function getEnterprise(id) {
|
|
|
|
return request({
|
|
|
|
url: `/bKeyEnterprise/${id}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//查询企业信息列表
|
|
|
|
export function businessList(data) {
|
|
|
|
return request({
|
|
|
|
url: `/info/list`,
|
|
|
|
method: 'get',
|
|
|
|
params: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//查询单条企业信息执法详情
|
|
|
|
export function enforcingDetail(data) {
|
|
|
|
return request({
|
|
|
|
url: `/bPlanEnterprise/getZhifa`,
|
|
|
|
method: 'get',
|
|
|
|
params: data
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 根据字段查询字典信息
|
|
|
|
export function listDist(query) {
|
|
|
|
return request({
|
|
|
|
url: '/dictdata',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 行政区划树结构
|
|
|
|
export function xzTree(id) {
|
|
|
|
return request({
|
|
|
|
url: '/administrative/tree',
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|