Commit e2c01022 by 唐玉峰

.

parent 3d451592
......@@ -56,7 +56,9 @@
</div>
<div class="outpatientDetails_msg">
<span class="outpatientDetails_msg_tu4"><img src="../assets/img/zu.png" alt="" /></span>
<span>分组:{{ HistoryInfo.doctorName }}</span>
<!-- <span>分组:{{ HistoryInfo.doctorName }}</span> -->
<span :title="HistoryInfo.coreName">分组名称:{{ HistoryInfo.coreName }}</span>
<span>分组编码:{{ HistoryInfo.coreCode }}</span>
<span>病种分值:{{ decimal(HistoryInfo.rw) }}</span>
<span>预计DRG支付费用:{{ decimal(HistoryInfo.actualfee) }}</span>
<span>总费用:{{ decimal(HistoryInfo.totalFee) }}</span>
......@@ -88,7 +90,7 @@
<span class="outpatientDetails_fenqu_di_bb_div2_span2" :style="{ width: contentwidth + '%' }"
><span
class="outpatientDetails_fenqu_di_bb_div2_span2_t2"
:title="'正常区域:' + Math.round(lowMagnification) + 1 + '~' + (Math.round(highMagnification) - 1)"
:title="'正常区域:' + (Math.round(lowMagnification) + 1) + '~' + (Math.round(highMagnification) - 1)"
>正常区域:{{ Math.round(lowMagnification) + 1 + "~" + (Math.round(highMagnification) - 1) }}</span
></span
>
......@@ -297,7 +299,6 @@
import http from "../utils/http";
import { reactive, toRefs, onMounted, nextTick, computed, ref } from "@vue/composition-api";
import { decimal } from "../utils/decimal";
import { Message } from "element-ui";
import { useRoute, useRouter } from "../utils/useVueRouter";
import { setItem, getItem } from "../utils/auth";
......@@ -305,290 +306,269 @@ import { Loading } from "element-ui";
export default {
name: "outpatientDetails",
setup() {
const monthlyPlanTable = ref();
data() {
return {
tableData1: [],
btnoptions: [
{
value: 0,
title: "全部",
},
// {
// value: 1,
// title: "医保",
// },
// {
// value: 2,
// title: "自费",
// },
],
btnspanind: 0, //按个按钮的ind
btnvalue: 0, //三个按钮没人高亮全部
Lefttype: [], //左侧表格的数据
HistoryInfo: {
name: "",
healthyID: "",
paymentType: "",
disNature: "",
doctorName: "",
rw: "",
totalFee: "",
avgFee: "",
days: "",
profitLoss: "",
},
checkindex: 0, // 初始化第一个栏块高亮
goods: [], //左侧费用类型
tableListHead: [
{ cloumn: "开单日期", name: "chargeTime" },
{
cloumn: "项目编码",
name: "iteM_CODE",
},
{
cloumn: "项目名称",
name: "iteM_NAME",
},
{
cloumn: "单价",
name: "unitprice",
},
{
cloumn: "数量",
name: "quantity",
},
{
cloumn: "金额",
name: "fee",
},
{
cloumn: "支付类型",
name: "carD_TYPE",
},
],
tableData: [],
options: [], //异常问题数据
medInsNum: 0, //医保数
notdrugsNum: 0, //非药品
drugsNum: 0, //药品
diseaseNum: 0, //疾病
dipid: "",
typeCountDatas: [], //异常数据
showCountDatas: 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() {
this.GetProjectRulesData();
this.getHistoryInfo();
this.getlefttable();
},
methods: {
decimal,
//表格颜色
const tableRowClassName = ({ row }) => {
tableRowClassName({ row }) {
if (row.rowIndex % 2 == 0) {
return "isverifyStyle";
} else {
return "";
}
};
},
//当某一个行被点击时
const eowclick = (row) => {
if (state.tableData1 != []) {
getInpatFeesByREGCODE(row.types);
state.Lefttype = row.types;
eowclick(row) {
if (this.tableData1 != []) {
this.getInpatFeesByREGCODE(row.types);
this.Lefttype = row.types;
}
};
},
//获取左侧表格数据
const getlefttable = () => {
http.post(`/medical/Post/getHisStaChargeType?code=${route.value.query.id}`, {})
getlefttable() {
http.post(`/medical/Post/getHisStaChargeType?code=${this.$route.query.id}`, {})
.then((data) => {
state.tableData1 = data;
if (state.tableData1 != []) {
eowclick(state.tableData1[0]);
this.tableData1 = data;
if (this.tableData1 != []) {
eowclick(this.tableData1[0]);
//默认高亮第一行
nextTick(() => {
monthlyPlanTable.value.setCurrentRow(state.tableData1[0]);
this.$refs.monthlyPlanTable.setCurrentRow(this.tableData1[0]);
});
}
//中间的表格默认展示第一条数据
})
.catch((error) => {});
};
},
//当行展开和关闭是触发
const changeRowClick = (row) => {
changeRowClick(row) {
console.log("row-chang", row);
};
},
//异常问题接口 显示全部异常信息
const GetProjectRulesData = () => {
http.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}`, {})
GetProjectRulesData() {
http.post(`/medical/get/GetPRHisData?&code=${this.$route.query.id}`, {})
.then((data) => {
state.options = data.projectRules;
state.typeCountDatas = data.typeCountDatas;
this.options = data.projectRules;
this.typeCountDatas = data.typeCountDatas;
if (data.typeCountDatas == null) {
state.showCountDatas = false;
this.showCountDatas = false;
}
if (data.projectRules == null) {
state.showbottom = false;
this.showbottom = false;
}
})
.catch((error) => {});
};
},
//点击异常分类 显示异常信息
const gettype = (name, ind) => {
gettype(name, ind) {
console.log("name", name);
state.showCountDatas = true;
state.showbottom = true;
this.showCountDatas = true;
this.showbottom = true;
var loadingInstance2 = Loading.service(loadingOption1);
http.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`, {})
var loadingInstance2 = Loading.service(this.loadingOption1);
http.post(`/medical/get/GetPRHisData?&code=${this.$route.query.id}&projectType=${name}`, {})
.then((data) => {
state.liInd = -1;
state.span1Ind = ind;
state.options = data.projectRules;
this.liInd = -1;
this.span1Ind = ind;
this.options = data.projectRules;
loadingInstance2.close();
// state.typeCountDatas = data.typeCountDatas;
// this.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// state.showCountDatas = false;
// this.showCountDatas = false;
// }
if (data.projectRules == null) {
state.showbottom = false;
this.showbottom = false;
}
})
.catch((error) => {
loadingInstance2.close();
});
};
},
//点击获取中间的表格数据
const getruleId = (ruleId, ind) => {
http.post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {})
getruleId(ruleId, ind) {
http.post(`/medical/Post/GetiFHisByItemCode?code=${this.$route.query.id}&ruleId=${ruleId}`, {})
.then((data) => {
state.liInd = ind;
state.tableData = data;
this.liInd = ind;
this.tableData = data;
})
.catch((error) => {});
};
},
//医嘱质控
const getControl = () => {
http.post(`/global/post/SetCaseProjectRuleHis?id=${route.value.query.id}`)
getControl() {
http.post(`/global/post/SetCaseProjectRuleHis?id=${this.$route.query.id}`)
.then((data) => {
Message.success(data.message);
})
.catch((error) => {});
};
},
//获取患者信息数据
const getHistoryInfo = () => {
http.post(`/medical/Get/getHisInfo?&code=${route.value.query.id}`, {})
getHistoryInfo() {
http.post(`/medical/Get/getHisInfo?&code=${this.$route.query.id}`, {})
.then((data) => {
state.HistoryInfo = data;
state.dipid = data.id;
state.goods = data.inpat_FeeDatas;
this.HistoryInfo = data;
this.dipid = data.id;
this.goods = data.inpat_FeeDatas;
state.lowMagnification = data.lowMagnification;
state.highMagnification = data.highMagnification;
this.lowMagnification = data.lowMagnification;
this.highMagnification = data.highMagnification;
// 高倍率>总费用 高倍率金额+高倍率金额*30%
if (data.highMagnification > data.totalFee) {
state.heightnum = data.highMagnification + data.highMagnification * 0.3;
console.log("state.heightnum", state.heightnum);
this.heightnum = data.highMagnification + data.highMagnification * 0.3;
console.log("this.heightnum", this.heightnum);
} else if (data.highMagnification < data.totalFee) {
// 高倍率<总费用 患者总费用的金额+患者总费用的金额*30%
state.heightnum = data.totalFee + data.totalFee * 0.3;
console.log("state.heightnum", state.heightnum);
this.heightnum = data.totalFee + data.totalFee * 0.3;
console.log("this.heightnum", this.heightnum);
}
// 低倍率宽度
state.lowwidth = Math.round((Math.round(data.lowMagnification) / Math.round(state.heightnum)) * 100);
this.lowwidth = Math.round((Math.round(data.lowMagnification) / Math.round(this.heightnum)) * 100);
// 高倍率宽度
state.heightwidth = Math.round(((Math.round(state.heightnum) - Math.round(data.highMagnification)) / Math.round(state.heightnum)) * 100);
this.heightwidth = Math.round(((Math.round(this.heightnum) - Math.round(data.highMagnification)) / Math.round(this.heightnum)) * 100);
// 正常倍率宽度
state.contentwidth = 100 - (state.lowwidth + state.heightwidth);
this.contentwidth = 100 - (this.lowwidth + this.heightwidth);
//总费用宽度
state.totalwidth = Math.round((Math.round(data.totalFee) / Math.round(state.heightnum)) * 100);
this.totalwidth = Math.round((Math.round(data.totalFee) / Math.round(this.heightnum)) * 100);
// 判断总费用显示的颜色
if (data.totalFee < data.lowMagnification) {
state.totalcolor = "#e9c622";
this.totalcolor = "#e9c622";
} else if (data.totalFee > data.lowMagnification && data.totalFee < data.highMagnification) {
state.totalcolor = "#22d016";
this.totalcolor = "#22d016";
} else if (data.totalFee > data.highMagnification) {
state.totalcolor = "#ff7e00";
this.totalcolor = "#ff7e00";
}
if (data.lowMagnification == 0 || data.highMagnification == 0) {
state.bottomheight = "80%";
this.bottomheight = "80%";
} else if (data.lowMagnification != 0) {
state.bottomheight = "68%";
this.bottomheight = "68%";
}
})
.catch((error) => {});
};
},
//点击中间三个按钮
const treebtn = (value, ind) => {
state.btnspanind = ind;
state.btnvalue = value;
getInpatFeesByREGCODE(state.Lefttype);
};
// loading效果
const loadingOption1 = {
// 加载loading
fullscreen: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.5)",
};
treebtn(value, ind) {
this.btnspanind = ind;
this.btnvalue = value;
this.getInpatFeesByREGCODE(this.Lefttype);
},
//费用分类接口
const getInpatFeesByREGCODE = (types) => {
var loadingInstance1 = Loading.service(loadingOption1);
http.post(`/medical/Get/getIFHisByREGCODE?&code=${route.value.query.id}&state=${state.btnvalue}`, types)
getInpatFeesByREGCODE(types) {
var loadingInstance1 = Loading.service(this.loadingOption1);
http.post(`/medical/Get/getIFHisByREGCODE?&code=${this.$route.query.id}&state=${this.btnvalue}`, types)
.then((data) => {
state.tableData = data;
this.tableData = data;
loadingInstance1.close();
})
.catch((error) => {
loadingInstance1.close();
});
};
const scrollToFoods = (index) => {
// state.checkindex = index;
};
let state = reactive({
tableData1: [],
btnoptions: [
{
value: 0,
title: "全部",
},
// {
// value: 1,
// title: "医保",
// },
// {
// value: 2,
// title: "自费",
// },
],
btnspanind: 0, //按个按钮的ind
btnvalue: 0, //三个按钮没人高亮全部
Lefttype: [], //左侧表格的数据
HistoryInfo: {
name: "",
healthyID: "",
paymentType: "",
disNature: "",
doctorName: "",
rw: "",
totalFee: "",
avgFee: "",
days: "",
profitLoss: "",
},
checkindex: 0, // 初始化第一个栏块高亮
goods: [], //左侧费用类型
tableListHead: [
{ cloumn: "开单日期", name: "chargeTime" },
{
cloumn: "项目编码",
name: "iteM_CODE",
},
{
cloumn: "项目名称",
name: "iteM_NAME",
},
{
cloumn: "单价",
name: "unitprice",
},
{
cloumn: "数量",
name: "quantity",
},
{
cloumn: "金额",
name: "fee",
},
{
cloumn: "支付类型",
name: "carD_TYPE",
},
],
tableData: [],
options: [], //异常问题数据
medInsNum: 0, //医保数
notdrugsNum: 0, //非药品
drugsNum: 0, //药品
diseaseNum: 0, //疾病
dipid: "",
typeCountDatas: [], //异常数据
showCountDatas: true, //异常问题类型是否显示
showbottom: true, //异常问题详情是否显示
heightnum: "", //最大值
lowwidth: "", //低倍率宽度
heightwidth: "", //高倍率宽度
contentwidth: "", //正常倍率宽度
totalwidth: "", //总费用宽度
totalcolor: "", //总费用颜色
lowMagnification: 0, //低倍率值
highMagnification: 0, //高倍率值
bottomheight: "60%", //底部高度
span1Ind: -1,
liInd: -1,
});
//表格自适应高度
const route = useRoute();
onMounted(() => {
GetProjectRulesData();
getHistoryInfo();
getlefttable();
});
},
return {
...toRefs(state),
tableRowClassName,
scrollToFoods,
getHistoryInfo,
getInpatFeesByREGCODE,
decimal,
// tableCot,
GetProjectRulesData,
getControl,
gettype,
getruleId,
eowclick,
changeRowClick,
getlefttable,
monthlyPlanTable,
treebtn,
};
scrollToFoods(index) {
// this.checkindex = index;
},
},
};
</script>
......@@ -834,28 +814,25 @@ export default {
justify-content: start;
align-items: center;
margin-bottom: 25px;
// .iconfont {
// color: #2cabe3;
// padding-left: 28px;
// font-size: 23px;
// }
&_tu4 {
padding-left: 29px;
font-size: 23px;
}
span:nth-child(2) {
margin-left: 21px;
flex: 1;
width: 250px;
height: 39px;
line-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;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}
span:nth-child(3) {
flex: 1;
......@@ -917,8 +894,8 @@ export default {
color: #6d7381;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFang SC;
padding-left: 10px;
margin-right: 5px;
}
span:nth-child(n + 7) {
......
......@@ -20,9 +20,7 @@ module.exports = {
port: 8066, //测试端口
proxy: {
"/api": {
//target: 'http://192.168.18.166:8099/',
target: "http://192.168.18.166:8100/", //drg测试站点
// target: "http://192.168.18.166:8033/", //dip测试站点
target: "http://192.168.18.166:8033/", //drg测试站点
changeOrigin: true,
pathRewrite: {
"^/": "/",
......
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