184 lines
3.5 KiB
JavaScript
184 lines
3.5 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 信用评价列表
|
||
|
export function creditRating(query) {
|
||
|
return request({
|
||
|
url: '/enterprise/level/list',
|
||
|
method: 'get',
|
||
|
params:query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 培训类别列表
|
||
|
export function trainingList() {
|
||
|
return request({
|
||
|
url: '/train/category/useList',
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 培训课程可用列表
|
||
|
export function trainiCngourse() {
|
||
|
return request({
|
||
|
url: '/train/course/useList',
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 培训课程所有列表
|
||
|
export function ownTrainiCngourse() {
|
||
|
return request({
|
||
|
url: '/train/course/list',
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 培训课程详情
|
||
|
export function courseDetails(id) {
|
||
|
return request({
|
||
|
url: `/train/course/${id}`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 浏览培训课程
|
||
|
export function browseCourses(data) {
|
||
|
return request({
|
||
|
url: `/train/course/read`,
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//培训申请列表
|
||
|
export function applicationList() {
|
||
|
return request({
|
||
|
url: '/train/apply/list',
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
//培训申请提交
|
||
|
export function appSubmission(data) {
|
||
|
return request({
|
||
|
url: '/train/apply',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
// 获取服务分类小类
|
||
|
export function serviceCategory(data) {
|
||
|
return request({
|
||
|
url: '/xnzt/son/xnztList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
//获取服务大类
|
||
|
export function serviceSubclass(data) {
|
||
|
return request({
|
||
|
url: '/xnzt/need/NeedList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
//服务列表
|
||
|
export function ServiceList(query) {
|
||
|
return request({
|
||
|
url: '/serveList/getH5',
|
||
|
method: 'get',
|
||
|
params:query
|
||
|
})
|
||
|
}
|
||
|
//服务详情
|
||
|
export function ServiceDetails(id) {
|
||
|
return request({
|
||
|
url: `/serveList/${id}`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 采购需求列表
|
||
|
export function demandList() {
|
||
|
return request({
|
||
|
url: `/inventory/purchase_demand/list`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 采购需求详情
|
||
|
export function salesDemand(id) {
|
||
|
return request({
|
||
|
url: `/inventory/purchase_demand/${id}`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 新增采购需求
|
||
|
export function newSales(data) {
|
||
|
return request({
|
||
|
url: `/inventory/purchase_demand`,
|
||
|
method: 'post',
|
||
|
data:data
|
||
|
})
|
||
|
}
|
||
|
// 删除采购需求
|
||
|
export function deletionSale(id) {
|
||
|
return request({
|
||
|
url: `/inventory/purchase_demand/${id}`,
|
||
|
method: 'DELETE',
|
||
|
})
|
||
|
}
|
||
|
// 销售需求列表
|
||
|
export function shoppingList(id) {
|
||
|
return request({
|
||
|
url: `/inventory/sales_demand/list`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 销售需求详情
|
||
|
export function purchaseDemand(id) {
|
||
|
return request({
|
||
|
url: `/inventory/sales_demand/${id}`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 新增销售需求
|
||
|
export function newPurchase(data) {
|
||
|
return request({
|
||
|
url: `/inventory/sales_demand`,
|
||
|
method: 'post',
|
||
|
data:data
|
||
|
})
|
||
|
}
|
||
|
// 删除销售需求
|
||
|
export function deletePurchase(id) {
|
||
|
return request({
|
||
|
url: `/inventory/sales_demand/${id}`,
|
||
|
method: 'DELETE',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
// 所有的采购需求列表/inventory/purchase_demand/getH5
|
||
|
export function addSales() {
|
||
|
return request({
|
||
|
url: `/inventory/purchase_demand/getH5`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 所有的销售需求列表
|
||
|
export function addPurchase() {
|
||
|
return request({
|
||
|
url: `/inventory/sales_demand/getH5`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 商品分类
|
||
|
export function commodityCategory() {
|
||
|
return request({
|
||
|
url: `/managelef/demandManage/goodsTypeCategoryList`,
|
||
|
method: 'get',
|
||
|
})
|
||
|
}
|
||
|
// 记录浏览政策咨询和发现里面的文章阅读数
|
||
|
export function read(data) {
|
||
|
return request({
|
||
|
url: `/policyInformation/policyInformation/read`,
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|