From 724c4830ea23cd632802a2f76a318a16b309f8a2 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 27 十二月 2024 09:00:00 +0800
Subject: [PATCH] 滚动条

---
 src/views/doctor/check/index.vue |  109 +++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 74 insertions(+), 35 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index b1dc633..696d582 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -513,6 +513,7 @@
                 :key="index"
               >
                 <el-table
+                  class="bgc"
                   v-loading="loading"
                   :data="proParentList.sons"
                   border
@@ -524,7 +525,6 @@
                     prop="project.proName"
                     label="妫�娴嬮」鐩�"
                     width="150"
-                    fixed="left"
                   >
                     <!-- <template slot-scope="scope">
             {{ scope.row.project.proName }}
@@ -533,7 +533,7 @@
                   <el-table-column
                     prop="proResult"
                     label="妫�娴嬬粨鏋�"
-                    width="200"
+                    width="150"
                   >
                     <template slot-scope="scope">
                       <el-input
@@ -551,7 +551,7 @@
                   <el-table-column
                     prop="exceptionDesc"
                     label="寮傚父"
-                    width="80px"
+                    width="55px"
                     align="center"
                   >
                     <template slot-scope="scope">
@@ -560,7 +560,7 @@
                       ></el-checkbox>
                     </template>
                   </el-table-column>
-                  <el-table-column label="瑙勫垯" width="55">
+                  <el-table-column label="瑙勫垯" width="70">
                     <template slot-scope="scope">
                       <el-button
                         class="blue-button"
@@ -628,11 +628,19 @@
                     </template>
                   </el-table-column>
                   <el-table-column prop="resultType" label="缁撴灉寤鸿">
-                    <template>
-                      <el-popover placement="top" trigger="click" width="400">
-                        <div>寤鸿璁粨鏋滃缓璁粨鏋滃缓璁粨寤鸿寤鸿璁粨鏋滃缓璁粨鏋滃缓璁粨寤鸿寤鸿璁粨鏋滃缓璁粨鏋滃缓璁粨寤鸿寤鸿璁粨鏋滃缓璁粨鏋滃缓璁粨寤鸿寤鸿璁粨鏋滃缓璁粨鏋滃缓璁粨寤鸿</div>
+                    <template slot-scope="scope">
+                      <el-popover placement="top" trigger="hover" width="400">
+                        <div>
+                          {{ scope.row.proAdvice }}
+                        </div>
                         <div slot="reference" class="jianyi">
-                          鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙� 鐨勬墜娉曢鍙�
+                          <el-input
+                            type="textarea"
+                            autosize
+                            v-model="scope.row.proAdvice"
+                            placeholder="璇疯緭鍏ョ粨鏋滃缓璁�"
+                            :disabled="true"
+                          ></el-input>
                         </div>
                       </el-popover>
                     </template>
@@ -819,6 +827,7 @@
                 :key="index"
               >
                 <el-table
+                  class="bgc"
                   v-loading="loading"
                   :data="proParentList.sons"
                   border
@@ -830,7 +839,6 @@
                     prop="project.proName"
                     label="妫�娴嬮」鐩�"
                     width="100"
-                    fixed="left"
                   >
                     <!-- <template slot-scope="scope">
             {{ scope.row.project.proName }}
@@ -854,7 +862,7 @@
                       ></el-input>
                     </template>
                   </el-table-column>
-                  <el-table-column label="瑙勫垯" width="55">
+                  <el-table-column label="瑙勫垯" width="70">
                     <template slot-scope="scope">
                       <el-button
                         class="blue-button"
@@ -863,14 +871,22 @@
                       >
                     </template>
                   </el-table-column>
-                  <el-table-column prop="project.proMetering" label="鍗曚綅" width="55">
+                  <el-table-column
+                    prop="project.proMetering"
+                    label="鍗曚綅"
+                    width="55"
+                  >
                     <!-- <template slot-scope="scope">
             {{ scope.row.standard.company }}
           </template> -->
                   </el-table-column>
-                  <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�" width="80">
+                  <el-table-column
+                    prop="project.proScope"
+                    label="鍙傝�冭寖鍥�"
+                    width="80"
+                  >
                   </el-table-column>
-            
+
                   <el-table-column
                     prop="exceptionDesc"
                     label="寮傚父"
@@ -893,8 +909,12 @@
                       <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
                     </template>
                   </el-table-column>
