Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assets
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄媛媛
assets
Commits
3f61bcff
Commit
3f61bcff
authored
Dec 06, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/assets
parents
2968c0ef
b181f574
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
247 additions
and
216 deletions
+247
-216
Archivesmaterials.vue
src/components/Materialman/Archivesmaterials.vue
+165
-175
Materialwarehouse.vue
src/components/Materialman/Materialwarehouse.vue
+82
-41
No files found.
src/components/Materialman/Archivesmaterials.vue
View file @
3f61bcff
This diff is collapsed.
Click to expand it.
src/components/Materialman/Materialwarehouse.vue
View file @
3f61bcff
<
template
>
<div
class=
"Materialwarehouse"
>
<ul
class=
"queryul"
>
<li>
<span>
<em>
仓库名称
</em>
<div
style=
"text-align:right;border-bottom:1px solid #E2E4EB;padding-bottom:10px"
>
<span
class=
"pageTitle"
>
物料仓库
</span>
<span
@
click=
"morequery=!morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
高级查询
<img
v-show=
"!morequery"
style=
"width:12px;height:12px"
src=
"../../assets/img/more.png"
alt=
""
>
<img
v-show=
"morequery"
class=
"roatImg"
style=
"width:12px;height:12px"
src=
"../../assets/img/more.png"
alt=
""
>
</span>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.Name"
placeholder=
"请输入"
></el-input>
<span
@
click=
"getList"
style=
"margin-left:20px"
class=
"chaxunSpan"
>
查询
</span>
<!--
<span
@
click=
"chongzhi"
style=
"margin-left:20px"
class=
"addSpan"
>
重置
</span>
-->
<span
@
click=
"addSupplier"
style=
"margin-left:20px"
class=
"addSpan"
>
<img
style=
"width:10px;height:10px;margin-right:6px"
src=
"../../assets/img/add.png"
alt=
""
>
新增
</span>
</div>
<ul
v-show=
"morequery"
class=
"queryul"
>
<li>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.Name"
placeholder=
"仓库名称"
></el-input>
</li>
<el-button
@
click=
"addSupplier"
size=
"small"
type=
"danger"
>
新增
</el-button>
<el-button
@
click=
"getList"
size=
"small"
>
查询
</el-button>
</ul>
<vxe-table
style=
"margin-top:20px"
:data=
"tableData"
:loading=
"loading"
size=
"small"
>
<vxe-table-column
field=
"Name"
title=
"仓库名称"
></vxe-table-column>
<vxe-table-column
field=
"UpdateBy"
title=
"操作人"
></vxe-table-column>
<vxe-table-column
field=
"UpdateDate"
title=
"操作时间"
></vxe-table-column>
<vxe-table-column
title=
"操作"
width=
"120"
>
<template
v-slot=
"
{ row, rowIndex }">
<table
style=
"margin-top:10px"
class=
"myTable"
v-loading=
"loading"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<thead>
<th>
仓库名称
</th>
<th>
操作人
</th>
<th>
操作时间
</th>
<th
width=
"200"
>
操作
</th>
</thead>
<tbody>
<tr
v-for=
"(item,index) in tableData"
:key=
"index"
>
<td>
<span
class=
"commonStyle hoverSpan1"
></span>
{{
item
.
Name
}}
</td>
<td>
{{
item
.
UpdateBy
}}
</td>
<td>
{{
item
.
UpdateDate
}}
</td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<i
@
click=
"Edit(row)"
class=
"iconfont icon-xiugai"
></i
>
<img
@
click=
"Edit(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/edit.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑
"
placement=
"top"
>
<i
@
click=
"Delete(row)"
class=
"iconfont icon-shanchu"
></i
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除
"
placement=
"top"
>
<img
@
click=
"Delete(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/delete.png"
alt=
""
>
</el-tooltip>
</
template
>
</vxe-table-column>
</vxe-table>
<vxe-pager
:current-change=
"currentChange"
:current-page
.
sync=
"currentPage"
:page-size
.
sync=
"msg.pageSize"
:total=
"total"
align=
"center"
:layouts=
"['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']"
>
</vxe-pager>
<span
class=
"commonStyle hoverSpan2"
></span>
</td>
</tr>
<tr
v-show=
"tableData.length==0"
>
<td
colspan=
"12"
align=
"center"
>
暂无数据
</td>
</tr>
</tbody>
</table>
<el-pagination
@
current-change=
"currentChange"
background
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
<el-dialog
:title=
"dialogtitle"
:visible
.
sync=
"dialogState"
width=
"30%"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"仓库名称"
prop=
"Name"
>
width=
"20%"
>
<el-form
class=
"MyEditForm"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"0"
>
<el-form-item
prop=
"Name"
style=
"margin-left:60px;"
>
<span
class=
"label"
>
仓库名称
</span>
<el-input
v-model=
"addMsg.Name"
></el-input>
</el-form-item>
<
el-form-item
>
<
el-button
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</el-butto
n>
<
el-button
@
click=
"dialogState=false"
>
取消
</el-butto
n>
</
el-form-item
>
<
div
class=
"btnformItem"
>
<
span
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</spa
n>
<
span
class=
"exitBtn"
@
click=
"dialogState=false"
>
取消
</spa
n>
</
div
>
</el-form>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Materialwarehouse'
,
data
(){
return
{
morequery
:
false
,
currentPage
:
1
,
tableData
:
[],
loading
:
false
,
...
...
@@ -173,5 +193,26 @@ export default {
</
script
>
<
style
scoped
>
.Materialwarehouse
.hoverSpan1
{
left
:
-20px
;
}
.Materialwarehouse
.hoverSpan2
{
right
:
-20px
;
}
.Materialwarehouse
.commonStyle
{
height
:
100%
;
background
:
#fff
;
position
:
absolute
;
width
:
20px
;
top
:
0
;
display
:
none
;
}
.Materialwarehouse
{
background
:
#F8FAFB
;
width
:
100%
;
min-height
:
100%
;
position
:
absolute
;
padding
:
20px
30px
;
box-sizing
:
border-box
;
}
</
style
>
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