|
@ -33,23 +33,23 @@
|
|
|
<div class="pt10">
|
|
|
<div class="pb20">
|
|
|
<van-row>
|
|
|
<van-col class="col col-tl" span="12">
|
|
|
<div class="operations-num">{{ maintain.addTotal }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/waiting-equipment.png" alt=""></span>待入库设备数</div>
|
|
|
</van-col>
|
|
|
<van-col class="col" span="12">
|
|
|
<div class="operations-num">{{ maintain.hcWaringTotalNum }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/thermometer.png" alt=""></span>温湿度预警数</div>
|
|
|
</van-col>
|
|
|
<van-col class="col col-t col-bl" span="12">
|
|
|
<div class="operations-num">{{ maintain.noOnlineTotal1WithUserId }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/waiting-equipment.png" alt=""></span>离线设备数</div>
|
|
|
</van-col>
|
|
|
<van-col class="col col-t" span="12">
|
|
|
<div class="operations-num">{{ maintain.noGetDrugNum }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/offline-medicine.png" alt=""></span>待取药订单数</div>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
<van-col @click="gotoDevice()" class="col col-tl" span="12">
|
|
|
<div class="operations-num">{{ maintain.addTotal }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/waiting-equipment.png" alt=""></span>待入库设备数</div>
|
|
|
</van-col>
|
|
|
<van-col @click="gotoDevice()" class="col" span="12">
|
|
|
<div class="operations-num">{{ maintain.hcWaringTotalNum }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/thermometer.png" alt=""></span>温湿度预警数</div>
|
|
|
</van-col>
|
|
|
<van-col @click="gotoDevice()" class="col col-t col-bl" span="12">
|
|
|
<div class="operations-num">{{ maintain.noOnlineTotal1WithUserId }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/waiting-equipment.png" alt=""></span>离线设备数</div>
|
|
|
</van-col>
|
|
|
<van-col @click="gotoUrl('/order/list')" class="col col-t" span="12">
|
|
|
<div class="operations-num">{{ maintain.noGetDrugNum }}</div>
|
|
|
<div class="operations-text"><span><img class="img" src="../../assets/images/offline-medicine.png" alt=""></span>待取药订单数</div>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@ -173,8 +173,8 @@ export default {
|
|
|
this.countall();
|
|
|
this.medicine();
|
|
|
this.prescriptions();
|
|
|
console.log('this.$store.user.state',this.$store.state.user.curRoleName)
|
|
|
if(this.$store.state.user.curRoleName =='设备管理员'){
|
|
|
console.log('this.$store.user.state',this.$store.state.user.curRoleCode)
|
|
|
if(this.$store.state.user.curRoleCode =='replenisher'){
|
|
|
this.medicineShow = false;
|
|
|
this.sales = false;
|
|
|
}
|
|
@ -198,6 +198,11 @@ export default {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
//跳转
|
|
|
gotoDevice(){
|
|
|
this.$router.push('/device/index')
|
|
|
this.$store.commit('getDeviceActive' ,0);
|
|
|
},
|
|
|
// 取药次数
|
|
|
medicine(){
|
|
|
medicineAbinetApi
|