ZaiZai 1 an în urmă
părinte
comite
a1b91ac517

+ 3 - 2
src/views/debit-pay/admin/components/middlepay/addModal.vue

@@ -386,8 +386,9 @@ const containChangeTotalBlur = (row) => {
 
 //判断是否红色
 const addTableRowStyle = ({ row }) => {
-    let allMeterTotal = new BigNumber(row.allMeterTotal)
-    let changeTotal = new BigNumber(row.changeTotal)
+    let allMeterTotal = new BigNumber(row.allMeterTotal) //a
+    let changeTotal = new BigNumber(row.changeTotal) //b
+    //a 大于 b = 1,a 等于 b = 0,a 小于 b = -1, a 或 b 的值异常时 = null
     const isCompared = allMeterTotal.comparedTo(changeTotal)
     if (!isCompared || isCompared === 1) {
         return '--el-table-tr-bg-color: #fe0000; --el-table-row-hover-bg-color: #fe0000; color: white;'