Commit 7885fa96 by wangshuangqing

修改样式

parent 38a4f1ef
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
</li> </li>
</ul> --> </ul> -->
<el-table <!-- <el-table
:data="tableData1" :data="tableData1"
style="width: 100%; margin-bottom: 20px" style="width: 100%; margin-bottom: 20px"
header-row-style="height:100px" header-row-style="height:100px"
...@@ -205,15 +205,49 @@ ...@@ -205,15 +205,49 @@
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
@row-click="eowclick" @row-click="eowclick"
@expand-change='changeRowClick' @expand-change='changeRowClick'
> >
<el-table-column prop="iteM_TYPE" label="项目名称" width="100" header-align="center" align="center"> </el-table-column> <el-table-column prop="iteM_TYPE" label="项目名称" width="100" header-align="center" align="center"> </el-table-column>
<el-table-column prop="name" label="总金额(小计)" width="80" header-align="center" align="center"> </el-table-column> <el-table-column prop="name" label="总金额(小计)" width="80" header-align="center" align="center"> </el-table-column>
<el-table-column prop="address" label="占总费用(比例)" width="80" header-align="center" align="center"> </el-table-column> <el-table-column prop="address" label="占总费用(比例)" width="80" header-align="center" align="center"> </el-table-column>
<el-table-column prop="cc" label="预计DRG设定费用(参考)" header-align="center" align="center"> </el-table-column> <el-table-column prop="coreTotalFee" label="预计DRG设定费用(参考)" header-align="center" align="center"> </el-table-column>
<el-table-column prop="dd" label="设定费用比例(参考)" header-align="center" align="center"> </el-table-column> <el-table-column prop="dd" label="设定费用比例(参考)" header-align="center" align="center"> </el-table-column>
</el-table> -->
<el-table
ref="monthlyPlanTable"
:data="tableData1"
style="width: 100%; margin-bottom: 20px"
header-row-style="height:100px"
row-key="id"
:default-expand-all="false"
:highlight-current-row="true"
:tree-props="{ children: 'inpat_FeeDatas', hasChildren: 'hasChildren' }"
@row-click="eowclick"
@expand-change="changeRowClick"
>
<el-table-column prop="iteM_TYPE" label="项目名称" width="100" header-align="center" align="center"> </el-table-column>
<el-table-column prop="totalFee" label="总金额(小计)" width="80" header-align="center" align="center">
<template slot-scope="scope">
{{ decimal(scope.row.totalFee) }}
</template>
</el-table-column>
<el-table-column prop="proportion" label="占总费用(比例)" width="80" header-align="center" align="center">
<template slot-scope="scope" >
{{scope.row.proportion !=undefined?decimal(scope.row.proportion)+'%':''}}
</template>
</el-table-column>
<el-table-column prop="coreTotalFee" label="预计DRG设定费用(参考)" width="100" header-align="center" align="center">
<template slot-scope="scope" >
{{ decimal(scope.row.coreTotalFee)}}
</template>
</el-table-column>
<el-table-column prop="coreProportion" label="设定费用比例(参考)" header-align="center" align="center">
<template slot-scope="scope" >
{{ scope.row.coreProportion !=undefined? decimal(scope.row.coreProportion)+'%':''}}
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
<!-- 中间有数据样式 表格--> <!-- 中间有数据样式 表格-->
<div <div
...@@ -358,6 +392,7 @@ import { ...@@ -358,6 +392,7 @@ import {
onMounted, onMounted,
nextTick, nextTick,
computed, computed,
ref
} from "@vue/composition-api"; } from "@vue/composition-api";
import { decimal } from "../utils/decimal"; import { decimal } from "../utils/decimal";
...@@ -367,6 +402,7 @@ import { setItem, getItem } from "../utils/auth"; ...@@ -367,6 +402,7 @@ import { setItem, getItem } from "../utils/auth";
export default { export default {
name: "outpatientDetails", name: "outpatientDetails",
setup() { setup() {
const monthlyPlanTable=ref();
//表格颜色 //表格颜色
const tableRowClassName = ({ row }) => { const tableRowClassName = ({ row }) => {
if (row.rowIndex % 2 == 0) { if (row.rowIndex % 2 == 0) {
...@@ -378,10 +414,28 @@ export default { ...@@ -378,10 +414,28 @@ export default {
//当某一个行被点击时 //当某一个行被点击时
const eowclick=(row)=>{ const eowclick=(row)=>{
console.log('row',row); getInpatFeesByREGCODE(row)
}; };
//获取左侧表格数据
const getlefttable = () => {
http
.post(`/medical/Post/getHisStaChargeType?code=${route.value.query.id}`, {})
.then((data) => {
state.tableData1 = data;
if (state.tableData1 != []) {
eowclick(state.tableData1[0]);
//默认高亮第一行
nextTick(() => {
monthlyPlanTable.value.setCurrentRow(state.tableData1[0]);
});
}
//中间的表格默认展示第一条数据
})
.catch((error) => {});
};
//当行展开和关闭是触发 //当行展开和关闭是触发
const changeRowClick=(row)=>{ const changeRowClick=(row)=>{
console.log('row-chang',row); console.log('row-chang',row);
...@@ -545,69 +599,7 @@ export default { ...@@ -545,69 +599,7 @@ export default {
// state.checkindex = index; // state.checkindex = index;
}; };
let state = reactive({ let state = reactive({
tableData1: [ tableData1: [],
{
id: 1,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
},
{
id: 3,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '高 30%',
children: [
{
id: 31,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
},
{
id: 32,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
},
],
},
{
id: 4,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
children: [
{
id: 31,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
},
{
id: 32,
iteM_TYPE: '检查费',
name: '300',
address: '高 30%',
cc: '3000',
dd: '低 30%',
},
],
},
],
HistoryInfo: { HistoryInfo: {
name: "", name: "",
healthyID: "", healthyID: "",
...@@ -673,6 +665,7 @@ export default { ...@@ -673,6 +665,7 @@ export default {
onMounted(() => { onMounted(() => {
GetProjectRulesData(); GetProjectRulesData();
getHistoryInfo(); getHistoryInfo();
getlefttable();
}); });
return { return {
...@@ -689,7 +682,9 @@ export default { ...@@ -689,7 +682,9 @@ export default {
gettype, gettype,
getruleId, getruleId,
eowclick, eowclick,
changeRowClick changeRowClick,
getlefttable,
monthlyPlanTable
}; };
}, },
}; };
......
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