|
@@ -712,22 +712,6 @@ export default {
|
|
|
},
|
|
|
chioseSchool(val) {},
|
|
|
gotoNext(num) {
|
|
|
- // 1.效验数据 判断是否数据正常=> 正常放入store存储
|
|
|
- // 不正常=> 进行效验提示
|
|
|
- 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("请填写建团必要参数");
|
|
@@ -735,9 +719,6 @@ export default {
|
|
|
// 判断一下是否勾选了课程类型而没有输入金额
|
|
|
// 验证通过
|
|
|
this.$store.dispatch("topinfo", this.topFrom);
|
|
|
- // this.$store.dispatch("checkinfo", this.checkList);
|
|
|
- // this.$store.dispatch("getpayInfo", this.payList);
|
|
|
- // this.$store.dispatch("newStudentinfo", this.newStudentList);
|
|
|
if (this.teamStatus == "teamDraft") {
|
|
|
// 获取数据提交
|
|
|
|
|
@@ -781,20 +762,6 @@ export default {
|
|
|
let obj = {};
|
|
|
// topFrom.ownershipType
|
|
|
// 修改 合并对象
|
|
|
- let courseJson = {};
|
|
|
- for (let i in this.checkList) {
|
|
|
- if (this.checkList[i].ischeck) {
|
|
|
- courseJson[i] = this.checkList[i];
|
|
|
- }
|
|
|
- }
|
|
|
- for (let j in this.newStudentList) {
|
|
|
- if (this.newStudentList[j].ischeck) {
|
|
|
- courseJson[j] = this.newStudentList[j];
|
|
|
- }
|
|
|
- }
|
|
|
- this.payList.student.chiose == "loop"
|
|
|
- ? (obj.months = this.payList.chioseMonth)
|
|
|
- : (obj.months = []);
|
|
|
obj.musicGroup = {
|
|
|
settlementType: this.topFrom.salary,
|
|
|
applyExpireDate: dayjs(this.topFrom.time).format(
|
|
@@ -816,7 +783,6 @@ export default {
|
|
|
organId: this.topFrom.section,
|
|
|
// paymentMonths:obj.months 有待确认
|
|
|
schoolId: this.topFrom.address,
|
|
|
- courseForm: JSON.stringify(courseJson),
|
|
|
id: this.teamid,
|
|
|
directorUserId: this.topFrom.head,
|
|
|
isClassroomLessons: this.topFrom.isClass,
|
|
@@ -827,30 +793,6 @@ export default {
|
|
|
feeType: this.topFrom.feeType,
|
|
|
};
|
|
|
obj.musicGroupPaymentEntities = [];
|
|
|
- // 添加学校主体付费方式
|
|
|
- if (this.payList.school.ischeck) {
|
|
|
- obj.musicGroupPaymentEntities.push({
|
|
|
- amount: this.payList.school.price,
|
|
|
- memo: this.payList.school.value,
|
|
|
- paymentMethod: this.payList.school.chiose,
|
|
|
- name: "学校",
|
|
|
- });
|
|
|
- }
|
|
|
- // 添加公司主体付费方式
|
|
|
- if (this.payList.company.ischeck) {
|
|
|
- obj.musicGroupPaymentEntities.push({
|
|
|
- amount: this.payList.company.price,
|
|
|
- memo: this.payList.company.value,
|
|
|
- paymentMethod: this.payList.company.chiose,
|
|
|
- name: "公司",
|
|
|
- });
|
|
|
- }
|
|
|
- if (this.payList.student.ischeck) {
|
|
|
- obj.musicGroupPaymentEntities.push({
|
|
|
- paymentMethod: this.payList.student.chiose,
|
|
|
- name: "学生",
|
|
|
- });
|
|
|
- }
|
|
|
// 发请求
|
|
|
resetTeamBaseInfo(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -890,24 +832,6 @@ export default {
|
|
|
.join(",");
|
|
|
},
|
|
|
},
|
|
|
- watch: {
|
|
|
- newStudentList: {
|
|
|
- handler: function (val) {
|
|
|
- if (val.baseInfo.ischeck) {
|
|
|
- this.checkList.baseInfo.ischeck = false;
|
|
|
- }
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- },
|
|
|
- checkList: {
|
|
|
- handler: function (val) {
|
|
|
- if (val.baseInfo.ischeck) {
|
|
|
- this.newStudentList.baseInfo.ischeck = false;
|
|
|
- }
|
|
|
- },
|
|
|
- deep: true,
|
|
|
- },
|
|
|
- },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" >
|