Commit 170f5509 by wangshuangqing

添加新字段

添加长期与短期医嘱切换
parent 196cfeec
......@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-02-15 15:57:48
* @LastEditTime: 2023-02-22 14:55:23
* @Description:
-->
<template>
......@@ -28,7 +28,7 @@
</div>
</div>
<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="2">临时医嘱</el-radio>
</el-radio-group>
......@@ -159,12 +159,12 @@
label="路径名称"
width="150"
/>
<el-table-column
<!-- <el-table-column
show-overflow-tooltip
property="project_code"
label="医院项目编码"
width="120"
/>
/> -->
<el-table-column
show-overflow-tooltip
property="project_name"
......@@ -176,7 +176,7 @@
show-overflow-tooltip
property="specifications"
label="规格说明"
width="120"
width="80"
/>
<el-table-column
show-overflow-tooltip
......@@ -188,7 +188,7 @@
show-overflow-tooltip
property="isAntibiotic"
label="抗生素否"
width="100"
width="90"
>
<template #default="scope">
<el-select
......@@ -207,7 +207,7 @@
<span v-else>{{ scope.row.isAntibiotic }}</span>
</template>
</el-table-column>
<el-table-column prop="medicUseQuantity" label="用量" width="90">
<el-table-column prop="medicUseQuantity" label="用量" width="80">
<template #default="scope">
<el-input
v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
......@@ -270,7 +270,7 @@
</template>
</el-table-column>
<el-table-column prop="dropNumber" label="滴数" width="90">
<el-table-column prop="dropNumber" label="滴数" width="60">
<template #default="scope">
<el-input
v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
......@@ -300,7 +300,7 @@
show-overflow-tooltip
property="remark"
label="嘱托"
width="320'"
width="170'"
>
<template #default="scope">
<el-input
......@@ -314,6 +314,91 @@
<span v-else>{{ scope.row.remark }}</span>
</template>
</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>
</div>
</div>
......@@ -581,33 +666,61 @@ export default {
})
.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) => {
state.timeindex = val.inhosdays;
state.case_routeid = val.case_routeid;
state.inhosdays = val.inhosdays;
//获取表格数据
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) => {});
radiochange();
};
//加入医嘱
const joinorder = () => {
......@@ -725,6 +838,7 @@ export default {
tableLayout,
gemedicUseModeoptions,
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