|
|
|
@ -1,46 +1,54 @@
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import request from "@/utils/request";
|
|
|
|
|
|
|
|
|
|
// 查询计划企业列表
|
|
|
|
|
export function listEnterprise(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/pharmaceuticals/bPlanEnterprise/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
url: "/pharmaceuticals/bPlanEnterprise/list",
|
|
|
|
|
method: "get",
|
|
|
|
|
params: query,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询计划企业详细
|
|
|
|
|
export function getEnterprise(id) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/system/enterprise/' + id,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
url: "/system/enterprise/" + id,
|
|
|
|
|
method: "get",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增计划企业
|
|
|
|
|
export function addEnterprise(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/pharmaceuticals/bPlanEnterprise',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
url: "/pharmaceuticals/bPlanEnterprise",
|
|
|
|
|
method: "post",
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改计划企业
|
|
|
|
|
export function updateEnterprise(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/pharmaceuticals/bPlanEnterprise',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
url: "/pharmaceuticals/bPlanEnterprise",
|
|
|
|
|
method: "put",
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 批量提交企业
|
|
|
|
|
export function updateIdList(idList) {
|
|
|
|
|
return request({
|
|
|
|
|
url: "/pharmaceuticals/bPlanEnterprise/updateIdList?idListStr=" + idList,
|
|
|
|
|
method: "post",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除计划企业
|
|
|
|
|
export function delEnterprise(id) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/pharmaceuticals/bPlanEnterprise?idList=' + id,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
url: "/pharmaceuticals/bPlanEnterprise?idList=" + id,
|
|
|
|
|
method: "delete",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 首页表格
|
|
|
|
@ -50,4 +58,4 @@ export function treeEnterprise(params) {
|
|
|
|
|
method: "get",
|
|
|
|
|
params,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|