|
@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 取药次数 -->
|
|
|
<div class="panel plr15 mt10 medicine">
|
|
|
<div v-if="medicineShow" class="panel plr15 mt10 medicine">
|
|
|
<div class="kitbox pt15 box-flex-c">
|
|
|
<div class="box-flex-c c-333 fs-16 f-bold">取药次数</div>
|
|
|
<div class="box-flex-c c-333 fs-12 f-bold time">
|
|
@ -103,7 +103,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 销售额 -->
|
|
|
<div class="panel plr15 mt10 medicine">
|
|
|
<div v-if="sales" class="panel plr15 mt10 medicine">
|
|
|
<div class="kitbox pt15 box-flex-c">
|
|
|
<div class="box-flex-c c-333 fs-16 f-bold">销售额</div>
|
|
|
<div class="box-flex-c c-333 fs-12 f-bold time">
|
|
@ -138,6 +138,8 @@ export default {
|
|
|
return {
|
|
|
medicineBag:'1',
|
|
|
medicineData:false,
|
|
|
medicineShow:true,
|
|
|
sales:true,
|
|
|
prescriptionBag:'1',
|
|
|
salesBag:'1',
|
|
|
count:[],
|
|
@ -171,6 +173,11 @@ 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 =='设备管理员'){
|
|
|
this.medicineShow = false;
|
|
|
this.sales = false;
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
this.echartsData();
|
|
@ -262,7 +269,8 @@ export default {
|
|
|
this.echartsData();
|
|
|
},
|
|
|
echartsData(){
|
|
|
medicineAbinetApi
|
|
|
if(this.sales){
|
|
|
medicineAbinetApi
|
|
|
.getechartsData({
|
|
|
userId: this.user.id,
|
|
|
day:this.salesBag
|
|
@ -328,6 +336,7 @@ export default {
|
|
|
.catch(err=>{
|
|
|
console.error(err)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
}
|