Browse Source

门诊医保显示医生是否有医保编码

lighter 3 years ago
parent
commit
c67175c5d7
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/medical-insurance/outpatient/MzRegister.vue

+ 9 - 2
src/views/medical-insurance/outpatient/MzRegister.vue

@@ -141,7 +141,7 @@
             </div>
             <el-divider></el-divider>
             <div class="receipt-head">
-              <div style="font-size: 15px">医师:{{ mzVisit.doctorName }} / {{ mzVisit.doctorCode }}</div>
+              <div style="font-size: 15px; width: 70%">医师:{{ mzVisit.doctorName }} / {{ mzVisit.doctorCode }} / <span v-html="highlightYbCode(mzVisit.doctorCode,mzVisit.doctorYbCode)"></span></div>
               <div style="font-size: 15px">
                 总金额:<span style="font-size: 18px; font-weight: bold">¥{{ totalFee }}</span>
               </div>
@@ -150,7 +150,6 @@
         </el-col>
       </el-row>
     </el-main>
-
     <el-dialog title="个人信息" v-model="showInsuinfo" width="65%">
       <el-tag>参保信息</el-tag>
       <el-table :data="psnBaseinfo.insuinfo" @row-click="handleClickInsuinfo">
@@ -760,6 +759,13 @@ export default {
       spcChrDiseAccts.value = []
     }
 
+    const highlightYbCode = (hisCode, ybCode) => {
+      if (!hisCode) {
+        return ''
+      }
+      return ybCode ? `<span>${ybCode}</span>` : '<span style="color: red">医师无医保编码</span>'
+    }
+
     onMounted(() => {
       getMedTypesByFlag('clinic').then((res) => {
         medTypes.value = res
@@ -813,6 +819,7 @@ export default {
       registor,
       receiptsOpts,
       settlement,
+      highlightYbCode,
     }
   },
 }