Bladeren bron

质控栏

yuwandanmian 1 jaar geleden
bovenliggende
commit
feda247c36
2 gewijzigde bestanden met toevoegingen van 135 en 105 verwijderingen
  1. 25 4
      src/views/medicalRecord/components/index/ControlDrawer.vue
  2. 110 101
      src/views/medicalRecord/index.vue

+ 25 - 4
src/views/medicalRecord/components/index/ControlDrawer.vue

@@ -131,7 +131,10 @@ export default {
         ],
       },
       zkcodeIndex: 0,
-      zk_codes: []
+      zk_codes: {
+        qz: [],
+        jy: []
+      }
     };
   },
   computed: {
@@ -162,13 +165,31 @@ export default {
       item.basis.map(bItem => {
         const { user, zd, ss } = bItem.location
         user.map(uItem => {
-          this.zk_codes.push(uItem)
+          if (item.level) {
+            // 建议
+            this.zk_codes.jy.push(uItem)
+          } else {
+            // 强制
+            this.zk_codes.qz.push(uItem)
+          }
         })
         zd.map(zItem => {
-          this.zk_codes.push(zItem.field)
+          if (item.level) {
+            // 建议
+            this.zk_codes.jy.push(zItem.field)
+          } else {
+            // 强制
+            this.zk_codes.qz.push(zItem.field)
+          }
         })
         ss.map(sItem => {
-          this.zk_codes.push(sItem.field)
+          if (item.level) {
+            // 建议
+            this.zk_codes.jy.push(sItem.field)
+          } else {
+            // 强制
+            this.zk_codes.qz.push(sItem.field)
+          }
         })
       })
     })

+ 110 - 101
src/views/medicalRecord/index.vue

@@ -9,9 +9,9 @@
       <!-- 基本信息 -->
       <table class="table">
         <tr>
-          <td class="label ZA03" :class="{'highlight': hasIntersection(zk_codes, ['ZA03'])}">医疗机构</td>
+          <td class="label ZA03" :class="{'jy': hasIntersection(zk_codes.jy, ['ZA03']), 'qz': hasIntersection(zk_codes.qz, ['ZA03'])}">医疗机构</td>
           <td colspan="5">{{ blInfo.patient_other_info.ZA03 }}</td>
