Преглед изворни кода

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

xieyong пре 3 недеља
родитељ
комит
314b424c3b

+ 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 (