马宇豪
2024-11-28 0e2a2974a98d6792ce77a067d505c09f9b49940d
src/views/hazardousChemicals/electronicWarehouse/components/rawDetail.vue
@@ -257,11 +257,16 @@
  }
  for (let i = 0; i <= arr.length; i++) {
    if (arr[i] == row.basicId) {
      if(row.remaining < row.hazmatBasic.metering){
      if(row.state === 3 && row.remaining < row.hazmatBasic.metering){
        if (columnIndex === 11 || columnIndex === 10){
          return { color:' red' }
        }
      }else if(row.remaining < row.hazmatBasic.metering){
        if (columnIndex === 11 || columnIndex === 10){
          return { color: '#ff9900' }
        }
      }
    }
  }
};