-          <td class="label TYSHXYDM UNT_ID" :class="{'highlight': hasIntersection(zk_codes, ['TYSHXYDM', 'UNT_ID'])}">统一社会信用代码</td>
+          <td class="label TYSHXYDM UNT_ID" :class="{'jy': hasIntersection(zk_codes.jy, ['TYSHXYDM', 'UNT_ID']), 'qz': hasIntersection(zk_codes.qz, ['TYSHXYDM', 'UNT_ID'])}">统一社会信用代码</td>
           <td colspan="5">
             <NoValueInputVue :data="blInfo.patient_add.TYSHXYDM" />
             (组织机构机构代码:
@@ -20,27 +20,27 @@
           </td>
         </tr>
         <tr>
-          <td class="label AAA26C" :class="{'highlight': hasIntersection(zk_codes, ['AAA26C'])}">医疗付费方式</td>
+          <td class="label AAA26C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA26C']), 'qz': hasIntersection(zk_codes.qz, ['AAA26C'])}">医疗付费方式</td>
           <td colspan="5">{{ blInfo.patient_info.AAA26C }}</td>
-          <td class="label JKKH" :class="{'highlight': hasIntersection(zk_codes, ['JKKH'])}">健康卡号</td>
+          <td class="label JKKH" :class="{'jy': hasIntersection(zk_codes.jy, ['JKKH']), 'qz': hasIntersection(zk_codes.qz, ['JKKH'])}">健康卡号</td>
           <td colspan="3">{{ blInfo.patient_add.JKKH }}</td>
-          <td class="label AAA29" :class="{'highlight': hasIntersection(zk_codes, ['AAA29'])}">住院次数</td>
+          <td class="label AAA29" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA29']), 'qz': hasIntersection(zk_codes.qz, ['AAA29'])}">住院次数</td>
           <td>{{ blInfo.patient_info.AAA29 }}</td>
         </tr>
         <tr>
-          <td class="label AAA01" :class="{'highlight': hasIntersection(zk_codes, ['AAA01'])}">姓名</td>
+          <td class="label AAA01" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA01']), 'qz': hasIntersection(zk_codes.qz, ['AAA01'])}">姓名</td>
           <td>{{ blInfo.patient_info.AAA01 }}</td>
-          <td class="label AAA02C" :class="{'highlight': hasIntersection(zk_codes, ['AAA02C'])}">性别</td>
+          <td class="label AAA02C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA02C']), 'qz': hasIntersection(zk_codes.qz, ['AAA02C'])}">性别</td>
           <td>{{ blInfo.patient_info.AAA02C }}</td>
-          <td class="label AAA03" :class="{'highlight': hasIntersection(zk_codes, ['AAA03'])}">出生日期</td>
+          <td class="label AAA03" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA03']), 'qz': hasIntersection(zk_codes.qz, ['AAA03'])}">出生日期</td>
           <td colspan="3">{{ blInfo.patient_info.AAA03 }}</td>
-          <td class="label AAA04" :class="{'highlight': hasIntersection(zk_codes, ['AAA04'])}">年龄</td>
+          <td class="label AAA04" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA04']), 'qz': hasIntersection(zk_codes.qz, ['AAA04'])}">年龄</td>
           <td>{{ blInfo.patient_info.AAA04 }}</td>
-          <td class="label AAA40" :class="{'highlight': hasIntersection(zk_codes, ['AAA40'])}">天龄(不足1周岁)</td>
+          <td class="label AAA40" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA40']), 'qz': hasIntersection(zk_codes.qz, ['AAA40'])}">天龄(不足1周岁)</td>
           <td>{{ blInfo.patient_info.AAA40 }}</td>
         </tr>
         <tr>
-          <td class="label AAA09 AAA10 AAA11" :class="{'highlight': ['AAA09', 'AAA10', 'AAA11'].includes(highlight_code)}">出生地</td>
+          <td class="label AAA09 AAA10 AAA11" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA09', 'AAA10', 'AAA11']), 'qz': hasIntersection(zk_codes.qz, ['AAA09', 'AAA10', 'AAA11'])}">出生地</td>
           <td colspan="3">
             <NoValueInputVue :data="blInfo.patient_address_info.AAA09 ? blInfo.patient_address_info.AAA09.replace('省', '') : ''" />
             (省)
@@ -58,30 +58,30 @@
               <NoValueInputVue :data="blInfo.patient_address_info.AAA11" />
             </span>
           </td>
-          <td class="label AAA43 AAA44" :class="{'highlight': ['AAA43', 'AAA44'].includes(highlight_code)}">籍贯</td>
+          <td class="label AAA43 AAA44" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA43', 'AAA44']), 'qz': hasIntersection(zk_codes.qz, ['AAA43', 'AAA44'])}">籍贯</td>
           <td colspan="3">
             <NoValueInputVue :data="blInfo.patient_address_info.AAA43 ? blInfo.patient_address_info.AAA43.replace('省', '') : ''" />
             (省)
             <NoValueInputVue :data="blInfo.patient_address_info.AAA44 ? blInfo.patient_address_info.AAA44.replace('市', '') : ''" />
             (市)
           </td>
-          <td class="label AAA06C" :class="{'highlight': ['AAA06C'].includes(highlight_code)}">民族</td>
+          <td class="label AAA06C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA06C']), 'qz': hasIntersection(zk_codes.qz, ['AAA06C'])}">民族</td>
           <td>{{ blInfo.patient_info.AAA06C }}</td>
-          <td class="label AAA05C" :class="{'highlight': ['AAA05C'].includes(highlight_code)}">国籍</td>
+          <td class="label AAA05C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA05C']), 'qz': hasIntersection(zk_codes.qz, ['AAA05C'])}">国籍</td>
           <td>{{ blInfo.patient_info.AAA05C }}</td>
         </tr>
         <tr>
-          <td class="label SFZJLX" :class="{'highlight': ['SFZJLX'].includes(highlight_code)}">身份证件类型</td>
+          <td class="label SFZJLX" :class="{'jy': hasIntersection(zk_codes.jy, ['SFZJLX']), 'qz': hasIntersection(zk_codes.qz, ['SFZJLX'])}">身份证件类型</td>
           <td>{{ blInfo.patient_add.SFZJLX }}</td>
-          <td class="label AAA07" :class="{'highlight': ['AAA07'].includes(highlight_code)}">身份证号</td>
+          <td class="label AAA07" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA07']), 'qz': hasIntersection(zk_codes.qz, ['AAA07'])}">身份证号</td>
           <td colspan="5">{{ blInfo.patient_info.AAA07 }}</td>
-          <td class="label AAA18C" :class="{'highlight': ['AAA18C'].includes(highlight_code)}">职业</td>
+          <td class="label AAA18C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA18C']), 'qz': hasIntersection(zk_codes.qz, ['AAA18C'])}">职业</td>
           <td>{{ blInfo.patient_work_info.AAA18C }}</td>
-          <td class="label AAA08C" :class="{'highlight': ['AAA08C'].includes(highlight_code)}">婚姻</td>
+          <td class="label AAA08C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA08C']), 'qz': hasIntersection(zk_codes.qz, ['AAA08C'])}">婚姻</td>
           <td>{{ blInfo.patient_info.AAA08C }}</td>
         </tr>
         <tr>
-          <td class="label AAA48 AAA49 AAA50 AAA15" :class="{'highlight': ['AAA48', 'AAA49', 'AAA50', 'AAA15'].includes(highlight_code)}">现住址</td>
+          <td class="label AAA48 AAA49 AAA50 AAA15" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA48', 'AAA49', 'AAA50', 'AAA15']), 'qz': hasIntersection(zk_codes.qz, ['AAA48', 'AAA49', 'AAA50', 'AAA15'])}">现住址</td>
           <td colspan="7">
             <NoValueInputVue :data="blInfo.patient_address_info.AAA48 ? blInfo.patient_address_info.AAA48.replace('省', '') : ''" />
             (省)
@@ -100,13 +100,13 @@
             </span>
             <NoValueInputVue :data="blInfo.patient_address_info.AAA15" />
           </td>
-          <td class="label AAA51" :class="{'highlight': ['AAA51'].includes(highlight_code)}">电话</td>
+          <td class="label AAA51" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA51']), 'qz': hasIntersection(zk_codes.qz, ['AAA51'])}">电话</td>
           <td>{{ blInfo.patient_address_info.AAA51 }}</td>
-          <td class="label AAA17C" :class="{'highlight': ['AAA17C'].includes(highlight_code)}">邮编</td>
+          <td class="label AAA17C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA17C']), 'qz': hasIntersection(zk_codes.qz, ['AAA17C'])}">邮编</td>
           <td>{{ blInfo.patient_address_info.AAA17C }}</td>
         </tr>
         <tr>
-          <td class="label AAA45 AAA46 AAA47 AAA12" :class="{'highlight': ['AAA45', 'AAA46', 'AAA47', 'AAA12'].includes(highlight_code)}">户口地址</td>
+          <td class="label AAA45 AAA46 AAA47 AAA12" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA45', 'AAA46', 'AAA47', 'AAA12']), 'qz': hasIntersection(zk_codes.qz, ['AAA45', 'AAA46', 'AAA47', 'AAA12'])}">户口地址</td>
           <td colspan="9">
             <NoValueInputVue :data="blInfo.patient_address_info.AAA45 ? blInfo.patient_address_info.AAA45.replace('省', '') : ''" />
             (省)
@@ -129,25 +129,25 @@
           <td>{{ blInfo.patient_address_info.AAA14C }}</td>
         </tr>
         <tr>
-          <td class="label AAA19" :class="{'highlight': ['AAA19'].includes(highlight_code)}">工作单位及地址</td>
+          <td class="label AAA19" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA19']), 'qz': hasIntersection(zk_codes.qz, ['AAA19'])}">工作单位及地址</td>
           <td colspan="7">{{ blInfo.patient_work_info.AAA19 }}</td>
-          <td class="label AAA20" :class="{'highlight': ['AAA20'].includes(highlight_code)}">单位电话</td>
+          <td class="label AAA20" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA20']), 'qz': hasIntersection(zk_codes.qz, ['AAA20'])}">单位电话</td>
           <td>{{ blInfo.patient_work_info.AAA20 }}</td>
-          <td class="label AAA21C" :class="{'highlight': ['AAA21C'].includes(highlight_code)}">邮编</td>
+          <td class="label AAA21C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA21C']), 'qz': hasIntersection(zk_codes.qz, ['AAA21C'])}">邮编</td>
           <td>{{ blInfo.patient_work_info.AAA21C }}</td>
         </tr>
         <tr>
-          <td class="label AAA22" :class="{'highlight': ['AAA22'].includes(highlight_code)}">联系人姓名</td>
+          <td class="label AAA22" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA22']), 'qz': hasIntersection(zk_codes.qz, ['AAA22'])}">联系人姓名</td>
           <td colspan="3">{{ blInfo.patient_contacts_info.AAA22 }}</td>
-          <td class="label AAA24" :class="{'highlight': ['AAA24'].includes(highlight_code)}">地址</td>
+          <td class="label AAA24" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA24']), 'qz': hasIntersection(zk_codes.qz, ['AAA24'])}">地址</td>
           <td colspan="3">{{ blInfo.patient_contacts_info.AAA24 }}</td>
-          <td class="label AAA23C" :class="{'highlight': ['AAA23C'].includes(highlight_code)}">关系</td>
+          <td class="label AAA23C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA23C']), 'qz': hasIntersection(zk_codes.qz, ['AAA23C'])}">关系</td>
           <td>{{ blInfo.patient_contacts_info.AAA23C }}</td>
-          <td class="label AAA25" :class="{'highlight': ['AAA25'].includes(highlight_code)}">电话</td>
+          <td class="label AAA25" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA25']), 'qz': hasIntersection(zk_codes.qz, ['AAA25'])}">电话</td>
           <td>{{ blInfo.patient_contacts_info.AAA25 }}</td>
         </tr>
         <tr>
-          <td class="label AAB06C ZZYLJG" :class="{'highlight': ['AAB06C', 'ZZYLJG'].includes(highlight_code)}">入院途径</td>
+          <td class="label AAB06C ZZYLJG" :class="{'jy': hasIntersection(zk_codes.jy, ['AAB06C', 'ZZYLJG']), 'qz': hasIntersection(zk_codes.qz, ['AAB06C', 'ZZYLJG'])}">入院途径</td>
           <td colspan="11">
             <span class="square">{{ blInfo.patient_info.AAB06C }}</span>
             <span class="mlr10" />
@@ -162,41 +162,41 @@
           </td>
         </tr>
         <tr>
-          <td class="label AEN01" :class="{'highlight': ['AEN01'].includes(highlight_code)}">新生儿出生体重</td>
+          <td class="label AEN01" :class="{'jy': hasIntersection(zk_codes.jy, ['AEN01']), 'qz': hasIntersection(zk_codes.qz, ['AEN01'])}">新生儿出生体重</td>
           <td colspan="5">
             <NoValueInputVue :data="blInfo.patient_info.AEN01" />
           </td>
-          <td class="label AAA42" :class="{'highlight': ['AAA42'].includes(highlight_code)}">新生儿入院体重</td>
+          <td class="label AAA42" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA42']), 'qz': hasIntersection(zk_codes.qz, ['AAA42'])}">新生儿入院体重</td>
           <td colspan="5">
             <NoValueInputVue :data="blInfo.patient_info.AAA42" />
           </td>
         </tr>
         <tr>
-          <td class="label AAB01" :class="{'highlight': ['AAB01'].includes(highlight_code)}">入院时间</td>
+          <td class="label AAB01" :class="{'jy': hasIntersection(zk_codes.jy, ['AAB01']), 'qz': hasIntersection(zk_codes.qz, ['AAB01'])}">入院时间</td>
           <td colspan="2">{{ blInfo.patient_info.AAB01 }}</td>
-          <td class="label AAB02C" :class="{'highlight': ['AAB02C'].includes(highlight_code)}">入院科别</td>
+          <td class="label AAB02C" :class="{'qz': ['AAB02C'].includes(highlight_code)}">入院科别</td>
           <td colspan="2">{{ blInfo.patient_hospital_info.AAB02C }}</td>
-          <td class="label AAB11N" :class="{'highlight': ['AAB11N'].includes(highlight_code)}">病房</td>
+          <td class="label AAB11N" :class="{'qz': ['AAB11N'].includes(highlight_code)}">病房</td>
           <td colspan="2">{{ blInfo.patient_hospital_info.AAB11N }}</td>
-          <td class="label AAD01C" :class="{'highlight': ['AAD01C'].includes(highlight_code)}">转科科别</td>
+          <td class="label AAD01C" :class="{'qz': ['AAD01C'].includes(highlight_code)}">转科科别</td>
           <td colspan="2">{{ blInfo.patient_hospital_info.AAD01C }}</td>
         </tr>
         <tr>
-          <td class="label AAC01" :class="{'highlight': ['AAC01'].includes(highlight_code)}">出院时间</td>
+          <td class="label AAC01" :class="{'jy': hasIntersection(zk_codes.jy, ['AAC01']), 'qz': hasIntersection(zk_codes.qz, ['AAC01'])}">出院时间</td>
           <td colspan="2">{{ blInfo.patient_info.AAC01 }}</td>
-          <td class="label AAC02C" :class="{'highlight': ['AAC02C'].includes(highlight_code)}">出院科别</td>
+          <td class="label AAC02C" :class="{'jy': hasIntersection(zk_codes.jy, ['AAC02C']), 'qz': hasIntersection(zk_codes.qz, ['AAC02C'])}">出院科别</td>
           <td colspan="2">{{ blInfo.patient_hospital_info.AAC02C }}</td>
-          <td class="label AAC11N" :class="{'highlight': ['AAC11N'].includes(highlight_code)}">病房</td>
+          <td class="label AAC11N" :class="{'jy': hasIntersection(zk_codes.jy, ['AAC11N']), 'qz': hasIntersection(zk_codes.qz, ['AAC11N'])}">病房</td>
           <td colspan="2">{{ blInfo.patient_info.AAC11N }}</td>
-          <td class="label AAC04" :class="{'highlight': ['AAC04'].includes(highlight_code)}">实际住院天数</td>
+          <td class="label AAC04" :class="{'jy': hasIntersection(zk_codes.jy, ['AAC04']), 'qz': hasIntersection(zk_codes.qz, ['AAC04'])}">实际住院天数</td>
           <td colspan="2">{{ blInfo.patient_info.AAC04 }}</td>
         </tr>
         <tr>
-          <td class="label ABA01C" :class="{'highlight': ['ABA01C'].includes(highlight_code)}">门(急)诊诊断</td>
+          <td class="label ABA01C" :class="{'jy': hasIntersection(zk_codes.jy, ['ABA01C']), 'qz': hasIntersection(zk_codes.qz, ['ABA01C'])}">门(急)诊诊断</td>
           <td colspan="5">{{ blInfo.patient_medical_info.ABA01C }}</td>
-          <td class="label ABA01N" :class="{'highlight': ['ABA01N'].includes(highlight_code)}">疾病编码</td>
+          <td class="label ABA01N" :class="{'jy': hasIntersection(zk_codes.jy, ['ABA01N']), 'qz': hasIntersection(zk_codes.qz, ['ABA01N'])}">疾病编码</td>
           <td colspan="5">{{ blInfo.patient_medical_info.ABA01N }}</td>
         </tr>
       </table>
@@ -239,27 +239,27 @@
           </td>
         </tr>
         <tr>
-          <td class="label ABG01N" :class="{'highlight': ['ABG01N'].includes(highlight_code)}">损伤、中毒的外部原因</td>
+          <td class="label ABG01N" :class="{'jy': hasIntersection(zk_codes.jy, ['ABG01N']), 'qz': hasIntersection(zk_codes.qz, ['ABG01N'])}">损伤、中毒的外部原因</td>
           <td colspan="7">{{ blInfo.patient_info.ABG01N }}</td>
-          <td class="label ABG01C" :class="{'highlight': ['ABG01C'].includes(highlight_code)}">疾病编码</td>
+          <td class="label ABG01C" :class="{'jy': hasIntersection(zk_codes.jy, ['ABG01C']), 'qz': hasIntersection(zk_codes.qz, ['ABG01C'])}">疾病编码</td>
           <td>{{ blInfo.patient_info.ABG01C }}</td>
         </tr>
         <tr>
-          <td class="label ABF01N" :class="{'highlight': ['ABF01N'].includes(highlight_code)}">病理诊断</td>
+          <td class="label ABF01N" :class="{'jy': hasIntersection(zk_codes.jy, ['ABF01N']), 'qz': hasIntersection(zk_codes.qz, ['ABF01N'])}">病理诊断</td>
           <td colspan="7">{{ blInfo.patient_medical_info.ABF01N }}</td>
-          <td class="label ABF01C" :class="{'highlight': ['ABF01C'].includes(highlight_code)}">疾病编码</td>
+          <td class="label ABF01C" :class="{'jy': hasIntersection(zk_codes.jy, ['ABF01C']), 'qz': hasIntersection(zk_codes.qz, ['ABF01C'])}">疾病编码</td>
           <td>{{ blInfo.patient_medical_info.ABF01C }}</td>
         </tr>
         <tr>
-          <td class="label ABF02C" :class="{'highlight': ['ABF02C'].includes(highlight_code)}">最高诊断依据</td>
+          <td class="label ABF02C" :class="{'jy': hasIntersection(zk_codes.jy, ['ABF02C']), 'qz': hasIntersection(zk_codes.qz, ['ABF02C'])}">最高诊断依据</td>
           <td colspan="4">{{ blInfo.patient_medical_info.ABF02C }}</td>
-          <td class="label ABF04" :class="{'highlight': ['ABF04'].includes(highlight_code)}">病理号</td>
+          <td class="label ABF04" :class="{'jy': hasIntersection(zk_codes.jy, ['ABF04']), 'qz': hasIntersection(zk_codes.qz, ['ABF04'])}">病理号</td>
           <td colspan="2">{{ blInfo.patient_medical_info.ABF04 }}</td>
-          <td class="label ICD" :class="{'highlight': ['ICD'].includes(highlight_code)}">ICD-0-3</td>
+          <td class="label ICD" :class="{'jy': hasIntersection(zk_codes.jy, ['ICD']), 'qz': hasIntersection(zk_codes.qz, ['ICD'])}">ICD-0-3</td>
           <td>{{ blInfo.patient_add.ICD }}</td>
         </tr>
         <tr>
-          <td class="label AEB02C AEB01" :class="{'highlight': ['AEB02C', 'AEB01'].includes(highlight_code)}">药物过敏</td>
+          <td class="label AEB02C AEB01" :class="{'qz': ['AEB02C', 'AEB01'].includes(highlight_code)}">药物过敏</td>
           <td colspan="4">
             <span class="square">{{ blInfo.patient_medical_info.AEB02C }}</span>
             <span class="mlr10" />
@@ -271,7 +271,7 @@
             <span style="margin-left: 40px">过敏药物:</span>
             <NoValueInputVue :data="blInfo.patient_medical_info.AEB01" />
           </td>
-          <td class="label AEI01C" :class="{'highlight': ['AEI01C'].includes(highlight_code)}">死亡患者尸检</td>
+          <td class="label AEI01C" :class="{'jy': hasIntersection(zk_codes.jy, ['AEI01C']), 'qz': hasIntersection(zk_codes.qz, ['AEI01C'])}">死亡患者尸检</td>
           <td colspan="4">
             <span class="square">{{ blInfo.patient_hospital_info.AEI01C }}</span>
             <span class="mlr10" />
@@ -283,7 +283,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label AEG01C" :class="{'highlight': ['AEG01C'].includes(highlight_code)}">血型</td>
+          <td class="label AEG01C" :class="{'jy': hasIntersection(zk_codes.jy, ['AEG01C']), 'qz': hasIntersection(zk_codes.qz, ['AEG01C'])}">血型</td>
           <td colspan="4">
             <span class="square">{{ blInfo.patient_medical_info.AEG01C }}</span>
             <span class="mlr10" />
@@ -299,7 +299,7 @@
             <span class="mlr10" />
             6.未查
           </td>
-          <td class="label AEG02C" :class="{'highlight': ['AEG02C'].includes(highlight_code)}">Rh</td>
+          <td class="label AEG02C" :class="{'jy': hasIntersection(zk_codes.jy, ['AEG02C']), 'qz': hasIntersection(zk_codes.qz, ['AEG02C'])}">Rh</td>
           <td colspan="4">
             <span class="square">{{ blInfo.patient_medical_info.AEG02C }}</span>
             <span class="mlr10" />
@@ -313,7 +313,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label TJHL YJHL EJHL SJHL" :class="{'highlight': ['TJHL', 'YJHL', 'EJHL', 'SJHL'].includes(highlight_code)}">护理级别</td>
+          <td class="label TJHL YJHL EJHL SJHL" :class="{'jy': hasIntersection(zk_codes.jy, ['TJHL', 'YJHL', 'EJHL', 'SJHL']), 'qz': hasIntersection(zk_codes.qz, ['TJHL', 'YJHL', 'EJHL', 'SJHL'])}">护理级别</td>
           <td colspan="9">
             1.特级护理
             <NoValueInputVue :data="blInfo.patient_add.TJHL" />
@@ -333,43 +333,43 @@
           </td>
         </tr>
         <tr>
-          <td class="label AEE01" :class="{'highlight': ['AEE01'].includes(highlight_code)}">科主任</td>
+          <td class="label AEE01" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE01']), 'qz': hasIntersection(zk_codes.qz, ['AEE01'])}">科主任</td>
           <td>{{ blInfo.patient_doctor_info.AEE01 }}</td>
-          <td class="label AEE01_CODE" :class="{'highlight': ['AEE01_CODE'].includes(highlight_code)}">科主任编码</td>
+          <td class="label AEE01_CODE" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE01_CODE']), 'qz': hasIntersection(zk_codes.qz, ['AEE01_CODE'])}">科主任编码</td>
           <td>{{ blInfo.patient_doctor_info.AEE01_CODE }}</td>
-          <td class="label ZZYISXM" :class="{'highlight': ['ZZYISXM'].includes(highlight_code)}">医疗组长</td>
+          <td class="label ZZYISXM" :class="{'jy': hasIntersection(zk_codes.jy, ['ZZYISXM']), 'qz': hasIntersection(zk_codes.qz, ['ZZYISXM'])}">医疗组长</td>
           <td>{{ blInfo.patient_doctor_info.ZZYISXM }}</td>
-          <td class="label AEE02" :class="{'highlight': ['AEE02'].includes(highlight_code)}">主任(副主任)医师</td>
+          <td class="label AEE02" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE02']), 'qz': hasIntersection(zk_codes.qz, ['AEE02'])}">主任(副主任)医师</td>
           <td>{{ blInfo.patient_doctor_info.AEE02 }}</td>
-          <td class="label AEE02_CODE" :class="{'highlight': ['AEE02_CODE'].includes(highlight_code)}">主任(副主任)医师编码</td>
+          <td class="label AEE02_CODE" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE02_CODE']), 'qz': hasIntersection(zk_codes.qz, ['AEE02_CODE'])}">主任(副主任)医师编码</td>
           <td>{{ blInfo.patient_doctor_info.AEE02_CODE }}</td>
         </tr>
         <tr>
-          <td class="label AEE03" :class="{'highlight': ['AEE03'].includes(highlight_code)}">主治医师</td>
+          <td class="label AEE03" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE03']), 'qz': hasIntersection(zk_codes.qz, ['AEE03'])}">主治医师</td>
           <td>{{ blInfo.patient_doctor_info.AEE03 }}</td>
-          <td class="label AEE03_CODE" :class="{'highlight': ['AEE03_CODE'].includes(highlight_code)}">主治医师编码</td>
+          <td class="label AEE03_CODE" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE03_CODE']), 'qz': hasIntersection(zk_codes.qz, ['AEE03_CODE'])}">主治医师编码</td>
           <td>{{ blInfo.patient_doctor_info.AEE03_CODE }}</td>
-          <td class="label AEE04" :class="{'highlight': ['AEE04'].includes(highlight_code)}">住院医师</td>
+          <td class="label AEE04" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE04']), 'qz': hasIntersection(zk_codes.qz, ['AEE04'])}">住院医师</td>
           <td>{{ blInfo.patient_doctor_info.AEE04 }}</td>
-          <td class="label AEE04_CODE" :class="{'highlight': ['AEE04_CODE'].includes(highlight_code)}">住院医师编码</td>
+          <td class="label AEE04_CODE" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE04_CODE']), 'qz': hasIntersection(zk_codes.qz, ['AEE04_CODE'])}">住院医师编码</td>
           <td>{{ blInfo.patient_doctor_info.AEE04_CODE }}</td>
           <td class="label"></td>
           <td></td>
         </tr>
         <tr>
-          <td class="label AEE10" :class="{'highlight': ['AEE10'].includes(highlight_code)}">责任护士</td>
+          <td class="label AEE10" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE10']), 'qz': hasIntersection(zk_codes.qz, ['AEE10'])}">责任护士</td>
           <td>{{ blInfo.patient_doctor_info.AEE10 }}</td>
-          <td class="label AEE10_CODE" :class="{'highlight': ['AEE10_CODE'].includes(highlight_code)}">责任护士编码</td>
+          <td class="label AEE10_CODE" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE10_CODE']), 'qz': hasIntersection(zk_codes.qz, ['AEE10_CODE'])}">责任护士编码</td>
           <td>{{ blInfo.patient_doctor_info.AEE10_CODE }}</td>
-          <td class="label AEE05" :class="{'highlight': ['AEE05'].includes(highlight_code)}">进修医生</td>
+          <td class="label AEE05" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE05']), 'qz': hasIntersection(zk_codes.qz, ['AEE05'])}">进修医生</td>
           <td>{{ blInfo.patient_doctor_info.AEE05 }}</td>
-          <td class="label AEE07" :class="{'highlight': ['AEE07'].includes(highlight_code)}">实习医师</td>
+          <td class="label AEE07" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE07']), 'qz': hasIntersection(zk_codes.qz, ['AEE07'])}">实习医师</td>
           <td>{{ blInfo.patient_doctor_info.AEE07 }}</td>
-          <td class="label AEE08" :class="{'highlight': ['AEE08'].includes(highlight_code)}">编码员</td>
+          <td class="label AEE08" :class="{'jy': hasIntersection(zk_codes.jy, ['AEE08']), 'qz': hasIntersection(zk_codes.qz, ['AEE08'])}">编码员</td>
           <td>{{ blInfo.patient_doctor_info.AEE08 }}</td>
         </tr>
         <tr>
-          <td class="label AED01C" :class="{'highlight': ['AED01C'].includes(highlight_code)}">病案质量</td>
+          <td class="label AED01C" :class="{'qz': ['AED01C'].includes(highlight_code)}">病案质量</td>
           <td colspan="3">
             <span class="square">{{ blInfo.patient_medical_info.AED01C }}</span>
             <span class="mlr10" />
@@ -379,11 +379,11 @@
             <span class="mlr10" />
             3.丙
           </td>
-          <td class="label AED02" :class="{'highlight': ['AED02'].includes(highlight_code)}">质控医师</td>
+          <td class="label AED02" :class="{'jy': hasIntersection(zk_codes.jy, ['AED02']), 'qz': hasIntersection(zk_codes.qz, ['AED02'])}">质控医师</td>
           <td>{{ blInfo.patient_doctor_info.AED02 }}</td>
-          <td class="label AED03" :class="{'highlight': ['AED03'].includes(highlight_code)}">质控护士</td>
+          <td class="label AED03" :class="{'jy': hasIntersection(zk_codes.jy, ['AED03']), 'qz': hasIntersection(zk_codes.qz, ['AED03'])}">质控护士</td>
           <td>{{ blInfo.patient_doctor_info.AED03 }}</td>
-          <td class="label AED04" :class="{'highlight': ['AED04'].includes(highlight_code)}">质控时间</td>
+          <td class="label AED04" :class="{'jy': hasIntersection(zk_codes.jy, ['AED04']), 'qz': hasIntersection(zk_codes.qz, ['AED04'])}">质控时间</td>
           <td>{{ blInfo.patient_doctor_info.AED04 }}</td>
         </tr>
       </table>
@@ -459,7 +459,7 @@
           </tr>
         </template>
         <tr>
-          <td class="label RJSS" :class="{'highlight': ['RJSS'].includes(highlight_code)}">是否为日间手术</td>
+          <td class="label RJSS" :class="{'jy': hasIntersection(zk_codes.jy, ['RJSS']), 'qz': hasIntersection(zk_codes.qz, ['RJSS'])}">是否为日间手术</td>
           <td colspan="5">
             <span class="square">{{ blInfo.main_operation.RJSS }}</span>
             <span class="mlr10" />
@@ -467,11 +467,11 @@
             <span class="mlr10" />
             2.否
           </td>
-          <td class="label AEL01" :class="{'highlight': ['AEL01'].includes(highlight_code)}">有创呼吸机使用时间</td>
+          <td class="label AEL01" :class="{'jy': hasIntersection(zk_codes.jy, ['AEL01']), 'qz': hasIntersection(zk_codes.qz, ['AEL01'])}">有创呼吸机使用时间</td>
           <td colspan="6">{{ blInfo.patient_medical_info.AEL01 }}</td>
         </tr>
         <tr>
-          <td class="label LCLJ" :class="{'highlight': ['LCLJ'].includes(highlight_code)}">临床路径/入径情况</td>
+          <td class="label LCLJ" :class="{'jy': hasIntersection(zk_codes.jy, ['LCLJ']), 'qz': hasIntersection(zk_codes.qz, ['LCLJ'])}">临床路径/入径情况</td>
           <td colspan="5">
             <span class="square">{{ blInfo.patient_add.LCLJ }}</span>
             <span class="mlr10" />
@@ -479,7 +479,7 @@
             <span class="mlr10" />
             2.否
           </td>
-          <td class="label WCQK" :class="{'highlight': ['WCQK'].includes(highlight_code)}">完成情况</td>
+          <td class="label WCQK" :class="{'jy': hasIntersection(zk_codes.jy, ['WCQK']), 'qz': hasIntersection(zk_codes.qz, ['WCQK'])}">完成情况</td>
           <td colspan="2">
             <span class="square">{{ blInfo.patient_add.WCQK }}</span>
             <span class="mlr10" />
@@ -487,7 +487,7 @@
             <span class="mlr10" />
             2.退出
           </td>
-          <td class="label BYQK" :class="{'highlight': ['BYQK'].includes(highlight_code)}">变异情况</td>
+          <td class="label BYQK" :class="{'jy': hasIntersection(zk_codes.jy, ['BYQK']), 'qz': hasIntersection(zk_codes.qz, ['BYQK'])}">变异情况</td>
           <td colspan="3">
             <span class="square">{{ blInfo.patient_add.BYQK }}</span>
             <span class="mlr10" />
@@ -497,7 +497,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label AEJ01 AEJ02 AEJ03 AEJ04 AEJ05 AEJ06" :class="{'highlight': ['AEJ01', 'AEJ02', 'AEJ03', 'AEJ04', 'AEJ05', 'AEJ06'].includes(highlight_code)}">颅脑损伤患者昏迷时间</td>
+          <td class="label AEJ01 AEJ02 AEJ03 AEJ04 AEJ05 AEJ06" :class="{'jy': hasIntersection(zk_codes.jy, ['AEJ01', 'AEJ02', 'AEJ03', 'AEJ04', 'AEJ05', 'AEJ06']), 'qz': hasIntersection(zk_codes.qz, ['AEJ01', 'AEJ02', 'AEJ03', 'AEJ04', 'AEJ05', 'AEJ06'])}">颅脑损伤患者昏迷时间</td>
           <td colspan="12">
             入院前:
             <NoValueInputVue :data="blInfo.patient_medical_info.AEJ01" />
@@ -553,7 +553,7 @@
           </tr>
         </template>
         <tr>
-          <td class="label AEM01C AEM02" :class="{'highlight': ['AEM01C', 'AEM02'].includes(highlight_code)}">离院方式</td>
+          <td class="label AEM01C AEM02" :class="{'jy': hasIntersection(zk_codes.jy, ['AEM01C', 'AEM02']), 'qz': hasIntersection(zk_codes.qz, ['AEM01C', 'AEM02'])}">离院方式</td>
           <td colspan="12">
             <span class="square">{{ blInfo.patient_info.AEM01C }}</span>
             <span class="mlr10" />
@@ -573,7 +573,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label AEM03C AEM04" :class="{'highlight': ['AEM03C', 'AEM04'].includes(highlight_code)}">是否有出院31天内再住院计划</td>
+          <td class="label AEM03C AEM04" :class="{'jy': hasIntersection(zk_codes.jy, ['AEM03C', 'AEM04']), 'qz': hasIntersection(zk_codes.qz, ['AEM03C', 'AEM04'])}">是否有出院31天内再住院计划</td>
           <td colspan="12">
             <span class="square">{{ blInfo.patient_hospital_info.AEM03C }}</span>
             <span class="mlr10" />
@@ -592,7 +592,7 @@
       <!-- 费用信息 -->
       <table class="table">
         <tr>
-          <td class="label ADA01 ADA0101" :class="{'highlight': ['ADA01', 'ADA0101'].includes(highlight_code)}">住院费用(元)</td>
+          <td class="label ADA01 ADA0101" :class="{'jy': hasIntersection(zk_codes.jy, ['ADA01', 'ADA0101']), 'qz': hasIntersection(zk_codes.qz, ['ADA01', 'ADA0101'])}">住院费用(元)</td>
           <td colspan="9">
             总费用:
             <NoValueInputVue :data="blInfo.patient_info.ADA01" />
@@ -602,7 +602,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D11 D12 D13 D14" :class="{'highlight': ['D11', 'D12', 'D13', 'D14'].includes(highlight_code)}">1.综合医疗服务费</td>
+          <td class="label D11 D12 D13 D14" :class="{'jy': hasIntersection(zk_codes.jy, ['D11', 'D12', 'D13', 'D14']), 'qz': hasIntersection(zk_codes.qz, ['D11', 'D12', 'D13', 'D14'])}">1.综合医疗服务费</td>
           <td colspan="9">
             (1)一般医疗服务费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D11" />
@@ -615,7 +615,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D15 D16 D17 D18" :class="{'highlight': ['D15', 'D16', 'D17', 'D18'].includes(highlight_code)}">2.诊断类</td>
+          <td class="label D15 D16 D17 D18" :class="{'jy': hasIntersection(zk_codes.jy, ['D15', 'D16', 'D17', 'D18']), 'qz': hasIntersection(zk_codes.qz, ['D15', 'D16', 'D17', 'D18'])}">2.诊断类</td>
           <td colspan="9">
             (5)病理诊断费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D15" />
@@ -628,7 +628,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D19 D19X01 D20 D20X01 D20X02" :class="{'highlight': ['D19', 'D19X01', 'D20', 'D20X01', 'D20X02'].includes(highlight_code)}">3.治疗类</td>
+          <td class="label D19 D19X01 D20 D20X01 D20X02" :class="{'jy': hasIntersection(zk_codes.jy, ['D19', 'D19X01', 'D20', 'D20X01', 'D20X02']), 'qz': hasIntersection(zk_codes.qz, ['D19', 'D19X01', 'D20', 'D20X01', 'D20X02'])}">3.治疗类</td>
           <td colspan="9">
             (9)非手术治疗项目费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D19" />
@@ -644,21 +644,21 @@
           </td>
         </tr>
         <tr>
-          <td class="label D21" :class="{'highlight': ['D21'].includes(highlight_code)}">4.康复类</td>
+          <td class="label D21" :class="{'jy': hasIntersection(zk_codes.jy, ['D21']), 'qz': hasIntersection(zk_codes.qz, ['D21'])}">4.康复类</td>
           <td colspan="9">
             (11)康复费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D21" />
           </td>
         </tr>
         <tr>
-          <td class="label D22" :class="{'highlight': ['D22'].includes(highlight_code)}">5.中医类</td>
+          <td class="label D22" :class="{'jy': hasIntersection(zk_codes.jy, ['D22']), 'qz': hasIntersection(zk_codes.qz, ['D22'])}">5.中医类</td>
           <td colspan="9">
             (12)中医治疗费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D22" />
           </td>
         </tr>
         <tr>
-          <td class="label D23 D23X01" :class="{'highlight': ['D23', 'D23X01'].includes(highlight_code)}">6.西药类</td>
+          <td class="label D23 D23X01" :class="{'jy': hasIntersection(zk_codes.jy, ['D23', 'D23X01']), 'qz': hasIntersection(zk_codes.qz, ['D23', 'D23X01'])}">6.西药类</td>
           <td colspan="9">
             (13)西药费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D23" />
@@ -668,7 +668,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D24 D25" :class="{'highlight': ['D24', 'D25'].includes(highlight_code)}">7.中药类</td>
+          <td class="label D24 D25" :class="{'jy': hasIntersection(zk_codes.jy, ['D24', 'D25']), 'qz': hasIntersection(zk_codes.qz, ['D24', 'D25'])}">7.中药类</td>
           <td colspan="9">
             (14)中成药费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D24" />
@@ -677,7 +677,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D26 D27 D28 D29 D30" :class="{'highlight': ['D26', 'D27', 'D28', 'D29', 'D30'].includes(highlight_code)}">8.血液和血液制品类</td>
+          <td class="label D26 D27 D28 D29 D30" :class="{'jy': hasIntersection(zk_codes.jy, ['D26', 'D27', 'D28', 'D29', 'D30']), 'qz': hasIntersection(zk_codes.qz, ['D26', 'D27', 'D28', 'D29', 'D30'])}">8.血液和血液制品类</td>
           <td colspan="9">
             (16)血费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D26" />
@@ -692,7 +692,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D31 D32 D33" :class="{'highlight': ['D31', 'D32', 'D33'].includes(highlight_code)}">9.耗材类</td>
+          <td class="label D31 D32 D33" :class="{'jy': hasIntersection(zk_codes.jy, ['D31', 'D32', 'D33']), 'qz': hasIntersection(zk_codes.qz, ['D31', 'D32', 'D33'])}">9.耗材类</td>
           <td colspan="9">
             (21)检查用一次性医用材料费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D31" />
@@ -703,7 +703,7 @@
           </td>
         </tr>
         <tr>
-          <td class="label D34" :class="{'highlight': ['D34'].includes(highlight_code)}">10.其他类</td>
+          <td class="label D34" :class="{'jy': hasIntersection(zk_codes.jy, ['D34']), 'qz': hasIntersection(zk_codes.qz, ['D34'])}">10.其他类</td>
           <td colspan="9">
             (24)其他费:
             <NoValueInputVue :data="blInfo.patient_cost_info.D34" />
@@ -1302,7 +1302,10 @@ export default {
         icu: [],
       },
       highlight_code: '',
-      zk_codes: [],
+      zk_codes: {
+        qz: [],
+        jy: []
+      },
       zk_level: 0
     };
   },
