Selaa lähdekoodia

新增学员缴费无法新增学员,修改bug

wolyshaw 4 vuotta sitten
vanhempi
commit
f7aa9477a4

+ 1 - 1
src/views/resetTeaming/components/resetPayList.vue

@@ -112,7 +112,7 @@
                          v-permission="'musicGroupPaymentCalender/auditListDetail'">查看</el-button>
               <el-button type="text"
                          @click="openChioseStudent(scope.row)"
-                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus && scope.row.paymentType != 'MUSIC_APPLY'"
+                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus && scope.row.paymentType != 'MUSIC_APPLY' && scope.row.paymentType != 'ADD_STUDENT'"
                          v-permission="'musicGroupPaymentCalenderDetail/batchAdd'">添加学员</el-button>
               <el-button type="text"
                          v-if="scope.row.status == 'REJECT'&&teamStatus"

+ 1 - 1
src/views/resetTeaming/components/resetPayListSchool.vue

@@ -102,7 +102,7 @@
                          v-permission="'musicGroupPaymentCalender/auditListDetail'">查看</el-button>
               <el-button type="text"
                          @click="openChioseStudent(scope.row)"
-                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus && scope.row.paymentType != 'MUSIC_APPLY'"
+                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus && scope.row.paymentType != 'MUSIC_APPLY' && scope.row.paymentType != 'ADD_STUDENT'"
                          v-permission="'musicGroupPaymentCalenderDetail/batchAdd'">添加学员</el-button>
               <el-button type="text"
                          v-if="scope.row.status == 'REJECT'&&teamStatus"

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

@@ -363,7 +363,7 @@ export default {
           isGiveMusicNetwork: false,
           paymentType:
             paymentTypeFormat[
-            this.paymentType == 0 ? this.paymentType : leixing
+              this.paymentType == 0 ? this.paymentType : leixing
             ],
           musicGroupId: this.musicGroupId,
           ...getTimes(paymentDate, ["startPaymentDate", "deadlinePaymentDate"]),
@@ -387,6 +387,8 @@ export default {
         } else {
           try {
             data.id = this.rowDetail.id
+            // 缴费类型无法修改,按照之前覆盖
+            data.paymentType = this.rowDetail.paymentType
             const res = await musicGroupPaymentCalenderDetailBatchUpdate(data);
             this.$listeners.close();
             this.$listeners.submited(res.data);