Commit 831e91da by 唐玉峰

.

parent 1bef3162
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
</div> </div>
</div> </div>
<div class="table flex-1 mar-top-15"> <div class="table flex-1 mar-top-15">
<el-table border ref="tableRef" height="93%" :data="tableData" size="mini" :highlight-current-row="true"> <el-table border ref="tableRef" height="93%" :data="tableData" size="mini" :highlight-current-row="true" :cell-class-name="cellName">
<el-table-column align="center" type="index" width="50" fixed="left"></el-table-column> <el-table-column align="center" type="index" width="50" fixed="left"></el-table-column>
<el-table-column label="同步更新" align="center" min-width="80" show-overflow-tooltip fixed="left"> <el-table-column label="同步更新" align="center" min-width="80" show-overflow-tooltip fixed="left">
<template #default="scope"> <template #default="scope">
...@@ -263,7 +263,29 @@ ...@@ -263,7 +263,29 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="dis_type" label="病例类型" sortable align="center" min-width="120" show-overflow-tooltip></el-table-column> <el-table-column prop="dis_type" label="病例类型" sortable align="center" min-width="120" show-overflow-tooltip></el-table-column>
<el-table-column prop="county_Medicine_Fee" label="县级药品费用" sortable align="center" min-width="120" show-overflow-tooltip>
<template #default="scope">
<span>{{ decimal(scope.row.county_Medicine_Fee) }}</span>
</template>
</el-table-column>
<el-table-column prop="medicine_Fee" label="药品费用" sortable align="center" min-width="120" show-overflow-tooltip>
<template #default="scope">
<span>{{ decimal(scope.row.medicine_Fee) }}</span>
</template>
</el-table-column>
<el-table-column prop="drug_proportion" label="药品" sortable align="center" min-width="120" show-overflow-tooltip> </el-table-column> <el-table-column prop="drug_proportion" label="药品" sortable align="center" min-width="120" show-overflow-tooltip> </el-table-column>
<el-table-column
prop="county_Material_Fee"
label="县级耗材费用"
sortable
align="center"
min-width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column prop="material_Fee" label="耗材费用" sortable align="center" min-width="120" show-overflow-tooltip></el-table-column>
<el-table-column prop="consumables_proportion" label="耗材" sortable align="center" min-width="120" show-overflow-tooltip></el-table-column> <el-table-column prop="consumables_proportion" label="耗材" sortable align="center" min-width="120" show-overflow-tooltip></el-table-column>
<el-table-column prop="laboratory_proportion" label="检验检查" sortable align="center" min-width="120" show-overflow-tooltip> <el-table-column prop="laboratory_proportion" label="检验检查" sortable align="center" min-width="120" show-overflow-tooltip>
</el-table-column> </el-table-column>
...@@ -373,6 +395,16 @@ export default { ...@@ -373,6 +395,16 @@ export default {
return false; return false;
} }
}, },
cellName({ row, column, rowIndex, columnIndex }) {
if (row.medicine_Fee > row.county_Medicine_Fee && columnIndex == 26) {
return "medicine";
}
if (row.material_Fee > row.county_Material_Fee && columnIndex == 29) {
return "medicine";
}
},
downLoad() { downLoad() {
let parmar = { let parmar = {
pageNumber: this.pageNumber, pageNumber: this.pageNumber,
...@@ -521,5 +553,9 @@ export default { ...@@ -521,5 +553,9 @@ export default {
color: #333; color: #333;
} }
} }
.medicine {
background: #f56c6c;
color: #333;
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment