|
@@ -279,14 +279,10 @@
|
|
|
:label="item.name"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="首缴金额"
|
|
|
- prop="price">
|
|
|
- <el-input v-model="maskForm.price"></el-input>
|
|
|
- </el-form-item> -->
|
|
|
|
|
|
<el-form-item label="声部费用"
|
|
|
prop="courseFee">
|
|
|
- <el-input v-model="maskForm.courseFee"></el-input>
|
|
|
+ <el-input v-model="maskForm.courseFee" placeholder="请输入声部费用"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-divider></el-divider>
|
|
@@ -294,36 +290,36 @@
|
|
|
<el-input v-model="maskForm.temporaryCourseFee" placeholder="本次课程费用"></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="乐器" required style="display: flex;">
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item prop="musicGoodsIdList">
|
|
|
+ <el-form-item label="乐器" class="instrList" >
|
|
|
+ <el-col :span="11" style="width: auto;">
|
|
|
+ <el-form-item>
|
|
|
<el-select placeholder="选择乐器" clearable v-model="maskForm.musicGoodsIdList">
|
|
|
<el-option v-for="(item, index) in INSTRUMENTLIST" :key="index" :value="item.value" :label="item.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="1"> </el-col>
|
|
|
- <el-col :span="7">
|
|
|
- <el-input disabled v-model="maskForm.musicMode" placeholder="购买方式"></el-input>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1"> </el-col>
|
|
|
- <el-col :span="7">
|
|
|
- <el-form-item prop="musicPrice">
|
|
|
- <el-input v-model="maskForm.musicPrice" placeholder="输入金额"></el-input>
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-form-item>
|
|
|
+ <el-input v-model="maskForm.musicPrice" placeholder="输入金额">
|
|
|
+ <template slot="prepend">
|
|
|
+ {{ maskForm.musicMode }}
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="辅件">
|
|
|
- <el-col :span="11">
|
|
|
- <el-form-item prop="instrGoodsIdList">
|
|
|
+ <el-col :span="11" style="width: auto;">
|
|
|
+ <el-form-item>
|
|
|
<el-select filterable multiple placeholder="选择辅件" clearable v-model="maskForm.instrGoodsIdList">
|
|
|
<el-option v-for="(item, index) in ACCESSORIESLIST" :key="index" :value="item.value" :label="item.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="2"> </el-col>
|
|
|
+ <el-col :span="1"> </el-col>
|
|
|
<el-col :span="11">
|
|
|
- <el-form-item prop="instrPrice">
|
|
|
+ <el-form-item>
|
|
|
<el-input v-model="maskForm.instrPrice" placeholder="输入金额"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -367,7 +363,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
studentClassVisible: false, // 学员所在班级弹窗
|
|
|
- addStudentVisible: true, //新增学员弹窗
|
|
|
+ addStudentVisible: false, //新增学员弹窗
|
|
|
topFrom: { // 顶部的禁选框集合
|
|
|
expect: '2', // 预期招生
|
|
|
studing: '5', // 在读人数
|
|
@@ -535,28 +531,32 @@ export default {
|
|
|
subjectId: maskForm.sound,
|
|
|
musicGroupId: this.teamid,
|
|
|
classGroupId: maskForm.signClass
|
|
|
- },
|
|
|
- studentPaymentOrderDetails: [
|
|
|
- {
|
|
|
- goodsIdList: maskForm.musicGoodsIdList,
|
|
|
- type: 'MUSICAL',
|
|
|
- price: maskForm.musicPrice
|
|
|
- },
|
|
|
- {
|
|
|
- goodsIdList: maskForm.instrGoodsIdList.join(','),
|
|
|
- type: 'ACCESSORIES',
|
|
|
- price: maskForm.instrPrice
|
|
|
- }
|
|
|
- ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ params.studentPaymentOrderDetails = []
|
|
|
+ if(maskForm.musicGoodsIdList) {
|
|
|
+ params.studentPaymentOrderDetails.push({
|
|
|
+ goodsIdList: maskForm.musicGoodsIdList,
|
|
|
+ type: 'MUSICAL',
|
|
|
+ price: maskForm.musicPrice
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
- console.log(params)
|
|
|
+ if(maskForm.instrGoodsIdList && maskForm.instrGoodsIdList != '') {
|
|
|
+ params.studentPaymentOrderDetails.push({
|
|
|
+ goodsIdList: maskForm.instrGoodsIdList.join(','),
|
|
|
+ type: 'ACCESSORIES',
|
|
|
+ price: maskForm.instrPrice
|
|
|
+ })
|
|
|
+ }
|
|
|
addStudent(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('添加学生成功');
|
|
|
this.getList()
|
|
|
this.addStudentVisible = false
|
|
|
}
|
|
|
+
|
|
|
+ this.$refs.maskForm.resetFields()
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -625,27 +625,31 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.moreInput {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- /deep/.el-form-item__content {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- }
|
|
|
- // .el-input {
|
|
|
- // flex: 1;
|
|
|
- // margin-right: 15px;
|
|
|
- // &:last-child {
|
|
|
- // margin-right: 0;
|
|
|
- // }
|
|
|
- // }
|
|
|
-}
|
|
|
+// .moreInput {
|
|
|
+// width: 100%;
|
|
|
+// display: flex;
|
|
|
+// /deep/.el-form-item__content {
|
|
|
+// display: flex;
|
|
|
+// flex-direction: row;
|
|
|
+// }
|
|
|
+// }
|
|
|
/deep/.el-date-editor.el-input {
|
|
|
width: auto;
|
|
|
.el-input__inner {
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
}
|
|
|
+// .instrList {
|
|
|
+// display: flex;
|
|
|
+// /deep/.el-form-item__content {
|
|
|
+// width: 80%;
|
|
|
+// }
|
|
|
+// .el-col {
|
|
|
+// /deep/.el-form-item__content {
|
|
|
+// width: 100%;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
.stu-container {
|
|
|
.topFrom {
|
|
|
margin: 20px 30px 0;
|