瀏覽代碼

修改 质控

yuwandanmian 1 年之前
父節點
當前提交
e0d096f5d1

+ 15 - 1
src/views/allcase/components/CaseQualityBox.vue

@@ -21,7 +21,8 @@
                   <el-descriptions-item label="错误描述">{{ item.notice }}</el-descriptions-item>
                   <el-descriptions-item label="质控依据">
                     <div v-for="(yItem, yIndex) of item.basis" :key="yIndex" style="margin-bottom: 10px;">
-                      <div v-for="(cItem, cIndex) of yItem" :key="cIndex">{{ cItem }}</div>
+                      <div v-if="item.rule_id !== 6">{{ yItem[0] }}</div>
+                      <a v-else href="javascript:;" class="link" @click="toPage(yItem[1])">{{ yItem[0] }}</a>
                     </div>
                   </el-descriptions-item>
               </el-descriptions>
@@ -81,6 +82,13 @@
         }
         return str
       }
+    },
+    methods: {
+      toPage(blbh) {
+        const { path } = this.$route
+        let routeData = this.$router.resolve({ path, query: { blbh } })
+        window.open(routeData.href, '_blank');
+      }
     }
   }
 </script>
@@ -148,4 +156,10 @@
   font-size: 16px;
   font-weight: bold;
 }
+.link {
+  text-decoration: underline;
+  &:hover {
+    color: #409EFF;
+  }
+}
 </style>

+ 0 - 2
src/views/outpatient/control/defectNumber.vue

@@ -105,9 +105,7 @@ export default {
   },
   watch: {
     $route(to, from) {
-      console.log(from.path, 'from', to.path,'to')
       if (to.path === '/outpatientMedicalRecordDefectNumber' && from.path === '/outpatientControl') {
-        console.log(2222)
         this.formData = {
           dep_id: '',
           startTime:'',

+ 16 - 3
src/views/outpatient/control/detail.vue

@@ -64,16 +64,22 @@
             <span class="text-blod">药品:</span>
             <div class="pl76 mb20" v-for="(item, index) of data.xy" :key="index">{{ item }}</div>
           </el-col>
-          <el-col :span="24" style="margin-top: 80px;">
+          <el-col :span="12" style="margin-top: 80px;">
             <div class="text_right">
+              书写医生:
+              <span style="margin-right: 100px;">{{ data.SXYS }}</span>
+            </div>
+          </el-col>
+          <el-col :span="12" style="margin-top: 80px;">
+            <div class="text_right" style="padding-right: 150px;">
               医生签名:
-              <span>{{ data.SXYS }}</span>
+              <span>{{ data.doctor_name }}</span>
             </div>
           </el-col>
         </el-row>
       </div>
     </div>
-    <CaseQualityBox v-if="!$route.query.from" :data="results" style="margin: 20px 0 0 20px; height: 880px;" />
+    <CaseQualityBox v-if="!$route.query.from" :data="results" @refresh="handleRefresh" style="margin: 20px 0 0 20px; min-height: 880px;" />
   </div>
 </template>
 
@@ -102,6 +108,13 @@ export default {
     }
   },
   methods: {
+    // 刷新
+    handleRefresh() {
+      this.getDetails()
+      if (!this.$route.query.from) {
+        this.getCaseQualityResults();
+      }
+    },
     // 获取新病案指控结果
     getCaseQualityResults() {
       const params = {