فهرست منبع

fix(paymentCollectionPlan): 根据菜单类型动态更新付款类型标签

xieyong 4 هفته پیش
والد
کامیت
87c9ae857b
1فایلهای تغییر یافته به همراه11 افزوده شده و 2 حذف شده
  1. 11 2
      src/BIZComponents/paymentCollectionPlan/Index.vue

+ 11 - 2
src/BIZComponents/paymentCollectionPlan/Index.vue

@@ -409,10 +409,19 @@
         // 阶段付款(settlementMode === 9)展示全部款项类型;
         // 其他方式只允许"交货款"(value=2)。始终返回数组,v-for 才能正常渲染。
         const isStage = this.info?.settlementMode == 9;
+        let paymentTypeOp = this.paymentTypeOp;
+        if (this.menu === 'purchase') {
+          paymentTypeOp.forEach((item) => {
+            if (item.value == 1) {
+              item.label = '预付款';
+            }
+          });
+        }
+
         if (isStage) {
-          return this.paymentTypeOp;
+          return paymentTypeOp;
         }
-        return this.paymentTypeOp.filter((item) => item.value == 2);
+        return paymentTypeOp.filter((item) => item.value == 2);
       },
       allRatio() {
         return formatPrice(