Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
585f5ac4
Commit
585f5ac4
authored
May 16, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓库
parent
4d7ea4bf
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
640 additions
and
2 deletions
+640
-2
warehouse.js
src/api/ecw/warehouse.js
+54
-0
index.js
src/router/index.js
+13
-0
index.vue
src/views/ecw/node/index.vue
+13
-2
index.vue
src/views/ecw/warehouse/index.vue
+560
-0
No files found.
src/api/ecw/warehouse.js
0 → 100644
View file @
585f5ac4
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
'
})
}
src/router/index.js
View file @
585f5ac4
...
...
@@ -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
'
}
}
]
}
]
...
...
src/views/ecw/node/index.vue
View file @
585f5ac4
...
...
@@ -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
=>
{
...
...
src/views/ecw/warehouse/index.vue
0 → 100644
View file @
585f5ac4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment