From 7a08b39096b85715409d462176d2f86a53199976 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Mon, 22 Jul 2024 14:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Common/dictcommons.js | 112 ++++++++- src/api/system/userManage/index.js | 4 +- src/layout/components/Navbar.vue | 9 +- src/views/login/login.vue | 60 ++--- .../purchaseOrder/purchaseOrderAdd.vue | 35 +-- .../purchaseOrder/purchaseOrderInfo.vue | 24 +- src/views/system/menuManage/menuManage.vue | 215 ++++++++++++++---- src/views/system/userManage/userManageAdd.vue | 4 +- .../system/userManage/userManageList.vue | 5 +- 9 files changed, 362 insertions(+), 106 deletions(-) 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 @@