فهرست منبع

fix: 移除冗余的应收总金额计算逻辑,直接使用数据表单中的值

xieyong 1 روز پیش
والد
کامیت
90b74cdd51
1فایلهای تغییر یافته به همراه8 افزوده شده و 7 حذف شده
  1. 8 7
      src/views/saleManage/saleOrder/accountstatement/components/receivableInfo.vue

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

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