Procházet zdrojové kódy

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

xieyong před 2 týdny
rodič
revize
a5e803be8d

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