diff --git a/src/api/Common/dictcommons.js b/src/api/Common/dictcommons.js index fa24a57..8a5a070 100644 --- a/src/api/Common/dictcommons.js +++ b/src/api/Common/dictcommons.js @@ -34,15 +34,87 @@ export function fetchBySid(sid) { }) } +// 根据当前登录用户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 selAllByOrgSidPath(data) { return request({ - url: '/portal/v1/sysstafforg/selAllByOrgSidPath', + url: '/oms/apiadmin/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({ @@ -67,10 +139,31 @@ export function getCounty(data) { }) } +// 获取供应商信息 +export function choiceSupplierInfo(data) { + return request({ + url: '/oms/apiadmin/supplierinfo/choiceSupplierInfo', + method: 'get', + 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 getWareHouse(params) { +export function getWarehouses(params) { return request({ - url: '/oms/apiadmin/warehouseinfo/getWareHouse', + url: '/oms/apiadmin/base/wmswarehouseinfo/listAll', method: 'post', data: params, headers: { @@ -78,3 +171,16 @@ export function getWareHouse(params) { } }) } + + +// 根据仓库查询库位 +export function getWarehouseareas(data) { + return request({ + url: '/oms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { + 'Content-Type': 'application/json' + } + }) +} \ No newline at end of file diff --git a/src/api/system/userManage/index.js b/src/api/system/userManage/index.js index a0a93cf..1b3109d 100644 --- a/src/api/system/userManage/index.js +++ b/src/api/system/userManage/index.js @@ -30,7 +30,7 @@ export function userAdd(data) { // 初始化 用户 export function initUserInfo(data) { return request({ - url: '/wms/apiadmin/sysstaffinfo/fetchBySid/' + data.sid, + url: '/oms/apiadmin/sysstaffinfo/fetchBySid/' + data.sid, method: 'get', data: data, headers: { @@ -128,7 +128,7 @@ export function roleList(data) { // 查询部门列表 export function orgList(data) { return request({ - url: '/oms/apiadmin/sysorganization/list', + url: '/oms/apiadmin/sysorganization/list/' + data, method: 'get', data: data, headers: { diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index ebdaddb..02d2ed6 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -6,7 +6,7 @@