浏览代码

fix: 切换生成付款计划表时确保计划付款金额有内容显示

xieyong 2 周之前
父节点
当前提交
a5e803be8d
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      src/BIZComponents/paymentCollectionPlan/Index.vue

+ 3 - 0
src/BIZComponents/paymentCollectionPlan/Index.vue

@@ -722,6 +722,9 @@
               item.type = 2;
               item.typeName = '交货款';
               item.ratio = 100;
+              // 比例 100% 时金额等于优惠后总金额;同步算出避免切回"是"时 price 留空
+              this.discountAmount = Number(this.info.payAmount);
+              item.price = formatPrice(this.discountAmount);
               item.key = i + 1;
               item.issueNumber = i + 1;
             } else {