Commit 170f5509 by wangshuangqing

添加新字段

添加长期与短期医嘱切换
parent 196cfeec
...@@ -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-02-15 15:57:48 * @LastEditTime: 2023-02-22 14:55:23
* @Description: * @Description:
--> -->
<template> <template>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<div class="outClinicalpathway_top_left_two"> <div class="outClinicalpathway_top_left_two">
<el-radio-group v-model="radio"> <el-radio-group v-model="radio" @input="radiochange">
<el-radio :label="1">长期医嘱</el-radio> <el-radio :label="1">长期医嘱</el-radio>
<el-radio :label="2">临时医嘱</el-radio> <el-radio :label="2">临时医嘱</el-radio>
</el-radio-group> </el-radio-group>
...@@ -159,12 +159,12 @@ ...@@ -159,12 +159,12 @@
label="路径名称" label="路径名称"
width="150" width="150"
/> />
<el-table-column <!-- <el-table-column
show-overflow-tooltip show-overflow-tooltip
property="project_code" property="project_code"
label="医院项目编码" label="医院项目编码"
width="120" width="120"
/> /> -->
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
property="project_name" property="project_name"
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
show-overflow-tooltip show-overflow-tooltip
property="specifications" property="specifications"
label="规格说明" label="规格说明"
width="120" width="80"
/> />
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
show-overflow-tooltip show-overflow-tooltip
property="isAntibiotic" property="isAntibiotic"
label="抗生素否" label="抗生素否"
width="100" width="90"
> >
<template #default="scope"> <template #default="scope">
<el-select <el-select
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
<span v-else>{{ scope.row.isAntibiotic }}</span> <span v-else>{{ scope.row.isAntibiotic }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="medicUseQuantity" label="用量" width="90"> <el-table-column prop="medicUseQuantity" label="用量" width="80">
<template #default="scope"> <template #default="scope">
<el-input <el-input
v-if="scope.row.advice_name == null && scope.row.ischeck == 1" v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="dropNumber" label="滴数" width="90"> <el-table-column prop="dropNumber" label="滴数" width="60">
<template #default="scope"> <template #default="scope">
<el-input <el-input
v-if="scope.row.advice_name == null && scope.row.ischeck == 1" v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
show-overflow-tooltip show-overflow-tooltip
property="remark" property="remark"
label="嘱托" label="嘱托"
width="320'" width="170'"
> >
<template #default="scope"> <template #default="scope">
<el-input <el-input
...@@ -314,6 +314,91 @@ ...@@ -314,6 +314,91 @@
<span v-else>{{ scope.row.remark }}</span> <span v-else>{{ scope.row.remark }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="chiefComplaint" label="主诉" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.chiefComplaint"
size="mini"
></el-input>
</template>
</el-table-column>
<el-table-column prop="inspectionPurpose" label="检查目的" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.inspectionPurpose"
size="mini"
></el-input>
</template>
</el-table-column>
<el-table-column prop="symptom" label="症状及体征" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.symptom"
size="mini"
></el-input>
</template>
</el-table-column>
<el-table-column prop="pastHistory" label="既往史" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.pastHistory"
size="mini"
></el-input>
</template>
</el-table-column>
<el-table-column
prop="auxiliaryItems"
label="其他辅助项目"
width="120"
>
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.auxiliaryItems"
size="mini"
></el-input>
</template>
</el-table-column>
<el-table-column prop="inspectRemarks" label="备注" width="170">
<template #default="scope">
<el-input
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.inspectRemarks"
></el-input>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -581,33 +666,61 @@ export default { ...@@ -581,33 +666,61 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//单选
const radiochange = () => {
if (state.radio == 1) {
//获取表格数据
http
.post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`,
{}
)
.then((data) => {
state.tableData = data.route1;
state.tableData.map((el) => {
// console.log(" el",el);
if (el.children) {
for (let i = 0; i < el.children.length; i++) {
if (el.children[i].ischeck == 1) {
toggleSelection(el.children[i], true);
toggleSelection(el, true);
}
}
}
});
})
.catch((error) => {});
} else if (state.radio == 2) {
http
.post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`,
{}
)
.then((data) => {
state.tableData = data.route2;
state.tableData.map((el) => {
// console.log(" el",el);
if (el.children) {
for (let i = 0; i < el.children.length; i++) {
if (el.children[i].ischeck == 1) {
toggleSelection(el.children[i], true);
toggleSelection(el, true);
}
}
}
});
})
.catch((error) => {});
}
};
//点击左侧时间线 获取右侧表格数据 //点击左侧时间线 获取右侧表格数据
const timeclick = (val) => { const timeclick = (val) => {
state.timeindex = val.inhosdays; state.timeindex = val.inhosdays;
state.case_routeid = val.case_routeid; state.case_routeid = val.case_routeid;
state.inhosdays = val.inhosdays; state.inhosdays = val.inhosdays;
//获取表格数据 radiochange();
http
.post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`,
{}
)
.then((data) => {
state.tableData = data;
state.tableData.map((el) => {
// console.log(" el",el);
if (el.children) {
for (let i = 0; i < el.children.length; i++) {
if (el.children[i].ischeck == 1) {
toggleSelection(el.children[i], true);
toggleSelection(el, true);
}
}
}
});
})
.catch((error) => {});
}; };
//加入医嘱 //加入医嘱
const joinorder = () => { const joinorder = () => {
...@@ -725,6 +838,7 @@ export default { ...@@ -725,6 +838,7 @@ export default {
tableLayout, tableLayout,
gemedicUseModeoptions, gemedicUseModeoptions,
gemedicUsePlanoptions, gemedicUsePlanoptions,
radiochange,
}; };
}, },
}; };
......
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