Commit c81cea79 by wangshuangqing

添加用药目的字段

parent cc408c9e
......@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-02-24 10:43:54
* @LastEditTime: 2023-02-24 15:48:24
* @Description:
-->
<template>
......@@ -148,6 +148,7 @@
@select-all="selectAll"
@select="select"
default-expand-all
size="mini"
>
<el-table-column type="selection" width="55" />
<!-- <el-table-column label="医嘱类型" width="120">
......@@ -194,8 +195,8 @@
<el-table-column
show-overflow-tooltip
property="isAntibiotic"
label="抗生素"
width="90"
label="抗生素"
width="85"
>
<template #default="scope">
<el-select
......@@ -214,6 +215,28 @@
<span v-else>{{ scope.row.isAntibiotic }}</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
property="medicalPurpose"
label="用药目的"
>
<template #default="scope">
<el-select
v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
size="mini"
v-model="scope.row.medicalPurpose"
>
<el-option
v-for="item in medicalPurposeoptions"
:key="item.id"
:label="item.describe"
:value="item.describe"
>
</el-option>
</el-select>
<span v-else>{{ scope.row.medicalPurpose }}</span>
</template>
</el-table-column>
<el-table-column prop="medicUseQuantity" label="用量" width="75">
<template #default="scope">
<el-input
......@@ -555,6 +578,7 @@ export default {
tempRowChildren: [],
medicUseModeoptions: [], //途径
medicUsePlanoptions: [], //频率
medicalPurposeoptions: [], //用药目的
radio: 1,
newtable1: [],
newtable2: [],
......@@ -585,6 +609,18 @@ export default {
})
.catch((error) => {});
};
//获取用要目的下拉数据
const getmedicalPurposeoptions = () => {
http
.post(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`,
{}
)
.then((data) => {
state.medicalPurposeoptions = data;
})
.catch((error) => {});
};
//获取患者信息
const gettopdata = () => {
......@@ -893,6 +929,7 @@ export default {
getlefttime();
gemedicUseModeoptions();
gemedicUsePlanoptions();
getmedicalPurposeoptions();
});
return {
......@@ -922,6 +959,7 @@ export default {
gemedicUseModeoptions,
gemedicUsePlanoptions,
radiochange,
getmedicalPurposeoptions,
};
},
};
......
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