From cb1f69717eed3b6a61b6c61a8934bac752782b2d Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期三, 05 三月 2025 17:00:38 +0800
Subject: [PATCH] 1

---
 src/views/doctor/examination/index.vue |   90 ++++++++++++++++++++++++++++++++------------
 1 files changed, 65 insertions(+), 25 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 7cbcd70..de7d006 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -92,7 +92,7 @@
     </el-radio-group>
 
     <div style="width: 100%; margin-left: 10px; display: flex">
-      <div style="width: 40.5%; margin-right: 20px">
+      <div style="width: 45%">
         <el-table
           id="ta"
           v-loading="loading"
@@ -103,25 +103,26 @@
           :row-class-name="tableRowClassName"
           highlight-current-row
           @current-change="handleCurrentChange"
+          
         >
           <!-- <el-table-column type="selection" width="40" align="center" /> -->
           <el-table-column
             label="浣撴鍙�"
             align="center"
             prop="tjNumber"
-            width="160px"
+            min-width="160"
           />
           <el-table-column
             label="濮撳悕"
             align="center"
             prop="cusName"
-            width="80px"
+            min-width="80"
           />
           <el-table-column
             label="鎬у埆"
             align="center"
             prop="cusSex"
-            width="50px"
+            min-width="50"
           >
             <template slot-scope="scope">
               <span v-if="scope.row.cusSex == '0'">鐢�</span>
@@ -139,20 +140,20 @@
             label="鎵嬫満鍙�"
             align="center"
             prop="cusPhone"
-            width="100px"
+            min-width="100"
           />
           <el-table-column
             label="鐧昏鏃堕棿"
             align="center"
             prop="tjTime"
-            width="120px"
+            min-width="120"
           />
           <el-table-column
             v-if="checkStatus == '1'"
             label="瀹℃牳鐘舵��"
             align="center"
             prop="confirmStatus"
-            width="80px"
+            min-width="80"
           >
             <template slot-scope="scope">
               <span
@@ -174,17 +175,17 @@
             </template>
           </el-table-column>
           <!--   v-hasPermi="['reservation:reservation:edit']" -->
-          <el-table-column label="鎿嶄綔" align="center" width="120px">
+          <el-table-column label="鎿嶄綔" align="center" min-width="120px">
             <template slot-scope="scope">
               <el-button
                 size="mini"
                 type="text"
                 @click="tongbu(scope.row)"
-                disabled
+                
                 >鍚屾</el-button
               >
               <!-- :disabled="dis" -->
-              <el-button
+              <!-- <el-button
                 disabled
                 size="mini"
                 type="text"
@@ -198,7 +199,7 @@
                 disabled
                 @click="bohui(scope.row)"
                 >椹冲洖</el-button
-              >
+              > -->
             </template>
             <!--    v-show="
                   (xianshi == 'Y' || xianshi == 'y') &&
@@ -208,7 +209,7 @@
           </el-table-column>
         </el-table>
       </div>
-      <div style="width: 40%">
+      <div style="width: 45%; margin-left: 5%">
         <el-table
           v-loading="loading"
           border
@@ -218,20 +219,21 @@
           :data="xiangmuList"
           highlight-current-row
           @row-click="handleRowClick"
+          
         >
           <!-- <el-table-column type="selection" width="40" align="center" /> -->
           <el-table-column
             label="绉戝"
             align="center"
             prop="deptName"
-            width="100"
+            min-width="100"
             :show-overflow-tooltip="true"
           />
           <el-table-column
             label="椤圭洰"
             align="center"
             prop="proName"
-            width="150"
+            min-width="150"
             :show-overflow-tooltip="true"
           />
           <el-table-column
@@ -239,7 +241,7 @@
             align="center"
             prop="type"
             :show-overflow-tooltip="true"
-            width="100"
+            min-width="100"
           >
             <template slot-scope="scope">
               <span
@@ -283,7 +285,7 @@
             label="妫�鏌ユ椂闂�"
             align="center"
             prop="bcupdateTime"
