Browse Source

学校缴费金额计算

wolyshaw 4 years ago
parent
commit
149758d0a6
1 changed files with 6 additions and 15 deletions
  1. 6 15
      src/views/resetTeaming/modals/user-pay-form.vue

+ 6 - 15
src/views/resetTeaming/modals/user-pay-form.vue

@@ -378,21 +378,12 @@ export default {
         }
       }
       if (this.cycles && this.cycles.length) {
-        if (this.paymentAmountDisabled) {
-          this.cycles = this.cycles.map((item, index) => {
-            return {
-              ...item,
-              paymentAmount: (index === 0 ? first / 100 : (other / 100))
-            }
-          })
-        } else {
-          this.cycles = this.cycles.map((item, index) => {
-            return {
-              ...item,
-              paymentAmount: (index === 0 && !item.changeed ? money : item.paymentAmount)
-            }
-          })
-        }
+        this.cycles = this.cycles.map((item, index) => {
+          return {
+            ...item,
+            paymentAmount: (index === 0 ? first / 100 : (other / 100))
+          }
+        })
       }
       // if (!money) {
         // this.$set(this.cycle, "paymentAmount", undefined);