소스 검색

fix: 更新应付总金额计算逻辑,使用dataForm中的statPayable字段替代localList的累加计算

xieyong 3 주 전
부모
커밋
314b424c3b
1개의 변경된 파일과 8개의 추가작업 그리고 7개의 파일을 삭제
  1. 8 7
      src/views/purchasingManage/purchaseOrder/accountstatement/components/payablesInfo.vue

+ 8 - 7
src/views/purchasingManage/purchaseOrder/accountstatement/components/payablesInfo.vue

@@ -288,13 +288,14 @@
         return this.dialogType === 'view';
       },
       statementAdvanceTotalPrice() {
-        return (
-          this.localList.reduce(
-            (pre, cur) =>
-              pre + Math.round((+cur.confirmedPrepayAmt || 0) * 100),
-            0
-          ) / 100
-        );
+        return this.dataForm?.statPayable?.statementPrepayTotalPrice || 0
+        // return (
+        //   this.localList.reduce(
+        //     (pre, cur) =>
+        //       pre + Math.round((+cur.confirmedPrepayAmt || 0) * 100),
+        //     0
+        //   ) / 100
+        // );
       },
       receivedTotalPrice() {
         return (