|
|
@@ -190,15 +190,19 @@
|
|
|
|
|
|
// 点击表格中数字
|
|
|
async function handleDetail(record) {
|
|
|
- const params = {
|
|
|
- statsTime: patrolTime.value,
|
|
|
- makers: record.type,
|
|
|
- };
|
|
|
- const res = await getSuppliesTypeStats(params); // 请求药品统计接口
|
|
|
- detailName.value = record.type;
|
|
|
- await setDetailTableData(res.data);
|
|
|
+ if (record) {
|
|
|
+ const params = {
|
|
|
+ statsTime: patrolTime.value,
|
|
|
+ makers: record.type,
|
|
|
+ };
|
|
|
+ const res = await getSuppliesTypeStats(params); // 请求药品统计接口
|
|
|
+ detailName.value = record.type;
|
|
|
+ await setDetailTableData(res.data);
|
|
|
+ } else {
|
|
|
+ await setDetailTableData([]);
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+ // 合计行加载方法
|
|
|
function handleSummary(tableData: any[]) {
|
|
|
console.log(tableData);
|
|
|
let totalT5 = 0;
|
|
|
@@ -209,7 +213,7 @@
|
|
|
});
|
|
|
return [
|
|
|
{
|
|
|
- type: '总计',
|
|
|
+ type: '合计',
|
|
|
sum: totalT5,
|
|
|
proportion: totalT6 + '%',
|
|
|
},
|
|
|
@@ -241,6 +245,8 @@
|
|
|
|
|
|
.ant-table-tbody {
|
|
|
background-color: #f6f8fa !important;
|
|
|
+ font-weight: 600 !important;
|
|
|
+ color: #000a18 !important;
|
|
|
}
|
|
|
}
|
|
|
</style>
|