Commit 585f5ac4 authored by wanglianghe's avatar wanglianghe

仓库

parent 4d7ea4bf
import request from '@/utils/request'
// 创建仓库
export function createWarehouse(data) {
return request({
url: '/ecw/warehouse/create',
method: 'post',
data: data
})
}
// 更新仓库
export function updateWarehouse(data) {
return request({
url: '/ecw/warehouse/update',
method: 'put',
data: data
})
}
// 删除仓库
export function deleteWarehouse(id) {
return request({
url: '/ecw/warehouse/delete?id=' + id,
method: 'delete'
})
}
// 获得仓库
export function getWarehouse(id) {
return request({
url: '/ecw/warehouse/get?id=' + id,
method: 'get'
})
}
// 获得仓库分页
export function getWarehousePage(query) {
return request({
url: '/ecw/warehouse/page',
method: 'get',
params: query
})
}
// 导出仓库 Excel
export function exportWarehouseExcel(query) {
return request({
url: '/ecw/warehouse/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
......@@ -161,6 +161,19 @@ export const constantRoutes = [
meta: {title: '流程详情', activeMenu: '/bpm/task/my'}
}
]
},
{
path: '/node',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [{
path: 'warehouse',
component: (resolve) => require(['@/views/ecw/warehouse/index'], resolve),
name: 'warehouse',
meta: {title: '网点仓库', activeMenu: '/config/node'}
}
]
}
]
......
......@@ -56,10 +56,10 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="warehouse(scope.row)"
v-hasPermi="['ecw:node:delete']">仓库</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:node:update']">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['ecw:node:delete']">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -338,6 +338,17 @@ export default {
});
},
//跳转仓库
warehouse(row) {
let nodeId = row.id;
this.$router.push({
path:'/node/warehouse',
query: {
nodeId:nodeId
}
})
},
//获取用户列表
getUserList() {
listUser(this.userQueryParams).then(response => {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment