From 90bf0198e9004a2c9c8aef582dd5e1b04d846745 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期三, 12 二月 2025 17:23:54 +0800
Subject: [PATCH] 检验同步

---
 src/views/doctor/inspectCheck/index.vue |  210 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 187 insertions(+), 23 deletions(-)

diff --git a/src/views/doctor/inspectCheck/index.vue b/src/views/doctor/inspectCheck/index.vue
index 02ef381..baeaa7f 100644
--- a/src/views/doctor/inspectCheck/index.vue
+++ b/src/views/doctor/inspectCheck/index.vue
@@ -45,10 +45,154 @@
       </el-form-item>
     </el-form>
 
-    <div class="table-title">
+    <!-- <div class="table-title">
       <h3>妫�楠岃褰�</h3>
+    </div> -->
+    <div class="box">
+      <div
+        style="text-align: center; background-color: #aad8df; margin-top: 10px"
+      >
+        妫�楠岃褰�
+        <!-- {{ item.parent || "" }} -->
+      </div>
+      <div>
+        <el-table
+          :data="exaLists"
+          border
+          style="width: 100%"
+          @selection-change="handleSelectionChange"
+          :header-cell-style="{ background: '#aad8df' }"
+        >
+          <el-table-column
+            fixed
+            type="selection"
+            align="center"
+            label="閫夋嫨"
+            width="40"
+            :selectable="isSelectable"
+          >
+          </el-table-column>
+          <el-table-column
+            label="濮撳悕"
+            align="center"
+            prop="name"
+            width="80px"
+          />
+          <el-table-column
+            label="鎬у埆"
+            align="center"
+            prop="gender"
+            width="80px"
+          />
+          <el-table-column
+            label="骞撮緞"
+            align="center"
+            prop="patientAge"
+            width="80px"
+          >
+          </el-table-column>
+          <el-table-column
+            label="閫佹绉戝"
+            align="center"
+            prop="deptName"
+            width="100px"
+          />
+
+          <el-table-column
+            label="妫�楠岄」鐩�"
+            align="center"
+            prop="checkParts"
+            width="150px"
+          />
+          <el-table-column
+            label="椤圭洰缂栧彿"
+            align="center"
+            prop="jcxmid"
+            width="150px"
+          />
+          <el-table-column
+            label="瀹℃牳鍖诲笀"
+            align="center"
+            prop="shys"
+            width="150px"
+          />
+          <el-table-column
+            label="鎶ュ憡鏃堕棿"
+            align="center"
+            prop="examinationDate"
+            width="150px"
+          />
+
+          <el-table-column
+            label="闂ㄨ瘖鍙�"
+            align="center"
+            prop="mzh"
+            width="140px"
+          />
+          <el-table-column
+            label="鐢宠鍗曞彿"
+            align="center"
+            prop="brid"
+            width="145px"
+          />
+          <el-table-column
+            label="鎶ュ憡鍖诲笀"
+            align="center"
+            prop="reportDoctorName"
+            width="120px"
+          />
+          <el-table-column
+            label="妫�楠屽尰甯堝悕"
+            align="center"
+            prop="checkDoctorName"
+            width="120px"
+          />
+          <el-table-column align="center" label="妫�娴嬮」鐩�" width="100px ">
+            <template slot-scope="scope">
+              <div>{{ scope.row.proName }}</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
+            prop="proResult"
+            label="妫�娴嬬粨鏋�"
+            width="180"
+          >
+          </el-table-column>
+          <el-table-column align="center" prop="company" label="鍗曚綅">
+            <!--    <template slot-scope="scope">
+              <div v-if="scope.row.project != null">
+                {{ scope.row.standard.company || "" }}
+              </div>
+              <div v-else>{{ scope.row.proAdvice }}</div>
+            </template> -->
+          </el-table-column>
+          <el-table-column
+            align="center"
+            prop="conclusion"
+            label="寮傚父"
+            width="180"
+          ></el-table-column>
+          <el-table-column
+            align="center"
+            prop="tjStandardGtValue"
+            label=" 鍙傝�冭寖鍥�"
+          >
+            <!--   <template slot-scope="scope">
+              <div v-if="scope.row.project != null">
+                {{
+                  scope.row.standard.tjStandardGtValue ||
+                  "/" + "-" + scope.row.standard.tjStandardLtValue ||
+                  "/"
+                }}
+              </div>
+            </template> -->
+          </el-table-column>
+        </el-table>
+      </div>
     </div>
-    <el-table
+
+    <!--  <el-table
       id="ta"
       ref="tb"
       :data="exaLists"
@@ -131,7 +275,7 @@
         prop="examination"
         :show-overflow-tooltip="true"
       />
-    </el-table>
+    </el-table> -->
 
     <div class="table-title">
       <h3>浣撴璁板綍</h3>
