Commit c81cea79 by wangshuangqing

添加用药目的字段

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