Commit 8150555a by wangshuangqing

Merge branch 'feature/修改' into develop

parents 670a906b 173bb4dc
......@@ -10,8 +10,10 @@
<div class="outpatientDetails">
<div class="outpatientDetails_top">
<div class="outpatientDetails_top_div1">
<span class="span1">患者信息</span>
<!-- <el-button size="mini" type="primary" @click="getControl">医嘱质控</el-button> -->
<span class="span1">患者信息</span>
<el-button class="outpatientDetails_top_div1_button" type="primary" size="mini" @click="getControl "
>医嘱质控</el-button
>
<!-- <el-button size="mini" type="primary">医嘱质控</el-button> -->
</div>
......@@ -40,14 +42,14 @@
医疗付费方式:<span>{{ HistoryInfo.paymentType }}</span>
</div>
</div>
<div class="outpatientDetails_top_message_low">
<span class="outpatientDetails_top_message_low_tu4"
<div class="outpatientDetails_top_message_low">
<span class="outpatientDetails_top_message_low_tu4"
><img src="../assets/img/daoru.png" alt=""
/></span>
<div class="outpatientDetails_top_message_low_t4">
分组类型:<span>{{ HistoryInfo.disNature }}</span>
</div>
</div>
<div class="outpatientDetails_top_message_low_t4">
分组类型:<span>{{ HistoryInfo.disNature }}</span>
</div>
</div>
</div>
</div>
<div class="outpatientDetails_msg">
......@@ -158,47 +160,85 @@
<div class="outpatientDetails_bottom" :style="{ height: bottomheight }">
<!-- 有数据 -->
<div
class="outpatientDetails_bottom_leftShowBox"
>
<div class="outpatientDetails_bottom_leftShowBox">
<div class="outpatientDetails_bottom_leftShowBox_left">
<el-table
ref="monthlyPlanTable"
:data="tableData1"
style="width: 100%;"
height='98%'
row-key="id"
<el-table
ref="monthlyPlanTable"
:data="tableData1"
style="width: 100%"
height="98%"
row-key="id"
size="small"
: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>
: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="110"
header-align="center"
align="left"
>
</el-table-column>
<el-table-column
prop="totalFee"
label="总金额(小计)"
width="80"
header-align="center"
align="right"
>
<template slot-scope="scope">
{{ decimal(scope.row.totalFee) }}
</template>
</el-table-column>
<el-table-column
prop="proportion"
label="占总费用(比例)"
width="90"
header-align="center"
align="right"
>
<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="right"
>
<template slot-scope="scope">
{{ decimal(scope.row.coreTotalFee) }}
</template>
</el-table-column>
<el-table-column
prop="coreProportion"
label="设定费用比例(参考)"
width="100"
header-align="center"
align="center"
>
<template slot-scope="scope">
{{
scope.row.coreProportion != undefined
? decimal(scope.row.coreProportion) + "%"
: ""
}}
</template>
</el-table-column>
</el-table>
</div>
<!-- 中间有数据样式 表格-->
<div
......@@ -212,7 +252,7 @@
style="width: 100%"
:default-sort="{ prop: 'date', order: 'descending' }"
:row-class-name="tableRowClassName"
height='98%'
height="98%"
>
<el-table-column
label="开单日期"
......@@ -274,11 +314,13 @@
<div class="outpatientDetails_bottom_rght2_top_mes">
<span
class="outpatientDetails_bottom_rght2_top_mes_span1"
:class="{ outpatientDetails_bottom_rght2_top_mes_span1background: ind == span1Ind }"
:class="{
outpatientDetails_bottom_rght2_top_mes_span1background:
ind == span1Ind,
}"
v-for="(item, ind) in typeCountDatas"
:key="ind"
@click="gettype(item.name,ind)"
@click="gettype(item.name, ind)"
>{{ item.name }}:<span :style="{ color: item.color }">{{
item.count
}}</span></span
......@@ -292,10 +334,12 @@
<div class="outpatientDetails_bottom_rght2_bottom">
<div
class="outpatientDetails_bottom_rght2_bottom_li"
:class="{outpatientDetails_bottom_rght2_bottom_liInd:ind==liInd}"
:class="{
outpatientDetails_bottom_rght2_bottom_liInd: ind == liInd,
}"
v-for="(item, ind) in options"
:key="ind"
@click="getruleId(item.ruleId,ind)"
@click="getruleId(item.ruleId, ind)"
>
<span
v-show="item.projectRuleLevel == '禁止'"
......@@ -343,7 +387,7 @@ import {
onMounted,
nextTick,
computed,
ref
ref,
} from "@vue/composition-api";
import { decimal } from "../utils/decimal";
......@@ -353,7 +397,7 @@ import { setItem, getItem } from "../utils/auth";
export default {
name: "outpatientDetails",
setup() {
const monthlyPlanTable=ref();
const monthlyPlanTable = ref();
//表格颜色
const tableRowClassName = ({ row }) => {
if (row.rowIndex % 2 == 0) {
......@@ -364,39 +408,35 @@ export default {
};
//当某一个行被点击时
const eowclick=(row)=>{
if(state.tableData1 !=[]){
getInpatFeesByREGCODE(row.types)
const eowclick = (row) => {
if (state.tableData1 != []) {
getInpatFeesByREGCODE(row.types);
}
};
};
//获取左侧表格数据
const getlefttable = () => {
http
.post(`/medical/Post/getHisStaChargeType?code=${route.value.query.id}`, {})
.then((data) => {
state.tableData1 = data;
if (state.tableData1 != []) {
eowclick(state.tableData1[0]);
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)=>{
console.log('row-chang',row);
};
nextTick(() => {
monthlyPlanTable.value.setCurrentRow(state.tableData1[0]);
});
}
//中间的表格默认展示第一条数据
})
.catch((error) => {});
};
//当行展开和关闭是触发
const changeRowClick = (row) => {
console.log("row-chang", row);
};
//异常问题接口 显示全部异常信息
const GetProjectRulesData = () => {
......@@ -414,49 +454,45 @@ export default {
})
.catch((error) => {});
};
//点击异常分类 显示异常信息
const gettype=(name,ind)=>{
console.log('name',name);
state.showCountDatas = true;
state.showbottom = true;
//点击异常分类 显示异常信息
const gettype = (name, ind) => {
console.log("name", name);
state.showCountDatas = true;
state.showbottom = true;
http
.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`, {})
.then((data) => {
state.liInd=-1;
state.span1Ind=ind;
state.options = data.projectRules;
// state.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// state.showCountDatas = false;
// }
if (data.projectRules == null) {
state.showbottom = false;
}
})
.catch((error) => {
});
};
//点击获取中间的表格数据
const getruleId=(ruleId,ind)=>{
http
.post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {})
.then((data) => {
state.liInd=ind;
state.tableData = data;
})
.catch((error) => {
});
};
http
.post(
`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`,
{}
)
.then((data) => {
state.liInd = -1;
state.span1Ind = ind;
state.options = data.projectRules;
// state.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// state.showCountDatas = false;
// }
if (data.projectRules == null) {
state.showbottom = false;
}
})
.catch((error) => {});
};
//点击获取中间的表格数据
const getruleId = (ruleId, ind) => {
http
.post(
`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`,
{}
)
.then((data) => {
state.liInd = ind;
state.tableData = data;
})
.catch((error) => {});
};
//医嘱质控
const getControl = () => {
......@@ -524,8 +560,6 @@ export default {
} else if (data.lowMagnification != 0) {
state.bottomheight = "70%";
}
})
.catch((error) => {});
};
......@@ -542,17 +576,17 @@ export default {
})
.catch((error) => {});
};
const scrollToFoods = (index) => {
// state.checkindex = index;
};
let state = reactive({
tableData1: [],
tableData1: [],
HistoryInfo: {
name: "",
healthyID: "",
paymentType: "",
disNature:'',
disNature: "",
doctorName: "",
rw: "",
totalFee: "",
......@@ -605,7 +639,7 @@ export default {
highMagnification: 0, //高倍率值
bottomheight: "60%", //底部高度
span1Ind: -1,
liInd: -1,
liInd: -1,
});
//表格自适应高度
const route = useRoute();
......@@ -629,34 +663,30 @@ export default {
gettype,
getruleId,
eowclick,
changeRowClick,
changeRowClick,
getlefttable,
monthlyPlanTable
monthlyPlanTable,
};
},
};
</script>
<style lang="scss" scoped>
@import "../styles/mixin.scss";
@import '../styles/media/components/outpatientDetails.scss';
@import "../styles/media/components/outpatientDetails.scss";
// 左侧表格点击高亮背景色
::v-deep .el-table__body tr.current-row > td {
background-color: #ffff !important;
}
// 点击文本颜色
::v-deep .current-row{
color: #55a6da !important;
::v-deep .current-row {
color: #55a6da !important;
}
// 点击icon颜色
::v-deep .current-row .el-table__expand-icon{
color: #55a6da !important;
::v-deep .current-row .el-table__expand-icon {
color: #55a6da !important;
}
.outpatientDetails {
// height: calc(100% - 50px);
// background-color: white;
......@@ -682,6 +712,10 @@ color: #55a6da !important;
font-family: PingFang SC;
font-weight: 400;
}
&_button{
background-color: #2cabe3;
color: #fff;
}
}
&_message {
......@@ -763,7 +797,7 @@ color: #55a6da !important;
align-items: center;
background-color: #f3fafd;
font-family: PingFang SC;
&_tu3 {
padding-left: 29px;
font-size: 23px;
......@@ -784,7 +818,7 @@ color: #55a6da !important;
}
}
}
&_low {
&_low {
width: 25%;
height: 51px;
display: flex;
......@@ -792,7 +826,7 @@ color: #55a6da !important;
align-items: center;
background-color: #f3fafd;
font-family: PingFang SC;
&_tu4 {
padding-left: 29px;
font-size: 23px;
......@@ -831,79 +865,79 @@ color: #55a6da !important;
padding-left: 29px;
font-size: 23px;
}
span:nth-child(2) {
margin-left: 21px;
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(3) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(4) {
width: 258px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(5) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(6) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(n + 7) {
width: 258px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(2) {
margin-left: 21px;
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(3) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(4) {
width: 258px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(5) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(6) {
width: 200px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(n + 7) {
width: 258px;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
margin-right: 5px;
}
span:nth-child(n + 7) {
margin-right: 5px;
}
......@@ -976,8 +1010,8 @@ color: #55a6da !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
text-align: center;
padding-top: 10px;
}
&_t1:hover {
width: 90%;
......@@ -1002,8 +1036,8 @@ color: #55a6da !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
text-align: center;
padding-top: 10px;
}
&_t2:hover {
width: 90%;
......@@ -1027,10 +1061,9 @@ color: #55a6da !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
text-align: center;
padding-top: 10px;
}
&_t3:hover {
width: 90%;
......@@ -1178,7 +1211,7 @@ color: #55a6da !important;
margin-bottom: 21px;
font-size: 13px;
color: #6a707e;
cursor: pointer;/*鼠标移上有小手*/
cursor: pointer; /*鼠标移上有小手*/
div {
width: 98%;
height: 46px;
......@@ -1269,7 +1302,7 @@ color: #55a6da !important;
width: 20%;
height: 100%;
border: 1px solid #f6f6f8;
padding:0 10px;
padding: 0 10px;
&_top {
height: 20%;
width: 100%;
......@@ -1304,11 +1337,11 @@ color: #55a6da !important;
font-weight: 400;
color: #5d5d5d;
// margin-right: 5px;
cursor: pointer;/*鼠标移上有小手*/
cursor: pointer; /*鼠标移上有小手*/
}
&_span1background {
background: #d9f0fa;
}
&_span1background{
background: #d9f0fa;
}
&_span2 {
width: 101px;
height: 36px;
......@@ -1357,7 +1390,7 @@ color: #55a6da !important;
&_li {
width: 100%;
height: 25%;
cursor: pointer;/*鼠标移上有小手*/
cursor: pointer; /*鼠标移上有小手*/
display: flex;
flex-direction: column;
align-items: flex-start;
......@@ -1386,9 +1419,9 @@ color: #55a6da !important;
width: 97%;
}
}
&_liInd{
background: #f3fafd;
}
&_liInd {
background: #f3fafd;
}
}
}
}
......
......@@ -9,9 +9,9 @@
<!-- 查看质控 -->
<div class="outseeQualityControl">
<div class="outseeQualityControl_box">
<!-- <div class="outseeQualityControl_box_btn">
<el-button size="mini" type="primary" @click="getSynchronous">同步数据</el-button>
</div> -->
<div class="outseeQualityControl_box_btn">
<el-button class="outseeQualityControl_box_btn_button" size="mini" type="primary" @click="getSynchronous">同步数据</el-button>
</div>
<div class="outseeQualityControl_box_header">
<div class="outseeQualityControl_box_header_text"></div>
</div>
......@@ -389,8 +389,12 @@ export default {
&_btn {
width: 100%;
display: flex;
justify-content: end;
justify-content: flex-end;
margin-bottom: 10px;
&_button{
background-color: #2cabe3;
color: #fff;
}
}
&_header {
......
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