新建项目
17
src/App.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
created() {
|
||||
console.log('resss', 11111111111111111111111111)
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
4
src/api/Common/Upload.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import request from '@/utils/request'
|
||||
// 上传图片
|
||||
|
||||
export const uploadFile = '/api/portal/file/upload'
|
||||
49
src/api/Common/areaPicker.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//区域获取省
|
||||
// export function getProvince(data) {
|
||||
// return request({
|
||||
// url: '/system/region/getProvince',
|
||||
// method: 'get'
|
||||
// })
|
||||
// }
|
||||
// //根据省sid获取该省的所有市
|
||||
// export function getCity(data) {
|
||||
// return request({
|
||||
// url: '/system/region/getCity',
|
||||
// method: 'get',
|
||||
// params: data
|
||||
// })
|
||||
// }
|
||||
// //根据市sid获取该市的所有县区
|
||||
// export function getCounty(data) {
|
||||
// return request({
|
||||
// url: '/system/region/getCounty',
|
||||
// method: 'get',
|
||||
// params: data
|
||||
// })
|
||||
// }
|
||||
// 获取省/portal/v1/regions/getProvince
|
||||
export function getProvince(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getProvince',data,
|
||||
method: 'get',
|
||||
params:data,
|
||||
})
|
||||
}
|
||||
// 根据省sid获取该省的所有市
|
||||
export function getCity(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getCity',
|
||||
params:data,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 根据市sid获取该市的所有县区
|
||||
export function getCounty(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getCounty',
|
||||
method: 'get',
|
||||
params:data,
|
||||
})
|
||||
}
|
||||
212
src/api/Common/dictcommons.js
Normal file
@@ -0,0 +1,212 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function typeValues(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/typeValues',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取数据字典(根据分组)
|
||||
export function getTypeValueList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/getTypeValueList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据当前登录人orgSidPath(全路径sid)查询分公司
|
||||
export function getOrgSidByPath(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/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 selAllByOrgSidPath(data) {
|
||||
return request({
|
||||
url: '/wms/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({
|
||||
url: '/wms/apiadmin/regions/getProvince',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 根据省sid获取该省的所有市
|
||||
export function getCity(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/regions/getCity',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
// 根据市sid获取该市的所有县区
|
||||
export function getCounty(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/regions/getCounty',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取售后服务--基础信息--供应商信息
|
||||
export function choiceSupplierInfo(data) {
|
||||
return request({
|
||||
url: '/wms/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 getWarehouses(params) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/warehouseinfo/listAll',
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 根据仓库查询库位
|
||||
export function getWarehouseareas(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/warehousearea/selectAll',
|
||||
method: 'get',
|
||||
params: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 根据仓库查询库位
|
||||
export function getWarehouserack(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/warehouserack/selectAll',
|
||||
method: 'get',
|
||||
params: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 查询所有库位
|
||||
export function getWarehouseAacks(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/warehouserack/listAll',
|
||||
method: 'get',
|
||||
params: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
13
src/api/Common/permission.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import request from '@/utils/request'
|
||||
// 请求按钮权限
|
||||
export default {
|
||||
|
||||
// 查询分页列表,输入当前路径和userSid,返回
|
||||
buttonPermission: function(params) {
|
||||
return request({
|
||||
url: '/demopackage/v1/demo/buttonPermission',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
}
|
||||
35
src/api/User/login.js
Normal file
@@ -0,0 +1,35 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default new User()
|
||||
87
src/api/baseinfo/goodsShelves/goodsShelves.js
Normal file
@@ -0,0 +1,87 @@
|
||||
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'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
55
src/api/baseinfo/supplier/supplier.js
Normal file
@@ -0,0 +1,55 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
31
src/api/baseinfo/suppliertype/suppliertype.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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' }
|
||||
})
|
||||
}
|
||||
}
|
||||
70
src/api/baseinfo/warehouse/warehouse.js
Normal file
@@ -0,0 +1,70 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
88
src/api/baseinfo/warehouseArea/warehouseArea.js
Normal file
@@ -0,0 +1,88 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
67
src/api/baseinfo/warehouseAreaType/warehouseAreaType.js
Normal file
@@ -0,0 +1,67 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
84
src/api/baseinfo/warehouseZone/warehouseZone.js
Normal file
@@ -0,0 +1,84 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
74
src/api/goods/brand.js
Normal file
@@ -0,0 +1,74 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
78
src/api/goods/category.js
Normal file
@@ -0,0 +1,78 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
70
src/api/goods/factory.js
Normal file
@@ -0,0 +1,70 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
94
src/api/goods/goods.js
Normal file
@@ -0,0 +1,94 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
70
src/api/goods/unit.js
Normal file
@@ -0,0 +1,70 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
122
src/api/inStorage/deliveryNotice.js
Normal file
@@ -0,0 +1,122 @@
|
||||
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'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
43
src/api/inStorage/inspectionGoods.js
Normal file
@@ -0,0 +1,43 @@
|
||||
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'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
154
src/api/inStorage/receivingGoods.js
Normal file
@@ -0,0 +1,154 @@
|
||||
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'
|
||||
// }
|
||||
// });
|
||||
|
||||
// },
|
||||
|
||||
|
||||
|
||||
}
|
||||
44
src/api/inStorage/upShelf.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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' }
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
288
src/api/outStorage/outStorage.js
Normal file
@@ -0,0 +1,288 @@
|
||||
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'
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
|
||||
}
|
||||
30
src/api/portal/Upload.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
// 统一请求路径前缀
|
||||
const base = process.env.VUE_APP_URL
|
||||
|
||||
// 文件上传接口
|
||||
export const uploadFile = process.env.VUE_APP_BASE_API + '/wms/file/upload'
|
||||
// export const uploadFile = process.env.VUE_APP_BASE_API + '/customer/file/upload'
|
||||
|
||||
|
||||
|
||||
// 上传图片
|
||||
// export function imageUpload(data) {
|
||||
// return request({
|
||||
// url: '/portal/file/upload',
|
||||
// method: 'post',
|
||||
// data,
|
||||
// headers: { 'Content-Type': 'multipart/form-data' }
|
||||
// })
|
||||
// }
|
||||
|
||||
// 移除图片
|
||||
export function deleteFilesOss(data) {
|
||||
return request({
|
||||
url: '/base/v1/baseVehicleAppendixs/deleteFilesOss',
|
||||
method: 'post',
|
||||
data: qs.stringify(data),
|
||||
// headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
34
src/api/portal/areaPicker.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取省/portal/v1/regions/getProvince
|
||||
export function getProvince(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getProvince',data,
|
||||
method: 'get',
|
||||
params:data,
|
||||
})
|
||||
}
|
||||
// 根据省sid获取该省的所有市
|
||||
export function getCity(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getCity',
|
||||
params:data,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 根据市sid获取该市的所有县区
|
||||
export function getCounty(data) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getCounty',
|
||||
method: 'get',
|
||||
params:data,
|
||||
})
|
||||
}
|
||||
// // 区域列表(省市县均可用)
|
||||
// export function selectsList(data) {
|
||||
// return request({
|
||||
// url: '/portal/v1/regions/selectsList', data,
|
||||
// method: 'post',
|
||||
// headers: { 'Content-Type': 'application/json' }
|
||||
// })
|
||||
// }
|
||||
30
src/api/reports/inOutStorage.js
Normal file
@@ -0,0 +1,30 @@
|
||||
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'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
18
src/api/storage/historyInventory/historyInventory.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
49
src/api/storage/inventory.js
Normal file
@@ -0,0 +1,49 @@
|
||||
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' }
|
||||
})
|
||||
}
|
||||
}
|
||||
61
src/api/storage/inventoryAdjust/inventoryAdjust.js
Normal file
@@ -0,0 +1,61 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
31
src/api/storage/inventoryWarning/regionalWarning.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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'
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
src/api/storage/stocktaking.js
Normal file
@@ -0,0 +1,51 @@
|
||||
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' }
|
||||
})
|
||||
},
|
||||
}
|
||||
43
src/api/storage/totalStatus/totalInventory.js
Normal file
@@ -0,0 +1,43 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
44
src/api/system/Role/role.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
}
|
||||
32
src/api/system/dataDict/dataDict.js
Normal file
@@ -0,0 +1,32 @@
|
||||
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'
|
||||
})
|
||||
}
|
||||
125
src/api/system/departments/departments.js
Normal file
@@ -0,0 +1,125 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
}
|
||||
58
src/api/system/dictType/dictCommon.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
|
||||
//获取字典子集 分页列表
|
||||
export function dictCommonList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/pageList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//保存 字典子级
|
||||
export function savedictCommon(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/save',
|
||||
method: 'POST',
|
||||
data: data ,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 修改 数据字典
|
||||
export function putdictCommon(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data ,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 删除菜单 信息
|
||||
export function deldictCommon(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/delete/' + data.sid,
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
90
src/api/system/dictType/index.js
Normal file
@@ -0,0 +1,90 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token')
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dicttypes/pageList',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 修改
|
||||
export function putDictType(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dicttypes/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 保存 角色信息
|
||||
export function saveDictType(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dicttypes/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
// 数据字段--映射管理保存
|
||||
export function saveMappingList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmapping/saveMappingList',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 数据字段--映射管理保存
|
||||
export function selectMappingListInfo(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmapping/selectMappingListInfo',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 删除菜单 信息
|
||||
export function delDictType(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dicttypes/delete/' + data.sid,
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
16
src/api/system/log/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//获取菜单 分页列表
|
||||
export function logPageList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/systemlog/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
115
src/api/system/menu/index.js
Normal file
@@ -0,0 +1,115 @@
|
||||
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/sysmenu/listAllVoForSourceG',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保存 菜单信息
|
||||
export function saveMenusInfo(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmenu/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保存 菜单信息
|
||||
export function putMenusInfo(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmenu/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 删除单个 资源信息
|
||||
export function delMenus(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmenu/delBySids/' + data.sid,
|
||||
method: 'get',
|
||||
data: qs.stringify(data),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改状态
|
||||
export function IsEnable(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmenu/updateIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'POST',
|
||||
/* data: qs.stringify(data),*/
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取菜单 不分页列表
|
||||
export function roleList(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/list',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//获取菜单 分页列表
|
||||
export function menusPageList(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/pagelist',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//获取菜单 树形分页列表
|
||||
export function menusTreelist(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/treelist',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
36
src/api/system/organization/organization.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
class user{
|
||||
verifyList(data){ // 获取列表
|
||||
return request({
|
||||
url: '/system/organization/verifyList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
orgRegisterDetails(data){ // 单位注册信息详情
|
||||
return request({
|
||||
url: '/system/organization/organizationRegisterDetails/'+data.organizationSid,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
verify(data){ // 审核
|
||||
return request({
|
||||
url: '/system/organization/verify',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
// 删除机构信息
|
||||
del(data) {
|
||||
return request({
|
||||
url: '/system/organization/delete/'+data.sid,
|
||||
method: 'DELETE',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
export default new user()
|
||||
87
src/api/system/postManage/index.js
Normal file
@@ -0,0 +1,87 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMTE1MjUwfQ.gtn_mVsbwH6ztl835rWmIY4DxeNmRe_TOt-Q0TdldIE'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表
|
||||
export function orgList(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysorganization/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
export function savePost(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function putOrgroles(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/update/' +data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delOrgroles(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/delBySids/' + data.sids,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function pullDown(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/typeValues',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位列表
|
||||
export function selectList(data){
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/selectList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有流程名称
|
||||
export function selectFlowList(){
|
||||
return request({
|
||||
url: '/flowable/v1/flow/selectFlowList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
218
src/api/system/roleAdminister/index.js
Normal file
@@ -0,0 +1,218 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
// 业务角色 列表
|
||||
export function roleOrgList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysrole/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function postList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取数据字典下拉列表
|
||||
export function typeValues(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/dictcommons/typeValues',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 设置是否可用:isEnable:1可用,0不可用
|
||||
export function setRoleEnable(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysrole/setIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* <新增 保存角色>
|
||||
* @orgSid 机构SID
|
||||
* @remarks 备注
|
||||
* @roleName 角色名称
|
||||
* */
|
||||
export function saveOrgroles(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysrole/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
* <根据SID 修改角色>
|
||||
* @sid 角色SID
|
||||
* @orgSid 机构SID
|
||||
* @remarks 备注
|
||||
* @roleName 角色名称
|
||||
* */
|
||||
export function putOrgroles(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysrole/update/${data.sid}`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* <根据SID 删除角色>
|
||||
* @sid 角色SID
|
||||
* */
|
||||
export function delOrgroles(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysrole/delBySids/${data.sid}`,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 移动端授权
|
||||
export function getRoleMenuList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysmobilemenurole/getRoleMenuList',
|
||||
method: 'post',
|
||||
params: {
|
||||
roleSid: data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权保存
|
||||
export function saveRoleMenuList(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysmobilemenurole/saveRoleMenuList`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权
|
||||
export function roleMenuTree(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysmenu/listAllByRoleSidG`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权保存
|
||||
export function saveorgrolemenus(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysroleauthorize/updateRoleAndMenu`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 资源授权
|
||||
export function sourceMenuTree(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/syssource/listAllByRoleSid`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 资源授权保存
|
||||
export function saveSource(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/syssourcerole/updateRoleAndSource`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 功能授权
|
||||
export function funMenuTree(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysfunction/getFunctionAuthorization/` + data.roleSid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 功能授权保存
|
||||
export function savefunMenu(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysrolefunction/updateRoleAndFunction`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 角色授权
|
||||
export function selMenuByRole(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysmenurole/selMenuByRole`,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 角色授权保存
|
||||
export function updateDataByRoleMenu(data) {
|
||||
return request({
|
||||
url: `/wms/apiadmin/sysmenurole/updateDataByRoleMenu`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
31
src/api/system/roleAdminister/rolemenus.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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'}
|
||||
})
|
||||
}
|
||||
38
src/api/system/user/login.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
}
|
||||
176
src/api/system/userManage/index.js
Normal file
@@ -0,0 +1,176 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
// 用户列表
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
export function userList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
export function userAdd(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysstaffinfo/save',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化 用户
|
||||
export function initUserInfo(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysstaffinfo/fetchBySid/' + data.sid + "/" + data.defaultDeptSid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 更新
|
||||
export function userUpdata(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysstaffinfo/update/' + data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delUser(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/delBySid/' + data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 初始化密码
|
||||
export function initPwd(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/initPwd/' + data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 根据sid查询一条信息
|
||||
export function userSingle(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/fetchBySid/' + data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 单条用户的角色列表
|
||||
export function setRole(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysrole/listAllByUserSid/' + data.sid + "/" + data.orgSid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 角色列表
|
||||
export function saveOrgRole(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuserrole/update',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询角色列表
|
||||
export function roleList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysrole/listAll',
|
||||
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 postList(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/syspost/fetchByOrgSid/' + data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCode(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/sendMessageCode/' + data.phone,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 设置是否可用:isEnable:1可用,0不可用
|
||||
export function setRoleEnable(data) {
|
||||
return request({
|
||||
url: '/wms/apiadmin/sysuser/setIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
108
src/api/user.js
Normal file
@@ -0,0 +1,108 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
BIN
src/assets/404_images/404.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
src/assets/404_images/404_cloud.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
src/assets/home/anrui.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
src/assets/home/bIcon1.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
src/assets/home/bIcon2.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src/assets/home/bIcon3.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/home/bIcon4.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
src/assets/home/bIcon5.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src/assets/home/bIcon6.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
src/assets/home/bIcon7.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/home/bIcon8.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/assets/home/bj.jpg
Normal file
|
After Width: | Height: | Size: 600 KiB |
BIN
src/assets/home/bj.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
src/assets/home/bottomBg.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
src/assets/home/line.png
Normal file
|
After Width: | Height: | Size: 91 B |
BIN
src/assets/home/ltBg.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/home/ltIcon1.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/home/ltIcon2.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/home/ltIcon3.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
src/assets/home/ltIcon4.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
src/assets/home/notice.png
Normal file
|
After Width: | Height: | Size: 944 B |
BIN
src/assets/home/rtBg.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/assets/images/arrow.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/bdrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/btn.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/cdgl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/company_icon.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/cxjl.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/czsc.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/dwrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/dwxxgl.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/dy.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/images/experience.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/images/formal.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/assets/images/head.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
src/assets/images/info.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/images/jcxx.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/assets/images/jggl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/jlsc.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
src/assets/images/jsgl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/jsxd.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
src/assets/images/login/OAKQ.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
src/assets/images/login/bg2-img.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
src/assets/images/login/bgimg.jpg
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
src/assets/images/login/nose.png
Normal file
|
After Width: | Height: | Size: 640 B |
BIN
src/assets/images/login/pasw.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
src/assets/images/login/user.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
src/assets/images/lzrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/org/headerimg.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
src/assets/images/org/jian.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
src/assets/images/org/sfz.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/images/org/sqs.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
src/assets/images/org/success.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |