Browse Source

修复 缴费方式无法修改问题

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

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

@@ -226,7 +226,6 @@ export default {
         editMulticycle = (musicGroupPaymentCalenders > 1 ||
           musicGroupPaymentCalenders[0]?.paymentType != 'ADD_COURSE')
         if (editMulticycle) {
-          this.$set(this.payment, 'paymentPattern', String(auditDto?.paymentPattern))
           this.cycles = musicGroupPaymentCalenders.map(item => ({
             paymentAmount: item.paymentAmount,
             paymentDate: [item?.startPaymentDate, item?.deadlinePaymentDate],
@@ -234,7 +233,7 @@ export default {
           }))
         }
       }
-      return (this.payment.paymentPattern == 0 && this.form.leixing !== '2') || editMulticycle
+      return (this.payment.paymentPattern == 0 && this.form.leixing !== '2') || (this.payment.paymentPattern == 0 && editMulticycle)
     }
   },
   watch: {
@@ -321,6 +320,7 @@ export default {
             return !item.isStudentOptional || this.paymentType !== undefined
           })
           const firstPayment = res.data.musicGroupPaymentCalenders[0] || {}
+          this.$set(this.payment, 'paymentPattern', String(this.viewDetail.auditDto?.paymentPattern))
           if (this.$refs.cycle) {
             this.$set(
               this.cycle,