Browse Source

修改益寿缘总后台-处方单管理-未开方时不展示药师名称

cgp 2 days ago
parent
commit
3ec3ab1661
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/his/storeOrder/order2.vue

+ 6 - 1
src/views/his/storeOrder/order2.vue

@@ -183,7 +183,12 @@
       <el-table-column label="患者姓名" align="center" prop="patientName" />
       <el-table-column label="诊断" align="center" prop="diagnose" />
       <el-table-column label="医生名称" align="center" prop="doctorName" />
-      <el-table-column label="药师名称" align="center" prop="doctorDrugName" />
+      <el-table-column label="药师名称" align="center" prop="doctorDrugName">
+        <template slot-scope="scope">
+          <!-- 使用 v-if 指令,根据当前行的 status 值决定是否渲染药师名称 -->
+          <span v-if="scope.row.status !== 0">{{ scope.row.doctorDrugName }}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="状态" align="center" prop="status" >
         <template slot-scope="scope">
           <dict-tag :options="prescribeStatusOptions" :value="scope.row.status"/>