Commit 1928cd92 by wangshuangqing

1.病情变异弹框添加备注字段

2.下拉框加鼠标悬浮提示
parent a5592101
...@@ -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-12 13:11:54 * @LastEditTime: 2023-01-28 15:40:40
* @Description: * @Description:
--> -->
<template> <template>
...@@ -67,8 +67,26 @@ ...@@ -67,8 +67,26 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="变异原因:"> <el-form-item label="变异原因:">
<el-input <el-select
v-model="form.reason" v-model="form.reason"
class="m-2"
placeholder="请选择"
size="mini"
:title="getTitle(form.reason)"
>
<el-option
v-for="item in reasonoptions"
:key="item.id"
:label="item.describe"
:value="item.describe"
:title="item.describe"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="备注:">
<el-input
v-model="form.remarks"
:autosize="{ minRows: 4, maxRows: 10 }" :autosize="{ minRows: 4, maxRows: 10 }"
type="textarea" type="textarea"
/> />
...@@ -187,7 +205,7 @@ export default { ...@@ -187,7 +205,7 @@ export default {
tableData: [], //表格数据 tableData: [], //表格数据
yztype: { yztype: {
1: "长期医嘱", 1: "长期医嘱",
2: "短期医嘱", 2: "临时医嘱",
}, },
//被点击的index //被点击的index
timeindex: null, timeindex: null,
...@@ -200,12 +218,16 @@ export default { ...@@ -200,12 +218,16 @@ export default {
//表单 //表单
form: { form: {
inhosdays: "", inhosdays: "",
reason: "", reason: "", //变异原因
remarks: "", //备注
}, },
//路径天数下拉数据 //路径天数下拉数据
options: [], options: [],
reasonoptions: [], //变异原因
crid: null,
chickid: [], //选中的id chickid: [], //选中的id
}); });
//获取患者信息 //获取患者信息
const gettopdata = () => { const gettopdata = () => {
http http
...@@ -215,6 +237,8 @@ export default { ...@@ -215,6 +237,8 @@ export default {
) )
.then((data) => { .then((data) => {
state.topdata = data; state.topdata = data;
state.crid = data.crid;
getreasonoptions();
}) })
.catch((error) => {}); .catch((error) => {});
}; };
...@@ -407,18 +431,33 @@ export default { ...@@ -407,18 +431,33 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//获取病情变异--变异原因下拉框
const getreasonoptions = () => {
http
.post(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=${state.crid}`,
{}
)
.then((data) => {
state.reasonoptions = data;
})
.catch((error) => {});
};
//病情变异 //病情变异
const variation = () => { const variation = () => {
state.editdialogFormVisible = true; state.editdialogFormVisible = true;
}; };
//确定 //确定
const fromOKbtn = () => { const fromOKbtn = (fromRef) => {
let prome = { let prome = {
pid: route.value.query.pid, pid: route.value.query.pid,
reason: state.form.reason, reason: state.form.reason,
inhosdays: state.form.inhosdays, inhosdays: state.form.inhosdays,
remarks: state.form.remarks,
}; };
http http
.post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome) .post(`/ClinicalRoute/ClinicalRoute/SetVariation`, prome)
.then((data) => { .then((data) => {
...@@ -431,6 +470,7 @@ export default { ...@@ -431,6 +470,7 @@ export default {
reason: "", reason: "",
}), }),
(state.editdialogFormVisible = false); (state.editdialogFormVisible = false);
router.push({ router.push({
path: "Entrypath", path: "Entrypath",
query: { query: {
...@@ -448,6 +488,13 @@ export default { ...@@ -448,6 +488,13 @@ export default {
}), }),
(state.editdialogFormVisible = false); (state.editdialogFormVisible = false);
}; };
//下拉框鼠标移上显示提示文字
const getTitle = (val) => {
if (val != "") {
let a = state.reasonoptions.filter((item) => item.describe == val);
return a[0].describe;
}
};
onMounted(() => { onMounted(() => {
gettopdata(); gettopdata();
...@@ -475,6 +522,8 @@ export default { ...@@ -475,6 +522,8 @@ export default {
fromRef, fromRef,
close, close,
joinorder, joinorder,
getreasonoptions,
getTitle,
}; };
}, },
}; };
......
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