Commit 535b9496 by 唐玉峰

.

parent 85683bbb
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
@media screen and (min-width: 1366px) and(max-width:1440px) { @media screen and (min-width: 1366px) and (max-width:1440px) {
#medicalRecord { #medicalRecord {
font-size: 12px !important; font-size: 12px !important;
......
...@@ -463,7 +463,7 @@ ...@@ -463,7 +463,7 @@
// 1366px // 1366px
@media screen and (min-width: 1366px) and(max-width:1439px) { @media screen and (min-width: 1366px) and (max-width:1439px) {
.outpatientDetails { .outpatientDetails {
&_top { &_top {
...@@ -679,7 +679,7 @@ ...@@ -679,7 +679,7 @@
} }
//1400 //1400
@media screen and (min-width: 1440px) and(max-width:1599px) { @media screen and (min-width: 1440px) and (max-width:1599px) {
.outpatientDetails { .outpatientDetails {
&_bottom { &_bottom {
...@@ -701,7 +701,7 @@ ...@@ -701,7 +701,7 @@
} }
//1600 //1600
@media screen and (min-width: 1600px) and(max-width:1919px) { @media screen and (min-width: 1600px) and (max-width:1919px) {
.outpatientDetails { .outpatientDetails {
&_top { &_top {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-05-16 18:45:49 * @LastEditTime: 2022-07-22 10:09:29
* @Description: * @Description:
--> -->
<template> <template>
...@@ -11,111 +11,225 @@ ...@@ -11,111 +11,225 @@
<div class="outpatientDetails_top"> <div class="outpatientDetails_top">
<div class="outpatientDetails_top_div1"> <div class="outpatientDetails_top_div1">
<span class="span1">患者信息</span> <span class="span1">患者信息</span>
<!-- <el-button size="mini" type="primary" @click="getControl">医嘱质控</el-button> --> <div>
<!-- <el-button size="mini" type="primary">医嘱质控</el-button> --> <el-button size="mini" type="primary" class="outpatientDetails_top_div1_button" @click="topage"> 病案质控</el-button>
<el-button class="outpatientDetails_top_div1_button" type="primary" size="mini" @click="getControl">医嘱质控</el-button>
</div>
</div> </div>
<div class="outpatientDetails_top_message"> <div class="outpatientDetails_top_message">
<div class="outpatientDetails_top_message_left" style="width: 12%">
<span class="outpatientDetails_top_message_left_tu1"> <img src="../assets/img/peo.png" alt="" /></span>
<div class="outpatientDetails_top_message_left_t1">
住院号:<span>{{ HistoryInfo.name }}</span>
</div>
</div>
<div class="outpatientDetails_top_message_left"> <div class="outpatientDetails_top_message_left">
<span class="outpatientDetails_top_message_left_tu1"> <img src="../assets/img/peo.png" alt="" /></span> <span class="outpatientDetails_top_message_left_tu1"> <img src="../assets/img/peo.png" alt="" /></span>
<div class="outpatientDetails_top_message_left_t1"> <div class="outpatientDetails_top_message_left_t1">
住院号:<span>{{ HistoryInfo.id }}</span> 住院号:<span>{{ HistoryInfo.id }}</span>
</div> </div>
</div> </div>
<div class="outpatientDetails_top_message_centert"> <div class="outpatientDetails_top_message_centert" style="width: 12%">
<span class="outpatientDetails_top_message_centert_tu2"><img src="../assets/img/ka.png" alt="" /></span> <span class="outpatientDetails_top_message_centert_tu2"><img src="../assets/img/ka.png" alt="" /></span>
<div class="outpatientDetails_top_message_centert_t2"> <div class="outpatientDetails_top_message_centert_t2">
住院次数:<span>{{ HistoryInfo.a49 }}</span> 住院次数:<span>{{ HistoryInfo.a49 }}</span>
</div> </div>
</div> </div>
<div class="outpatientDetails_top_message_centert" style="width: 14%">
<span class="outpatientDetails_top_message_centert_tu2"><img src="../assets/img/ka.png" alt="" /></span>
<div class="outpatientDetails_top_message_centert_t2">
实际住院天数:<span>{{ HistoryInfo.b20 }}</span>
</div>
</div>
<div class="outpatientDetails_top_message_right"> <div class="outpatientDetails_top_message_right">
<span class="outpatientDetails_top_message_right_tu3"><img src="../assets/img/qian.png" alt="" /></span> <span class="outpatientDetails_top_message_right_tu3"><img src="../assets/img/qian.png" alt="" /></span>
<div class="outpatientDetails_top_message_right_t3"> <div class="outpatientDetails_top_message_right_t3">
医疗付费方式:<span>{{ HistoryInfo.paymentType }}</span> 医疗付费方式:<span>{{ HistoryInfo.paymentType }}</span>
</div> </div>
</div> </div>
<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_div6">
<span class="outpatientDetails_top_message_div6_tu6"><img src="../assets/img/lx2.png" alt="" /></span>
<div class="outpatientDetails_top_message_div6_t6">
病人类型:<span>{{ HistoryInfo.patientType }}</span>
</div>
</div>
<div class="outpatientDetails_top_message_div5">
<span class="outpatientDetails_top_message_div5_tu5"><img src="../assets/img/je.png" alt="" /></span>
<div class="outpatientDetails_top_message_div5_t5">
自费占比:<span>{{ HistoryInfo.ownProportion != undefined ? decimal(HistoryInfo.ownProportion) + "%" : "" }}</span>
</div>
</div>
</div> </div>
</div> </div>
<div class="outpatientDetails_msg"> <div class="outpatientDetails_msg">
<span class="outpatientDetails_msg_tu4"><img src="../assets/img/zu.png" alt="" /></span> <span class="outpatientDetails_msg_tu4"><img src="../assets/img/zu.png" alt="" /></span>
<span>分组:{{ HistoryInfo.doctorName }}</span> <span>分组编码:{{ HistoryInfo.coreCode }}</span>
<span>权重:{{ decimal(HistoryInfo.rw) }}</span> <span :title="HistoryInfo.coreName">分组名称:{{ HistoryInfo.coreName }}</span>
<span>实际医保费用:{{ decimal(HistoryInfo.actualfee) }}</span> <span>病种分值:{{ decimal(HistoryInfo.rw) }}</span>
<span>预计DRG支付费用:{{ decimal(HistoryInfo.actualfee) }}</span>
<span>总费用:{{ decimal(HistoryInfo.totalFee) }}</span> <span>总费用:{{ decimal(HistoryInfo.totalFee) }}</span>
<span>盈亏:{{ decimal(HistoryInfo.profitLoss) }}</span> <span>预计盈亏:{{ decimal(HistoryInfo.profitLoss) }}</span>
<span>院内历年平均费用:{{ decimal(HistoryInfo.avgFee) }}</span> <!-- <span>院内历年平均费用:{{ decimal(HistoryInfo.avgFee) }}</span>
<span>院内历年平均住院天数:{{ decimal(HistoryInfo.days) }}</span> <span>院内历年平均住院天数:{{ decimal(HistoryInfo.days) }}</span> -->
</div> </div>
<div class="outpatientDetails_title"> <div class="outpatientDetails_fenqu" v-if="lowMagnification != 0 && highMagnification != 0">
<span>费用分类</span> <div class="outpatientDetails_fenqu_di">
<div class="outpatientDetails_fenqu_di_bb">
<div class="outpatientDetails_fenqu_di_bb_div1">
<span class="outpatientDetails_fenqu_di_bb_div1_num" :style="{ marginLeft: totalwidth - 1 + '%', color: totalcolor }">{{
decimal(HistoryInfo.totalFee)
}}</span>
<span
class="outpatientDetails_fenqu_di_bb_div1_he"
:style="{
marginLeft: totalwidth + '%',
backgroundColor: totalcolor,
}"
></span>
</div> </div>
<div class="outpatientDetails_fenqu_di_bb_div2">
<div class="outpatientDetails_bottom"> <span class="outpatientDetails_fenqu_di_bb_div2_span1" :style="{ width: lowwidth + '%' }"
<!-- 有数据 --> ><span class="outpatientDetails_fenqu_di_bb_div2_span1_t1" :title="'低倍率区域:&lt;=' + Math.round(lowMagnification)"
<div class="outpatientDetails_bottom_leftShowBox" v-if="goods.length !== 0"> >低倍率区域:&lt;={{ Math.round(lowMagnification) }}</span
<div class="outpatientDetails_bottom_leftShowBox_left"> ></span
<ul class="outpatientDetails_bottom_leftShowBox_left_ul">
<li v-for="(item, index) in goods" :key="index">
<div
@click="
toggle(index, item);
scrollToFoods(index);
"
:class="{ active: index == checkindex }"
> >
<span :class="{ fc2: index == checkindex }" class="sp1"> <span class="outpatientDetails_fenqu_di_bb_div2_span2" :style="{ width: contentwidth + '%' }"
<span v-show="index == checkindex" style="color: #fff" class="iconfont icon-jiantou1"></span> ><span
{{ item.iteM_TYPE }}:{{ decimal(item.totalFee) }}</span class="outpatientDetails_fenqu_di_bb_div2_span2_t2"
:title="'正常区域:' + (Math.round(lowMagnification) + 1) + '~' + (Math.round(highMagnification) - 1)"
>正常区域:{{ Math.round(lowMagnification) + 1 + "~" + (Math.round(highMagnification) - 1) }}</span
></span
> >
<span :class="{ fc3: index == checkindex }" class="sp2">
<span class="sp2_avg"> <span class="outpatientDetails_fenqu_di_bb_div2_span3" :style="{ width: heightwidth + '%' }"
平均: ><span class="outpatientDetails_fenqu_di_bb_div2_span3_t3" :title="'高倍率区域:>=' + Math.round(highMagnification)"
{{ decimal(item.avgFee) }} >高倍率区域:>={{ Math.round(highMagnification) }}</span
</span> ></span
<!-- <span class="sp2_reto" v-ratio="[item.proportion / 100, item.proportion / 100, `${index == checkindex ? '#fff' : '#6a707e'}`]"> >
</span> --> </div>
<span class="sp2_reto" v-if="item.proportion <= 0"> <!-- <div class="outpatientDetails_fenqu_di_bb_div3">
{{ decimal(item.proportion * -1) + "%" }} <span class="outpatientDetails_fenqu_di_bb_div3_span1" :style="{ width: lowwidth + '%' }"> 0 </span>
<img style="width: 4px; height: 12px; margin-left: 5px" src="../assets/img/dataCockpit/lvse_zuo.png" /> <span class="outpatientDetails_fenqu_di_bb_div3_span2" :style="{ width: contentwidth + '%' }">
</span> {{ Math.round(lowMagnification) }}
<span class="sp2_reto" v-else>
{{ decimal(item.proportion) + "%" }}
<img style="width: 4px; height: 12px; margin-left: 5px" src="../assets/img/dataCockpit/hongse_you.png" />
</span> </span>
<span class="outpatientDetails_fenqu_di_bb_div3_span3" :style="{ width: heightwidth + '%' }">
<span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm1">{{ Math.round(highMagnification) }}</span>
<span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm2">{{ Math.round(heightnum) }}</span>
</span> </span>
</div> -->
</div>
</div> </div>
</li> </div>
</ul>
<!-- <div class="outpatientDetails_title">
<span>费用分类</span>
</div> -->
<div class="outpatientDetails_bottom" :style="{ height: bottomheight }">
<!-- 有数据 -->
<div class="outpatientDetails_bottom_leftShowBox">
<div class="outpatientDetails_bottom_leftShowBox_left">
<div class="outpatientDetails_bottom_leftShowBox_left_btbox">费用分类</div>
<el-table
ref="monthlyPlanTable"
:data="tableData1"
style="width: 100%"
height="94%"
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="110" header-align="center" align="center"> </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>
<!-- 中间有数据样式 表格--> <!-- 中间有数据样式 表格-->
<div class="outpatientDetails_bottom_leftShowBox_right" v-if="tableData.length !== 0"> <div class="outpatientDetails_bottom_leftShowBox_right" v-if="tableData.length !== 0">
<div class="outpatientDetails_bottom_leftShowBox_right_treebtn">
<span
v-for="(item, ind) in btnoptions"
:key="ind"
class="outpatientDetails_bottom_leftShowBox_right_treebtn_span"
:class="{
outpatientDetails_bottom_leftShowBox_right_treebtn_span1: ind == btnspanind,
}"
@click="treebtn(item.value, ind)"
>{{ item.title }}</span
>
</div>
<el-table <el-table
:data="tableData" :data="tableData"
border border
size="medium" size="medium"
style="width: 100%" style="width: 98%; margin: 0 10px"
:default-sort="{ prop: 'date', order: 'descending' }" :default-sort="{ prop: 'date', order: 'descending' }"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
height="575" height="92%"
> >
<el-table-column label="开单日期" prop="iteM_CODE"></el-table-column> <el-table-column label="开单日期" prop="chargeTime"></el-table-column>
<el-table-column label="项目编码" prop="chargeTime"></el-table-column> <el-table-column label="项目编码" prop="iteM_CODE"></el-table-column>
<el-table-column label="项目名称" prop="iteM_NAME"></el-table-column> <el-table-column label="项目名称" prop="iteM_NAME"></el-table-column>
<el-table-column label="单价" prop="unitprice"> <el-table-column label="单价" prop="unitprice">
<template slot-scope="scope"> <template slot-scope="scope">
{{ decimal(scope.row.fee) }} {{ decimal(scope.row.unitprice) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" prop="quantity"></el-table-column> <el-table-column label="数量" prop="quantity"></el-table-column>
<el-table-column label="金额" prop="fee"> <el-table-column label="金额" prop="fee">
<template slot-scope="scope"> <template slot-scope="scope">
{{ decimal(scope.row.unitprice) }} {{ decimal(scope.row.fee) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="支付类型" prop="carD_TYPE"></el-table-column>
</el-table> </el-table>
</div> </div>
<!-- 中间表格无数据 --> <!-- 中间表格无数据 -->
<div class="outpatientDetails_bottom_leftShowBox_right" v-else> <div class="outpatientDetails_bottom_leftShowBox_right" v-else>
<div class="outpatientDetails_bottom_leftShowBox_right_treebtn">
<span
v-for="(item, ind) in btnoptions"
:key="ind"
class="outpatientDetails_bottom_leftShowBox_right_treebtn_span"
:class="{
outpatientDetails_bottom_leftShowBox_right_treebtn_span1: ind == btnspanind,
}"
@click="treebtn(item.value, ind)"
>{{ item.title }}</span
>
</div>
<div class="outpatientDetails_bottom_leftShowBox_right_box"> <div class="outpatientDetails_bottom_leftShowBox_right_box">
<img class="outpatientDetails_bottom_leftShowBox_right_box_img" src="../assets/img/nodata.png" alt="" /> <img class="outpatientDetails_bottom_leftShowBox_right_box_img" src="../assets/img/nodata.png" alt="" />
<div class="outpatientDetails_bottom_leftShowBox_right_box_text">暂无数据</div> <div class="outpatientDetails_bottom_leftShowBox_right_box_text">暂无数据</div>
...@@ -124,18 +238,31 @@ ...@@ -124,18 +238,31 @@
</div> </div>
<!-- 表格无数据样式 --> <!-- 表格无数据样式 -->
<div class="outpatientDetails_bottom_leftShowBox" v-else> <!-- <div class="outpatientDetails_bottom_leftShowBox" v-else>
<div class="outpatientDetails_bottom_leftShowBox_box"> <div class="outpatientDetails_bottom_leftShowBox_box">
<img class="outpatientDetails_bottom_leftShowBox_box_img" src="../assets/img/nodata.png" alt="" /> <img
<div class="outpatientDetails_bottom_leftShowBox_box_text">暂无数据</div> class="outpatientDetails_bottom_leftShowBox_box_img"
src="../assets/img/nodata.png"
alt=""
/>
<div class="outpatientDetails_bottom_leftShowBox_box_text">
暂无数据
</div> </div>
</div> </div>
</div> -->
<!-- 右侧有数据 --> <!-- 右侧有数据 -->
<div class="outpatientDetails_bottom_rght2"> <div class="outpatientDetails_bottom_rght2">
<div class="outpatientDetails_bottom_rght2_top"> <div class="outpatientDetails_bottom_rght2_top">
<div class="outpatientDetails_bottom_rght2_top_title">异常问题</div> <div class="outpatientDetails_bottom_rght2_top_title">异常问题</div>
<div class="outpatientDetails_bottom_rght2_top_mes"> <div class="outpatientDetails_bottom_rght2_top_mes">
<span class="outpatientDetails_bottom_rght2_top_mes_span1" v-for="(item, ind) in typeCountDatas" :key="ind" <span
class="outpatientDetails_bottom_rght2_top_mes_span1"
:class="{
outpatientDetails_bottom_rght2_top_mes_span1background: ind == span1Ind,
}"
v-for="(item, ind) in typeCountDatas"
:key="ind"
@click="gettype(item.name, ind)"
>{{ item.name }}:<span :style="{ color: item.color }">{{ item.count }}</span></span >{{ item.name }}:<span :style="{ color: item.color }">{{ item.count }}</span></span
> >
<!-- <span class="outpatientDetails_bottom_rght2_top_mes_span2">检查:<span style="color: #3ad330">0</span></span> <!-- <span class="outpatientDetails_bottom_rght2_top_mes_span2">检查:<span style="color: #3ad330">0</span></span>
...@@ -145,7 +272,15 @@ ...@@ -145,7 +272,15 @@
</div> </div>
</div> </div>
<div class="outpatientDetails_bottom_rght2_bottom"> <div class="outpatientDetails_bottom_rght2_bottom">
<div class="outpatientDetails_bottom_rght2_bottom_li" v-for="(item, ind) in options" :key="ind"> <div
class="outpatientDetails_bottom_rght2_bottom_li"
:class="{
outpatientDetails_bottom_rght2_bottom_liInd: ind == liInd,
}"
v-for="(item, ind) in options"
:key="ind"
@click="getruleId(item.ruleId, ind)"
>
<span v-show="item.projectRuleLevel == '禁止'" class="outpatientDetails_bottom_rght2_bottom_li_title" style="background: red">{{ <span v-show="item.projectRuleLevel == '禁止'" class="outpatientDetails_bottom_rght2_bottom_li_title" style="background: red">{{
item.projectRuleLevel item.projectRuleLevel
}}</span> }}</span>
...@@ -175,19 +310,41 @@ ...@@ -175,19 +310,41 @@
</template> </template>
<script> <script>
import http from "../utils/http"; import http from "../utils/http";
import { reactive, toRefs, onMounted, nextTick, computed } from "@vue/composition-api"; import { reactive, toRefs, onMounted, nextTick, computed, ref } from "@vue/composition-api";
import { decimal } from "../utils/decimal"; import { decimal } from "../utils/decimal";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { useRoute, useRouter } from "../utils/useVueRouter"; import { useRoute, useRouter } from "../utils/useVueRouter";
import { setItem, getItem } from "../utils/auth"; import { setItem, getItem } from "../utils/auth";
import { Loading } from "element-ui";
export default { export default {
name: "outpatientDetails", name: "outpatientDetails",
data() { data() {
return { return {
tableData1: [],
btnoptions: [
{
value: 0,
title: "全部",
},
{
value: 1,
title: "医保",
},
{
value: 2,
title: "自费",
},
],
btnspanind: 0, //按个按钮的ind
btnvalue: 0, //三个按钮没人高亮全部
Lefttype: [], //左侧表格的数据
HistoryInfo: { HistoryInfo: {
name: "", name: "",
healthyID: "", healthyID: "",
paymentType: "", paymentType: "",
disNature: "",
doctorName: "", doctorName: "",
rw: "", rw: "",
totalFee: "", totalFee: "",
...@@ -216,9 +373,13 @@ export default { ...@@ -216,9 +373,13 @@ export default {
name: "quantity", name: "quantity",
}, },
{ {
cloumn: "金额", cloumn: "金额",
name: "fee", name: "fee",
}, },
{
cloumn: "支付类型",
name: "carD_TYPE",
},
], ],
tableData: [], tableData: [],
options: [], //异常问题数据 options: [], //异常问题数据
...@@ -230,15 +391,42 @@ export default { ...@@ -230,15 +391,42 @@ export default {
typeCountDatas: [], //异常数据 typeCountDatas: [], //异常数据
showCountDatas: true, //异常问题类型是否显示 showCountDatas: true, //异常问题类型是否显示
showbottom: true, //异常问题详情是否显示 showbottom: true, //异常问题详情是否显示
heightnum: "", //最大值
lowwidth: "", //低倍率宽度
heightwidth: "", //高倍率宽度
contentwidth: "", //正常倍率宽度
totalwidth: "", //总费用宽度
totalcolor: "", //总费用颜色
lowMagnification: 0, //低倍率值
highMagnification: 0, //高倍率值
bottomheight: "60%", //底部高度
span1Ind: -1,
liInd: -1,
loadingOption1: {
// 加载loading
fullscreen: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.5)",
},
}; };
}, },
mounted() { mounted() {
this.GetProjectRulesData(); this.GetProjectRulesData();
this.getHistoryInfo(); this.getHistoryInfo();
this.getlefttable();
}, },
methods: { methods: {
decimal, decimal,
//表格颜色
topage() {
http.get(`/medical/get/JumpHisRules?id=${this.$route.query.id}`, {})
.then((data) => {
// window.location.href = data.message;
window.open(data.message);
})
.catch((error) => {});
},
tableRowClassName({ row }) { tableRowClassName({ row }) {
if (row.rowIndex % 2 == 0) { if (row.rowIndex % 2 == 0) {
return "isverifyStyle"; return "isverifyStyle";
...@@ -246,7 +434,36 @@ export default { ...@@ -246,7 +434,36 @@ export default {
return ""; return "";
} }
}, },
//异常问题接口
//当某一个行被点击时
eowclick(row) {
if (this.tableData1 != []) {
this.getInpatFeesByREGCODE(row.types);
this.Lefttype = row.types;
}
},
//获取左侧表格数据
getlefttable() {
http.post(`/medical/Post/getHisStaChargeType?code=${this.$route.query.id}`, {})
.then((data) => {
this.tableData1 = data;
if (this.tableData1 != []) {
this.eowclick(this.tableData1[0]);
//默认高亮第一行
this.$nextTick(() => {
this.$refs.monthlyPlanTable.setCurrentRow(this.tableData1[0]);
});
}
//中间的表格默认展示第一条数据
})
.catch((error) => {});
},
//当行展开和关闭是触发
changeRowClick(row) {
console.log("row-chang", row);
},
//异常问题接口 显示全部异常信息
GetProjectRulesData() { GetProjectRulesData() {
http.post(`/medical/get/GetPRHisData?&code=${this.$route.query.id}`, {}) http.post(`/medical/get/GetPRHisData?&code=${this.$route.query.id}`, {})
.then((data) => { .then((data) => {
...@@ -261,6 +478,43 @@ export default { ...@@ -261,6 +478,43 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}, },
//点击异常分类 显示异常信息
gettype(name, ind) {
console.log("name", name);
this.showCountDatas = true;
this.showbottom = true;
var loadingInstance2 = Loading.service(this.loadingOption1);
http.post(`/medical/get/GetPRHisData?&code=${this.$route.query.id}&projectType=${name}`, {})
.then((data) => {
this.liInd = -1;
this.span1Ind = ind;
this.options = data.projectRules;
loadingInstance2.close();
// this.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// this.showCountDatas = false;
// }
if (data.projectRules == null) {
this.showbottom = false;
}
})
.catch((error) => {
loadingInstance2.close();
});
},
//点击获取中间的表格数据
getruleId(ruleId, ind) {
http.post(`/medical/Post/GetiFHisByItemCode?code=${this.$route.query.id}&ruleId=${ruleId}`, {})
.then((data) => {
this.liInd = ind;
this.tableData = data;
})
.catch((error) => {});
},
//医嘱质控 //医嘱质控
getControl() { getControl() {
http.post(`/global/post/SetCaseProjectRuleHis?id=${this.$route.query.id}`) http.post(`/global/post/SetCaseProjectRuleHis?id=${this.$route.query.id}`)
...@@ -275,35 +529,88 @@ export default { ...@@ -275,35 +529,88 @@ export default {
.then((data) => { .then((data) => {
this.HistoryInfo = data; this.HistoryInfo = data;
this.dipid = data.id; this.dipid = data.id;
this.goods = data.inpat_FeeDatas || []; this.goods = data.inpat_FeeDatas;
if (this.goods.length > 0) {
this.toggle(0, this.goods[0]); this.lowMagnification = data.lowMagnification;
this.highMagnification = data.highMagnification;
// 高倍率>总费用 高倍率金额+高倍率金额*30%
if (data.highMagnification > data.totalFee) {
this.heightnum = data.highMagnification + data.highMagnification * 0.3;
console.log("this.heightnum", this.heightnum);
} else if (data.highMagnification < data.totalFee) {
// 高倍率<总费用 患者总费用的金额+患者总费用的金额*30%
this.heightnum = data.totalFee + data.totalFee * 0.3;
console.log("this.heightnum", this.heightnum);
}
// 低倍率宽度
this.lowwidth = Math.round((Math.round(data.lowMagnification) / Math.round(this.heightnum)) * 100);
// 高倍率宽度
this.heightwidth = Math.round(((Math.round(this.heightnum) - Math.round(data.highMagnification)) / Math.round(this.heightnum)) * 100);
// 正常倍率宽度
this.contentwidth = 100 - (this.lowwidth + this.heightwidth);
//总费用宽度
this.totalwidth = Math.round((Math.round(data.totalFee) / Math.round(this.heightnum)) * 100);
// 判断总费用显示的颜色
if (data.totalFee < data.lowMagnification) {
this.totalcolor = "#e9c622";
} else if (data.totalFee > data.lowMagnification && data.totalFee < data.highMagnification) {
this.totalcolor = "#22d016";
} else if (data.totalFee > data.highMagnification) {
this.totalcolor = "#ff7e00";
}
if (data.lowMagnification == 0 || data.highMagnification == 0) {
this.bottomheight = "80%";
} else if (data.lowMagnification != 0) {
this.bottomheight = "68%";
} }
}) })
.catch((error) => {}); .catch((error) => {});
}, },
//点击中间三个按钮
treebtn(value, ind) {
this.btnspanind = ind;
this.btnvalue = value;
this.getInpatFeesByREGCODE(this.Lefttype);
},
//费用分类接口 //费用分类接口
getInpatFeesByREGCODE(item) { getInpatFeesByREGCODE(types) {
http.post(`/medical/Get/getIFHisByREGCODE?&code=${this.$route.query.id}&ItemType=${item.iteM_TYPE}`, {}) var loadingInstance1 = Loading.service(this.loadingOption1);
http.post(`/medical/Get/getIFHisByREGCODE?&code=${this.$route.query.id}&state=${this.btnvalue}`, types)
.then((data) => { .then((data) => {
this.tableData = data; this.tableData = data;
loadingInstance1.close();
}) })
.catch((error) => {}); .catch((error) => {
}, loadingInstance1.close();
toggle(index, item) { });
this.checkindex = index;
this.getInpatFeesByREGCODE(item);
}, },
scrollToFoods(index) { scrollToFoods(index) {
//this.checkindex = index; // this.checkindex = index;
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../styles/mixin.scss"; @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;
}
// 点击icon颜色
::v-deep .current-row .el-table__expand-icon {
color: #55a6da !important;
}
.outpatientDetails { .outpatientDetails {
// height: calc(100% - 50px); // height: calc(100% - 50px);
// background-color: white; // background-color: white;
...@@ -329,6 +636,10 @@ export default { ...@@ -329,6 +636,10 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
} }
&_button {
background-color: #2cabe3;
color: #fff;
}
} }
&_message { &_message {
...@@ -336,7 +647,7 @@ export default { ...@@ -336,7 +647,7 @@ export default {
justify-content: space-between; justify-content: space-between;
margin-top: 16px; margin-top: 16px;
&_left { &_left {
width: 33%; width: 16.6%;
height: 51px; height: 51px;
display: flex; display: flex;
justify-content: start; justify-content: start;
...@@ -369,7 +680,7 @@ export default { ...@@ -369,7 +680,7 @@ export default {
} }
} }
&_centert { &_centert {
width: 33%; width: 16.6%;
height: 51px; height: 51px;
display: flex; display: flex;
justify-content: start; justify-content: start;
...@@ -403,18 +714,14 @@ export default { ...@@ -403,18 +714,14 @@ export default {
} }
} }
&_right { &_right {
width: 33%; width: 16.6%;
height: 51px; height: 51px;
display: flex; display: flex;
justify-content: start; justify-content: start;
align-items: center; align-items: center;
background-color: #f3fafd; background-color: #f3fafd;
font-family: PingFang SC; font-family: PingFang SC;
// .iconfont {
// color: #2cabe3;
// padding-left: 29px;
// font-size: 23px;
// }
&_tu3 { &_tu3 {
padding-left: 29px; padding-left: 29px;
font-size: 23px; font-size: 23px;
...@@ -435,43 +742,360 @@ export default { ...@@ -435,43 +742,360 @@ export default {
} }
} }
} }
&_low {
width: 16.6%;
height: 51px;
display: flex;
justify-content: start;
align-items: center;
background-color: #f3fafd;
font-family: PingFang SC;
&_tu4 {
padding-left: 29px;
font-size: 23px;
}
&_t4 {
width: 80%;
height: 42px;
display: flex;
justify-content: start;
padding-left: 10px;
align-items: center;
background-color: #fff;
color: #abafb3;
font-size: 14px;
margin-left: 29px;
span {
color: #787e8a;
}
}
}
&_div6 {
width: 16.6%;
height: 51px;
display: flex;
justify-content: start;
align-items: center;
background-color: #f3fafd;
font-family: PingFang SC;
&_tu6 {
padding-left: 29px;
font-size: 23px;
}
&_t6 {
width: 80%;
height: 42px;
display: flex;
justify-content: start;
padding-left: 10px;
align-items: center;
background-color: #fff;
color: #abafb3;
font-size: 14px;
margin-left: 29px;
span {
color: #787e8a;
}
}
}
&_div5 {
width: 16.6%;
height: 51px;
display: flex;
justify-content: start;
align-items: center;
background-color: #f3fafd;
font-family: PingFang SC;
&_tu5 {
padding-left: 29px;
font-size: 23px;
}
&_t5 {
width: 80%;
height: 42px;
display: flex;
justify-content: start;
padding-left: 10px;
align-items: center;
background-color: #fff;
color: #abafb3;
font-size: 14px;
margin-left: 29px;
span {
color: #787e8a;
}
}
}
} }
} }
&_msg { &_msg {
height: 51px; height: 51px;
background-color: #f3fafd; background-color: #f3fafd;
display: flex; display: flex;
justify-content: space-between; justify-content: start;
align-items: center; align-items: center;
margin-bottom: 25px; margin-bottom: 25px;
// .iconfont {
// color: #2cabe3;
// padding-left: 28px;
// font-size: 23px;
// }
&_tu4 { &_tu4 {
padding-left: 29px; padding-left: 29px;
font-size: 23px; font-size: 23px;
} }
span:nth-child(2) { span:nth-child(2) {
margin-left: 21px; margin-left: 21px;
flex: 1;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
justify-content: start;
align-items: center;
font-family: PingFang SC;
margin-right: 5px;
padding-left: 10px;
}
span:nth-child(3) {
width: 250px;
height: 39px;
line-height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
font-family: PingFang SC;
margin-right: 5px;
padding-left: 10px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
} }
span:nth-child(n + 2) { span:nth-child(4) {
width: 258px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
color: #6d7381; color: #6d7381;
display: flex; display: flex;
justify-content: start;
font-family: PingFang SC;
margin-right: 5px;
padding-left: 10px;
align-items: center; align-items: center;
justify-content: center; }
span:nth-child(5) {
flex: 1;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
align-items: center;
justify-content: start;
font-family: PingFang SC; font-family: PingFang SC;
margin-right: 5px; margin-right: 5px;
padding-left: 10px;
}
span:nth-child(6) {
flex: 1;
height: 39px;
background-color: #fff;
font-size: 14px;
color: #6d7381;
display: flex;
justify-content: start;
font-family: PingFang SC;
margin-right: 5px;
padding-left: 10px;
align-items: center;
} }
span:nth-child(n + 7) { span:nth-child(n + 7) {
flex: 1;
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; margin-right: 5px;
padding-left: 10px;
}
span:nth-child(n + 7) {
margin-right: 5px;
}
}
&_fenqu {
width: 100%;
height: 12%;
margin-bottom: 10px;
background-color: #f3fafd;
display: flex;
justify-content: center;
align-items: center;
&_di {
width: 99%;
height: 85%;
background-color: white;
display: flex;
justify-content: center;
&_bb {
width: 98%;
height: 85%;
margin: 0 5px;
background-color: white;
display: flex;
flex-direction: column;
justify-content: space-around;
padding-top: 10px;
&_div1 {
width: 100%;
height: 18%;
// display: flex;
// flex-direction: column;
// align-items: flex-start;
&_num {
display: flex;
font-size: 12px;
font-family: PingFang SC;
}
&_he {
display: block;
width: 2px;
height: 10px;
}
}
&_div2 {
width: 100%;
height: 64%;
display: flex;
justify-content: center;
align-items: center;
&_span1 {
display: block;
// width: 33%;
height: 50%;
border-radius: 2px;
color: white;
font-size: 12px;
background-color: #e9c622;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
&_t1 {
width: 90%;
height: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
} }
&_t1:hover {
width: 90%;
} }
}
&_span2 {
display: block;
// width: 33%;
height: 50%;
border-radius: 2px;
color: white;
font-size: 12px;
background-color: #22d016;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
&_t2 {
width: 90%;
height: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
}
&_t2:hover {
width: 90%;
}
}
&_span3 {
display: block;
// width: 33%;
height: 50%;
border-radius: 2px;
color: white;
font-size: 12px;
background-color: #ff7e00;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
&_t3 {
width: 90%;
height: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
padding-top: 10px;
}
&_t3:hover {
width: 90%;
}
}
}
&_div3 {
width: 100%;
height: 18%;
display: flex;
&_span1 {
display: flex;
height: 100%;
justify-content: start;
font-size: 12px;
font-family: PingFang SC;
color: #abafb3;
}
&_span2 {
display: flex;
height: 100%;
font-size: 12px;
font-family: PingFang SC;
color: #abafb3;
justify-content: start;
}
&_span3 {
display: flex;
height: 100%;
font-family: PingFang SC;
font-size: 12px;
color: #abafb3;
justify-content: space-between;
}
// &_span4 {
// display: flex;
// width: 25%;
// height: 100%;
// font-family: PingFang SC;
// padding-left: 383px;
// font-size: 12px;
// color: #abafb3;
// }
}
}
}
}
&_title { &_title {
background-image: url("../assets/img/dataMaintenance/title.png"); background-image: url("../assets/img/dataMaintenance/title.png");
background-repeat: no-repeat; background-repeat: no-repeat;
...@@ -495,9 +1119,10 @@ export default { ...@@ -495,9 +1119,10 @@ export default {
justify-content: space-between; justify-content: space-between;
height: 80%; height: 80%;
&_leftShowBox { &_leftShowBox {
width: 80%; width: 78%;
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: space-between;
// 左侧无数据 // 左侧无数据
&_box { &_box {
...@@ -520,10 +1145,28 @@ export default { ...@@ -520,10 +1145,28 @@ export default {
// 有数据 // 有数据
&_left { &_left {
list-style-type: none; list-style-type: none;
width: 37%; width: 35%;
height: 90%; height: 98%;
overflow-y: auto; overflow-y: auto;
border: 1px solid #f4f4f4;
border-radius: 4px;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.08);
&_btbox {
width: 98px;
height: 21px;
line-height: 21px;
text-align: start;
padding-left: 10px;
// background-color: #2cabe3;
background-image: url("../assets/img/bj.png");
margin: 5px 25px;
background-size: 100% 21px;
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: #ffffff;
background-repeat: no-repeat;
}
&_ul { &_ul {
margin: 0; margin: 0;
padding-left: 0; padding-left: 0;
...@@ -537,7 +1180,7 @@ export default { ...@@ -537,7 +1180,7 @@ export default {
color: #fff; color: #fff;
.fc2 { .fc2 {
width: 40%; width: 70%;
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -550,12 +1193,12 @@ export default { ...@@ -550,12 +1193,12 @@ export default {
} }
} }
.fc3 { .fc3 {
width: 60%; width: 30%;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-items: center; justify-items: center;
justify-content: flex-end; justify-content: center;
padding-right: 3%; padding-right: 3%;
} }
} }
...@@ -571,6 +1214,7 @@ export default { ...@@ -571,6 +1214,7 @@ export default {
margin-bottom: 21px; margin-bottom: 21px;
font-size: 13px; font-size: 13px;
color: #6a707e; color: #6a707e;
cursor: pointer; /*鼠标移上有小手*/
div { div {
width: 98%; width: 98%;
height: 46px; height: 46px;
...@@ -617,14 +1261,18 @@ export default { ...@@ -617,14 +1261,18 @@ export default {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
width: 50%; width: 50%;
justify-content: flex-end; justify-content: center;
} }
} }
} }
} }
} }
&_right { &_right {
width: 62%; width: 64%;
height: 97%;
border: 1px solid #f4f4f4;
border-radius: 4px;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.08);
// 无数据样式 // 无数据样式
&_box { &_box {
width: 100%; width: 100%;
...@@ -644,6 +1292,31 @@ export default { ...@@ -644,6 +1292,31 @@ export default {
font-weight: 400; font-weight: 400;
} }
} }
//中间有数据
&_treebtn {
display: flex;
justify-content: flex-start;
margin: 5px 10px 15px 10px;
&_span {
display: flex;
justify-content: center;
color: #5d5d5d;
width: 60px;
height: 21px;
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
align-items: center;
align-content: center;
line-height: 21px;
background: #f3fafd;
cursor: pointer;
}
&_span1 {
background-color: #2cabe3;
color: #fff;
}
}
&_table { &_table {
height: calc(100% - 100px); height: calc(100% - 100px);
} }
...@@ -657,20 +1330,27 @@ export default { ...@@ -657,20 +1330,27 @@ export default {
} }
&_rght2 { &_rght2 {
width: 22%; width: 20%;
height: 100%; height: 98%;
border: 1px solid #f6f6f8; border: 1px solid #f4f4f4;
padding: 10px; border-radius: 4px;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.08);
padding: 0 10px;
&_top { &_top {
height: 20%; height: 24%;
width: 100%; width: 100%;
border-bottom: 3px solid #eef8fd; border-bottom: 3px solid #eef8fd;
&_title { &_title {
width: 98px; width: 98px;
height: 19px; height: 21px;
line-height: 21px;
text-align: start; text-align: start;
padding-left: 10px; padding-left: 10px;
background-color: #2cabe3; // background-color: #2cabe3;
background-image: url("../assets/img/bj.png");
background-repeat: no-repeat;
margin: 5px 1px;
background-size: 100% 21px;
font-size: 14px; font-size: 14px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
...@@ -694,7 +1374,11 @@ export default { ...@@ -694,7 +1374,11 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #5d5d5d; color: #5d5d5d;
margin-right: 5px; // margin-right: 5px;
cursor: pointer; /*鼠标移上有小手*/
}
&_span1background {
background: #d9f0fa;
} }
&_span2 { &_span2 {
width: 101px; width: 101px;
...@@ -737,29 +1421,30 @@ export default { ...@@ -737,29 +1421,30 @@ export default {
} }
} }
&_bottom { &_bottom {
height: 70%; height: 75%;
width: 100%; width: 100%;
overflow-y: scroll; overflow-y: scroll;
&_li { &_li {
width: 100%; width: 100%;
height: 25%; height: 25%;
cursor: pointer; /*鼠标移上有小手*/
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
justify-content: space-around; justify-content: space-around;
border-bottom: 3px solid #eef8fd; border-bottom: 3px solid #eef8fd;
&_title { &_title {
width: 69px; width: 50px;
height: 32px; height: 25px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 20px; font-size: 14px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #ffffff;
border-radius: 3px;
} }
&_cont { &_cont {
font-size: 16px; font-size: 16px;
...@@ -773,6 +1458,9 @@ export default { ...@@ -773,6 +1458,9 @@ export default {
width: 97%; width: 97%;
} }
} }
&_liInd {
background: #f3fafd;
}
} }
} }
} }
......
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