Quellcode durchsuchen

fix: 修复校验问题

lyc vor 1 Monat
Ursprung
Commit
c1e0ab8b2e
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      src/views/orders/claimRecord.vue

+ 7 - 1
src/views/orders/claimRecord.vue

@@ -789,7 +789,13 @@ export default {
           Object.keys(targetData).forEach(city => {
             if (city) {
               const totalSum = targetData[city].reduce((acc, item) => acc + item.AuditTotalAmount, 0);
-              targetData[city].push({ IsFilter: true, TotalAmount: ceilToDecimals(totalSum, 2), CustomerName: targetData[city][0]['CustomerName'] })
+              const TotalAmount = ceilToDecimals(totalSum, 2)
+              targetData[city].push({
+                IsFilter: true,
+                TotalAmount,
+                AuditTotalAmount: TotalAmount,
+                CustomerName: targetData[city][0]['CustomerName']
+              })
             }
           });
           this.mergeCellsCheckData = targetData