Ver Fonte

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

xieyong há 4 semanas atrás
pai
commit
87c9ae857b
1 ficheiros alterados com 11 adições e 2 exclusões
  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(