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.
146 lines
3.6 KiB
146 lines
3.6 KiB
import request from '@/utils/request'
|
|
|
|
export function typeValues(data) {
|
|
return request({
|
|
url: '/portal/v1/dictcommons/typeValues',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据当前登录人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'
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户sid获取本分公司下的销售部门和销售专员
|
|
export function selectOrgList(data) {
|
|
return request({
|
|
url: '/portal/v1/sysorganization/selectOrgList',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户全路径sidPath获取本分公司下的资方信息
|
|
export function selectListByOrgPath(data) {
|
|
return request({
|
|
url: '/riskcenter/v1/loanfinbank/selectListByOrgPath',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户的分公司sid获取本分公司下的车型配置信息
|
|
export function selModelByUseOrgSid(data) {
|
|
return request({
|
|
url: '/base/basevehmodelconfig/selModelByUseOrgSid',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户的全路径sidPath、用户sid、客户类型(01个人、02企业)等获取客户信息
|
|
export function selectCustomerList(data) {
|
|
return request({
|
|
url: '/crm/v1/crmcustomertemp/selectCustomerList',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 当前用户创建申请时判断该用户是否有该菜单的操作权限
|
|
export function selectHaveMessage(data) {
|
|
return request({
|
|
url: '/portal/v1/sysuser/selectHaveMessage ',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户的角色获取菜单分页列表页面右上角按钮的隐藏
|
|
export function getButtonPermissions(data) {
|
|
return request({
|
|
url: '/portal/v1/sysfunction/getButtonPermissions',
|
|
method: 'post',
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
|
|
// 根据分公司sid获取该分公司下的所有供应商
|
|
export function getGysByOrgSid(data) {
|
|
return request({
|
|
url: '/base/v1/basemanufacturer/getGysByOrgSid',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据分公司sid获取该分公司下的所有供应商
|
|
export function getGysTypeByOrgSid(data) {
|
|
return request({
|
|
url: '/base/v1/basemanufacturer/getGysTypeByOrgSid',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户的全路径查询相应部门下的所有人
|
|
export function selAllByOrgSidPath(data) {
|
|
return request({
|
|
url: '/portal/v1/sysstafforg/selAllByOrgSidPath',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 分公司全路径sid获取工种
|
|
export function getServiceType(data) {
|
|
return request({
|
|
url: '/as/v1/AsServiceItem/getServiceType',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 分公司全路径sid获取科目
|
|
export function selSubjectInfo(data) {
|
|
return request({
|
|
url: '/as/v1/asservicepackage/selSubjectInfo',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 分公司全路径sid获取班组
|
|
export function getGroupList(data) {
|
|
return request({
|
|
url: '/as/v1/asservicegroup/getGroupList',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 查询分页列表 -- 客户列表
|
|
export function customerListPage(params) {
|
|
return request({
|
|
url: '/v1/crmcustomer/customerListPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
}
|
|
|