@@ -184,7 +328,7 @@
         min-width="80"
       />
       <el-table-column
-        label="妫�鏌ユ椂闂�"
+        label="妫�楠屾椂闂�"
         align="center"
         prop="bcupdateTime"
         min-width="160"
@@ -277,17 +421,15 @@
     });
   },
   methods: {
-   
-    handleDateChange(val){
+    handleDateChange(val) {
       if (val && val.length === 2) {
         this.queryParams.start = val[0]; // 璁剧疆寮�濮嬫椂闂�
-        this.queryParams.end = val[1];   // 璁剧疆缁撴潫鏃堕棿
+        this.queryParams.end = val[1]; // 璁剧疆缁撴潫鏃堕棿
       } else {
         this.queryParams.start = null;
         this.queryParams.end = null;
       }
-      console.log('Query Params:', this.queryParams);
-
+      console.log("Query Params:", this.queryParams);
     },
     isSelectable(row) {
       return !!row.mzh;
@@ -298,34 +440,34 @@
 
     handleSelectionChange(val) {
       console.log(val);
-      if (val.length > 1) {
+      /*  if (val.length > 1) {
         let del_row = val.shift();
         this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
       }
-      console.log(val, 999);
+      console.log(val, 999); */
 
-      if (val.length > 0) {
+      /* if (val.length > 0) {
         const selectedRow = val[0];
         console.log(val[0], 555);
 
         this.selectedFirstTable = selectedRow;
         console.log("褰撳墠閫変腑鐨勮鏁版嵁:", this.selectedFirstTable);
-        this.fetchRightTableData(selectedRow);
+        // this.fetchRightTableData(selectedRow);
       } else {
         this.selectedFirstTable = null;
         this.checkList = [];
-      }
+      } */
     },
     // 鏍规嵁閫変腑鐨勮鏁版嵁璇锋眰鍙宠竟琛ㄦ牸鏁版嵁
-    fetchRightTableData(selectedRow) {
+    /* fetchRightTableData() {
       const code = selectedRow.mzh;
       if (!code) return;
-      this.loading = true;
-      getJyTjList(code).then((response) => {
+
+       getJyTjList(code).then((response) => {
         this.checkList = response.data;
         this.loading = false;
       });
-    },
+    }, */
 
     handleSelectionChangeSecond(selectedRows) {
       this.selectedSecondTable = selectedRows;
@@ -345,13 +487,33 @@
     handleQuery() {
       // this.queryParams.page = 1;
       this.loading = true;
+      if (!this.queryParams.tjNum) {
+        this.loading = false;
+        this.$message.error("浣撴鍙蜂笉鑳戒负绌�");
+        return; // 缁堟璇锋眰
+      }
       getlisList(this.queryParams)
         .then((res) => {
-          console.log(res, 1111);
           if (res.code == 200) {
             this.loading = false;
             this.exaLists = res.data;
-            this.code = this.exaLists.mzh;
+            // const code = this.exaLists[0].mzh;
+            if (
+              this.exaLists &&
+              this.exaLists.length > 0 &&
+              this.exaLists[0].mzh
+            ) {
+              const code = this.exaLists[0].mzh;
+
+              getJyTjList(code).then((response) => {
+                this.checkList = response.data;
+              });
+            } else {
+              this.$message.error("鏈壘鍒版湁鏁堢殑 mzh 鍊硷紝鏃犳硶鑾峰彇鐩稿叧鏁版嵁");
+            }
+            /*  getJyTjList(code).then((response) => {
+              this.checkList = response.data;
+            }); */
           }
         })
         .catch((error) => {
@@ -392,7 +554,9 @@
       this.$modal.loading("姝e湪鍚屾锛岃绋嶅��...");
       this.setTime();
       const requestData = {
-        pacs: this.selectedFirstTable, // 宸︿晶琛ㄦ牸閫変腑鏁版嵁
+        lis: [this.selectedFirstTable], // 宸︿晶琛ㄦ牸閫変腑鏁版嵁
+        jcxmid: this.selectedFirstTable.jcxmid,
+        shys: this.selectedFirstTable.shys,
         tj: this.selectedSecondTable[0], // 鍙充晶琛ㄦ牸閫変腑鏁版嵁
       };
 
@@ -404,7 +568,7 @@
       asyncPacs(requestData)
         .then((res) => {
           if (res.code == 200) {
-            this.fetchRightTableData(this.selectedFirstTable);
+            // this.fetchRightTableData(this.selectedFirstTable);
             clearInterval(this.clearTimeSet);
             this.clearTimeSet = null;
             this.$modal.closeLoading();
@@ -417,7 +581,7 @@
           clearInterval(this.clearTimeSet);
           this.clearTimeSet = null;
           this.$modal.closeLoading();
-        })
+        });
     },
   },
 };

--
Gitblit v1.8.0