@@ -1325,14 +1328,6 @@ export default {
     // this.getData();
   },
   methods: {
-    // 判断两个数组是否存在交际
-    hasIntersection(arr1, arr2) {
-      console.log(arr1, arr2, 8989)
-      // 在arr1中筛选出arr2中存在的元素  
-      const filtered = arr1.filter(item => arr2.includes(item));  
-      // 如果筛选后的数组长度大于0,则存在交集  
-      return filtered.length > 0;  
-    },
     // 判断诊断级别
     zdLevel(i) {
       let str;
@@ -1372,8 +1367,17 @@ export default {
       }
     },
     handleCodes(codes) {
+      console.log(codes, 'zkcodes')
       this.$set(this, 'zk_codes', codes)
     },
+    // 判断两个数组是否存在交际
+    hasIntersection(arr1, arr2) {
+      console.log(arr1, arr2, 8989)
+      // 在arr1中筛选出arr2中存在的元素  
+      const filtered = arr1.filter(item => arr2.includes(item));  
+      // 如果筛选后的数组长度大于0,则存在交集  
+      return filtered.length > 0;  
+    },
     // 查看费用详情
     toCostPage() {
       this.$router.push({ name: 'Cost', query: { zyh: this.$route.query.zyh } });
@@ -1481,8 +1485,13 @@ export default {
   border-radius: 2px;
   vertical-align: middle;
 }
-.highlight {
+.qz {
   color: #FB5C4F !important;
   font-weight: bold;
 }
+
+.jy {
+  color: #178691 !important;
+  font-weight: bold;
+}
 </style>