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.
204 lines
4.5 KiB
204 lines
4.5 KiB
import request from '@/utils/request'
|
|
|
|
export function typeValues(data) {
|
|
return request({
|
|
url: '/portal/v1/dictcommons/typeValues',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 获取数据字典(根据分组)
|
|
export function getTypeValueList(data) {
|
|
return request({
|
|
url: '/portal/v1/dictcommons/getTypeValueList',
|
|
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
|
|
})
|
|
}
|
|
|
|
// 当前用户创建申请时判断该用户是否有该菜单的操作权限
|
|
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'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 获取集团所有在职人员
|
|
export function selectStaffListss() {
|
|
return request({
|
|
url: '/portal/v1/sysstaffinfo/selectStaffListss',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 根据当前登录用户的全路径查询相应部门下的所有人
|
|
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: '/yxtcrm/apiadmin/v1/crmcustomer/customerListPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 获取省
|
|
export function getProvince() {
|
|
return request({
|
|
url: '/portal/v1/regions/getProvince',
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 根据省sid获取该省的所有市
|
|
export function getCity(data) {
|
|
return request({
|
|
url: '/portal/v1/regions/getCity',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
// 根据市sid获取该市的所有县区
|
|
export function getCounty(data) {
|
|
return request({
|
|
url: '/portal/v1/regions/getCounty',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 获取售后服务--基础信息--供应商信息
|
|
export function choiceSupplierInfo(data) {
|
|
return request({
|
|
url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo',
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 查询分页列表 -- 商品列表
|
|
export function chooseproducts(params) {
|
|
return request({
|
|
url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 查询分页列表 -- 商品列表
|
|
export function getInventoryList(params) {
|
|
return request({
|
|
url: '/wms/apiadmin/WmsOutBill/getInventoryList',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 查询分页列表 -- 维修工单列表
|
|
export function getAsBusrepairBill(params) {
|
|
return request({
|
|
url: '/as/v1/AsBusrepairBill/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
// 查询分页列表 --商品类别列表
|
|
export function getGoodsCategory(params) {
|
|
return request({
|
|
url: '/yxtbase/apiadmin/base/basegoodstype/selectByUseOrgSid',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
})
|
|
}
|
|
|