浏览代码

Update studentList.vue

lex-xin 5 年之前
父节点
当前提交
18bc17d026
共有 1 个文件被更改,包括 11 次插入8 次删除
  1. 11 8
      src/views/teamDetail/components/studentList.vue

+ 11 - 8
src/views/teamDetail/components/studentList.vue

@@ -368,7 +368,7 @@
         </el-form-item>
         <el-form-item label="课程费用"
                       prop="courseFee">
-          <el-input v-model="maskForm.courseFee"
+          <el-input v-model="maskForm.courseFee" type="number" @mousewheel.native.prevent
                     placeholder="续费金额"></el-input>
         </el-form-item>
         <br>
@@ -445,9 +445,11 @@
             <el-form-item>
               <el-input v-model="maskForm.musicPrice"
                         placeholder="输入金额">
-                <template slot="prepend">
-                  {{ maskForm.musicMode }}
-                </template>
+                <el-select v-model="maskForm.kitGroupPurchaseType" style="width: 80px !important;" slot="prepend">
+                  <el-option label="免费" value="FREE"></el-option>
+                  <el-option label="团购" value="GROUP"></el-option>
+                  <el-option label="租赁" value="LEASE"></el-option>
+                </el-select>
               </el-input>
             </el-form-item>
           </el-col>
@@ -693,7 +695,7 @@ export default {
         courseFee: null, // 声部费用 
         temporaryCourseFee: null, // 本次课程费用 
         musicGoodsIdList: null, // 乐器商品编号
-        musicMode: null, // 乐器购买方式
+        kitGroupPurchaseType: 'GROUP', // 乐器购买方式
         musicPrice: null, // 乐器购买金额
         instrGoodsIdList: [], // 辅件商品编号
         instrPrice: null // 辅件购买金额
@@ -967,7 +969,6 @@ export default {
               this.$message.error('该学生必须加入一个班级')
               return;
             }
-
           }
           let snapClassIds;
 
@@ -995,6 +996,7 @@ export default {
           if (maskForm.musicGoodsIdList) {
             params.studentPaymentOrderDetails.push({
               goodsIdList: maskForm.musicGoodsIdList,
+              kitGroupPurchaseType: maskForm.kitGroupPurchaseType,
               type: 'MUSICAL',
               price: maskForm.musicPrice
             })
@@ -1021,7 +1023,7 @@ export default {
       })
     },
     onSoundChange (value) { // 学员声部切换时
-      this.findSubjectPlan(value)
+      // this.findSubjectPlan(value)
       this.getGoodsList(value, 'INSTRUMENT') // 乐器
       this.getGoodsList(value, 'ACCESSORIES') // 辅件
     },
@@ -1099,7 +1101,8 @@ export default {
                 startClass: res.data.currentGrade,
                 // sound: parseInt(res.data.subjectId), 
                 phone: val,
-                timer: res.data.birthdate
+                timer: res.data.birthdate,
+                kitGroupPurchaseType: 'GROUP', // 乐器购买方式
               }
               /**
                * name: maskForm.studentName,