-          
-                  <el-table-column prop="isPositive" label="閲嶅ぇ闃虫��" width="55">
+
+                  <el-table-column
+                    prop="isPositive"
+                    label="閲嶅ぇ闃虫��"
+                    width="55"
+                  >
                     <template slot-scope="scope">
                       <el-switch
                         v-model="scope.row.isPositive"
@@ -905,11 +925,19 @@
                     </template>
                   </el-table-column>
                   <el-table-column prop="resultType" label="缁撴灉寤鸿">
-                    <template>
-                      <el-popover placement="top" trigger="click" width="400">
-                        <div></div>
+                    <template slot-scope="scope">
+                      <el-popover placement="top" trigger="hover" width="400">
+                        <div>
+                          {{ scope.row.proAdvice }}
+                        </div>
                         <div slot="reference" class="jianyi">
-                        
+                          <el-input
+                            type="textarea"
+                            autosize
+                            v-model="scope.row.proAdvice"
+                            placeholder="璇疯緭鍏ョ粨鏋滃缓璁�"
+                            :disabled="true"
+                          ></el-input>
                         </div>
                       </el-popover>
                     </template>
@@ -1761,7 +1789,7 @@
             } else {
               this.focusrow.exceptionDesc = false;
             }
-
+            this.focusrow.proAdvice = this.autorule[0].nr;
             this.autorule.forEach((item) => {
               if (this.focusrow.conclusion) {
                 this.focusrow.conclusion += item.bz;
@@ -1769,8 +1797,6 @@
                 this.focusrow.conclusion += item.bz;
               }
             });
-            // this.rows.push(this.focusrow);
-            // console.log(this.rows,5522);
           }
         });
       } else {
@@ -1794,7 +1820,7 @@
             } else {
               this.focusrow.exceptionDesc = false;
             }
-
+            this.focusrow.proAdvice = this.autorule[0].nr;
             this.autorule.forEach((item) => {
               if (this.focusrow.conclusion) {
                 this.focusrow.conclusion += item.bz;
@@ -2433,15 +2459,11 @@
                 if (item1 === item) {
                   item = item1;
                 }
-                // if (item.isReturn == true) {
-                //   item.isReturn = 1;
-                // }
-                // if (item.isReturn == false) {
-                //   item.isReturn = 0;
-                // }
               });
             }
             this.tjOrderDetail.push({
+              proAdvice: item.proAdvice,
+
               proName: item.project.proName,
               proId: item.project.proId,
               orderDetailId: item.orderDetailId,
@@ -2628,6 +2650,8 @@
               });
             }
             this.tjOrderDetail.push({
+              proAdvice: item.proAdvice,
+
               proName: item.project.proName,
               proId: item.project.proId,
               orderDetailId: item.orderDetailId,
@@ -2798,6 +2822,7 @@
           });
         }
         this.tjOrderDetail.push({
+          proAdvice: item.proAdvice,
           proName: item.project.proName,
           proId: item.project.proId,
           orderDetailId: item.orderDetailId,
@@ -2813,6 +2838,8 @@
 
       let data = [
         {
+          proAdvice: item.proAdvice,
+
           tjNumber,
           proId: this.proId,
           remark: this.proParentList.remark, // 澶囨敞
@@ -2831,7 +2858,7 @@
   },
 };
 </script>
-<style>
+<style lang="scss" scoped>
 .el-table .cell {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
@@ -2902,11 +2929,18 @@
   display: flex;
   justify-content: center;
 }
-.el-table__body tr:hover > td {
-  background-color: transparent !important; /* 绉婚櫎榛樿鐨� hover 鏁堟灉 */
-}
-.el-table .warning-row {
+
+::v-deep .el-table .warning-row {
   background: #ffe6e6 !important; /* 杞诲井鐨勭孩鑹茶儗鏅� */
+}
+/* .el-table--enable-row-hover .el-table__body tr:hover>td{
+	background-color: #ffe6e6 !important;
+} */
+::v-deep .bgc .el-table__body tr:hover > td {
+  background-color: #ffe6e6 !important;
+}
+::v-deep .bgc .el-table__cell {
+  padding: 5px 0 !important;
 }
 .jianyi {
   display: -webkit-box;
@@ -2914,6 +2948,11 @@
   -webkit-line-clamp: 2;
   overflow: hidden;
   text-overflow: ellipsis;
-  cursor: pointer;  /* 榧犳爣鎮仠鏃舵樉绀烘墜鍨嬶紝鎻愮ず鍙互鐐瑰嚮 */
+  cursor: pointer;
+  font-size: 12px;
+}
+::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
+  background-color: #66cc66;
+  border-color: #66cc66;
 }
 </style>

--
Gitblit v1.8.0