lilei 3 hafta önce
ebeveyn
işleme
2183ed8018

+ 3 - 3
src/views/financialManagement/accountStatement/confrontModal.vue

@@ -173,11 +173,11 @@ export default {
               data[i].day = dates[2].split(' ')[0]
               // 正为借方, 负数为贷方
               if (data[i].bizAmount > 0) {
-                data[i].debitAmount = data[i].bizAmount
+                data[i].debitAmount = Number(data[i].bizAmount).toFixed(2)
               } else {
-                data[i].creditorAmount = data[i].bizAmount * -1
+                data[i].creditorAmount = Number(data[i].bizAmount * -1).toFixed(2)
               }
-              data[i].totalAmount = data[i].debitAmount || 0 - data[i].creditorAmount || 0
+              data[i].totalAmount = Number(data[i].debitAmount || 0 - data[i].creditorAmount || 0).toFixed(2)
             }
             this.total = data.length || 0 + 1
             this.disabled = false