|
@ -37,11 +37,16 @@
|
|
<div class="box-flex-1"> 共:{{deviceInfo.layer}}层</div>
|
|
<div class="box-flex-1"> 共:{{deviceInfo.layer}}层</div>
|
|
<div class="box-flex-1 ml5">总货道:{{deviceInfo.aisles}}</div>
|
|
<div class="box-flex-1 ml5">总货道:{{deviceInfo.aisles}}</div>
|
|
<div class="box-flex-1 ml5">故障:0</div>
|
|
<div class="box-flex-1 ml5">故障:0</div>
|
|
<div class="box-flex-1 ml5">关闭:0</div>
|
|
|
|
|
|
<div class="box-flex-1 ml5">关闭:{{closeCount}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</van-sticky>
|
|
</van-sticky>
|
|
<div class="fs-14 pl15 ptb10 bgc-fff">从上往下数</div>
|
|
|
|
|
|
<div class="fs-14 pl15 ptb10 bgc-fff">
|
|
|
|
<span>从上往下数</span>
|
|
|
|
|
|
|
|
<div class="color-block"></div>
|
|
|
|
<span class="ml5 fs-12">已关闭的通道</span>
|
|
|
|
</div>
|
|
<div class="kitbox">
|
|
<div class="kitbox">
|
|
<div class="left-list">
|
|
<div class="left-list">
|
|
<van-sidebar v-model="activeKey">
|
|
<van-sidebar v-model="activeKey">
|
|
@ -70,7 +75,9 @@ export default{
|
|
deviceId: this.$route.query.deviceId,
|
|
deviceId: this.$route.query.deviceId,
|
|
list: [],
|
|
list: [],
|
|
activeKey: 0,
|
|
activeKey: 0,
|
|
curItem: []
|
|
|
|
|
|
curItem: [],
|
|
|
|
openCount: 0,
|
|
|
|
closeCount: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch:{
|
|
watch:{
|
|
@ -98,13 +105,19 @@ export default{
|
|
console.log('findMediicinecabinetInventoryByDeviceId', res)
|
|
console.log('findMediicinecabinetInventoryByDeviceId', res)
|
|
this.$toast.clear()
|
|
this.$toast.clear()
|
|
if(res.detailModelList && res.detailModelList.length){
|
|
if(res.detailModelList && res.detailModelList.length){
|
|
|
|
var openCount = 0, closeCount = 0
|
|
var list = _.map(res.detailModelList, v=>{
|
|
var list = _.map(res.detailModelList, v=>{
|
|
var key = _.keys(v)[0]
|
|
var key = _.keys(v)[0]
|
|
|
|
v[key].forEach(m => {
|
|
|
|
m.cargoState==1? openCount++ : closeCount++
|
|
|
|
});
|
|
return {
|
|
return {
|
|
index: key,
|
|
index: key,
|
|
list: v[key],
|
|
list: v[key],
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
this.openCount = openCount
|
|
|
|
this.closeCount = closeCount
|
|
list = _.sortBy(list, 'index')
|
|
list = _.sortBy(list, 'index')
|
|
this.list = list
|
|
this.list = list
|
|
this.curItem = this.list[0]
|
|
this.curItem = this.list[0]
|
|
@ -142,6 +155,8 @@ export default{
|
|
.list{
|
|
.list{
|
|
display: flex;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
|
height: calc(100vh - 153px);
|
|
|
|
overflow-y: auto;
|
|
// min-height: calc(100vh - 130px);
|
|
// min-height: calc(100vh - 130px);
|
|
.item{
|
|
.item{
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
@ -154,5 +169,14 @@ export default{
|
|
.left-list{
|
|
.left-list{
|
|
height: calc(100vh - 153px);
|
|
height: calc(100vh - 153px);
|
|
}
|
|
}
|
|
|
|
.color-block{
|
|
|
|
background: #ff9526;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 20px;
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|