|
@@ -596,51 +596,6 @@ export default {
|
|
|
this.topFrom.feeType = res.data.musicGroup.feeType
|
|
|
? res.data.musicGroup.feeType
|
|
|
: null;
|
|
|
- // 课程组成形式
|
|
|
- // this.checkList;
|
|
|
- // // 判断课程是否为空
|
|
|
- // let list = res.data.musicGroup.courseForm
|
|
|
- // ? JSON.parse(res.data.musicGroup.courseForm)
|
|
|
- // : {};
|
|
|
- // for (let i in this.checkList) {
|
|
|
- // if (list[i] && !list[i].isNew) {
|
|
|
- // this.checkList[i] = list[i];
|
|
|
- // } else if (list[i] && list[i].isNew) {
|
|
|
- // this.newStudentList[i] = list[i];
|
|
|
- // this.newStudentList[i].checkBuy = true;
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // // 付费方式和周期
|
|
|
- // for (let i in res.data.musicGroupPaymentEntities) {
|
|
|
- // if (res.data.musicGroupPaymentEntities[i].name == "学校") {
|
|
|
- // this.payList.school.ischeck = true;
|
|
|
- // this.payList.school.value =
|
|
|
- // res.data.musicGroupPaymentEntities[i].memo;
|
|
|
- // this.payList.school.price =
|
|
|
- // res.data.musicGroupPaymentEntities[i].amount;
|
|
|
- // this.payList.school.chiose =
|
|
|
- // res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
- // }
|
|
|
- // if (res.data.musicGroupPaymentEntities[i].name == "公司") {
|
|
|
- // this.payList.company.ischeck = true;
|
|
|
- // this.payList.company.value =
|
|
|
- // res.data.musicGroupPaymentEntities[i].memo;
|
|
|
- // this.payList.company.price =
|
|
|
- // res.data.musicGroupPaymentEntities[i].amount;
|
|
|
- // this.payList.company.chiose =
|
|
|
- // res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
- // }
|
|
|
-
|
|
|
- // if (res.data?.months?.length > 0) {
|
|
|
- // this.payList.student.ischeck = true;
|
|
|
- // this.payList.student.chiose = "loop";
|
|
|
- // this.chioseMonth = res.data.months;
|
|
|
- // } else {
|
|
|
- // this.payList.student.ischeck = true;
|
|
|
- // this.payList.student.chiose = "ONE_OFF";
|
|
|
- // }
|
|
|
- // }
|
|
|
// // 循环缴费月
|
|
|
// this.payList.chioseMonth = res.data.months;
|
|
|
if (res.data.musicGroup.organId) {
|
|
@@ -795,51 +750,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
resetSubmit() {
|
|
|
- let check = [];
|
|
|
- for (let i in this.checkList) {
|
|
|
- if (this.checkList[i] && i != "submit") {
|
|
|
- check.push(this.checkList[i].ischeck);
|
|
|
- }
|
|
|
- }
|
|
|
- // let checkFlag = false;
|
|
|
- // check.forEach((item) => {
|
|
|
- // checkFlag = checkFlag || item;
|
|
|
- // });
|
|
|
- // if (!checkFlag) {
|
|
|
- // this.$message.error("请至少选择一种乐团课程类型");
|
|
|
- // return;
|
|
|
- // }
|
|
|
+
|
|
|
this.$refs["topinfo"].validate((valid, object) => {
|
|
|
if (!valid) {
|
|
|
this.$message.error("请填写必要参数");
|
|
|
} else {
|
|
|
- let flagList = [];
|
|
|
- for (let i in this.checkList) {
|
|
|
- if (this.checkList[i].ischeck && !this.checkList[i].value) {
|
|
|
- flagList.push(false);
|
|
|
- } else {
|
|
|
- flagList.push(true);
|
|
|
- }
|
|
|
- }
|
|
|
- for (let i in this.newStudentList) {
|
|
|
- if (
|
|
|
- (this.newStudentList[i].ischeck &&
|
|
|
- !this.newStudentList[i].value) ||
|
|
|
- (this.newStudentList[i].ischeck &&
|
|
|
- !this.newStudentList[i].nowValue)
|
|
|
- ) {
|
|
|
- flagList.push(false);
|
|
|
- } else {
|
|
|
- flagList.push(true);
|
|
|
- }
|
|
|
- }
|
|
|
- let flag = flagList.every((item) => {
|
|
|
- return item == true;
|
|
|
- });
|
|
|
- if (!flag) {
|
|
|
- this.$message.error("课程价格不能为空");
|
|
|
- return;
|
|
|
- }
|
|
|
let status = null;
|
|
|
// 1.resetTeam 乐团修改
|
|
|
// 2.newTeam 新建乐团
|