Преглед на файлове

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 (