(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bb95b3a"],{"09f4":function(e,t,s){"use strict";s.d(t,"a",(function(){return c})),Math.easeInOutQuad=function(e,t,s,a){return e/=a/2,e<1?s/2*e*e+t:(e--,-s/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(e,t,s){var c=i(),n=e-c,r=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=r;var i=Math.easeInOutQuad(l,c,n,t);o(i),l0?(e.payList.student.ischeck=!0,e.payList.student.chiose="loop",e.chioseMonth=t.data.months):(e.payList.student.ischeck=!0,e.payList.student.chiose="ONE_OFF");e.payList.chioseMonth=t.data.months,t.data.musicGroup.organId&&(Object(n["A"])({organId:t.data.musicGroup.organId,rows:1e3}).then((function(t){200==t.code&&(e.orgianList=t.data.rows)})),Object(n["z"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.cooperationList=t.data)})),Object(n["o"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.addList=t.data,e.isInit=!1)})),Object(c["a"])().then((function(t){200==t.code&&(e.technician=t.data)})))}}))):(this.topFrom={type:"",section:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()),Object(i["R"])().then((function(t){200==t.code&&(e.sectionList=t.data)})),Object(i["xb"])({rows:1e3}).then((function(t){200==t.code&&(e.typeList=t.data.rows)})),sessionStorage.setItem("resetCode","1")},changeSection:function(e){var t=this;this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",Object(n["A"])({organId:e,rows:1e3}).then((function(e){200==e.code&&(t.orgianList=e.data.rows)})),Object(n["z"])({organId:e}).then((function(e){200==e.code&&(t.cooperationList=e.data)})),Object(n["o"])({organId:e}).then((function(e){200==e.code&&(t.addList=e.data)})),Object(c["a"])().then((function(e){200==e.code&&(t.technician=e.data)}))},chioseSchool:function(e){},gotoNext:function(e){var t=this;this.$refs["topinfo"].validate((function(s,a){if(s){var o=[];for(var i in t.checkList)t.checkList[i].ischeck&&!t.checkList[i].value?o.push(!1):o.push(!0);for(var c in t.newStudentList)t.newStudentList[c].ischeck&&!t.newStudentList[c].value||t.newStudentList[c].ischeck&&!t.newStudentList[c].nowValue?o.push(!1):o.push(!0);var n=o.every((function(e){return 1==e}));if(!n)return void t.$message.error("课程价格不能为空");t.$store.dispatch("topinfo",t.topFrom),t.$store.dispatch("checkinfo",t.checkList),t.$store.dispatch("getpayInfo",t.payList),t.$store.dispatch("newStudentinfo",t.newStudentList),"teamDraft"==t.teamStatus?t.resetSubmit():t.$emit("chiosetab",e)}else t.$message.error("请填写建团必要参数")}))},resetSubmit:function(){var e=this;this.$refs["topinfo"].validate((function(t,s){if(t){var a=[];for(var o in e.checkList)e.checkList[o].ischeck&&!e.checkList[o].value?a.push(!1):a.push(!0);for(var c in e.newStudentList)e.newStudentList[c].ischeck&&!e.newStudentList[c].value||e.newStudentList[c].ischeck&&!e.newStudentList[c].nowValue?a.push(!1):a.push(!0);var n=a.every((function(e){return 1==e}));if(!n)return void e.$message.error("课程价格不能为空");var r=null;switch(e.teamStatus){case"resetTeam":r="PROGRESS";break;case"newTeam":r=null;break;case"teamList":r=null;break;case"teamDraft":r="DRAFT";break}var l={},u={};for(var p in e.checkList)e.checkList[p].ischeck&&(u[p]=e.checkList[p]);for(var m in e.newStudentList)e.newStudentList[m].ischeck&&(u[m]=e.newStudentList[m]);"loop"==e.payList.student.chiose?l.months=e.payList.chioseMonth:l.months=[],l.musicGroup={settlementType:e.topFrom.salary,applyExpireDate:e.topFrom.time+" 00:00:01",chargeTypeId:e.topFrom.type,cooperationOrganId:e.topFrom.school,teamTeacherId:e.topFrom.boss,educationalTeacherId:e.topFrom.teacher,enrollClasses:e.topFrom.startClass.join(","),name:e.topFrom.name,organId:e.topFrom.section,schoolId:e.topFrom.address,courseForm:JSON.stringify(u),id:e.teamid,directorUserId:e.topFrom.head,isClassroomLessons:e.topFrom.isClass,status:r,expectStartGroupDate:e.topFrom.startTime,ownershipType:e.topFrom.ownershipType,repairUserId:e.topFrom.repairUserId||null,feeType:e.topFrom.feeType},l.musicGroupPaymentEntities=[],e.payList.school.ischeck&&l.musicGroupPaymentEntities.push({amount:e.payList.school.price,memo:e.payList.school.value,paymentMethod:e.payList.school.chiose,name:"学校"}),e.payList.company.ischeck&&l.musicGroupPaymentEntities.push({amount:e.payList.company.price,memo:e.payList.company.value,paymentMethod:e.payList.company.chiose,name:"公司"}),e.payList.student.ischeck&&l.musicGroupPaymentEntities.push({paymentMethod:e.payList.student.chiose,name:"学生"}),Object(i["Yb"])(l).then((function(t){200==t.code&&("teamDraft"==e.teamStatus?(e.$message.success("保存成功"),e.$emit("chiosetab",1)):e.$message.success("修改乐团成功"))}))}else e.$message.error("请填写必要参数")}))}},computed:{},watch:{newStudentList:{handler:function(e){e.baseInfo.ischeck&&(this.checkList.baseInfo.ischeck=!1)},deep:!0},checkList:{handler:function(e){e.baseInfo.ischeck&&(this.newStudentList.baseInfo.ischeck=!1)},deep:!0}}}),l=r,u=(s("6193"),s("2877")),p=Object(u["a"])(l,a,o,!1,null,null,null);t["a"]=p.exports},a488:function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"c",(function(){return r})),s.d(t,"b",(function(){return l}));var a=s("b775"),o=s("4328"),i=s.n(o),c="/api-web";function n(e){return Object(a["a"])({url:c+"/employee/findTechnician",method:"get",params:e})}function r(e){return Object(a["a"])({url:c+"/studentRepair/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:c+"/studentRepair/repairSuccess",method:"post",data:i.a.stringify(e)})}},aa6f:function(e,t,s){}}]);