-            width="160"
+            min-width="160"
           />
           <!-- <el-table-column
             label="淇濆瓨鍖荤敓"
@@ -297,27 +299,28 @@
             prop="zhupdateTime"
             width="160"
           /> -->
-          <el-table-column label="鎿嶄綔" align="center" width="120px">
+          <el-table-column label="鎿嶄綔" align="center" min-width="120px">
             <template slot-scope="scope">
               <el-button
                 size="mini"
                 type="text"
                 :disabled="scope.row.type === 1"
+                :loading="scope.row.isLoading"
                 @click="qijian(scope.row)"
                 >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button
               >
-              <!-- <el-button
+              <el-button
                 size="mini"
                 type="text"
-                @click="qijian(scope.row)"
-                >鎭㈠</el-button
-              > -->
+                @click="yijian(scope.row)"
+                >宸叉</el-button
+              >
               <el-button
                 size="mini"
                 type="text"
                 :disabled="scope.row.type === 0 || scope.row.type === 2"
                 @click="queryResultone(scope.row)"
-                >缁撴灉鏌ヨ</el-button
+                >缁撴灉</el-button
               >
               <!--  @click="chaxun(scope.row) " -->
             </template>
@@ -400,6 +403,7 @@
   cSWebGetPro,
   dataSynchronization,
   qijian,
+  yijian,
   resultList,
   typeOne,
   huifu,
@@ -415,6 +419,7 @@
       jieguoList: [],
       jyjc: null,
       dis: false,
+      isLoading:false,
       createTimeList: "",
       currentRow: null,
       total: 0,
@@ -783,6 +788,7 @@
     qijian(row) {
       const tjNUm = this.selectedTjNumber;
       const proId = row.proId;
+      row.isLoading = true;
       if (row.type == "2") {
         huifu(tjNUm, proId).then((res) => {
           if (res.code == 200) {
@@ -790,6 +796,7 @@
               if (res.code === 200) {
                 // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
                 this.xiangmuList = res.data;
+                row.isLoading = false
               }
             });
           }
@@ -801,13 +808,31 @@
               if (res.code === 200) {
                 // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
                 this.xiangmuList = res.data;
+                this.isLoading = false
               }
             });
           }
         });
       }
     },
-
+    yijian(row) {
+      const tjNUm = this.selectedTjNumber;
+      const proId = row.proId;
+      row.isLoading = true;
+      yijian(tjNUm, proId).then((res) => {
+        if (res.code == 200) {
+          this.$modal.msgSuccess("宸叉鎴愬姛");
+          cSWebGetPro(tjNUm).then((res) => {
+            if (res.code === 200) {
+              this.xiangmuList = res.data;
+              row.isLoading = false;
+            }
+          });
+        }
+      }).catch(() => {
+        row.isLoading = false;
+      });
+    },
     handleRowClick(row, column, event) {
       // console.log(row, 2323);
       this.name = row.proName;
@@ -849,14 +874,12 @@
       }, 300000);
     },
     tongbu(row) {
-      // this.$refs.tb.toggleRowSelection(row);
       this.$modal.loading("姝e湪鍚屾锛岃绋嶅��...");
       this.setTime();
       let tjNumber = row.tjNumber;
       dataSynchronization(tjNumber)
         .then((res, error) => {
           if (res.code == 200) {
-            // this.$forceUpdate();
             this.handleCurrentChange(row);
             clearInterval(this.clearTimeSet);
             this.clearTimeSet = null;
@@ -953,4 +976,21 @@
 .check-description.no-result {
   color: #bbb; /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */
 }
+
+::v-deep .el-table {
+  width: 100% !important;
+}
+
+::v-deep .el-table__body {
+  width: 100% !important;
+}
+
+::v-deep .el-table__header {
+  width: 100% !important;
+}
+
+/* 濡傛灉闇�瑕侀殣钘忔í鍚戞粴鍔ㄦ潯 */
+::v-deep .el-table__body-wrapper::-webkit-scrollbar-horizontal {
+  display: none;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0