Ver código fonte

fix: 更新receivedTotalPrice计算逻辑,直接使用dataForm中的值

xieyong 3 semanas atrás
pai
commit
6cbc61e776

+ 9 - 8
src/views/saleManage/saleOrder/accountstatement/components/receivableInfo.vue

@@ -288,14 +288,15 @@
         return this.dataForm?.statReceipt?.statementAdvanceTotalPrice || 0;
       },
       receivedTotalPrice() {
-        const value = (
-          this.dataForm?.statReceipt?.statReceiptDetailList?.reduce(
-            (pre, cur) =>
-              pre + Math.round((+cur.statementAmt || 0) * 100),
-            0
-          ) / 100
-        );
-        return isNaN(value) ? 0 : value;
+        // const value = (
+        //   this.dataForm?.statReceipt?.statReceiptDetailList?.reduce(
+        //     (pre, cur) =>
+        //       pre + Math.round((+cur.statementAmt || 0) * 100),
+        //     0
+        //   ) / 100
+        // );
+        // return isNaN(value) ? 0 : value;
+        return this.dataForm?.statReceipt?.receivedTotalPrice || 0;
       }
     },
     watch: {