From 939761b7931a519c1f6ee2d66e1af55a32c2eb71 Mon Sep 17 00:00:00 2001 From: duan Date: Mon, 8 Aug 2022 09:16:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/report):=20=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E4=BF=A1=E6=81=AF=E7=BB=9F=E8=AE=A1/=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=A2=91=E7=8E=87=20=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/icons/svg/手.svg | 2 ++ src/icons/svg/皇冠.svg | 2 ++ src/views/reagent/report/index.vue | 15 +++++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 src/icons/svg/手.svg create mode 100644 src/icons/svg/皇冠.svg diff --git a/src/icons/svg/手.svg b/src/icons/svg/手.svg new file mode 100644 index 0000000..617781a --- /dev/null +++ b/src/icons/svg/手.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/icons/svg/皇冠.svg b/src/icons/svg/皇冠.svg new file mode 100644 index 0000000..096f056 --- /dev/null +++ b/src/icons/svg/皇冠.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/views/reagent/report/index.vue b/src/views/reagent/report/index.vue index 0025792..94d0959 100644 --- a/src/views/reagent/report/index.vue +++ b/src/views/reagent/report/index.vue @@ -19,10 +19,10 @@
使用频率
-
5,037
-
合计使用频率(次)
-
已领用183次,归还180次
-
乙醇
+
{{ use_avg_info.avg_use_number }}
+
平均使用频率(次/种)
+
使用最高频试剂:{{ use_avg_info.max_name }}
+
单个试剂最高频次:已使用{{ use_avg_info.max_number }}次
@@ -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 })