|
|
@@ -84,7 +84,9 @@
|
|
|
<el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
|
|
|
<el-table-column prop="name" label="方名" align="center" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="effect" label="功效与适应症" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="drugInformation" label="涵盖项目" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column label="涵盖项目" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">{{ formatCoverage(scope.row) }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="provenance" label="处方出处" align="center" width="150" show-overflow-tooltip></el-table-column>
|
|
|
<!-- 共享状态:参考 SuitableTech.vue,showType 0个人 1科室 2机构 -->
|
|
|
<el-table-column prop="showType" label="共享状态" width="100" align="center">
|
|
|
@@ -182,6 +184,10 @@ export default {
|
|
|
this.currentPage = 1;
|
|
|
this.getAgreeRecipe();
|
|
|
},
|
|
|
+ // 涵盖项目:遍历 treatmentList 取 treatItemName 拼接
|
|
|
+ formatCoverage(row) {
|
|
|
+ return (row.treatmentList || []).map(i => i.treatItemName).filter(Boolean).join("、");
|
|
|
+ },
|
|
|
async getDiseaseList(keyword = '') {
|
|
|
const { list } = await getDiseaseListMethod(1, 9999, { keyword }).catch(() => ({ total: 0, list: [] }));
|
|
|
this.diseaseList = list;
|