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
1f213f02
Commit
1f213f02
authored
Aug 26, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加库存变更
parent
c12b0301
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
340 additions
and
108 deletions
+340
-108
InventoryChange.vue
src/components/Materialman/InventoryChange.vue
+199
-0
outboundApplication.vue
src/components/assetsman/outboundApplication.vue
+76
-49
config.js
src/router/config.js
+65
-59
No files found.
src/components/Materialman/InventoryChange.vue
0 → 100644
View file @
1f213f02
<
template
>
<div
class=
"InventoryChange"
>
<div
class=
"routerTitle"
>
<span
class=
"pageTitle"
>
库存变更记录
</span>
<span
@
click=
"morequery=!morequery"
style=
"display:inline-flex;align-items:center;cursor: pointer;"
class=
"f12 cd6"
>
<span
style=
"margin-right:5px"
>
高级查询
</span>
<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
@
click=
"getList"
style=
"margin-left:20px"
class=
"chaxunSpan"
>
查询
</span>
<span
@
click=
"Export('GetInventoryPageListToExcel','库存')"
style=
"margin-left:20px"
class=
"addSpan"
>
导出
</span>
</div>
<div
class=
"padContent"
>
<ul
v-show=
"morequery"
class=
"queryul"
>
<li>
<el-select
size=
"small"
filterable
clearable
v-model=
"msg.WarehouseId"
placeholder=
"仓库"
@
change=
"msg.pageIndex=1,getList()"
>
<el-option
v-for=
"item in getWareHouseList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</li>
<li>
<el-select
size=
"small"
filterable
clearable
v-model=
"msg.SuppliesId"
placeholder=
"物料"
@
change=
"msg.pageIndex=1,getList()"
>
<el-option
v-for=
"item in wulaioList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</li>
</ul>
<vxe-table
stripe
style=
"margin-top:15px"
:loading=
"loading"
:data=
"tableData"
>
<vxe-table-column
field=
"SuppliesNum"
title=
"耗材编码"
>
<template
v-slot=
"
{ row }">
<span
class=
"underline"
@
click=
"getCheckDes(row)"
>
{{
row
.
SuppliesNum
}}
</span>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"SuppliesName"
title=
"耗材名称"
width=
'300'
>
<
template
v-slot=
"{ row }"
>
<span
class=
"underline"
@
click=
"getCheckDes(row)"
>
{{
row
.
SuppliesName
}}
</span>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"SuppliesName"
title=
"规格"
width=
'200'
>
<
template
v-slot=
"{ row }"
>
<span
v-for=
"(x,y) in row.GoodsSpecificationList"
:key=
"y"
>
{{
x
}}{{
y
+
1
==
row
.
GoodsSpecificationList
.
length
?
''
:
','
}}
</span>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"CategoryName"
title=
"分类名称"
></vxe-table-column>
<vxe-table-column
field=
"WareHouseName"
title=
"仓库名称"
></vxe-table-column>
<vxe-table-column
field=
"BrandName"
title=
"品牌"
></vxe-table-column>
<vxe-table-column
field=
"TypeName"
title=
"变更说明"
></vxe-table-column>
<vxe-table-column
field=
"UpdateDate"
title=
"变更时间"
></vxe-table-column>
<vxe-table-column
field=
"UpdateBy"
title=
"操作人"
></vxe-table-column>
</vxe-table>
<el-pagination
@
current-change=
"currentChange"
background
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
</template>
<
script
>
export
default
{
name
:
'InventoryChange'
,
data
(){
return
{
CheckDetailState
:
false
,
caozuoState
:
false
,
morequery
:
false
,
currentPage
:
1
,
tableData
:
[],
loading
:
false
,
total
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
WarehouseId
:
''
,
SuppliesId
:
''
,
StartTime
:
''
,
EndTime
:
''
,
},
addMsg
:{
Id
:
0
,
Name
:
''
,
Contact
:
''
,
Mobile
:
''
,
},
dialogState
:
false
,
getWareHouseList
:[],
wuliaomsg
:{
pageIndex
:
1
,
pageSize
:
1000
,
Name
:
''
,
SuppliesNum
:
""
,
BrandName
:
''
,
CategoryId
:
''
,
SupplierName
:
''
},
wulaioList
:[],
}
},
mounted
(){
this
.
getList
();
this
.
getWareHouse
();
this
.
getwuliaoList
();
},
methods
:{
getCheckDes
(
item
){
let
PropertyId
=
item
.
SuppliesId
;
this
.
CheckDetailState
=
true
;
setTimeout
(()
=>
{
this
.
$refs
.
mychild
.
InitData
(
PropertyId
);
},
10
)
},
Export
(
url
,
name
){
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
this
.
JavaGetLocalFile
(
`/api/Supplies/
${
url
}
`
,
msg
,
`
${
name
}
报表.xls`
);
},
// 仓库列表
getWareHouse
(){
this
.
apiJavaPost
(
"/api/Supplies/GetWareHouseList"
,{
Name
:
''
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
getWareHouseList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
getwuliaoList
(){
this
.
apiJavaPost
(
"/api/Supplies/GetMaterialPageList"
,
this
.
wuliaomsg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
wulaioList
=
res
.
data
.
data
.
pageData
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
currentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
getList
(){
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/Supplies/GetSuppliesInventoryPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
},
}
</
script
>
<
style
scoped
>
.InventoryChange
{
box-sizing
:
border-box
;
}
</
style
>
src/components/assetsman/outboundApplication.vue
View file @
1f213f02
...
...
@@ -45,57 +45,84 @@
></el-input>
</li>
</ul>
<div>
<vxe-table
stripe
style=
"margin-top:15px"
:loading=
"loading"
:data=
"tableData"
>
<vxe-table-column
field=
"Name"
title=
"申请状态"
>
<template
v-slot=
"
{ row }">
<span
class=
"commonStyle hoverSpan1"
></span>
<span
class=
"ColorSpan purpleSpan"
v-if=
"row.ApplyStatus==1"
>
待
</span>
<span
class=
"ColorSpan huangSpan"
v-if=
"row.ApplyStatus==2"
>
已
</span>
<span
class=
"ColorSpan purpleSpan"
v-if=
"row.ApplyStatus==3"
>
拒
</span>
<div
class=
"overflowY"
>
<table
style=
"margin-top:10px"
class=
"myTable noHoverTable"
v-loading=
"loading"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<thead>
<th
width=
"75"
>
申请状态
</th>
<th>
小程序名称
</th>
<th>
商户名称
</th>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"MallBaseName"
title=
"小程序名称"
></vxe-table-column>
<vxe-table-column
field=
"TenantName"
title=
"商户名称"
></vxe-table-column>
<vxe-table-column
field=
"OutNo"
title=
"出库订单号"
></vxe-table-column>
<vxe-table-column
field=
"Delivered"
title=
"已发货数"
></vxe-table-column>
<vxe-table-column
field=
"NotOutStock"
title=
"未发货数"
></vxe-table-column>
<vxe-table-column
field=
"Name"
title=
"出库状态"
>
<
template
v-slot=
"{ row }"
>
<span
v-if=
"row.OutStatus==0"
>
未出库
</span>
<span
v-if=
"row.OutStatus==1"
>
部分出库
</span>
<span
v-if=
"row.OutStatus==2"
>
全部出库
</span>
<th
width=
"250"
>
商品名称
</th>
<th
width=
"120"
>
商品规格
</th>
<th>
商品数量
</th>
<th
width=
"250"
>
出库名称
</th>
<th
width=
"120"
>
出库规格
</th>
<th>
出库数量
</th>
</
template
>
</vxe-table-column>
<vxe-table-column
field=
"CreateDateStr"
title=
"申请时间"
></vxe-table-column>
<th>
出库状态
</th>
<th>
申请时间
</th>
<th>
操作
</th>
</thead>
<tbody>
<template
v-for=
"(item,index1) in tableData"
>
<tr
:class=
"index==0?'trNobottom':''"
v-for=
"(delist,index) in item.WarehouseOutGoodsList"
::key=
"index + '-only'"
>
<td
:class=
"index1==tableData.length-1?'lastTdLeft':''"
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
<span
class=
"ColorSpan greenSpan"
v-if=
"item.ApplyStatus==1"
>
待
</span>
<span
class=
"ColorSpan redSpan"
v-if=
"item.ApplyStatus==2"
>
已
</span>
<span
class=
"ColorSpan purpleSpan"
v-if=
"item.ApplyStatus==3"
>
拒
</span>
</td>
<td
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
{{
item
.
MallBaseName
}}
</td>
<td
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
{{
item
.
TenantName
}}
</td>
<td
>
{{
delist
.
GoodsName
}}
</td>
<td
>
{{
delist
.
Specification
}}
</td>
<td
>
{{
delist
.
Number
}}
</td>
<td
>
{{
delist
.
NewGoodsName
}}
</td>
<td
>
{{
delist
.
NewSpecification
}}
</td>
<td
>
{{
delist
.
NewNumber
}}
</td>
<td
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
<span
v-if=
"item.ApplyStatus==0"
>
未出库
</span>
<span
v-if=
"item.ApplyStatus==1"
>
部分出库
</span>
<span
v-if=
"item.ApplyStatus==2"
>
全部出库
</span>
</td>
<td
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
{{
item
.
CreateDateStr
}}
</td>
<td
:class=
"index1==tableData.length-1?'lastTdRight':''"
:rowspan=
"item.WarehouseOutGoodsList.length"
v-if=
"index==0"
>
<vxe-table-column
field=
"address"
title=
"操作"
>
<
template
v-slot=
"{ row }"
>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"审批"
placement=
"top"
>
<img
@
click=
"See(row,1)"
style=
"width:24px;height:24px;margin-right:10px;"
src=
"../../assets/img/shenpi.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"拒绝"
placement=
"top"
>
<img
@
click=
"See(row,2)"
style=
"width:24px;height:24px;margin-right:10px;"
src=
"../../assets/img/qx.png"
alt=
""
>
</el-tooltip>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看详情"
placement=
"top"
>
<img
@
click=
"SeeDetails(row
,'/outboundDetails')"
style=
"width:24px;height:24px;margin-right:10px;"
src=
"../../assets/img/chakan.png"
alt=
""
/>
<img
@
click=
"SeeDetails(item
,'/outboundDetails')"
style=
"width:24px;height:24px;margin-right:10px;"
src=
"../../assets/img/chakan.png"
alt=
""
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"出库"
placement=
"top"
>
<span
class=
"outBand_div"
v-if=
"row.ApplyStatus==2&&(row.OutStatus==0||row.OutStatus==1)"
@
click=
"goUrl('outboundOperate',row
.ID)"
>
<span
class=
"outBand_div"
v-if=
"item.ApplyStatus==2&&(item.OutStatus==0||item.OutStatus==1)"
@
click=
"goUrl('outboundOperate',item
.ID)"
>
<i
class=
"iconfont icon-chuku"
></i>
</span>
</el-tooltip>
</td>
</tr>
</
template
>
</vxe-table-column>
</vxe-table>
<el-pagination
@
current-change=
"currentChange"
background
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:current-page
.
sync=
"msg.pageIndex"
:total=
"total"
>
</el-pagination>
<tr
v-show=
"tableData.length==0"
>
<td
colspan=
"14"
align=
"center"
>
暂无数据
</td>
</tr>
</tbody>
</table>
</div>
<el-pagination
class=
"myPageBottom"
@
current-change=
"currentChange"
background
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
...
...
src/router/config.js
View file @
1f213f02
...
...
@@ -222,6 +222,12 @@ export default {
path
:
'/chukudan'
,
name
:
'chukudan'
,
component
:
resolve
=>
require
([
'@/components/Materialman/chukudan'
],
resolve
),
},
// 库存变更记录
{
path
:
'/InventoryChange'
,
name
:
'InventoryChange'
,
component
:
resolve
=>
require
([
'@/components/Materialman/InventoryChange'
],
resolve
),
},
// 耗材盘点
{
...
...
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