商享通oms管理后台
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.

81 lines
1.7 KiB

1 year ago
import request from '@/utils/request'
export function typeValues(data) {
return request({
1 year ago
url: '/oms/apiadmin/dictcommons/typeValues',
1 year ago
method: 'get',
params: data
})
}
// 获取数据字典(根据分组)
export function getTypeValueList(data) {
return request({
1 year ago
url: '/oms/apiadmin/dictcommons/getTypeValueList',
1 year ago
method: 'get',
params: data
})
}
// 根据当前登录人orgSidPath(全路径sid)查询分公司
export function getOrgSidByPath(data) {
return request({
1 year ago
url: '/oms/apiadmin/sysstafforg/getOrgSidByPath',
1 year ago
method: 'get',
params: data
})
}
// 根据分公司sid查询分公司名称
export function fetchBySid(sid) {
return request({
url: '/portal/v1/sysorganization/fetchBySid/' + sid,
method: 'get'
})
}
// 根据当前登录用户的全路径查询相应部门下的所有人
export function selAllByOrgSidPath(data) {
return request({
url: '/portal/v1/sysstafforg/selAllByOrgSidPath',
method: 'post',
params: data
})
}
// 获取省
export function getProvince() {
return request({
1 year ago
url: '/oms/apiadmin/regions/getProvince',
1 year ago
method: 'get'
})
}
// 根据省sid获取该省的所有市
export function getCity(data) {
return request({
1 year ago
url: '/oms/apiadmin/regions/getCity',
1 year ago
method: 'get',
params: data
})
}
// 根据市sid获取该市的所有县区
export function getCounty(data) {
return request({
1 year ago
url: '/oms/apiadmin/regions/getCounty',
1 year ago
method: 'get',
params: data
})
}
// 查询所有仓库
export function getWareHouse(params) {
1 year ago
return request({
url: '/oms/apiadmin/warehouseinfo/getWareHouse',
1 year ago
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}