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
ae29b86c
Commit
ae29b86c
authored
Dec 06, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
d0c68c32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
180 additions
and
163 deletions
+180
-163
Archivesmaterials.vue
src/components/Materialman/Archivesmaterials.vue
+106
-129
Materialwarehouse.vue
src/components/Materialman/Materialwarehouse.vue
+74
-34
No files found.
src/components/Materialman/Archivesmaterials.vue
View file @
ae29b86c
<
template
>
<
template
>
<div
class=
"Materialwarehouse"
>
<div
class=
"Archivesmaterials"
>
<ul
class=
"queryul"
>
<div
style=
"text-align:right;border-bottom:1px solid #E2E4EB;padding-bottom:10px"
>
<li>
<span
class=
"pageTitle"
>
仓库名称
</span>
<span>
<span
@
click=
"morequery=!morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
高级查询
<em>
仓库名称
</em>
<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>
</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>
</li>
<li>
<li>
<span>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.SuppliesNum"
placeholder=
"物料编码"
></el-input>
<em>
物料编码
</em>
</span>
<el-input
class=
"w200"
size=
"small"
v-model=
"msg.SuppliesNum"
placeholder=
"请输入"
></el-input>
</li>
</li>
<el-button
@
click=
"addSupplier"
size=
"small"
type=
"danger"
>
新增
</el-button>
<el-button
@
click=
"getList"
size=
"small"
>
查询
</el-button>
</ul>
</ul>
<vxe-table
style=
"margin-top:20px"
:data=
"tableData"
:loading=
"loading"
size=
"small"
>
<table
style=
"margin-top:10px"
class=
"myTable"
v-loading=
"loading"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<vxe-table-column
field=
"Name"
title=
"物料档案名称"
></vxe-table-column>
<thead>
<vxe-table-column
field=
"CategoryName"
title=
"分类名称"
></vxe-table-column>
<th>
物料档案名称
</th>
<vxe-table-column
field=
"BrandName"
title=
"品牌名"
></vxe-table-column>
<th>
分类名称
</th>
<vxe-table-column
field=
"Money"
title=
"成本价"
></vxe-table-column>
<th>
品牌名
</th>
<vxe-table-column
field=
"SupplierName"
title=
"供应商名称"
></vxe-table-column>
<th>
成本价
</th>
<vxe-table-column
field=
"Barcode"
title=
"条形码号"
></vxe-table-column>
<th>
供应商名称
</th>
<vxe-table-column
title=
"库存"
>
<th>
条形码号
</th>
<template
v-slot=
"
{ row, rowIndex }">
<th>
库存
</th>
<p>
预警库存:
{{
row
.
ReservedStock
}}
</p>
<th>
型号
</th>
<p>
安全库存:
{{
row
.
SafetyStock
}}
</p>
<th>
档案编码
</th>
<th>
图片
</th>
</
template
>
<th>
操作人
</th>
</vxe-table-column>
<th>
操作时间
</th>
<vxe-table-column
field=
"SuppliesModel"
title=
"型号"
></vxe-table-column>
<th>
备注
</th>
<vxe-table-column
field=
"SuppliesNum"
title=
"档案编码"
></vxe-table-column>
<th>
操作
</th>
<vxe-table-column
title=
"图片"
>
</thead>
<
template
v-slot=
"{ row, rowIndex }"
>
<tbody>
<img
v-for=
"(item,index) in row.ImageList"
:key=
"index"
:src=
"item"
alt=
""
>
<tr
v-for=
"(item,index) in tableData"
:key=
"index"
>
<td>
</
template
>
<span
class=
"commonStyle hoverSpan1"
></span>
</vxe-table-column>
{{
item
.
Name
}}
<vxe-table-column
field=
"UpdateBy"
title=
"操作人"
></vxe-table-column>
</td>
<vxe-table-column
field=
"UpdateDate"
title=
"操作时间"
></vxe-table-column>
<td>
{{
item
.
CategoryName
}}
</td>
<vxe-table-column
field=
"Remark"
title=
"备注"
></vxe-table-column>
<td>
{{
item
.
BrandName
}}
</td>
<vxe-table-column
title=
"操作"
width=
"120"
>
<td>
{{
item
.
Money
}}
</td>
<
template
v-slot=
"{ row, rowIndex }"
>
<td>
{{
item
.
SupplierName
}}
</td>
<td>
{{
item
.
Barcode
}}
</td>
<td>
<div>
预警库存:
{{
item
.
ReservedStock
}}
</div>
<div>
安全库存:
{{
item
.
SafetyStock
}}
</div>
</td>
<td>
{{
item
.
SuppliesModel
}}
</td>
<td>
{{
item
.
SuppliesNum
}}
</td>
<td>
<img
v-for=
"(subItem,index) in item.ImageList"
:key=
"index"
:src=
"subItem"
alt=
""
>
</td>
<td>
{{
item
.
UpdateBy
}}
</td>
<td>
{{
item
.
UpdateDate
}}
</td>
<td>
{{
item
.
Remark
}}
</td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<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>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑
"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除
"
placement=
"top"
>
<i
@
click=
"Delete(row)"
class=
"iconfont icon-shanchu"
></i
>
<img
@
click=
"Delete(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/delete.png"
alt=
""
>
</el-tooltip>
</el-tooltip>
</
template
>
<span
class=
"commonStyle hoverSpan2"
></span>
</vxe-table-column>
</td>
</vxe-table>
<vxe-pager
</tr>
:current-change=
"currentChange"
<tr
v-show=
"tableData.length==0"
>
:current-page
.
sync=
"currentPage"
<td
colspan=
"12"
align=
"center"
>
暂无数据
</td>
:page-size
.
sync=
"msg.pageSize"
</tr>
:total=
"total"
</tbody>
align=
"center"
</table>
:layouts=
"['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']"
>
<el-pagination
</vxe-pager>
@
current-change=
"currentChange"
background
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
<el-dialog
<el-dialog
:title=
"dialogtitle"
:title=
"dialogtitle"
...
@@ -141,15 +163,11 @@
...
@@ -141,15 +163,11 @@
</template>
</template>
<
script
>
<
script
>
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
export
default
{
name
:
'Materialwarehouse'
,
name
:
'Archivesmaterials'
,
components
:
{
Treeselect
},
data
(){
data
(){
return
{
return
{
morequery
:
false
,
normalizer
(
node
)
{
normalizer
(
node
)
{
var
obj
=
{
var
obj
=
{
id
:
node
.
label
,
id
:
node
.
label
,
...
@@ -190,7 +208,7 @@ export default {
...
@@ -190,7 +208,7 @@ export default {
ImageList
:
''
,
ImageList
:
''
,
},
},
dialogtitle
:
'新增物料档案'
,
dialogtitle
:
'新增物料档案'
,
dialogState
:
tru
e
,
dialogState
:
fals
e
,
rules
:{
rules
:{
Name
:
[
Name
:
[
{
required
:
true
,
message
:
'请输入供应商名称'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入供应商名称'
,
trigger
:
'blur'
}
...
@@ -246,12 +264,7 @@ export default {
...
@@ -246,12 +264,7 @@ export default {
label
:
'label'
,
label
:
'label'
,
},
},
treedataState
:
false
,
treedataState
:
false
,
}
}
},
created
(){
},
},
mounted
(){
mounted
(){
this
.
getList
();
this
.
getList
();
...
@@ -390,70 +403,34 @@ export default {
...
@@ -390,70 +403,34 @@ export default {
},
},
null
null
);
);
}
,
}
},
},
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
.Archives
form
.treeItem
.el-form-item__content
{
.Archives
materials
.hoverSpan1
{
l
ine-height
:
36
px
;
l
eft
:
-20
px
;
}
}
.Archivesform
.el-form-item
{
.Archivesmaterials
.hoverSpan2
{
display
:
inline-block
;
right
:
-20px
;
position
:
relative
;
}
}
.Archivesform
._addUpload_box
{
.Archivesmaterials
.commonStyle
{
display
:
block
;
height
:
100%
;
margin
:
10px
0
0
;
background
:
#fff
;
}
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
.Archivesform
._addUpload_box
img
{
height
:
15px
;
display
:
block
;
margin-right
:
25px
;
}
.Archivesform
._addUpload_box
>
div
.el-upload
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
.Archivesform
._addUpload_box
.icon-guanbi1
{
font-size
:
12px
;
color
:
white
;
display
:
inline-block
;
margin-left
:
15px
;
position
:
absolute
;
position
:
absolute
;
left
:
9px
;
width
:
20px
;
top
:
-5px
;
top
:
0
;
background-color
:
#f56c6c
;
display
:
none
;
border-radius
:
50%
;
height
:
15px
;
width
:
15px
;
text-align
:
center
;
line-height
:
15px
;
}
}
.Archivesform
._addUpload_box
>
div
:hover
{
.Archivesmaterials
{
background-color
:
#f5f5f5
;
background
:
#F8FAFB
;
width
:
100%
;
min-height
:
100%
;
position
:
absolute
;
padding
:
20px
30px
;
box-sizing
:
border-box
;
}
}
</
style
>
</
style
>
src/components/Materialman/Materialwarehouse.vue
View file @
ae29b86c
<
template
>
<
template
>
<div
class=
"Materialwarehouse"
>
<div
class=
"Materialwarehouse"
>
<ul
class=
"queryul"
>
<div
style=
"text-align:right;border-bottom:1px solid #E2E4EB;padding-bottom:10px"
>
<li>
<span
class=
"pageTitle"
>
物料仓库
</span>
<span>
<span
@
click=
"morequery=!morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
高级查询
<em>
仓库名称
</em>
<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>
</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>
</li>
<el-button
@
click=
"addSupplier"
size=
"small"
type=
"danger"
>
新增
</el-button>
<el-button
@
click=
"getList"
size=
"small"
>
查询
</el-button>
</ul>
</ul>
<vxe-table
style=
"margin-top:20px"
:data=
"tableData"
:loading=
"loading"
size=
"small"
>
<table
style=
"margin-top:10px"
class=
"myTable"
v-loading=
"loading"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<vxe-table-column
field=
"Name"
title=
"仓库名称"
></vxe-table-column>
<thead>
<vxe-table-column
field=
"UpdateBy"
title=
"操作人"
></vxe-table-column>
<th>
仓库名称
</th>
<vxe-table-column
field=
"UpdateDate"
title=
"操作时间"
></vxe-table-column>
<th>
操作人
</th>
<vxe-table-column
title=
"操作"
width=
"120"
>
<th>
操作时间
</th>
<template
v-slot=
"
{ row, rowIndex }">
<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"
>
<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>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑
"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除
"
placement=
"top"
>
<i
@
click=
"Delete(row)"
class=
"iconfont icon-shanchu"
></i
>
<img
@
click=
"Delete(item)"
style=
"width:24px;height:24px"
src=
"../../assets/img/delete.png"
alt=
""
>
</el-tooltip>
</el-tooltip>
</
template
>
<span
class=
"commonStyle hoverSpan2"
></span>
</vxe-table-column>
</td>
</vxe-table>
</tr>
<vxe-pager
<tr
v-show=
"tableData.length==0"
>
:current-change=
"currentChange"
<td
colspan=
"12"
align=
"center"
>
暂无数据
</td>
:current-page
.
sync=
"currentPage"
</tr>
:page-size
.
sync=
"msg.pageSize"
</tbody>
:total=
"total"
</table>
align=
"center"
<el-pagination
:layouts=
"['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']"
>
@
current-change=
"currentChange"
</vxe-pager>
background
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
<el-dialog
<el-dialog
:title=
"dialogtitle"
:title=
"dialogtitle"
...
@@ -52,12 +72,11 @@
...
@@ -52,12 +72,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'Materialwarehouse'
,
name
:
'Materialwarehouse'
,
data
(){
data
(){
return
{
return
{
morequery
:
false
,
currentPage
:
1
,
currentPage
:
1
,
tableData
:
[],
tableData
:
[],
loading
:
false
,
loading
:
false
,
...
@@ -173,5 +192,26 @@ export default {
...
@@ -173,5 +192,26 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
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
>
</
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