|
|
|
@ -19,10 +19,10 @@
|
|
|
|
|
<div class="user-info-text" @click="$router.push('/reagent/report/usefrequencyinfo')">
|
|
|
|
|
<div class="user-info-img" style="float: right"><img src="@/assets/4-报表统计/使用频率.png"></div>
|
|
|
|
|
<div class="title text" style="color:#FF9B02 ">使用频率</div>
|
|
|
|
|
<div class="use-count">5,037</div>
|
|
|
|
|
<div class="use-info-total">合计使用频率(次)</div>
|
|
|
|
|
<div>已领用183次,归还180次</div>
|
|
|
|
|
<div>乙醇</div>
|
|
|
|
|
<div class="use-count">{{ use_avg_info.avg_use_number }}</div>
|
|
|
|
|
<div class="use-info-total">平均使用频率(次/种)</div>
|
|
|
|
|
<div><svg-icon icon-class="皇冠" /> 使用最高频试剂:{{ use_avg_info.max_name }}</div>
|
|
|
|
|
<div><svg-icon icon-class="手" /> 单个试剂最高频次:已使用{{ use_avg_info.max_number }}次</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user-info-text" @click="$router.push('/reagent/report/recordinfo/store')">
|
|
|
|
|
<div class="user-info-img" style="float: right"><img src="@/assets/4-报表统计/入库记录.png"></div>
|
|
|
|
@ -143,6 +143,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
recordConsume: {
|
|
|
|
|
count_number: 0
|
|
|
|
|
},
|
|
|
|
|
use_avg_info: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
userData: []
|
|
|
|
|
}
|
|
|
|
@ -162,7 +165,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
initDataFunc() {
|
|
|
|
|
const { drug_stock_expend, drug_use_type_data, user_use_expend } = this.pageData
|
|
|
|
|
const { drug_stock_expend, drug_use_type_data, user_use_expend, use_avg_info } = this.pageData
|
|
|
|
|
this.use_avg_info = use_avg_info
|
|
|
|
|
this.pdc = drug_stock_expend.count_number
|
|
|
|
|
this.userData = user_use_expend
|
|
|
|
|
const instock = drug_stock_expend.data.find(item => item.status === 1)
|
|
|
|
@ -183,7 +187,6 @@ export default {
|
|
|
|
|
document.getElementById('mychart')
|
|
|
|
|
)
|
|
|
|
|
const data = this.pageData.drug_use_expend.map(item => {
|
|
|
|
|
console.log(item)
|
|
|
|
|
item.value = item.count_num
|
|
|
|
|
return item
|
|
|
|
|
})
|
|
|
|
|