feat(src/views/reagent/report): 库存信息统计/使用频率 数据接入

duizhaopin_ui
duan 2 years ago
parent 054012dcaf
commit 939761b793

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1659921134468" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="30326" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M564.214521 1023.985486c-67.195393 0-179.277308-33.866478-263.137158-58.863164-26.878157-8.063447-48.918246-14.782986-66.120267-19.352274C166.686577 927.492902 25.845033 941.469543 24.501125 941.738325l-5.375631-53.756314c6.181976 0 151.324025-15.051768 229.539462 5.375631 17.470802 4.838068 41.12358 11.826389 68.001738 19.889836 80.634471 24.459123 203.46765 61.013417 257.223964 56.44413 65.04514-5.913195 322.537886-167.988482 370.918569-206.155465a72.033461 72.033461 0 0 0 16.395676-65.04514c-59.131946 14.245423-245.935138 76.065185-376.294201 121.220488l-9.138573 3.225379-8.869792-3.225379c-38.973328-13.976642-145.41083-51.068499-167.988482-56.175348a26.878157 26.878157 0 0 1-26.878158-31.716226l4.300506-26.878157 32.253788 5.375632a720.603394 720.603394 0 0 1 165.83823 45.692867c1.881471 0 4.569287 0 8.332229-4.569287a47.036775 47.036775 0 0 0 6.98832-52.412406c-15.32055-20.696181-70.689553-48.918246-111.27557-69.883209a584.062355 584.062355 0 0 1-69.883209-38.973328c-89.504263-65.313922-164.763103-93.267205-201.048615-74.721277a1436.906282 1436.906282 0 0 0-169.869954 112.88826L5.417634 585.602742a1483.943057 1483.943057 0 0 1 178.470963-118.263891c72.302243-36.285512 179.54609 23.115215 256.955183 79.290564a578.417942 578.417942 0 0 0 63.970014 35.747949c53.756314 26.878157 107.512629 53.756314 129.821499 85.472539a89.773045 89.773045 0 0 1 12.901515 73.646151c333.289149-113.963386 340.008688-105.631158 352.372641-88.429137a129.552718 129.552718 0 0 1 14.514205 82.515942 103.212124 103.212124 0 0 1-37.62942 70.689554c-29.565973 22.846434-309.905152 209.112063-398.871853 217.17551a126.327339 126.327339 0 0 1-13.70786 0.537563zM758.006034 653.066917a116.113639 116.113639 0 1 1 111.544353-115.844857A113.694605 113.694605 0 0 1 758.006034 653.066917z m0-178.202182a62.357325 62.357325 0 1 0 57.788038 62.357325A60.207072 60.207072 0 0 0 758.006034 474.864735z m-229.27068 9.676136a127.940028 127.940028 0 0 1-125.520994-130.359062 125.520994 125.520994 0 1 1 250.773206 0 127.940028 127.940028 0 0 1-125.789775 130.359062z m0-206.693028a74.183714 74.183714 0 0 0-71.76468 76.333966 74.452495 74.452495 0 0 0 71.76468 76.602748 74.452495 74.452495 0 0 0 71.495898-76.602748 74.183714 74.183714 0 0 0-72.033461-76.333966z m254.536148 9.676136a139.766417 139.766417 0 0 1-136.80982-142.454233A136.80982 136.80982 0 1 1 919.274977 145.069746a139.766417 139.766417 0 0 1-136.541038 142.454233z m0-231.152151a86.010103 86.010103 0 0 0-83.053506 88.697918 83.053506 83.053506 0 1 0 165.300667 0A86.010103 86.010103 0 0 0 782.733939 56.371828z" p-id="30327"></path></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1659920691190" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2310" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }
</style></defs><path d="M968.533333 358.4c-8.533333-4.266667-19.2-2.133333-25.6 6.4l-108.8 130.133333-55.466666-100.266666c-4.266667-6.4-8.533333-10.666667-17.066667-10.666667-6.4 0-12.8 2.133333-19.2 6.4l-64 70.4-87.466667-164.266667 38.4-23.466666c6.4-4.266667 10.666667-10.666667 10.666667-19.2V128c0-8.533333-4.266667-14.933333-10.666667-19.2l-106.666666-64c-6.4-4.266667-14.933333-4.266667-21.333334 0l-106.666666 64c-6.4 4.266667-10.666667 10.666667-10.666667 19.2v128c0 8.533333 4.266667 14.933333 10.666667 19.2l38.4 23.466667-87.466667 164.266666-61.866667-70.4c-6.4-6.4-12.8-8.533333-19.2-8.533333-6.4 0-12.8 4.266667-17.066666 10.666667l-57.6 100.266666L81.066667 362.666667c-6.4-8.533333-17.066667-10.666667-25.6-6.4-8.533333 6.4-14.933333 14.933333-12.8 25.6L138.666667 853.333333l-21.333334 102.4c-2.133333 6.4 0 12.8 4.266667 17.066667 4.266667 6.4 10.666667 8.533333 17.066667 8.533333h744.533333c6.4 0 12.8-2.133333 17.066667-8.533333 4.266667-4.266667 6.4-10.666667 4.266666-17.066667l-19.2-102.4L981.333333 381.866667c2.133333-8.533333-4.266667-19.2-12.8-23.466667z m-211.2 83.2l49.066667 87.466667-55.466667 64-49.066666-91.733334 55.466666-59.733333zM426.666667 243.2V140.8l85.333333-51.2 85.333333 51.2v104.533333l-85.333333 51.2-85.333333-53.333333z m-155.733334 198.4l53.333334 59.733333-49.066667 91.733334-53.333333-64 49.066666-87.466667zM164.266667 938.666667l8.533333-42.666667h676.266667l8.533333 42.666667H164.266667z m678.4-89.6v4.266666h-661.333334v-4.266666L102.4 454.4l160 189.866667c4.266667 6.4 10.666667 8.533333 19.2 8.533333 6.4 0 12.8-4.266667 17.066667-10.666667l170.666666-324.266666 32 19.2c2.133333 4.266667 6.4 4.266667 10.666667 4.266666s8.533333 0 10.666667-2.133333L554.666667 320l172.8 322.133333c4.266667 6.4 8.533333 10.666667 17.066666 10.666667 6.4 0 14.933333-2.133333 19.2-8.533333l160-189.866667-81.066666 394.666667zM490.666667 746.666667h42.666666v-106.666667h-42.666666v106.666667z" p-id="2311"></path></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -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
})

Loading…
Cancel
Save