Просмотр исходного кода

11/04 15:25

建团审批 第三页修改
Xiao_Mo 4 лет назад
Родитель
Сommit
af127ba5e9

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

@@ -324,8 +324,10 @@
       :title="payFormTitle"
       :visible.sync="userVisible"
       width="800px"
+      
     >
       <userPayForm
+      v-if="userVisible"
         @close="userVisible = false"
         @submited="payedSubmited"
         :rowDetail='activeRow'
@@ -509,7 +511,7 @@ export default {
       this.diTitle = "修改缴费";
       this.isNew = false;
       this.activeRow = row;
-      this.payFormType = row.payUserType
+      this.payFormType = row.payUserType==='SCHOOL'?'school':'user'
       this.userVisible = true;
     },
     detelePay(row) {

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

@@ -174,6 +174,7 @@ export default {
   methods: {
     init() {
       console.log(this.rowDetail);
+       this.getCharges();
       if (this.rowDetail) {
         this.form.musicGroupOrganizationCourseSettingId = this.rowDetail.musicGroupOrganizationCourseSettingId;
         this.$set(
@@ -190,7 +191,8 @@ export default {
         money += item.courseCurrentPrice;
       }
       this.$set(this.cycle, "paymentAmount", money);
-      this.$set(
+      if(this.rowDetail){
+          this.$set(
         this.cycle,
         "paymentPattern",
         this.rowDetail?.paymentPattern + ""
@@ -198,8 +200,12 @@ export default {
       let arr = [
         this.rowDetail?.paymentValidStartDate,
         this.rowDetail?.paymentValidEndDate,
-      ];
+      ]; 
+      // paymentDate startPaymentDate deadlinePaymentDate
+      this.$set(this.cycle, "paymentDate", [ this.rowDetail?.startPaymentDate, this.rowDetail?.deadlinePaymentDate]);
       this.$set(this.cycle, "paymentValid", arr);
+      }
+    
       return money;
     },
     async getChargeTypeList() {