From 6bf0b65995f54e9ee85b9d6823b77fb355b2a47c Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期二, 17 十二月 2024 14:39:10 +0800
Subject: [PATCH] 异常结果

---
 src/views/doctor/examination/index.vue |   51 +++++++++++++++++--------
 src/views/system/biol/index.vue        |   29 ++++++++++++++
 src/api/doctor/examination.js          |    2 
 src/api/hosp/order.js                  |    9 ++++
 4 files changed, 74 insertions(+), 17 deletions(-)

diff --git a/src/api/doctor/examination.js b/src/api/doctor/examination.js
index 7cded7e..961abe9 100644
--- a/src/api/doctor/examination.js
+++ b/src/api/doctor/examination.js
@@ -62,4 +62,4 @@
         method: 'get',
         params: {tjNum:tjNum}
     })
-}
\ No newline at end of file
+}
diff --git a/src/api/hosp/order.js b/src/api/hosp/order.js
index ee07bb3..4ea74b4 100644
--- a/src/api/hosp/order.js
+++ b/src/api/hosp/order.js
@@ -368,4 +368,13 @@
     method: 'post',
     data:data
   })
+}
+
+// 鎾ら攢鎶ュ憡
+export function getChexiao(data) {
+  return request({
+    url: '/hosp/order/heshouchexiao',
+    method: 'post',
+    data:data
+  })
 }
\ No newline at end of file
diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 13320bc..749203c 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -321,9 +321,7 @@
     </div>
 
     <el-drawer title="鎴戞槸鏍囬" :visible.sync="drawer" :with-header="false">
-      <div
-        style="text-align: center; background-color: #aad8df; margin-top: 10px"
-      >
+      <div style="text-align: center; background-color: #aad8df">
         {{ name || "" }}
       </div>
       <div class="a">
@@ -331,6 +329,7 @@
           <el-table
             :data="jieguoList"
             border
+            :row-style="changRed"
             style="width: 100%"
             :header-cell-style="{ background: '#AAD8DF' }"
           >
@@ -347,25 +346,24 @@
           <div class="check-result-container">
             <div class="check-item">
               <div class="check-title">妫�鏌ユ墍瑙侊細</div>
-              <div class="check-description">
+              <div
+                class="check-description"
+                :style="{ color: isRed ? 'red' : '' }"
+              >
                 {{ jieguoList[0].pro_result }}
               </div>
             </div>
 
             <div class="check-item">
               <div class="check-title">妫�鏌ョ粨璁猴細</div>
-              <div class="check-description">
+              <div
+                class="check-description"
+                :style="{ color: isRed ? 'red' : '' }"
+              >
                 {{ jieguoList[0].yxzd || "鏆傛棤缁撹" }}
               </div>
             </div>
           </div>
-          <!-- <div style="padding: 0 10px; margin-bottom: 10px; margin-top: 10px">
-            <div style="font-weight: bold">妫�鏌ユ墍瑙侊細</div>
-            <div>{{ jieguoList[0].pro_result }}</div>
-
-            <div style="font-weight: bold; margin-top: 10px">妫�鏌ョ粨璁猴細</div>
-            <div>{{ jieguoList[0].yxzd || "鏆傛棤缁撹" }}</div>
-          </div> -->
         </div>
       </div>
     </el-drawer>
@@ -491,10 +489,13 @@
     });
   },
   methods: {
-    red() {
-      return {
-        color: "red",
-      };
+    changRed({ row }) {
+      if (row.ycbz != "" && row.ycbz != null && row.ycbz === "1") {
+        // 鍙橀鑹茬殑鏉′欢
+        return {
+          color: "red", // 杩欎釜return鐨勫氨鏄牱寮� 鍙互鏄痗olor 涔熷彲浠ユ槸backgroundColor
+        };
+      }
     },
     getdate() {
       getConfigKey("tj_confirm").then((res) => {
@@ -791,6 +792,7 @@
     handleRowClick(row, column, event) {
       console.log(row, 2323);
       this.name = row.proName;
+      console.log(this.name, 99999);
     },
     queryResultone(row) {
       // 鎵撳紑鎶藉眽
@@ -798,7 +800,21 @@
       const proId = row.proId;
       resultList(tjNum, proId).then((res) => {
         this.jieguoList = res.data;
+        console.log(this.jieguoList, 998877);
+
         this.jyjc = this.jieguoList[0].jyjc;
+        const ycbz = this.jieguoList[0].ycbz;
+        /* if (ycbz === "" || ycbz === null) {
+          return;
+        } */
+
+        // 璁剧疆鏄惁闇�瑕佹敼鍙橀鑹�
+        if (ycbz === "1") {
+          this.isRed = true; // 璁剧疆鏍囪瘑锛屾敼鍙樺瓧浣撻鑹�
+          console.log(this.isRed, 444);
+        } else {
+          this.isRed = false; // 鎭㈠榛樿棰滆壊
+        }
 
         if (res.data.length > 0) {
           this.drawer = true;
@@ -877,6 +893,9 @@
   display: flex;
   justify-content: center;
 }
+.red-text {
+  color: red !important;
+}
 
 .pag1 {
   width: 30%;
diff --git a/src/views/system/biol/index.vue b/src/views/system/biol/index.vue
index cf12645..b465d14 100644
--- a/src/views/system/biol/index.vue
+++ b/src/views/system/biol/index.vue
@@ -142,6 +142,15 @@
         >
       </el-col>
       <el-col :span="1.5">
+        <el-button
+          type="primary"
+          size="mini"
+          :disabled="single"
+          @click="chexiao"
+          >鎾ら攢鎶ュ憡</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
         <div id="main111">
           <el-input style="width: 920px" v-model="form.name"></el-input>
         </div>
@@ -541,6 +550,7 @@
   hasPrintCode,
   getOrderListOO,
   getNewDateList,
+  getChexiao
 } from "@/api/hosp/order";
 import moment from "moment";
 import ViewPdf from "@/components/ViewPdf";
@@ -674,6 +684,7 @@
       open: false,
       // 鏃ユ湡鑼冨洿
       datetimerange: [],
+      seleList:[],
       // 鏌ヨ鍙傛暟
       queryParams: {
         pageNum: 1,
@@ -804,6 +815,8 @@
     },
     baogaoyulan() {
       const tjNumber = this.report[0];
+      console.log(tjNumber,5555);
+      
       isPdfOrJimu(tjNumber).then((response) => {
         if (response.data.flag == "0") {
           const flag = true;
@@ -840,6 +853,19 @@
           );
         }
       });
+    },
+    // 鎾ら攢鎵撳嵃
+    chexiao(){
+      const tjNUms = this.seleList.map((item) => item.tjNumber);
+      getChexiao(tjNUms).then((res)=>{
+        console.log(res,6666);
+        if(res.code === 200){
+          this.$modal.msgSuccess('鎾ら攢鎴愬姛锛�')
+          this.getList()
+        }else{
+          this.$modal.msgError('鎾ら攢澶辫触锛�')
+        }
+      })
     },
     //鎵撳嵃灏忕エ
     printHandle() {
@@ -1222,6 +1248,9 @@
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
       this.ids = selection.map((item) => item.orderId);
+      this.seleList = selection;
+      console.log(this.seleList,222333);
+      
       this.DataList1 = this.$refs.multipleTable.selection;
       this.DataList1.forEach((item) => {
         this.barcode = item.tjNumber;

--
Gitblit v1.8.0