yuwandanmian 1 年之前
父节点
当前提交
60e3b8ad35
共有 2 个文件被更改,包括 22 次插入13 次删除
  1. 9 2
      src/views/medicalRecord/components/index/ControlDrawer.vue
  2. 13 11
      src/views/medicalRecord/index.vue

+ 9 - 2
src/views/medicalRecord/components/index/ControlDrawer.vue

@@ -122,7 +122,13 @@ export default {
                 desc: '尚未发送“健康卡”的地区填写“-”',
                 location: {
                   user: ['JKKH'],
-                  zd: [],
+                  zd: [
+                    {
+                      ZZPB: 1,
+                      DIA_ORDER: 1,
+                      field: 'ICD10_ID1',
+                    }
+                  ],
                   ss: []
                 },
               },
@@ -159,7 +165,7 @@ export default {
       return str;
     },
   },
-  created() {
+  mounted() {
     // this.getData();
     this.controls.list.map(item => {
       item.basis.map(bItem => {
@@ -193,6 +199,7 @@ export default {
         })
       })
     })
+    console.log(this.zk_codes, 'this.zk_codes')
     this.$emit('codes', this.zk_codes)
   },
   methods: {

+ 13 - 11
src/views/medicalRecord/index.vue

@@ -56,6 +56,7 @@
             </span>
             <span v-else>
               <NoValueInputVue :data="blInfo.patient_address_info.AAA11" />
+              (区)
             </span>
           </td>
           <td class="label AAA43 AAA44" :class="{'jy': hasIntersection(zk_codes.jy, ['AAA43', 'AAA44']), 'qz': hasIntersection(zk_codes.qz, ['AAA43', 'AAA44'])}">籍贯</td>
@@ -97,6 +98,7 @@
             </span>
             <span v-else>
               <NoValueInputVue :data="blInfo.patient_address_info.AAA50" />
+              (区)
             </span>
             <NoValueInputVue :data="blInfo.patient_address_info.AAA15" />
           </td>
@@ -122,6 +124,7 @@
             </span>
             <span v-else>
               <NoValueInputVue :data="blInfo.patient_address_info.AAA47" />
+              (区)
             </span>
             <NoValueInputVue :data="blInfo.patient_address_info.AAA12" />
           </td>
@@ -211,12 +214,12 @@
       <!-- 诊断信息 -->
       <table class="table">
         <tr>
-          <th class="label" colspan="3">出院诊断</th>
-          <th class="label">疾病编码</th>
-          <th class="label">入院病情</th>
-          <th class="label" colspan="3">出院诊断</th>
-          <th class="label">疾病编码</th>
-          <th class="label">入院病情</th>
+          <th class="label" colspan="3" :class="{'jy': hasIntersection(zk_codes.jy, ['ICD10_NAME']), 'qz': hasIntersection(zk_codes.qz, ['ICD10_NAME'])}">出院诊断</th>
+          <th class="label" :class="{'jy': hasIntersection(zk_codes.jy, ['ICD10_ID1']), 'qz': hasIntersection(zk_codes.qz, ['ICD10_ID1'])}">疾病编码</th>
+          <th class="label" :class="{'jy': hasIntersection(zk_codes.jy, ['RYQK']), 'qz': hasIntersection(zk_codes.qz, ['RYQK'])}">入院病情</th>
+          <th class="label" colspan="3" :class="{'jy': hasIntersection(zk_codes.jy, ['ICD10_NAME']), 'qz': hasIntersection(zk_codes.qz, ['ICD10_NAME'])}">出院诊断</th>
+          <th class="label" :class="{'jy': hasIntersection(zk_codes.jy, ['ICD10_ID1']), 'qz': hasIntersection(zk_codes.qz, ['ICD10_ID1'])}">疾病编码</th>
+          <th class="label" :class="{'jy': hasIntersection(zk_codes.jy, ['RYQK']), 'qz': hasIntersection(zk_codes.qz, ['RYQK'])}">入院病情</th>
         </tr>
         <tr v-for="i of zdRows" :key="'zd' + i">
           <td colspan="3">{{ zdList[i - 1] ? `${zdLevel(i)}` + (zdList[i - 1].ICD10_NAME ? zdList[i - 1].ICD10_NAME : '') : '' }}</td>
@@ -1372,7 +1375,6 @@ export default {
     },
     // 判断两个数组是否存在交际
     hasIntersection(arr1, arr2) {
-      console.log(arr1, arr2, 8989)
       // 在arr1中筛选出arr2中存在的元素  
       const filtered = arr1.filter(item => arr2.includes(item));  
       // 如果筛选后的数组长度大于0,则存在交集  
@@ -1485,13 +1487,13 @@ export default {
   border-radius: 2px;
   vertical-align: middle;
 }
+.jy {
+  color: #178691 !important;
+  font-weight: bold;
+}
 .qz {
   color: #FB5C4F !important;
   font-weight: bold;
 }
 
-.jy {
-  color: #178691 !important;
-  font-weight: bold;
-}
 </style>