ソースを参照

Merge branch 'Nov16thResetMusic' into online

wolyshaw 4 年 前
コミット
d330db3c0b
1 ファイル変更4 行追加3 行削除
  1. 4 3
      src/views/resetTeaming/modals/user-pay-form.vue

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

@@ -220,10 +220,11 @@ export default {
     },
     isMulticycle() {
       let editMulticycle = false
+      let paymentType = ''
       if (this.viewDetail) {
         const { musicGroupPaymentCalenders, auditDto } = this.viewDetail
-        editMulticycle = (musicGroupPaymentCalenders > 1 ||
-          musicGroupPaymentCalenders[0]?.paymentType != 'ADD_COURSE')
+        paymentType = musicGroupPaymentCalenders[0]?.paymentType
+        editMulticycle = (musicGroupPaymentCalenders.length > 1 || paymentType != 'ADD_COURSE')
         if (editMulticycle) {
           this.cycles = musicGroupPaymentCalenders.map(item => ({
             paymentAmount: item.paymentAmount,
@@ -232,7 +233,7 @@ export default {
           }))
         }
       }
-      return (this.payment.paymentPattern == 0 && this.form.leixing !== '2') || (this.payment.paymentPattern == 0 && editMulticycle)
+      return (this.payment.paymentPattern == 0 && this.form.leixing !== '2' && paymentType !== 'ADD_COURSE') || (this.payment.paymentPattern == 0 && editMulticycle)
     }
   },
   watch: {