lilei 2 tahun lalu
induk
melakukan
790ac38538

+ 7 - 1
src/views/inventoryManagement/intelligentReplenishment/import.vue

@@ -21,6 +21,7 @@
               :columns="columns"
               :table-data="listData"
               row-key-field-name="id"
+              :cell-style-option="cellStyleOption"
             />
           <div class="btn-cont">
             <a-button
@@ -64,6 +65,11 @@ export default {
     return {
       spinning: false,
       tableHeight: 500,
+      cellStyleOption: {
+          bodyCellClass: ({ row, column, rowIndex }) => {
+            return row.cost ? 'redBg-row':'';
+          },
+      },
       columns: [
         { title: '序号', field: 'no',key: "a", width: 80, align: 'center', fixed: 'left',operationColumn: false },
         { title: '产品编码', field: 'productCode',key: "b", width: 220, align: 'center',operationColumn: false,renderBodyCell: ({ row, column, rowIndex }, h) => { return row[column.field] || '--'} },
@@ -163,7 +169,7 @@ export default {
       }
     }
     .redBg-row{
-      background-color: #f5cdc8;
+      background-color: #f5cdc8!important;
     }
   }
 </style>