Kaynağa Gözat

Finish Hotfix-zh-225

Howie 3 yıl önce
ebeveyn
işleme
4437e81b04

+ 12 - 1
src/views/basic_data/material/modify_list.vue

@@ -182,7 +182,8 @@
             highlight-current-row
             @select-all="hanleSelectAll"
             @select="hanleSelectAll"
-            stripe
+            
+            :row-class-name="tableRowClassName"
           >
             <el-table-column
               type="selection"
@@ -814,6 +815,13 @@ export default {
     hanleDownloadFiles() {
       downloadFiles('/product-upd-price/download')
     },
+    tableRowClassName({row, rowIndex}) {
+      // || row.examineStatus=='FAIL'
+     if (this.ids.includes(row.updPriceBillId)) {
+          return 'warning-row';
+        }
+        return '';
+    },
   },
 };
 </script>
@@ -822,6 +830,9 @@ export default {
 ::v-deep .el-select--small {
   width: 100%;
 }
+::v-deep .el-table .warning-row {
+    background:  oldlace;
+  }
 .import-btn{
   display: inline-block;
     margin: 0 10px;

+ 13 - 8
src/views/basic_data/material/price_list.vue

@@ -162,10 +162,11 @@
           element-loading-text="Loading"
           border
           fit
-          stripe
+       
+          :row-class-name="tableRowClassName"
           @select-all="hanleSelectAll"
           @select="hanleSelectAll"
-          :row-style="rowClass"
+         
         >
            <el-table-column
               type="selection"
@@ -486,17 +487,21 @@ export default {
         this.getList()
       })
     },
-    rowClass({ row, rowIndex }) {
-      if (this.ids.includes(row.id)) {
-        console.log(row);
-        return { 'background-color': '#ecf5ff' }
-      }
-    }
+    tableRowClassName({row, rowIndex}) {
+      // || row.examineStatus=='FAIL'
+     if (this.ids.includes(row.id)) {
+          return 'warning-row';
+        }
+        return '';
+    },
   }
 }
 </script>
 
 <style lang="scss" scoped>
+  ::v-deep .el-table .warning-row {
+    background:  oldlace;
+  }
 ::v-deep .el-select--small {
   width: 100%;
 }

+ 13 - 1
src/views/supply/price/modify_list.vue

@@ -189,7 +189,8 @@
             highlight-current-row
             @select-all="hanleSelectAll"
             @select="hanleSelectAll"
-            stripe
+            :row-class-name="tableRowClassName"
+            
           >
             <el-table-column
               type="selection"
@@ -828,11 +829,22 @@ export default {
     hanleDownloadFiles() {
       downloadFiles('/product-upd-price/download')
     },
+    tableRowClassName({row, rowIndex}) {
+      // || row.examineStatus=='FAIL'
+     if (this.ids.includes(row.updPriceBillId)) {
+          return 'warning-row';
+        }
+        return '';
+    },
   },
 };
 </script>
 
 <style lang="scss" scoped>
+  
+  ::v-deep .el-table .warning-row {
+    background:  oldlace;
+  }
 ::v-deep .el-select--small {
   width: 100%;
 }

+ 13 - 2
src/views/supply/price/price_list.vue

@@ -175,7 +175,7 @@
           element-loading-text="Loading"
           border
           fit
-          stripe
+          :row-class-name="tableRowClassName"
              @select-all="hanleSelectAll"
             @select="hanleSelectAll"
         >
@@ -498,12 +498,23 @@ export default {
         this.$successMsg('操作成功')
         this.getList()
       })
-    }
+    },
+    tableRowClassName({row, rowIndex}) {
+      // || row.examineStatus=='FAIL'
+     if (this.ids.includes(row.id)) {
+          return 'warning-row';
+        }
+        return '';
+    },
   }
 }
 </script>
 
 <style lang="scss" scoped>
+    ::v-deep .el-table .warning-row {
+    background:  oldlace;
+  }
+
 ::v-deep .el-select--small {
   width: 100%;
 }