diff --git a/src/api/User/login.js b/src/api/User/login.js index 399fda6..fe1f80b 100644 --- a/src/api/User/login.js +++ b/src/api/User/login.js @@ -1,35 +1,24 @@ import request from '@/utils/request' -import qs from 'qs' - -class User { - login(data) { // 登录 - return request({ - url: '/system/user/login', - method: 'post', - data - }) - } - logout(data) { // 退出 - return request({ - url: '/portal/v1/sysuser/signOut', - method: 'post', - data: qs.stringify(data) - }) - } - updatePassword(data) { // 退出修改密码 - return request({ - url: '/portal/v1/sysuser/updatePassword', - method: 'post', - data: qs.stringify(data) - }) - } - reGetPwd(data) { - return request({ - url: `/system/user/reGetPwd/${data.userName}/${data.userPhone}`, - method: 'post', - data: qs.stringify(data) - }) - } +const tokens = window.sessionStorage.getItem('token') +// 获取省/portal/v1/regions/getProvince +export function doLogin(data) { + return request({ + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/base/apiadmin/sysuser/login', + method: 'post', + data: data, + }) +} +// 获取左侧菜单 +export function getrolemenus(data) { + return request({ + baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", + url: '/base/apiadmin/sysmenu/sourcemenutree', + method: 'POST', + data: data, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) } - -export default new User() diff --git a/src/api/baseinfo/goodsShelves/goodsShelves.js b/src/api/baseinfo/goodsShelves/goodsShelves.js deleted file mode 100644 index dccb7e2..0000000 --- a/src/api/baseinfo/goodsShelves/goodsShelves.js +++ /dev/null @@ -1,87 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehouserack/listPage', - method: 'post', - data: params, - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/warehouserack/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - - // 新增、保存 - saveGoodsShelves: function(data) { - return request({ - url: '/wms/apiadmin/warehouserack/saveOrUpdate', - method: 'post', - data: data - }); - }, - - // 初始化 - initGoodsShelves: function(data) { - return request({ - url: '/wms/apiadmin/warehouserack/initialization/' + data, - method: 'get' - }); - }, - - // 库位-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/warehouserack/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 查询所有库位列表 - warehouserackListAll: function(params) { - return request({ - url: '/wms/apiadmin/warehouserack/listAll', - method: 'post', - data: params, - }) - }, - - // 根据仓库查询库位 - getWarehouseareas: function(data) { - return request({ - url: '/wms/apiadmin/warehouserack/selectAll', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - // 根据库区查询库位 - getAllTypeByAreaSid: function(data) { - return request({ - url: '/wms/apiadmin/warehouserack/getAllTypeByAreaSid', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - -} diff --git a/src/api/baseinfo/supplier/supplier.js b/src/api/baseinfo/supplier/supplier.js deleted file mode 100644 index 0ec4145..0000000 --- a/src/api/baseinfo/supplier/supplier.js +++ /dev/null @@ -1,55 +0,0 @@ -import request from '@/utils/request' - -export default { - // 列表查询 - listPage: function(data) { - return request({ - url: '/wms/apiadmin/supplierinfo/listPage', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - // 保存 - saveOrUpdate: function(data) { - return request({ - url: '/wms/apiadmin/supplierinfo/save', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - // 回显 - fetchDetailsBySid: function(data) { - return request({ - url: '/wms/apiadmin/supplierinfo/fetchDetailsBySid/' + data, - method: 'get' - }) - }, - // 删除 - delBySids: function(data) { - return request({ - url: '/wms/apiadmin/supplierinfo/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - // 获取供应商类型 - selSupplierType: function(data) { - return request({ - url: '/wms/apiadmin/suppliertype/selSupplierType', - method: 'post', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }) - } -} diff --git a/src/api/baseinfo/suppliertype/suppliertype.js b/src/api/baseinfo/suppliertype/suppliertype.js deleted file mode 100644 index 909d018..0000000 --- a/src/api/baseinfo/suppliertype/suppliertype.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/utils/request' - -export default { - // 列表查询 - listPage: function(data) { - return request({ - url: '/wms/apiadmin/suppliertype/listPage', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - // 保存 - saveOrUpdate: function(data) { - return request({ - url: '/wms/apiadmin/suppliertype/save', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - // 删除 - delBySids: function(data) { - return request({ - url: '/wms/apiadmin/suppliertype/delBySids', - method: 'DELETE', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - } -} diff --git a/src/api/baseinfo/warehouse/warehouse.js b/src/api/baseinfo/warehouse/warehouse.js deleted file mode 100644 index 91624ea..0000000 --- a/src/api/baseinfo/warehouse/warehouse.js +++ /dev/null @@ -1,70 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehouseinfo/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - // 仓库查询 - getAllWarehouse: function(params) { - return request({ - url: '/wms/apiadmin/warehouseinfo/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/warehouseinfo/updateStatus/' + sid + "/" + isEnable - }); - }, - - - // 新增、保存 - saveWarehouse: function(data) { - return request({ - url: '/wms/apiadmin/warehouseinfo/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initWarehouse: function(data) { - return request({ - url: '/wms/apiadmin/warehouseinfo/initialization/' + data, - method: 'get' - }); - }, - - // 仓库-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/warehouseinfo/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/baseinfo/warehouseArea/warehouseArea.js b/src/api/baseinfo/warehouseArea/warehouseArea.js deleted file mode 100644 index b225e2c..0000000 --- a/src/api/baseinfo/warehouseArea/warehouseArea.js +++ /dev/null @@ -1,88 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehousearea/listPage', - method: 'post', - data: params, - }) - }, - - // 库区查询 - getAllWarehousearea: function(params) { - return request({ - url: '/wms/apiadmin/warehousearea/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 根据仓库sid查询库区 - getAllWarehouseareaBysid: function(params) { - return request({ - url: '/wms/apiadmin//warehousearea/selectAll', - method: 'get', - params: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 根据区域sid查询库区 - getAllWarehouseareaByZoneSid: function(params) { - return request({ - url: '/wms/apiadmin/warehousearea/selectAreaAll', - method: 'get', - params: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/warehousearea/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - // 新增、保存 - saveWarehousearea: function(data) { - return request({ - url: '/wms/apiadmin/warehousearea/saveOrUpdate', - method: 'post', - data: data - }); - }, - - // 初始化 - initWarehousearea: function(data) { - return request({ - url: '/wms/apiadmin/warehousearea/initialization/' + data, - method: 'get' - }); - }, - - // 库区-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/warehousearea/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/baseinfo/warehouseAreaType/warehouseAreaType.js b/src/api/baseinfo/warehouseAreaType/warehouseAreaType.js deleted file mode 100644 index a608d20..0000000 --- a/src/api/baseinfo/warehouseAreaType/warehouseAreaType.js +++ /dev/null @@ -1,67 +0,0 @@ -import request from '@/utils/request' - -export default { - - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehouseareatype/listPage', - method: 'post', - data: params, - }) - }, - - // 库去类型查询 - getAllWarehouseareatype: function(params) { - return request({ - url: '/wms/apiadmin/warehouseareatype/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/warehouseareatype/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - - // 新增、保存 - saveWarehousearea: function(data) { - return request({ - url: '/wms/apiadmin/warehouseareatype/saveOrUpdate', - method: 'post', - data: data - }); - }, - - // 初始化 - initWarehousearea: function(data) { - return request({ - url: '/wms/apiadmin/warehouseareatype/initialization/' + data, - method: 'get' - }); - }, - - // 库区类型-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/warehouseareatype/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/baseinfo/warehouseZone/warehouseZone.js b/src/api/baseinfo/warehouseZone/warehouseZone.js deleted file mode 100644 index 7f21f0b..0000000 --- a/src/api/baseinfo/warehouseZone/warehouseZone.js +++ /dev/null @@ -1,84 +0,0 @@ -import request from '@/utils/request' -// 仓库区域 接口 -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehousezone/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 区域查询 - getAllWarehousezone: function(params) { - return request({ - url: '/wms/apiadmin/warehousezone/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 根据仓库sid查询区域 - getAllWarehousezoneBysid: function(params) { - return request({ - url: '/wms/apiadmin/warehousezone/selectAll', - method: 'get', - params: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/warehousezone/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - - // 新增、保存 - saveWarehousezone: function(data) { - return request({ - url: '/wms/apiadmin/warehousezone/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initWarehousezone: function(data) { - return request({ - url: '/wms/apiadmin/warehousezone/initialization/' + data, - method: 'get' - }); - }, - - - // 区域-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/warehousezone/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/goods/brand.js b/src/api/goods/brand.js deleted file mode 100644 index ff11ec6..0000000 --- a/src/api/goods/brand.js +++ /dev/null @@ -1,74 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 品牌查询 - getAllBrand: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid,isEnable) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/updateIsEnable/'+sid+"/"+isEnable - }); - }, - - - // 新增、保存 - saveBrands: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initBrands: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/initialization/' + data, - method: 'get' - }); - }, - - - - // 品牌-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsbrand/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - -} diff --git a/src/api/goods/category.js b/src/api/goods/category.js deleted file mode 100644 index f4b0696..0000000 --- a/src/api/goods/category.js +++ /dev/null @@ -1,78 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 类别查询 - getAllType: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - // 修改是否一品一码 - updateIsGoodsID: function(sid, isGoodsID) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/updateIsGoodsID/' + sid + "/" + isGoodsID - }); - }, - - // 新增、保存 - saveTypes: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initTypes: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/initialization/' + data, - method: 'get' - }); - }, - - - - // 类别-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodstype/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/goods/factory.js b/src/api/goods/factory.js deleted file mode 100644 index 9fbfd20..0000000 --- a/src/api/goods/factory.js +++ /dev/null @@ -1,70 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 厂家查询 - getAllFacturer: function(params) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 修改是否可用状态 - updateIsEnable: function(sid,isEnable) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/updateIsEnable/'+sid+"/"+isEnable - }); - }, - - - // 新增、保存 - saveFacturer: function(data) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initFacturer: function(data) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/initialization/' + data, - method: 'get' - }); - }, - - // 厂家-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/base/basemanufacturer/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/goods/goods.js b/src/api/goods/goods.js deleted file mode 100644 index 947a1c6..0000000 --- a/src/api/goods/goods.js +++ /dev/null @@ -1,94 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/listPage', - // url: '/wms/apiadmin/base/basegoodsspu/goodsListPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 修改是否可用状态 - updateIsEnable: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/updateIsEnable/' + sid + "/" + isEnable - }); - }, - - // 新增、保存 - saveGoods: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/saveOrUpdate', - // url: '/wms/apiadmin/base/basegoodsspu/saveOrUpdateGoods', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initGoods: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/initialization/' + data, - // url: '/wms/apiadmin/base/basegoodsspu/goodsDetails/' + data, - method: 'get' - }); - }, - - // 商品规格 修改是否可用状态 - updateIsEnable2: function(sid, isEnable) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/updateIsEnablebySku/' + sid + "/" + isEnable - }); - }, - - - - // 商品-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/delBySids', - // url: '/wms/apiadmin/base/basegoodsspu/delGoodsBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 下载模板 - downloadExcel: function() { - return request({ - url: '/wms/apiadmin/base/basegoodsspu/download', - method: 'post', - responseType: 'blob', // 表明返回服务器返回的数据类型 - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 查询商品分页列表 - getGoodsListAllByOrg: function(params) { - return request({ - url: '/wms/apiadmin/basegoodssku/listAllByOrg', - // url: '/wms/apiadmin/base/basegoodsspu/goodsListPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/goods/unit.js b/src/api/goods/unit.js deleted file mode 100644 index 7bfef85..0000000 --- a/src/api/goods/unit.js +++ /dev/null @@ -1,70 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 单位查询 - getAllUnit: function(params) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/listAll', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 修改是否可用状态 - updateIsEnable: function(sid,isEnable) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/updateIsEnable/'+sid+"/"+isEnable - }); - }, - - - // 新增、保存 - saveUnits: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化 - initUnits: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/initialization/' + data, - method: 'get' - }); - }, - - // 单位-- 删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/base/basegoodsunit/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/inStorage/deliveryNotice.js b/src/api/inStorage/deliveryNotice.js deleted file mode 100644 index 561b62e..0000000 --- a/src/api/inStorage/deliveryNotice.js +++ /dev/null @@ -1,122 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/WmsAnsBill/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // // 详情初始化 - // init: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsAnsBill/details?sid=' + data, - // method: 'get' - // }); - // }, - - // // 收货初始化 - // getInitDetails: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/getInitDetails?sourceSid=' + data, - // method: 'get' - // }); - // }, - - - // // 新增收货单 - // save: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - // // 确认收货单 - // submit: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - - - // 入库预约 - - // 查询发货人信息 - fetchDetailsBySid: function(data) { - return request({ - url: '/wms/apiadmin/supplierinfo/fetchDetailsByBillSid/' + data, - method: 'get', - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 查询商品明细信息 - selectByBillSid: function(data) { - return request({ - url: '/wms/apiadmin/wmsansbilldetails/selectByBillSid/' + data, - method: 'get', - - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 查询操作记录信息 - operationrecordDetails: function(data) { - return request({ - url: '/wms/apiadmin/operationrecord/details', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 修改库区 - updateRack: function(data) { - return request({ - url: '/wms/apiadmin/WmsAnsBill/updateRack', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 修改备注 - updateRemarks: function(data) { - return request({ - url: '/wms/apiadmin/WmsAnsBill/updateRemarks', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - -} diff --git a/src/api/inStorage/inspectionGoods.js b/src/api/inStorage/inspectionGoods.js deleted file mode 100644 index 9954b6c..0000000 --- a/src/api/inStorage/inspectionGoods.js +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/purchaseinventorybill/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 查询商品 - getGoodsSelectList: function(params) { - return request({ - url: '/wms/apiadmin/basegoodssku/getSelectList', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - - // 保存验货入库 - saveInspection: function(data) { - return request({ - url: '/wms/apiadmin/purchaseinventorybill/inspectionWarehousing', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - -} diff --git a/src/api/inStorage/receivingGoods.js b/src/api/inStorage/receivingGoods.js deleted file mode 100644 index 9f9cbc9..0000000 --- a/src/api/inStorage/receivingGoods.js +++ /dev/null @@ -1,154 +0,0 @@ -import request from '@/utils/request' - -export default { - - //采购入库 - // 入库单列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/purchaseinventorybill/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 根据入库单sid获取明细 - selectByBillSid: function(data) { - return request({ - url: '/wms/apiadmin/purchaseinventorybill/selectByBillSid/' + data, - method: 'get' - }); - }, - - // 获取组织下所有的预约单 - getReservationBill: function(params) { - return request({ - url: '/wms/apiadmin/WmsAnsBill/listPageAns', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - // 生成入库单 - createInStorageBill: function(data) { - return request({ - url: '/wms/apiadmin/purchaseinventorybill/confirm', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - - // // 查询分页列表 - // listPage: function(params) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/listPage', - // method: 'post', - // data: params, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - - // // 初始化 - // init: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit?sid=' + data, - // method: 'get' - // }); - // }, - - - // // 新增、保存 - // save: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - // // 确认 - // submit: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - - // // 保存 上架单 - // saveUpShelf: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - - // // 查询所有商品 - // getGoodsListPage: function(params) { - // return request({ - // url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage', - // method: 'post', - // data: params, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - - - - // deleteBySids: function(data) { - // return request({ - // url: '/wms/apiadmin/inventory/WmsReceiptBill/delBySids', - // method: 'DELETE', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - - - - // // 初始化新增上架单 - // initUpshelf: function(params) { - // return request({ - // url: '/wms/apiadmin/WmsShelfBill/getInit?sid=' + params.sid + "&orgPath=" + params.orgPath + "&userSid=" + - // params.userSid, - // method: 'get', - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - - // }, - - - -} diff --git a/src/api/inStorage/upShelf.js b/src/api/inStorage/upShelf.js deleted file mode 100644 index e13a9ad..0000000 --- a/src/api/inStorage/upShelf.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -export default { - -// 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/WmsShelfBill/listPage', - method: 'post', - data: params, - headers: { 'Content-Type': 'application/json' } - }) - }, - - // 初始化 - init: function(data) { - return request({ - url: '/wms/apiadmin/WmsShelfBill/details?sid='+data, - method: 'get' - }); - }, - - - // 新增、保存 - save: function(data) { - return request({ - url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }); - }, - - - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/WmsShelfBill/delBySids', - method: 'DELETE', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - -} diff --git a/src/api/outStorage/outStorage.js b/src/api/outStorage/outStorage.js deleted file mode 100644 index 4093168..0000000 --- a/src/api/outStorage/outStorage.js +++ /dev/null @@ -1,288 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 修改承运商 - updateCarrier: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/updateCarrier', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 修改运单号 - updateWaybillNumber: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/updateWaybillNumber', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - // 订单商品明细 - orderGoodsDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbilldetail/selectDetailsByBillSid', - method: 'get', - params: data - }); - }, - - // 库位分配 - orderRackDistributionDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutlocation/details', - method: 'get', - params: data - }); - }, - - // 收货地址 - orderReceivingAddressDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/getAddresseeBySid', - method: 'get', - params: data - }); - }, - - // 发票明细 - orderInvoiveDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinvoice/details', - method: 'get', - params: data - }); - }, - - // 保存发票明细 - saveOrderInvoive: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinvoice/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 备注/留言 - orderRemarksDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinvoice/details', - method: 'get', - params: data - }); - }, - - // 操作记录 - orderOperationDetail: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/operationrecord/details', - method: 'get', - params: data - }); - }, - - // 查询商品可用库位分配 - selAvailableBySkuSid: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventory/selAvailableBySkuSid', - method: 'get', - params: data - }); - }, - - // 保存商品可用库位分配 - saveSelAvailable: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutlocation/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - // 打到零拣 --> 零拣打单 - toBePickOut: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/toBePickOut', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 撤回待分配 -->待分配 - toBeAllocated: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/toBeAllocated', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 确认打单-->待出库 - toBeOutbound: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/toBeOutbound', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 待出库-->确认出库 - confirmOutbound: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseoutbill/confirmOutbound', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // // 查询分页列表 - // listPage: function(params) { - // return request({ - // url: '/wms/apiadmin/WmsOutBill/listPage', - // method: 'post', - // data: params, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - - // // 详情初始化 - // init: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsOutBill/details', - // method: 'get', - // data: data - // }); - // }, - - // // 初始配货单 - // initDistribution: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsDistributeBill/getInit', - // method: 'get', - // data: data - // }); - // }, - - - // // 新增、保存 - // save: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsOutBill/saveOrUpdateOutBill', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - // // 确认 - // submit: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsOutBill/confirm', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - - - - // // 新增、保存 配货单 - // saveDistribution: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsDistributeBill/saveOrUpdateBill', - // method: 'post', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }); - // }, - - - // deleteBySids: function(data) { - // return request({ - // url: '/wms/apiadmin/WmsShelfBill/delBySids', - // method: 'DELETE', - // data: data, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - - // // 查询分页列表 - // getGoodsListPage: function(params) { - // return request({ - // url: '/wms/apiadmin/WmsOutBill/getInventoryList', - // method: 'post', - // data: params, - // headers: { - // 'Content-Type': 'application/json' - // } - // }) - // }, - -} diff --git a/src/api/reports/inOutStorage.js b/src/api/reports/inOutStorage.js deleted file mode 100644 index cba9c49..0000000 --- a/src/api/reports/inOutStorage.js +++ /dev/null @@ -1,30 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventoryrecord/pageList', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 导出报表 - exportExcel: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventoryrecord/exportExcel', - method: 'post', - responseType: 'blob', // 表明返回服务器返回的数据类型 - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - -} diff --git a/src/api/storage/historyInventory/historyInventory.js b/src/api/storage/historyInventory/historyInventory.js deleted file mode 100644 index 1a88c95..0000000 --- a/src/api/storage/historyInventory/historyInventory.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' -// 历史库存 接口文档 -export default { - // 查询分页列表 -- 历史库存 - listPage: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventoryhistory/listPage', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/storage/inventory.js b/src/api/storage/inventory.js deleted file mode 100644 index 327544f..0000000 --- a/src/api/storage/inventory.js +++ /dev/null @@ -1,49 +0,0 @@ -import request from '@/utils/request' - -export default { - // 查询分页列表 -- 库存查询 - listPage: function(data) { - return request({ - url: '/apiadmin/inventory/wmsinventory/listPage', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - // 库存查询 -- 删除 - deleteBySids: function(data) { - return request({ - url: '/riskcenter/v1/LoanLawsuitApply/deleteBySids', - method: 'DELETE', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - // 库存出入库记录 - getWmsInventoryRecordList: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventoryrecord/getWmsInventoryRecordList', - method: 'get', - params: data - }) - }, - // 查询分页列表 -- 出入库查询 - pageList: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventoryrecord/pageList', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }) - }, - // 出入库查询 -- 导出 - exportExcel: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventoryrecord/exportExcel', - method: 'post', - responseType: 'blob', // 表明返回服务器返回的数据类型 - data: data, - headers: { 'Content-Type': 'application/json' } - }) - } -} diff --git a/src/api/storage/inventoryAdjust/inventoryAdjust.js b/src/api/storage/inventoryAdjust/inventoryAdjust.js deleted file mode 100644 index 0cfb157..0000000 --- a/src/api/storage/inventoryAdjust/inventoryAdjust.js +++ /dev/null @@ -1,61 +0,0 @@ -import request from '@/utils/request' -// 库存调整 接口文档 -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/inventoryadjustment/listPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 添加商品 查询分页列表 - selInventoryByWareSid: function(params) { - return request({ - url: '/wms/apiadmin/warehouseinventory/selInventoryByWareSid', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 保存调整单 - saveOrUpdate: function(data) { - return request({ - url: '/wms/apiadmin/inventoryadjustment/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - // 初始化调整单 - init: function(data) { - return request({ - url: '/wms/apiadmin/inventoryadjustment/initialization/' + data, - method: 'get', - }) - }, - - // 批量删除 - deleteBySids: function(data) { - return request({ - url: '/wms/apiadmin/inventoryadjustment/delBySids', - method: 'DELETE', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/storage/inventoryWarning/regionalWarning.js b/src/api/storage/inventoryWarning/regionalWarning.js deleted file mode 100644 index 5151b65..0000000 --- a/src/api/storage/inventoryWarning/regionalWarning.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/utils/request' -// 区域预警 接口文档 -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/apiadmin/warehouseinventory/areaWarningListPage', - method: 'post', - data: params, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 保存预警上下限 - updateLimit: function(data) { - return request({ - url: '/wms/apiadmin/warehouseareawarning/saveOrUpdate', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }); - }, - - - -} diff --git a/src/api/storage/stocktaking.js b/src/api/storage/stocktaking.js deleted file mode 100644 index 282f49f..0000000 --- a/src/api/storage/stocktaking.js +++ /dev/null @@ -1,51 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询分页列表 - listPage: function(params) { - return request({ - url: '/wms/v1/wmsinventorycheckbill/listPage', - method: 'post', - data: params, - headers: { 'Content-Type': 'application/json' } - }) - }, -// 新增、保存 - save: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventorycheckbill/save', - method: 'post', - data: data, - headers: { 'Content-Type': 'application/json' } - }); - }, - - // 初始化 - init: function(data) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventorycheckbill/' + data, - method: 'get' - }); - }, - -// 查询所有商品 - getWarehousesGoods: function(params) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', - method: 'post', - data: params, - headers: { 'Content-Type': 'application/json' } - }) - }, - - // 盘点 - inven: function(params) { - return request({ - url: '/wms/apiadmin/inventory/wmsinventory/invenGoodsListPage', - method: 'post', - data: params, - headers: { 'Content-Type': 'application/json' } - }) - }, -} diff --git a/src/api/storage/totalStatus/totalInventory.js b/src/api/storage/totalStatus/totalInventory.js deleted file mode 100644 index fef3bc4..0000000 --- a/src/api/storage/totalStatus/totalInventory.js +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/utils/request' -// 库存总量 接口文档 -export default { - // 查询分页列表 -- 库存总量 - listPage: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventory/listPage', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 查询库存变化 - getWarehouseInventoryRecord: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventoryrecord/getWarehouseInventoryRecord', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - // 查询库区库存 - getRackCountBySid: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventory/getRackCountBySid', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - -} diff --git a/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js b/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js deleted file mode 100644 index daee5da..0000000 --- a/src/api/storage/warehouseAreaInventory/warehouseAreaInventory.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' -// 库位库存 接口文档 -export default { - // 查询分页列表 -- 库位库存 - listPage: function(data) { - return request({ - // baseURL: "http://127.0.0.1:4523/m1/4061550-0-default", - url: '/wms/apiadmin/warehouseinventory/locationListPage', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) - }, - - -} diff --git a/src/api/system/Role/role.js b/src/api/system/Role/role.js deleted file mode 100644 index bd1c18f..0000000 --- a/src/api/system/Role/role.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' -import qs from 'qs' -const tokens = window.sessionStorage.getItem('token') -// -export function rolemenus(data) { - return request({ - url: '/system/v1/rolemenus/' + data.roleSid, - method: 'get', - params: data - }) -} - -// 获取左侧菜单 -export function getrolemenus(data) { - return request({ - url: '/wms/apiadmin/sysmenu/sourcemenutree', - method: 'POST', - data: data, - headers: { 'Content-Type': 'application/json', - 'token': tokens } - }) -} - -// 获取角色的主页菜单 -export function sourcesofrole(data) { - return request({ - url: '/system/v1/rolemenus/sourcesofrole', - method: 'POST', - data: data, - headers: { 'Content-Type': 'application/json' } - }) -} -// 根据token值获取登录后的用户信息 -export function loginDetails(data) { - return request({ - baseURL: '/api', - url: '/portal/v1/sysuser/loginDetails', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} diff --git a/src/api/system/dataDict/dataDict.js b/src/api/system/dataDict/dataDict.js deleted file mode 100644 index 15df050..0000000 --- a/src/api/system/dataDict/dataDict.js +++ /dev/null @@ -1,32 +0,0 @@ -import request from '@/utils/request' -import qs from 'qs' -//获取单位级别 -export function getDwJb(data) { - return request({ - url: '/system/dictCommon/getDwJb', - method: 'GET', - }) -} -// 获取机构单位类别 -export function getDwType(data) { - return request({ - url: '/system/dictCommon/getDwType', - method: 'get', - params: data - }) -} -//获取机构人员类别 -export function getRylb(data) { - return request({ - url: '/system/dictCommon/getRylb', - method: 'get' - }) -} - -// 根据Type值获取数据对象 -export function getDicts(typeCode) { - return request({ - url: '/system/dictCommon/dicts/'+typeCode, - method: 'get' - }) -} diff --git a/src/api/system/departments/departments.js b/src/api/system/departments/departments.js deleted file mode 100644 index 2cfa69d..0000000 --- a/src/api/system/departments/departments.js +++ /dev/null @@ -1,125 +0,0 @@ -import request from '@/utils/request' -import qs from 'qs' - -// let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY' -let tokens = window.sessionStorage.getItem('token') -// 获取菜单 分页列表 -export function pageList(data) { - return request({ - url: '/wms/apiadmin/sysorganization/listPage', - method: 'POST', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 查询左侧部门列表 -export function orgList(data) { - return request({ - url: '/wms/apiadmin/sysorganization/list/' + data, - method: 'get', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 编辑部门信息 -export function postOrgtree(data) { - return request({ - url: '/wms/apiadmin/sysorganization/update/' + data.sid, - method: 'POST', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 获取 机构分页列表(编辑部门信息) -export function putOrgtree(data) { - return request({ - url: '/wms/apiadmin/sysorganization/update/' + data.sid, - method: 'POST', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} - -// 新增部门信息 -export function addOrgTree(data) { - return request({ - url: '/wms/apiadmin/sysorganization/save', - method: 'POST', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 回显 -export function selectBySid(data) { - return request({ - url: '/wms/apiadmin/sysorganization/fetchBySid/' + data, - method: 'get', - data: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 树 节点名称 删除 -export function delOrgtree(data) { - return request({ - url: `/wms/apiadmin/sysorganization/delBySid/` + data.sid, - method: 'get', - data: qs.stringify(data), - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 查询主管人员 旧的:/wms/apiadmin/sysstafforg/staffinfoList -export function getStaff(data) { - return request({ - url: '/wms/apiadmin/sysstaffinfo/getStaffNameByDeptSid', - method: 'get', - params: data, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 查询分管人员 -export function getStaffName(params) { - return request({ - url: '/wms/apiadmin/sysstaffinfo/getStaffName', - method: 'get', - params: params, - headers: { - 'Content-Type': 'application/json', - 'token': tokens - } - }) -} -// 查看二维码 -export function getQrCode(data) { - return request({ - url: '/wms/apiadmin/sysorganization/getQrCode/' + data.sid, - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} diff --git a/src/api/system/roleAdminister/rolemenus.js b/src/api/system/roleAdminister/rolemenus.js deleted file mode 100644 index 54ffe28..0000000 --- a/src/api/system/roleAdminister/rolemenus.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/utils/request' -import qs from 'qs' - -/** - * < 业务角色授权时菜单列表(拥有的菜单选中)> - * @orgTypeKeys 单位性质(类别 - * @roleSid 业务角色sid - * @userType 用户类型只能为1或2 - * */ -export function roleMenuTree(data){ - return request({ - url: '/wms/apiadmin/orgrolemenus/menutree', - method: 'post', - data: data, - headers: {'Content-Type': 'application/json'} - }) -} - -/** - * < 保存角色授权的菜单项 > - * @roleMenus[] 角色权限列表 {menuSid 菜单sid} {orgSid 单位sid} {roleSid 角色sid} - * @roleSid 业务角色sid - * */ -export function saveorgrolemenus(data){ - return request({ - url: '/wms/apiadmin/orgrolemenus', - method: 'post', - data: data, - headers: {'Content-Type': 'application/json'} - }) -} diff --git a/src/api/system/user/login.js b/src/api/system/user/login.js deleted file mode 100644 index 5f3aa3b..0000000 --- a/src/api/system/user/login.js +++ /dev/null @@ -1,38 +0,0 @@ -import request from '@/utils/request' -import qs from 'qs' - - -//获取菜单 分页列表 -export function login1(data) { - return request({ - url: '/portal/v1/sysuser/login', - method: 'POST', - data: data, - headers: {'Content-Type': 'application/json', -// 'token':tokens - } - }) -} - -class user { - login(data) { // 登录 - return request({ - url: '/portal/v1/sysuser/login', - method: 'post', - data - }) - } - logout() { // 退出 - return request({ - url: '/vue-admin-template/user/logout', - method: 'post' - }) - } - updatePassword(data) { // 退出修改密码 - return request({ - url: '/system/user/updatePassword', - method: 'post', - data: qs.stringify(data) - }) - } -} diff --git a/src/api/user.js b/src/api/user.js deleted file mode 100644 index 0bbed7b..0000000 --- a/src/api/user.js +++ /dev/null @@ -1,108 +0,0 @@ -import request from '@/utils/request' -// eslint-disable-next-line no-unused-vars -import qs from 'qs' - -// 登录 -export function doLogin(data) { - return request({ - url: '/wms/apiadmin/sysuser/login', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} - -// 注册发送验证码 -export function registerSendMessageCode(code) { - return request({ - url: '/wms/apiadmin/sysuser/sendMessageCode/?mobile=' + code, - method: 'post', - headers: { - 'Content-Type': 'application/json' - } - }) - -} - -// 用户注册 -export function registUser(data) { - return request({ - url: '/wms/apiadmin/sysuser/register', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} - - -// 绑定企业/组织 -export function bindOrganization(data) { - return request({ - url: '/wms/apiadmin/sysuser/bindOrganization', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} - - -// 选择企业/组织sid -export function selOrganization(data) { - return request({ - url: '/wms/apiadmin/sysuser/selOrganization', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} - - -// 获取登录人员信息 -export function getUserById(sid) { - return request({ - url: '/cyf/sys/getUserById/' + sid - }) - -} - - -// 获取手机验证码 -export function getVerificationCode(data) { - return request({ - url: '/system/user/getVerificationCode', - method: 'get', - params: data - }) -} - -// 获取登录验证码 -export function imgCode() { - return request({ - url: '/system/api/defaultBlendCode?temm=' + new Date().getTime(), - method: 'get' - }) -} - -// 获取用信息 -export function getInfo(token) { - return request({ - url: '/system/user/loginDetails', - method: 'post' - }) -} - -export function logout(data) { // 退出 - return request({ - url: '/portal/v1/sysuser/signOut', - method: 'post', - data: qs.stringify(data) - }) -} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index bd00bf6..328cc13 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -2,11 +2,11 @@
+
+ @@ -182,12 +179,7 @@ - diff --git a/src/views/outStorage/outStorage/distributionAdd.vue b/src/views/outStorage/outStorage/distributionAdd.vue deleted file mode 100644 index 468a191..0000000 --- a/src/views/outStorage/outStorage/distributionAdd.vue +++ /dev/null @@ -1,291 +0,0 @@ - - - - diff --git a/src/views/outStorage/outStorage/index.vue b/src/views/outStorage/outStorage/index.vue deleted file mode 100644 index ef9abbe..0000000 --- a/src/views/outStorage/outStorage/index.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - diff --git a/src/views/outStorage/outStorage/outStorageAdd.vue b/src/views/outStorage/outStorage/outStorageAdd.vue deleted file mode 100644 index da51539..0000000 --- a/src/views/outStorage/outStorage/outStorageAdd.vue +++ /dev/null @@ -1,509 +0,0 @@ - - - - diff --git a/src/views/outStorage/outStorage/outStorageInfo.vue b/src/views/outStorage/outStorage/outStorageInfo.vue deleted file mode 100644 index f0e9fa4..0000000 --- a/src/views/outStorage/outStorage/outStorageInfo.vue +++ /dev/null @@ -1,152 +0,0 @@ -outStorage - - - diff --git a/src/views/outStorage/outStorage/relation/chooseproducts.vue b/src/views/outStorage/outStorage/relation/chooseproducts.vue deleted file mode 100644 index 60ea91c..0000000 --- a/src/views/outStorage/outStorage/relation/chooseproducts.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - - diff --git a/src/views/outStorage/toAllocated/index.vue b/src/views/outStorage/toAllocated/index.vue deleted file mode 100644 index 247d7f2..0000000 --- a/src/views/outStorage/toAllocated/index.vue +++ /dev/null @@ -1,1012 +0,0 @@ - - - - diff --git a/src/views/outStorage/toOutStorage/index.vue b/src/views/outStorage/toOutStorage/index.vue deleted file mode 100644 index ba054f1..0000000 --- a/src/views/outStorage/toOutStorage/index.vue +++ /dev/null @@ -1,998 +0,0 @@ - - - - diff --git a/src/views/outStorage/zeroPicking/index.vue b/src/views/outStorage/zeroPicking/index.vue deleted file mode 100644 index 139ed1e..0000000 --- a/src/views/outStorage/zeroPicking/index.vue +++ /dev/null @@ -1,1055 +0,0 @@ - - - - diff --git a/src/views/reports/inOutStorage/index.vue b/src/views/reports/inOutStorage/index.vue deleted file mode 100644 index cc831dc..0000000 --- a/src/views/reports/inOutStorage/index.vue +++ /dev/null @@ -1,439 +0,0 @@ - - - - diff --git a/src/views/storage/inventory/inventory.vue b/src/views/storage/inventory/inventory.vue deleted file mode 100644 index 80eddac..0000000 --- a/src/views/storage/inventory/inventory.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - - diff --git a/src/views/storage/inventory/inventoryRecord.vue b/src/views/storage/inventory/inventoryRecord.vue deleted file mode 100644 index 56a8fc4..0000000 --- a/src/views/storage/inventory/inventoryRecord.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - diff --git a/src/views/storage/inventory/inventoryRefer.vue b/src/views/storage/inventory/inventoryRefer.vue deleted file mode 100644 index cac21fa..0000000 --- a/src/views/storage/inventory/inventoryRefer.vue +++ /dev/null @@ -1,262 +0,0 @@ - - - - diff --git a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjust.vue b/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjust.vue deleted file mode 100644 index c6223ee..0000000 --- a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjust.vue +++ /dev/null @@ -1,353 +0,0 @@ - - - - diff --git a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue b/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue deleted file mode 100644 index 4241a5f..0000000 --- a/src/views/storage/inventoryAdjust/inventoryAdjust/inventoryAdjustAdd.vue +++ /dev/null @@ -1,421 +0,0 @@ - - - - - diff --git a/src/views/storage/inventoryAdjust/inventoryAdjust/relation/chooseproducts.vue b/src/views/storage/inventoryAdjust/inventoryAdjust/relation/chooseproducts.vue deleted file mode 100644 index 1f342ff..0000000 --- a/src/views/storage/inventoryAdjust/inventoryAdjust/relation/chooseproducts.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - diff --git a/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue b/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue deleted file mode 100644 index e3a12cc..0000000 --- a/src/views/storage/inventoryAdjust/inventoryDifferential/inventoryDifferential.vue +++ /dev/null @@ -1,341 +0,0 @@ - - - - diff --git a/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue b/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue deleted file mode 100644 index 41348d4..0000000 --- a/src/views/storage/inventoryWarning/regionalWarning/regionalWarning.vue +++ /dev/null @@ -1,580 +0,0 @@ - - - - diff --git a/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue b/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue deleted file mode 100644 index 5eedbb4..0000000 --- a/src/views/storage/inventoryWarning/regionalWarning/regionalWarningAdd.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - - diff --git a/src/views/storage/stocktaking/index.vue b/src/views/storage/stocktaking/index.vue deleted file mode 100644 index 15ae50d..0000000 --- a/src/views/storage/stocktaking/index.vue +++ /dev/null @@ -1,325 +0,0 @@ - - - - diff --git a/src/views/storage/stocktaking/stocktakingAdd.vue b/src/views/storage/stocktaking/stocktakingAdd.vue deleted file mode 100644 index 21ed793..0000000 --- a/src/views/storage/stocktaking/stocktakingAdd.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - diff --git a/src/views/storage/totalStatus/historyInventory/historyInventory.vue b/src/views/storage/totalStatus/historyInventory/historyInventory.vue deleted file mode 100644 index 5e166cd..0000000 --- a/src/views/storage/totalStatus/historyInventory/historyInventory.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - diff --git a/src/views/storage/totalStatus/totalInventory/totalInventory.vue b/src/views/storage/totalStatus/totalInventory/totalInventory.vue deleted file mode 100644 index f549037..0000000 --- a/src/views/storage/totalStatus/totalInventory/totalInventory.vue +++ /dev/null @@ -1,529 +0,0 @@ - - - - diff --git a/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue b/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue deleted file mode 100644 index f1f11b2..0000000 --- a/src/views/storage/totalStatus/warehouseAreaInventory/warehouseAreaInventory.vue +++ /dev/null @@ -1,408 +0,0 @@ - - - - diff --git a/src/views/system/organizationManage/organizationManage.vue b/src/views/system/organizationManage/organizationManage.vue index fe948a6..6ce4597 100644 --- a/src/views/system/organizationManage/organizationManage.vue +++ b/src/views/system/organizationManage/organizationManage.vue @@ -290,18 +290,18 @@ + + \ No newline at end of file diff --git a/src/views/system/resourcesManage/resourcesManage.vue b/src/views/system/resourcesManage/resourcesManage.vue new file mode 100644 index 0000000..02409e3 --- /dev/null +++ b/src/views/system/resourcesManage/resourcesManage.vue @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/unitAuthorizeManage/unitAuthorizeManage.vue b/src/views/system/unitAuthorizeManage/unitAuthorizeManage.vue new file mode 100644 index 0000000..02409e3 --- /dev/null +++ b/src/views/system/unitAuthorizeManage/unitAuthorizeManage.vue @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file