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.
89 lines
2.1 KiB
89 lines
2.1 KiB
import request from '@/utils/request'
|
|
|
|
export function typeValues(data) {
|
|
return request({
|
|
url: '/portal/v1/dictcommons/typeValues',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 获取经销商
|
|
export function getDistributors(data) {
|
|
return request({
|
|
url: '/base/v1/basedistributor/getDistributors',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
|
|
// 获取厂商--厂商分类为主机厂、使用组织为空
|
|
export function selectByZjcAndUseOrgIsNull() {
|
|
return request({
|
|
url: '/base/v1/basemanufacturer/selectByZjcAndUseOrgIsNull',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取分公司
|
|
export function getListOrg(data) {
|
|
return request({
|
|
url: '/portal/v1/sysorganization/getListOrg',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据分公司Sid获取分公司下所有的部门
|
|
export function getListDeptByOrgSid(data) {
|
|
return request({
|
|
url: '/portal/v1/sysorganization/getListDeptByOrgSid/' + data,
|
|
method: 'GET'
|
|
})
|
|
}
|
|
|
|
// 根据当前登录人orgSidPath(全路径sid)查询分公司
|
|
export function getOrgSidByPath(data) {
|
|
return request({
|
|
url: '/portal/v1/sysstafforg/getOrgSidByPath',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据分公司sid查询分公司名称
|
|
export function fetchBySid(sid) {
|
|
return request({
|
|
url: 'portal/v1/sysorganization/fetchBySid/' + sid,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 当前用户创建申请时判断该用户是否有该菜单的操作权限
|
|
export function selectHaveMessage(data) {
|
|
return request({
|
|
url: '/portal/v1/sysuser/selectHaveMessage ',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户sid获取本分公司下的销售部门和销售专员
|
|
export function selectOrgList(data) {
|
|
return request({
|
|
url: '/portal/v1/sysorganization/selectOrgList',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据部门sid获取该部门主管人员
|
|
export function selectMangerByDeptSid(data) {
|
|
return request({
|
|
url: '/base/v1/basedistributorapply/selectMangerByDeptSid',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|