Commit c9fb06c5 by wangshuangqing

1.展示符合临床路径字段

2.添加检索路径与是否展示推荐路径搜索
parent 6c0e2f6f
...@@ -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: 2023-01-09 17:24:11 * @LastEditTime: 2023-01-10 14:23:13
* @Description: * @Description:
--> -->
<template> <template>
...@@ -30,22 +30,33 @@ ...@@ -30,22 +30,33 @@
<div class="Entrypath_table"> <div class="Entrypath_table">
<!-- 左侧表格开始 --> <!-- 左侧表格开始 -->
<div class="Entrypath_table_lefttab"> <div class="Entrypath_table_lefttab">
<el-table <div class="Entrypath_table_lefttab_select">
ref="leftTable" <div class="Entrypath_table_lefttab_select_inp">
:data="LefttableData" <span>检索路径:</span> <el-input v-model="pathinput" size="mini" clearable/>
border </div>
height="100%" <div class="Entrypath_table_lefttab_select_chack">
stripe <el-button type="primary" size="mini" style="margin-right:10px" @click="selectbtn()">查询</el-button>
@row-click="rowclick" <el-checkbox v-model="checked" label="只显示推荐路径" size="large" @change="checkchange"/>
:highlight-current-row="true" </div>
> </div>
<el-table-column type="index" /> <div class="Entrypath_table_lefttab_table">
<el-table-column <el-table
show-overflow-tooltip ref="leftTable"
property="clinical_route_name" :data="LefttableData"
label="路径名称" border
/> height="100%"
</el-table> stripe
@row-click="rowclick"
:highlight-current-row="true"
>
<el-table-column type="index" />
<el-table-column
show-overflow-tooltip
property="clinical_route_name"
label="路径名称"
/>
</el-table>
</div>
</div> </div>
<!-- 左侧表格结束 --> <!-- 左侧表格结束 -->
...@@ -142,6 +153,10 @@ export default { ...@@ -142,6 +153,10 @@ export default {
const router = useRouter(); const router = useRouter();
let state = reactive({ let state = reactive({
//输入框
pathinput: "",
//选择框
checked:false,
//标识 //标识
IsRoute: "", IsRoute: "",
//患者信息 //患者信息
...@@ -203,11 +218,20 @@ export default { ...@@ -203,11 +218,20 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//显示推荐路径单选框变化
const checkchange=(val)=>{
state.checked=val
};
//查询
const selectbtn=()=>{
getLeftdata()
};
//获取左侧表格数据 //获取左侧表格数据
const getLeftdata = () => { const getLeftdata = () => {
http http
.post( .post(
`/ClinicalRoute/ClinicalRoute/GetPatientRoutes?pid=${route.value.query.pid}`, `/ClinicalRoute/ClinicalRoute/GetPatientRoutes?pid=${route.value.query.pid}&searchQuery=${state.pathinput}&flag=${state.checked}`,
{} {}
) )
.then((data) => { .then((data) => {
...@@ -255,14 +279,12 @@ export default { ...@@ -255,14 +279,12 @@ export default {
message: "成功", message: "成功",
type: "success", type: "success",
}); });
router.push({ router.push({
path: "outClinicalpathway", path: "outClinicalpathway",
query: { query: {
pid: route.value.query.pid, pid: route.value.query.pid,
}, },
}); });
}) })
.catch((error) => {}); .catch((error) => {});
} }
...@@ -282,6 +304,8 @@ export default { ...@@ -282,6 +304,8 @@ export default {
getLeftdata, getLeftdata,
rowclick, rowclick,
okbtn, okbtn,
checkchange,
selectbtn
}; };
}, },
}; };
...@@ -432,10 +456,39 @@ export default { ...@@ -432,10 +456,39 @@ export default {
height: 89%; height: 89%;
display: flex; display: flex;
background-color: #ffff; background-color: #ffff;
&_lefttab { &_lefttab {
width: 30%; width: 30%;
height: 100%; height: 100%;
margin-right: 2%; margin-right: 2%;
&_select {
width: 100%;
height: 10%;
margin-bottom: 5px;
display: flex;
align-items: center;
&_inp {
width: 50%;
height: 60%;
display: flex;
align-items: center;
span {
font-size: 14px;
width: 40%;
}
}
&_chack {
width: 50%;
height: 60%;
display: flex;
justify-content: flex-end;
align-items: center;
}
}
&_table {
width: 100%;
height: 89%;
}
} }
&_righttab { &_righttab {
width: 67%; width: 67%;
......
...@@ -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: 2023-01-09 16:24:06 * @LastEditTime: 2023-01-10 14:28:56
* @Description: * @Description:
--> -->
<template> <template>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
住院次数:<span>{{ topdata.inHosNum }}</span> 住院次数:<span>{{ topdata.inHosNum }}</span>
</div> </div>
<div class="outClinicalpathway_top_left_one_t4"> <div class="outClinicalpathway_top_left_one_t4">
入院时间:<span>{{topdata.inHosTime }}</span> 符合临床路径:<span>{{topdata.clinical_route_name }}</span>
</div> </div>
</div> </div>
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
patientName:'', //患者姓名 patientName:'', //患者姓名
regCode:'',// 住院号 regCode:'',// 住院号
inHosNum:'',// 住院次数 inHosNum:'',// 住院次数
inHosTime:''// 入院时间 clinical_route_name:''// 符合临床路径
}, },
multipleSelection: [], //被选择的数据 multipleSelection: [], //被选择的数据
tableData: [ tableData: [
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
padding-left: 20px; padding-left: 20px;
span { span {
width: 80%; width: 60%;
height: 80%; height: 80%;
font-weight: 600; font-weight: 600;
color: #787878; color: #787878;
......
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