12345 |
- <<<<<<< HEAD
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17b879c2","chunk-770fa607"],{"0464":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,r){return a("el-option",{key:r,attrs:{disabled:e.isOptionDisabled(r),label:e.courseType[r],value:r}})})),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},s=[],n=(a("6762"),a("2fdb"),a("267e")),i=a("ed08"),o=a("92e3"),l=a("6612"),c=a.n(l),u=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:n["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(i["b"])(n["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["h"])}},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return c()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(a,r,s){var n=t.list.form[e].courseType;n&&r>1&&t.classTimeList[n]&&r<t.classTimeList[n]?s(new Error("单节课不得少于".concat(t.classTimeList[n],"分钟"))):s()}}}}),m=u,d=(a("1139"),a("2877")),p=Object(d["a"])(m,r,s,!1,null,"a10777a0",null);t["a"]=p.exports},"054c":function(e,t,a){},"103d":function(e,t,a){"use strict";a("9076")},1139:function(e,t,a){"use strict";a("44d1")},1400:function(e,t,a){"use strict";a("b3f6")},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}));var r=a("b775"),s=a("829b"),n="/api-web";function i(e){return Object(s["a"])({url:n+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(r["a"])({url:n+"/chargeType/queryPage",method:"get",params:e})}},1672:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"g",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"f",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return m})),a.d(t,"i",(function(){return d}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},n=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},i=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},c=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},u=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},d=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})}},"1a3f":function(e,t,a){},"1aa8":function(e,t,a){"use strict";a("7619")},2149:function(e,t,a){},"23ce":function(e,t,a){},2666:function(e,t,a){"use strict";a("1a3f")},"272e":function(e,t,a){"use strict";a("da35")},3004:function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"h",(function(){return m}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},n=function(e){return Object(r["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},i=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},4e3:function(e,t,a){"use strict";a("3004")},"44d1":function(e,t,a){},5137:function(e,t,a){"use strict";a.d(t,"n",(function(){return o})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"t",(function(){return m})),a.d(t,"o",(function(){return d})),a.d(t,"s",(function(){return p})),a.d(t,"m",(function(){return f})),a.d(t,"r",(function(){return h})),a.d(t,"j",(function(){return b})),a.d(t,"l",(function(){return g})),a.d(t,"a",(function(){return y})),a.d(t,"g",(function(){return v})),a.d(t,"b",(function(){return _})),a.d(t,"q",(function(){return k})),a.d(t,"i",(function(){return F})),a.d(t,"v",(function(){return S})),a.d(t,"u",(function(){return x})),a.d(t,"k",(function(){return T})),a.d(t,"p",(function(){return O})),a.d(t,"w",(function(){return I})),a.d(t,"c",(function(){return w})),a.d(t,"x",(function(){return C})),a.d(t,"y",(function(){return j})),a.d(t,"h",(function(){return P}));var r=a("b775"),s=a("4328"),n=a.n(s),i="/api-web";function o(e){return Object(r["a"])({url:i+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/studentManage/queryStudentPayment",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/order/queryPage",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/studentRegistration/batchUpdateSubject",method:"post",data:n.a.stringify(e)})}function b(e){return Object(r["a"])({url:i+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function y(e){return Object(r["a"])({url:i+"/studentRegistration/insertStudent",method:"POST",data:e})}function v(e){return Object(r["a"])({url:i+"/classGroupStudent/findAllStudent",method:"POST",data:n.a.stringify(e)})}function _(e){return Object(r["a"])({url:i+"/classGroupStudent/addStudents",method:"POST",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/classGroupStudent/del",method:"POST",data:n.a.stringify(e)})}function F(e){return Object(r["a"])({url:i+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function S(e){return Object(r["a"])({url:i+"/userCashAccount/updateCourseBalance",method:"post",data:n.a.stringify(e)})}function x(e){return Object(r["a"])({url:i+"/userCashAccount/updateBalance",method:"post",data:n.a.stringify(e)})}function T(e){return Object(r["a"])({url:i+"/studentManage/queryUserByPhone",method:"get",params:e})}function O(e){return Object(r["a"])({url:i+"/studentManage/register",method:"post",data:n.a.stringify(e)})}function I(e){return Object(r["a"])({url:i+"/studentManage/studentUpdate",method:"post",data:n.a.stringify(e)})}function w(e){return Object(r["a"])({url:i+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/userCashAccountDetail/queryPage",method:"get",params:e})}function j(e){return Object(r["a"])({url:i+"/userCoursesAccount/queryPage",method:"get",params:e})}function P(e){return Object(r["a"])({url:i+"/sysUserContracts/getLatest",method:"get",params:e})}},"51c1":function(e,t,a){"use strict";var r,s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"stu-container"},["PROGRESS"==e.team_status?a("div",{staticClass:"studentListWrap"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/insertStudent",expression:"'studentRegistration/insertStudent'"}],staticClass:"newBand",on:{click:e.createStudentFrom}},[e._v("\n 新增学员\n ")])]):e._e(),e._v(" "),a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名或电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"studentStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"学员状态"},model:{value:e.searchForm.studentStatus,callback:function(t){e.$set(e.searchForm,"studentStatus","string"===typeof t?t.trim():t)},expression:"searchForm.studentStatus"}},[a("el-option",{attrs:{label:"在读",value:"NORMAL"}}),e._v(" "),a("el-option",{attrs:{label:"请假",value:"LEAVE"}}),e._v(" "),a("el-option",{attrs:{label:"退团",value:"QUIT"}}),e._v(" "),a("el-option",{attrs:{label:"报名",value:"APPLY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"createYear"}},[a("el-date-picker",{attrs:{type:"year","value-format":"yyyy",placeholder:"选择入团年份"},model:{value:e.searchForm.createYear,callback:function(t){e.$set(e.searchForm,"createYear",t)},expression:"searchForm.createYear"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"currentGrade"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入年级"},model:{value:e.searchForm.currentGrade,callback:function(t){e.$set(e.searchForm,"currentGrade","string"===typeof t?t.trim():t)},expression:"searchForm.currentGrade"}},e._l(e.gradeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classGroupId"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择班级"},model:{value:e.searchForm.classGroupId,callback:function(t){e.$set(e.searchForm,"classGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.classGroupId"}},e._l(e.classList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"major"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"所选专业"},model:{value:e.searchForm.major,callback:function(t){e.$set(e.searchForm,"major","string"===typeof t?t.trim():t)},expression:"searchForm.major"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isPay"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"报名缴费"},model:{value:e.searchForm.isPay,callback:function(t){e.$set(e.searchForm,"isPay","string"===typeof t?t.trim():t)},expression:"searchForm.isPay"}},[a("el-option",{attrs:{label:"未开启缴费",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"开启缴费",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"已缴费",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"oweFlag"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否欠费"},model:{value:e.searchForm.oweFlag,callback:function(t){e.$set(e.searchForm,"oweFlag","string"===typeof t?t.trim():t)},expression:"searchForm.oweFlag"}},[a("el-option",{attrs:{label:"否",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isActive"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否激活"},model:{value:e.searchForm.isActive,callback:function(t){e.$set(e.searchForm,"isActive","string"===typeof t?t.trim():t)},expression:"searchForm.isActive"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"hasCourse"}},[a("el-select",{attrs:{clearable:"",placeholder:"VIP/网管是否有课"},model:{value:e.searchForm.hasCourse,callback:function(t){e.$set(e.searchForm,"hasCourse","string"===typeof t?t.trim():t)},expression:"searchForm.hasCourse"}},[a("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"carePackage"}},[a("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"关心包"},model:{value:e.searchForm.carePackage,callback:function(t){e.$set(e.searchForm,"carePackage","string"===typeof t?t.trim():t)},expression:"searchForm.carePackage"}},[a("el-option",{attrs:{label:"不可用",value:0}}),e._v(" "),a("el-option",{attrs:{label:"可用",value:1}}),e._v(" "),a("el-option",{attrs:{label:"已使用",value:2}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"comeOnPackage"}},[a("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"加油包"},model:{value:e.searchForm.comeOnPackage,callback:function(t){e.$set(e.searchForm,"comeOnPackage","string"===typeof t?t.trim():t)},expression:"searchForm.comeOnPackage"}},[a("el-option",{attrs:{label:"不可用",value:0}}),e._v(" "),a("el-option",{attrs:{label:"可用",value:1}}),e._v(" "),a("el-option",{attrs:{label:"已使用",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/musicGroupStudent",expression:"'export/musicGroupStudent'"}],attrs:{type:"primary"},on:{click:e.onMusicGroupExport}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 在读人数:"+e._s(e.studentListInfo.studying)),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" 退团人数:"+e._s(e.studentListInfo.quit)),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" VIP&网管转化率:"+e._s(e.studentListInfo.courseRate)),a("i",{staticStyle:{width:"10px",display:"inline-block"}})]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkboxSelect}}),e._v(" "),a("el-table-column",{attrs:{label:"学员编号",width:"120px;",prop:"userId"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.userId)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"学员姓名",width:"120px;",prop:"realName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.realName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"gender",width:"50px;",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.phone)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入团年份"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dayjsFormat")(t.row.registerTime,"YYYY年")))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.currentGrade+t.row.currentClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"报名专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.regSubjectName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入团专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.subjectName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentStatus",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("musicGroupStudentType")(t.row.studentStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"报名缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("paymentStatus")(t.row.paymentStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否激活"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isActive?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"VIP/网管是否有课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.hasCourse?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"关心包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.carePackage)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"加油包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.comeOnPackage)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"欠费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[t.row.noPaymentAmount>0?"error":null]},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.noPaymentAmount))+"\n "),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/queryPage/studentList",router:["/teamLists"]}},[a("i",{staticClass:"el-icon-view",staticStyle:{color:"#14928a","font-size":"17px"},attrs:{title:"缴费记录"},on:{click:function(a){return e.onPaymentDetail(t.row)}}})])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退团原因",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("Tooltip",{attrs:{content:e.row.quitReason}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",fixed:"right",width:"360px;",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("studentManage/queryStudentClassGroup")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookClass(t.row)}}},[e._v("查看班级")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/add")&&"APPLY"==t.row.studentStatus&&"2"!=t.row.paymentStatus&&"PROGRESS"==e.team_status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addPay(t.row)}}},[e._v("添加缴费")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup2")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quieTeamMask(t.row)}}},[e._v("退团退费")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup3")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quieTeam(t.row)}}},[e._v("退团")]):e._e(),e._v(" "),e.permission("visit/add/teamStudentList")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e(),e._v(" "),a("el-popover",{directives:[{name:"show",rawName:"v-show",value:t.row.remark,expression:"scope.row.remark"}],attrs:{placement:"top-start",title:"备注",width:"200",trigger:"hover",content:t.row.remark}},[a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("备注")])],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":e.saveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{staticClass:"studentInfo",attrs:{title:"新增学员",width:"700px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm,"label-position":"right","label-width":"120px",rules:e.maskRules,inline:!0}},[a("el-alert",{staticClass:"alert",attrs:{title:"基本信息",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"联系电话"},on:{blur:function(t){return e.checkPhone(e.maskForm.phone)}},model:{value:e.maskForm.phone,callback:function(t){e.$set(e.maskForm,"phone","string"===typeof t?t.trim():t)},expression:"maskForm.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员姓名",prop:"studentName"}},[a("el-input",{attrs:{placeholder:"学员姓名"},model:{value:e.maskForm.studentName,callback:function(t){e.$set(e.maskForm,"studentName","string"===typeof t?t.trim():t)},expression:"maskForm.studentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员性别",prop:"sex"}},[a("el-select",{attrs:{clearable:""},model:{value:e.maskForm.sex,callback:function(t){e.$set(e.maskForm,"sex","string"===typeof t?t.trim():t)},expression:"maskForm.sex"}},[a("el-option",{attrs:{label:"男",value:1}}),e._v(" "),a("el-option",{attrs:{label:"女",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"家长姓名",prop:"parentName"}},[a("el-input",{attrs:{placeholder:"家长姓名"},model:{value:e.maskForm.parentName,callback:function(t){e.$set(e.maskForm,"parentName","string"===typeof t?t.trim():t)},expression:"maskForm.parentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年级",prop:"currentGradeNum"}},[a("el-select",{attrs:{placeholder:"起始年级",filterable:"",clearable:""},model:{value:e.maskForm.currentGradeNum,callback:function(t){e.$set(e.maskForm,"currentGradeNum","string"===typeof t?t.trim():t)},expression:"maskForm.currentGradeNum"}},e._l(e.gradeList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"班级",prop:"course"}},[a("el-input",{attrs:{placeholder:"班级"},model:{value:e.maskForm.course,callback:function(t){e.$set(e.maskForm,"course","string"===typeof t?t.trim():t)},expression:"maskForm.course"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员声部",prop:"sound"}},[a("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.onSoundChange},model:{value:e.maskForm.sound,callback:function(t){e.$set(e.maskForm,"sound","string"===typeof t?t.trim():t)},expression:"maskForm.sound"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:"出生日期",prop:"timer"}},[a("el-col",{attrs:{span:24}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer","string"===typeof t?t.trim():t)},expression:"maskForm.timer"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.addStudent}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员所在班级",width:"640px",visible:e.studentClassVisible},on:{"update:visible":function(t){e.studentClassVisible=t}}},[a("el-form",{attrs:{model:e.classMask}},[a("el-form-item",{attrs:{label:"学生姓名"}},[e._v(e._s(e.classMask.studentName))]),e._v(" "),e._l(e.classLists,(function(t,r){return a("el-form-item",{key:r,attrs:{label:"所在班级"}},[e._v(e._s(t.name))])}))],2)],1),e._v(" "),a("el-dialog",{attrs:{title:"退团信息确认",width:"640px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[a("el-form",{ref:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[a("el-form-item",{attrs:{label:"退还课程费用",prop:"isRefundCourseFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("否")])],1),e._v(" "),a("el-form-item",{attrs:{label:"退还乐器费用",prop:"isRefundInstrumentFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("否")])],1),e._v(" "),a("el-form-item",{attrs:{label:"退还教辅费用",prop:"isRefundTeachingAssistantsFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("否")])],1),e._v(" "),e.activeRow.hasMaintenance?a("el-form-item",{attrs:{label:"退还乐保费用",prop:"isMaintenanceFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("否")])],1):e._e(),e._v(" "),e.quitForm.isMaintenanceFee?a("el-form-item",{attrs:{label:"退还乐保金额",prop:"maintenanceFee"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.maintenanceFee,callback:function(t){e.$set(e.quitForm,"maintenanceFee",t)},expression:"quitForm.maintenanceFee"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"退团原因",prop:"reason"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.quitForm.reason,callback:function(t){e.$set(e.quitForm,"reason","string"===typeof t?t.trim():t)},expression:"quitForm.reason"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[a("div",[a("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[a("div",{staticClass:"popoverWrap"},[a("p",[e._v("乐团退团退费规则:")]),e._v(" "),a("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),a("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),a("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")])]),e._v(" "),a("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),a("div",[a("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1),e._v(" "),a("el-dialog",{attrs:{title:"修改缴费周期","before-close":e.closePayVisible,width:"600px",visible:e.payVisible},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0}},[a("el-form-item",{attrs:{label:"学生姓名",prop:"studentName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.payForm.studentName,callback:function(t){e.$set(e.payForm,"studentName","string"===typeof t?t.trim():t)},expression:"payForm.studentName"}})],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"缴费金额",prop:"payMoney"}},[a("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.payForm.payMoney,callback:function(t){e.$set(e.payForm,"payMoney","string"===typeof t?t.trim():t)},expression:"payForm.payMoney"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费月份",prop:"payMonth"}},[a("el-checkbox-group",{attrs:{fill:"#14928A","text-color":"#474747"},model:{value:e.payForm.payMonth,callback:function(t){e.$set(e.payForm,"payMonth","string"===typeof t?t.trim():t)},expression:"payForm.payMonth"}},[a("el-checkbox",{attrs:{label:"1"}},[e._v("一月")]),e._v(" "),a("el-checkbox",{attrs:{label:"2"}},[e._v("二月")]),e._v(" "),a("el-checkbox",{attrs:{label:"3"}},[e._v("三月")]),e._v(" "),a("el-checkbox",{attrs:{label:"4"}},[e._v("四月")]),e._v(" "),a("el-checkbox",{attrs:{label:"5"}},[e._v("五月")]),e._v(" "),a("el-checkbox",{attrs:{label:"6"}},[e._v("六月")]),e._v(" "),a("el-checkbox",{attrs:{label:"7"}},[e._v("七月")]),e._v(" "),a("el-checkbox",{attrs:{label:"8"}},[e._v("八月")]),e._v(" "),a("el-checkbox",{attrs:{label:"9"}},[e._v("九月")]),e._v(" "),a("el-checkbox",{attrs:{label:"10"}},[e._v("十月")]),e._v(" "),a("el-checkbox",{attrs:{label:"11"}},[e._v("十一月")]),e._v(" "),a("el-checkbox",{attrs:{label:"12"}},[e._v("十二月")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitPay}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增回访",width:"500px","destroy-on-close":"","close-on-click-modal":!1,visible:e.visitVisiable},on:{"update:visible":function(t){e.visitVisiable=t}}},[e.visitVisiable&&e.detail?a("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisiable=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"选择班级","destroy-on-close":"",width:"700px",visible:e.createUserPayVisible},on:{"update:visible":function(t){e.createUserPayVisible=t}}},[a("createUserPay",{attrs:{signList:e.signList,mixList:e.mixList,highList:e.highList,snapList:e.snapList,musicGroupId:this.teamid,organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,createdUserId:e.createdUserId,baseInfo:e.baseInfo},on:{submited:e.getList,close:function(t){e.createUserPayVisible=!1}}})],1),e._v(" "),a("el-dialog",{attrs:{title:"缴费记录",width:"900px",visible:e.paymentDetailVisible},on:{"update:visible":function(t){e.paymentDetailVisible=t}}},[e.paymentDetailVisible?a("payment-list",{attrs:{paymentDetail:e.paymentDetail},on:{close:function(t){e.paymentDetailVisible=!1}}}):e._e()],1),e._v(" "),e.orderVisible?a("el-dialog",{attrs:{title:"订单详情",visible:e.orderVisible,width:"600px"},on:{"update:visible":function(t){e.orderVisible=t}}},[a("el-form",{attrs:{model:e.orderForm,inline:!0}},[a("el-form-item",{attrs:{label:"学员姓名"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.name,callback:function(t){e.$set(e.orderForm,"name","string"===typeof t?t.trim():t)},expression:"orderForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"实缴金额"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.totalAmount,callback:function(t){e.$set(e.orderForm,"totalAmount","string"===typeof t?t.trim():t)},expression:"orderForm.totalAmount"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"实际专业"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subject,callback:function(t){e.$set(e.orderForm,"subject","string"===typeof t?t.trim():t)},expression:"orderForm.subject"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课程费用"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subjectFee,callback:function(t){e.$set(e.orderForm,"subjectFee","string"===typeof t?t.trim():t)},expression:"orderForm.subjectFee"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择乐器"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axe,callback:function(t){e.$set(e.orderForm,"axe","string"===typeof t?t.trim():t)},expression:"orderForm.axe"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"乐器价格"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axePrice,callback:function(t){e.$set(e.orderForm,"axePrice","string"===typeof t?t.trim():t)},expression:"orderForm.axePrice"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"教辅组合"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.others,callback:function(t){e.$set(e.orderForm,"others","string"===typeof t?t.trim():t)},expression:"orderForm.others"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"组合价格"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.othersPrice,callback:function(t){e.$set(e.orderForm,"othersPrice","string"===typeof t?t.trim():t)},expression:"orderForm.othersPrice"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.orderVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],i=(a("a481"),a("28a5"),a("3b2b"),a("ade3")),o=(a("7f7f"),a("386d"),a("ac6a"),a("96cf"),a("1da1")),l=a("1cc7"),c=a("5137"),u=a("641c"),m=a("d349"),d=a("92e3"),p=a("333d"),f=(a("61f7"),a("d044"),a("bc3a")),h=a.n(f),b=a("5f87"),g=a("ec8a"),y=a("46f6"),v=a("e3eb"),_=a.n(v),k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"班级信息",closable:!1,type:"info"}}),e._v(" "),a("el-form",{attrs:{model:e.form,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"声部班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.signClass,callback:function(t){e.$set(e.form,"signClass","string"===typeof t?t.trim():t)},expression:"form.signClass"}},e._l(e.signList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"合奏班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.mixClass,callback:function(t){e.$set(e.form,"mixClass","string"===typeof t?t.trim():t)},expression:"form.mixClass"}},e._l(e.mixList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"基础技能班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.highClass,callback:function(t){e.$set(e.form,"highClass","string"===typeof t?t.trim():t)},expression:"form.highClass"}},e._l(e.highList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"临时班"}},[a("select-all",{attrs:{filterable:"",clearable:"",multiple:""},model:{value:e.form.snapClass,callback:function(t){e.$set(e.form,"snapClass","string"===typeof t?t.trim():t)},expression:"form.snapClass"}},e._l(e.snapList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType},on:{priceChange:e.priceChange,moneyChange:e.syncAllMoney}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}},[a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern","label-width":"160px",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),0==e.payment.paymentPattern?[a("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,r){return a("el-collapse-item",{key:r,attrs:{name:r}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(r+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(r)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,hidePaymentPattern:!0,isUserType:!0,isCommon:!1,isDisabled:!0}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{isUserType:!0,hidePaymentPattern:!0,form:e.cycle,isCommon:!1,isDisabled:!0},on:{"update:form":function(t){e.cycle=t}}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],2)},F=[],S=a("15fd"),x=(a("6762"),a("2fdb"),a("5530")),T=a("b85c"),O=a("2909"),I=a("6612"),w=a.n(I),C=a("7a3c"),j=a("b133"),P=a("0464"),L=a("1672"),G=a("b4ac"),D=a("267e"),$=a("ed08"),A={props:["snapList","highList","mixList","signList","createdUserId","organizationCourseUnitPriceSettings","musicGroupId","baseInfo"],components:{paymentCycle:C["a"],otherform:j["a"],extraClass:P["a"]},data:function(){return{courseTypeOptions:D["courseType"],ids:"",form:{signClass:"",mixClass:"",highClass:"",snapClass:""},payment:{paymentPattern:null},other:{},cycle:{},eclass:[],collapse:[0],cycles:[{}],organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object($["b"])(D["paymentPatternType"])}},watch:{"form.signClass":function(){this.classChange()},"form.mixClass":function(){this.classChange()},"form.highClass":function(){this.classChange()},"form.snapClass":function(){this.classChange()},"payment.paymentPattern":function(){this.syncAllMoney()},baseInfo:function(){this.formatCourse()}},mounted:function(){console.log(Object(O["a"])(this.snapList)),this.formatCourse()},methods:{addExtraClass:function(){this.eclass.push({})},priceChange:function(e,t){var a=Object(O["a"])(this.eclass),r=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(w()(e.courseTotalMinuties||1).multiply(r.unitPrice||1).value());e.courseCurrentPrice=s,e.courseOriginalPrice=s,a[t]=e,this.eclass=Object(O["a"])(a),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,a=0,r=0,s=Object(T["a"])(this.eclass);try{for(s.s();!(e=s.n()).done;){var n=e.value;if(t+=n.courseCurrentPrice,this.cycles&&this.cycles.length)if(n.isStudentOptional)a+=n.courseCurrentPrice;else{var i=Math.floor(n.courseCurrentPrice/this.cycles.length),o=n.courseCurrentPrice%this.cycles.length;a+=i+o,r+=i}}}catch(l){s.e(l)}finally{s.f()}if(this.cycles.length){Math.floor(t/this.cycles.length),this.cycles.length;this.cycles=this.cycles.map((function(e,t){return Object(x["a"])(Object(x["a"])({},e),{},{paymentAmount:0===t?a:r})}))}return this.$refs.cycle&&this.$set(this.cycle,"paymentAmount",t),t},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},formatCourse:function(){var e,t,a,r=null===(e=this.baseInfo)||void 0===e?void 0:e.organId,s=null===(t=this.baseInfo)||void 0===t?void 0:t.chargeTypeId,n={},i=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return r&&r==e.organId&&s&&s==e.chargeTypeId})),o=Object(T["a"])(i);try{for(o.s();!(a=o.n()).done;){var l=a.value;n[l.courseType]=l}}catch(c){o.e(c)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},getAllIds:function(){return[this.form.signClass,this.form.mixClass,this.form.highClass].concat(Object(O["a"])(this.form.snapClass)).filter((function(e){return!!e}))},classChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.getAllIds().join(","),!t){e.next=10;break}return e.next=5,Object(G["a"])({classGroupIdList:t});case 5:a=e.sent,this.ids=t,r=a.data.map((function(e){var t=s.organizationCourseUnitPriceSettingsByType[e.courseType]||{},a=Math.round(w()(t.unitPrice||1).multiply(e.remainMinutes||1).value());return{courseType:e.courseType,courseTotalMinuties:e.remainMinutes,courseOriginalPrice:a,courseCurrentPrice:a}})),this.eclass=Object(O["a"])(r),this.syncAllMoney();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.payment,e.other].concat(Object(O["a"])(e.cycles||[])).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},submit:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s,n,i,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],r=Object(T["a"])(t);try{for(n=function(){var e=s.value;e.validate((function(t){t&&a.push(e)}))},r.s();!(s=r.n()).done;)n()}catch(c){r.e(c)}finally{r.f()}if(this.getAllIds().length){e.next=7;break}return this.$message.error("请至少选择一个班级"),e.abrupt("return");case 7:if(t.length!==a.length){e.next=21;break}return i=0==this.payment.paymentPattern?this.cycles:[this.cycle],o=Object(x["a"])({attribute1:this.ids,musicGroupPaymentDateRangeList:i.map((function(e){var t=e.paymentDate,a=e.paymentValid,r=Object(S["a"])(e,["paymentDate","paymentValid"]);return Object(x["a"])(Object(x["a"])(Object(x["a"])(Object(x["a"])({},r),Object($["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object($["a"])(a,["paymentValidStartDate","paymentValidEndDate"])),{},{paymentPattern:l.payment.paymentPattern})})),paymentPattern:this.payment.paymentPattern,musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",payUserType:"STUDENT",studentIds:this.createdUserId,musicGroupPaymentCalenderCourseSettingsList:this.eclass},this.other),e.prev=10,e.next=13,Object(L["c"])(o);case 13:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close(),e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](10),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[10,18]])})));function t(){return e.apply(this,arguments)}return t}()}},M=A,R=(a("7e28"),a("2877")),q=Object(R["a"])(M,k,F,!1,null,"1fae2041",null),N=q.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"hastimer"}},[a("el-select",{attrs:{clearable:"",placeholder:"是否存在剩余时长"},model:{value:e.search.hastimer,callback:function(t){e.$set(e.search,"hastimer","string"===typeof t?t.trim():t)},expression:"search.hastimer"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.filterlist,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"userId",label:"学生编号",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:"学生姓名",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"学生手机号",width:"140",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程时长"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.mapDtos,(function(t){return a("el-tag",{key:t.key,staticStyle:{"margin-right":"5px","margin-bottom":"5px"},attrs:{type:"info",size:"small"}},[e._v(e._s(e.courseType[t.key])+": "+e._s(t.value)+"分钟")])}))}}])})],1)],1)},V=[],B={props:["detail"],data:function(){return{courseType:D["courseType"],list:[],filterlist:[],extra:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{array2object:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a={},r=Object(T["a"])(t);try{for(r.s();!(e=r.n()).done;){var s=e.value;a[s.key]=s.value}}catch(n){r.e(n)}finally{r.f()}return a},filter:function(){var e=this.search,t=e.keyword,a=e.hastimer;this.filterlist=this.list.filter((function(e){var r=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.username).indexOf(t)>-1,s=e.mapDtos.filter((function(e){return e.value>0})).length,n=!a||"1"==a&&s||"0"==a&&!s;return r&&n}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},FetchDetail:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(G["b"])({musicGroupId:this.$route.query.id});case 3:t=e.sent,this.list=t.data,this.filter(),t.data[0]&&(this.extra=t.data[0].mapDtos),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()}},U=B,z=Object(R["a"])(U,E,V,!1,null,null,null),H=z.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"paymentList tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"缴费单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.musicGroupPaymentCalenderId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDateMgpc))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费截止日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDateMgpc))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"预计缴费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",width:"150px",label:"支付时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.payTime))+"\n ")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getDetail}})],1)},W=[],Y={name:"paymentList",props:["paymentDetail"],components:{pagination:p["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.paymentDetail,e.next=3,Object(l["Ub"])({musicGroupId:t.musicGroupId,userId:t.userId}).then((function(e){console.log(e),a.tableList=e.data.rows,a.pageInfo.total=e.data.total}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},J=Y,Q=Object(R["a"])(J,K,W,!1,null,null,null),Z=Q.exports,X=a("a5b0"),ee=a("6cc5"),te=a("4edf"),ae=a("879d"),re={name:"tstudentList",data:function(){return{detail:null,teamid:"",paymentDetailVisible:!1,paymentDetail:{},payVisible:!1,quitVisible:!1,studentClassVisible:!1,addStudentVisible:!1,timesVisible:!1,timerDetail:null,topFrom:{expect:"2",studing:"5",allmoney:"100",students:"5",signout:"10"},searchForm:{studentStatus:"",major:"",isPay:"",search:"",isActive:"",oweFlag:"",currentGrade:null,createYear:null,classGroupId:null,hasCourse:null,carePackage:null,comeOnPackage:null},organizationCourseUnitPriceSettings:[],quitForm:{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},classMask:{studentName:""},baseInfo:{},searchLsit:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},studentListInfo:{add:"",quit:"",studying:"",courseRate:""},signList:[],mixList:[],highList:[],snapList:[],soundList:[],highonlineList:[],muiscnetworkList:[],qrcodeStatus:!1,qrcodes:!0,qrcode:null,codeUrl:null,gradeList:[],maskForm:{studentName:"",sex:"",parentName:"",course:"",phone:"",sound:"",timer:"",signClass:"",mixClass:"",highClass:"",snapClass:[],highonline:"",muiscnetwork:"",startClass:"",currentGradeNum:null,id:"",temporaryCourseFee:null,musicGoodsIdList:null,kitGroupPurchaseType:"GROUP",musicPrice:null,instrGoodsIdList:[],instrPrice:null},remark:"",classList:[],quitRules:{isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],isMaintenanceFee:[{required:!0,message:"选择是否退还乐保费用"}],maintenanceFee:[{required:!0,message:"请输入退还乐保金额"}],reason:[{required:!0,message:"请填写退团退费原因"}]},maskRules:{studentName:[{required:!0,message:"请输入学生姓名"}],sex:[{required:!0,message:"请选择学生姓名"}],parentName:[{required:!0,message:"请输入家长姓名"}],course:[{required:!0,message:"请输入班级"}],sound:[{required:!0,message:"请选择声部"}],timer:[{required:!0,message:"请选择出生日期"}],signClass:[{required:!0,message:"请选择声部班"}],currentGradeNum:[{required:!0,message:"请选择年级"}],id:[{required:!0,message:"请输入证件号"}],temporaryCourseFee:[{required:!0,message:"请输课程费用"}],musicGoodsIdList:[{required:!0,message:"请选择乐器",trigger:"change"}],musicPrice:[{required:!0,message:"请输入乐器购买金额"}],instrGoodsIdList:[{required:!0,message:"请选择辅件"}],instrPrice:[{required:!0,message:"请输入辅件金额"}]},INSTRUMENTLIST:[],ACCESSORIESLIST:[],activeRow:{hasMaintenance:!1},Fsearch:null,Frules:null,payForm:{studentName:"",payMoney:"",payMonth:[]},kitStatus:!1,visitVisiable:!1,visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""},cycles:[{}],collapse:[0],visitChiose:d["F"],visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},pickerOptions:null,classLists:null,createdUserId:0,createUserPayVisible:!1,team_status:"",orderVisible:!1,orderForm:{name:"",totalAmount:"",subject:"",subjectFee:"",axe:"",axePrice:"",others:"",othersPrice:""},maskSoundForm:{subject:""},subjectVisible:!1,multipleSelection:[],isCanReg:!1,organId:""}},components:{pagination:p["a"],paymentCycle:C["a"],createUserPay:N,Tooltip:X["a"],"times-view":H,paymentList:Z,visit:te["a"],qrCode:u["a"],changeVoice:ee["a"],mergeMusic:ae["a"]},created:function(){},filters:{studentPays:function(e){var t={0:"未缴费",1:"已缴费"};return t[e]}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),methods:(r={onPaymentDetail:function(e){this.paymentDetail=e,this.paymentDetailVisible=!0},viewTimer:function(e){this.timesVisible=!0},permission:function(e){return Object(g["a"])(e)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,Object(l["ob"])({musicGroupId:this.teamid}).then((function(e){var a=e.data;if(200==e.code&&a)for(var r in a)t.gradeList.push({value:r,label:a[r]})})),this.pickerOptions=this.beginDate(),this.getList(),Object(l["J"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)})),Object(l["lb"])({musicGroupId:this.teamid}).then((function(e){return t.baseInfo=e.data})),Object(l["mb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.classList=e.data,t.signList=[],t.mixList=[],t.highList=[],t.snapList=[],t.classList.forEach((function(e){"NORMAL"==e.type?t.signList.push(e):"MIX"==e.type?t.mixList.push(e):"HIGH"==e.type?t.highList.push(e):"SNAP"==e.type?t.snapList.push(e):"HIGH_ONLINE"==e.type?t.highonlineList.push(e):"MUSIC_NETWORK"==e.type&&t.muiscnetworkList.push(e)})))}));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getTeamStudent:function(){var e=this;Object(l["Ob"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.studentListInfo=t.data)}))}},Object(i["a"])(r,"permission",(function(e){return Object(g["a"])(e)})),Object(i["a"])(r,"onInstrumentChange",(function(){})),Object(i["a"])(r,"onKitGroupChnage",(function(e){this.kitStatus=!1,"FREE"==e?(this.kitStatus=!0,this.maskForm.musicPrice=0):this.maskForm.musicPrice=null})),Object(i["a"])(r,"onMusicGroupExport",(function(){var e=this,t="/api-web/export/musicGroupStudent",a={musicGroupId:this.teamid,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,hasCourse:this.searchForm.hasCourse||null,comeOnPackage:this.searchForm.comeOnPackage,carePackage:this.searchForm.carePackage},r={method:"get",headers:{Authorization:Object(b["a"])()},url:t,params:a,responseType:"blob"};this.$confirm("您确定导出学员列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){h()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=URL.createObjectURL(a),s=document.createElement("a"),n=e.$route.query.name+"学员列表.xls";s.href=r,s.setAttribute("download",n),document.body.appendChild(s),s.click()}))})).catch((function(){}))})),Object(i["a"])(r,"search",(function(){this.rules.page=1,this.getList()})),Object(i["a"])(r,"onReSet",(function(){this.$refs.searchForm.resetFields(),this.search()})),Object(i["a"])(r,"getList",(function(){var e,t=this;this.getTeamStudent();var a=(e={musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,oweFlag:this.searchForm.oweFlag||null,hasCourse:this.searchForm.hasCourse||null},Object(i["a"])(e,"oweFlag",this.searchForm.oweFlag||null),Object(i["a"])(e,"comeOnPackage",this.searchForm.comeOnPackage),Object(i["a"])(e,"carePackage",this.searchForm.carePackage),e);return Object(l["Pb"])(a).then((function(e){if(200==e.code)return t.tableList=e.data.rows,t.rules.total=e.data.total,e}))})),Object(i["a"])(r,"addPay",(function(e){this.createUserPayVisible=!0,this.createdUserId=e.userId})),Object(i["a"])(r,"addCycle",(function(){this.cycles.push({}),this.collapse.push(this.collapse.length)})),Object(i["a"])(r,"removeCycle",(function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.pop()})),Object(i["a"])(r,"collapseChange",(function(e){this.collapse=e})),Object(i["a"])(r,"gotoSignin",(function(){this.$router.push({path:"/business/studentSignin",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name,rules:this.Frules,search:this.Fsearch}})})),Object(i["a"])(r,"chioseType",(function(){var e=this;this.$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow;Object(l["b"])({musicGroupId:e.teamid,userId:t.userId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee,maintenanceFee:e.quitForm.maintenanceFee}).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))})),Object(i["a"])(r,"addStudent",(function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a,r=e.maskForm;if(r.musicGoodsIdList&&(""===r.musicPrice||null===r.musicPrice))return void e.$message.error("请输入乐器金额");if(r.instrGoodsIdList&&r.instrGoodsIdList.length>0&&(""===r.instrPrice||null===r.instrPrice))return void e.$message.error("请输入辅件金额");a=r.snapClass?r.snapClass.join(","):null;var s={signClassId:r.signClass,mixClassId:r.mixClass,snapClassIds:a,highClassId:r.highClass,courseFee:r.courseFee,temporaryCourseFee:r.temporaryCourseFee,studentRegistration:{name:r.studentName,gender:r.sex,birthdate:r.timer,parentsName:r.parentName,parentsPhone:r.phone,currentGrade:r.startClass,currentGradeNum:r.currentGradeNum,currentClass:r.course,subjectId:r.sound,musicGroupId:e.teamid},studentPaymentOrderDetails:[]};r.musicGoodsIdList&&s.studentPaymentOrderDetails.push({goodsIdList:r.musicGoodsIdList,kitGroupPurchaseType:r.kitGroupPurchaseType,type:"MUSICAL",price:r.musicPrice}),r.instrGoodsIdList&&""!=r.instrGoodsIdList&&s.studentPaymentOrderDetails.push({goodsIdList:r.instrGoodsIdList.join(","),type:"ACCESSORIES",price:r.instrPrice}),Object(c["a"])(s).then((function(t){200==t.code&&(e.$message.success("添加学生成功"),e.getList(),e.addStudentVisible=!1,e.createUserPayVisible=!0,e.createdUserId=t.data),e.$refs.maskForm.resetFields()}))}}))})),Object(i["a"])(r,"onSoundChange",(function(e){this.ACCESSORIESLIST=[],this.maskForm.instrGoodsIdList=[],this.maskForm.instrPrice=null,this.INSTRUMENTLIST=[],this.maskForm.musicPrice=null,this.maskForm.musicGoodsIdList=null,this.getGoodsList(e,"INSTRUMENT"),this.getGoodsList(e,"ACCESSORIES")})),Object(i["a"])(r,"findSubjectPlan",(function(e){var t=this;Object(l["M"])({musicGroupId:this.teamid,subjectId:e}).then((function(e){var a=e.data;200==e.code&&(t.maskForm.musicMode=t.getBranchType(a.kitGroupPurchaseType))}))})),Object(i["a"])(r,"getGoodsList",(function(e,t){var a=this;Object(l["gb"])({subjectId:e,type:t}).then((function(e){var r=e.data;if(200==e.code){var s=[];r.forEach((function(e){s.push({label:e.name,value:e.id,marketPrice:e.marketPrice})})),"ACCESSORIES"==t&&(a.ACCESSORIESLIST=s),"INSTRUMENT"==t&&(a.INSTRUMENTLIST=s)}}))})),Object(i["a"])(r,"getBranchType",(function(e){var t={FREE:"免费",GROUP:"团购",LEASE:"租赁"};return t[e]})),Object(i["a"])(r,"lookClass",(function(e){var t=this;this.classMask.studentName=e.realName,Object(c["i"])({musicGroupId:this.teamid,teacherId:e.userId}).then((function(e){200==e.code&&(t.classLists=e.data,t.studentClassVisible=!0)}))})),Object(i["a"])(r,"quieTeamMask",(function(e){this.activeRow=e,this.quitVisible=!0})),Object(i["a"])(r,"quieTeam",(function(e){var t=this;this.$prompt("请输入退团原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",inputPattern:/\S/,inputErrorMessage:"请输入退团原因"}).then((function(a){Object(l["b"])({musicGroupId:t.teamid,userId:e.userId,reason:a.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1}).then((function(e){t.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==e.code&&(t.$message.success("退团成功"),t.getList(),t.quitVisible=!1)}))})).catch((function(){}))})),Object(i["a"])(r,"checkPhone",(function(e){var t=this,a=/^1[3456789]\d{9}$/,r=new RegExp(a);r.test(e)&&Object(c["k"])({mobile:this.maskForm.phone}).then((function(a){200==a.code&&a.data&&(t.maskForm.studentName=a.data.name,t.maskForm.sex=a.data.gender,t.maskForm.parentName=a.data.parentsName,t.maskForm.course=a.data.currentClass,t.maskForm.startClass=a.data.currentGrade,t.maskForm.currentGradeNum=a.data.currentGradeNum?a.data.currentGradeNum+"":null,t.maskForm.phone=e,t.maskForm.timer=a.data.birthdate)}))})),Object(i["a"])(r,"lockStudent",(function(e){var t=this;this.$confirm("是否锁定/解锁学生缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a,r=t.teamid,s=e.userId;a=0==e.isLock?1:0,Object(l["a"])({musicGroupId:r,studentId:s,isLock:a}).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.getList())}))})).catch((function(){}))})),Object(i["a"])(r,"resetPay",(function(e){this.activeRow=e,this.payVisible=!0,this.payForm.studentName=e.realName,this.payForm.payMoney=e.courseFee,this.payForm.payMonth=e.paymentPeriodList.split(","),""==this.payForm.payMonth[0]&&(this.payForm.payMonth=[])})),Object(i["a"])(r,"submitPay",(function(){var e=this,t=this.activeRow.userId,a=this.teamid,r=this.payForm.payMonth.join(",")||null,s=this.payForm.payMoney,n={studentId:t,musicGroupId:a,month:r,amount:s};Object(l["Oc"])(n).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))})),Object(i["a"])(r,"closePayVisible",(function(){this.$refs["payForm"].resetFields(),this.payVisible=!1})),Object(i["a"])(r,"addVisit",(function(e){console.log(e),this.detail=e,this.visitVisiable=!0})),Object(i["a"])(r,"handleChange",(function(e){this.visitForm.type=e[0],this.visitForm.purpose=e[1]})),Object(i["a"])(r,"submitAddVisit",(function(){var e=this;console.log(this.$refs.visitForm),this.$refs.visitForm.validate((function(t){t&&Object(y["a"])(_()(e.visitForm)).then((function(t){200===t.code&&(e.$message.success("新增成功"),e.visitVisiable=!1)}))}))})),Object(i["a"])(r,"beginDate",(function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>=(new Date).getTime()}}})),Object(i["a"])(r,"createStudentFrom",(function(){this.addStudentVisible=!0})),Object(i["a"])(r,"payDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}})),Object(i["a"])(r,"applyDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}})),Object(i["a"])(r,"handleSelectionChange",(function(e){this.multipleSelection=e})),Object(i["a"])(r,"checkboxSelect",(function(e){return 0==e.paymentStatus})),r),watch:{"quitForm.isMaintenanceFee":function(e){this.quitForm.maintenanceFee=e?300:0},quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},this.$refs["quitForm"].resetFields())}},computed:{saveKey:function(){return"teamDetails-studentList|id|"+this.$route.query.id}}},se=re,ne=(a("95e8"),Object(R["a"])(se,s,n,!1,null,"2f41341b",null));t["a"]=ne.exports},6193:function(e,t,a){"use strict";a("aa6f")},6814:function(e,t,a){"use strict";a("b2df")},"6ca4":function(e,t,a){"use strict";a("c477")},"6cc5":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"原乐器",prop:"name"}},[a("span",[e._v(e._s(e.originalMusicalGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"原教辅",prop:"name"}},[a("span",[e._v(e._s(e.originalAccessoriesGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"更改声部",prop:"subjectId",rules:[{required:!0,message:"请选择更改声部",trigger:"change"}]}},[e.changeInfo?a("span",[e._v(e._s(e.changeSubjectName))]):a("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择声部"},on:{change:e.subjectChange},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId",t)},expression:"form.subjectId"}},e._l(e.filterVoiceList,(function(e){return a("el-option",{key:e.subjectId,attrs:{label:e.subjectName,value:e.subjectId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"更改乐器",prop:"musicalGoods",rules:[{required:!0,message:"请选择更改乐器",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.changeMusicalGoods?a("span",[e._v(e._s(e.changeInfo.changeMusicalGoods.name))]):e._e():a("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择乐器"},on:{change:e.musicalGoodsChange},model:{value:e.form.musicalGoods,callback:function(t){e.$set(e.form,"musicalGoods",t)},expression:"form.musicalGoods"}},[a("el-option",{attrs:{label:"自备乐器",value:"OWNED"}}),e._v(" "),e._l(e.musicalGoods,(function(e){return a("el-option",{key:e.goodsIdList,attrs:{label:e.name,value:e.goodsIdList}})}))],2)],1),e._v(" "),e.changeInfo||e.form.musicalGoods&&e.musicalGoodsById[e.form.musicalGoods]&&e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse?a("el-form-item",{attrs:{label:"乐器提供方式",prop:"type",rules:[{required:!0,message:"请选择乐器提供方式",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.kitGroupPurchaseType?a("span",[e._v(e._s(e.kitGroupPurchaseTypeFormater[e.changeInfo.kitGroupPurchaseType]))]):e._e():a("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse,(function(t,r){return a("el-radio",{key:r,attrs:{label:r}},[e._v(e._s(e.kitGroupPurchaseTypeFormater[r]+" "+((e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[r]]||0)>0?e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[r]]+"元":"免费")))])})),1)],1):e._e(),e._v(" "),e.activeAccessories.length||e.groupList.length||e.changeInfo?a("el-form-item",{attrs:{label:"更换教辅",prop:"name"}},[e.changeInfo?e.changeInfo?a("span",[e._v(e._s(e.changeAccessoriesGoods))]):e._e():a("accessories",{attrs:{list:e.activeAccessories,groupList:e.groupList},on:{"update:list":function(t){e.activeAccessories=t},"update:groupList":function(t){e.groupList=t},"update:group-list":function(t){e.groupList=t},change:e.accessoriesChange}})],1):e._e(),e._v(" "),e.changeInfo?a("el-form-item",{attrs:{label:"查看链接",prop:"name"}},[a("div",{staticClass:"viewlink"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.copyLink,placement:"top"}},[a("span",{staticClass:"link"},[e._v(e._s(e.copyLink))])]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"220",trigger:"click"}},[a("div",{staticClass:"left-code"},[a("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),e._v(" "),e.copyLink?a("p",{staticClass:"code-url"},[e._v("\n "+e._s(e.copyLink)+"\n "),a("el-link",{staticClass:"linkbtn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.copyLink)}}},[e._v("复制")])],1):e._e()]),e._v(" "),a("el-button",{staticClass:"btn",attrs:{slot:"reference",type:"primary"},on:{click:e.onCreateQRCode},slot:"reference"},[e._v("二维码")])],1)],1)]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"支付差价",prop:"name"}},[e.changeInfo?a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.editSpread))+"元")]):a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.spread))+"元")])])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.changeInfo&&1!==e.changeInfo.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/cancel",expression:"'subjectChange/cancel'"}],attrs:{type:"danger"},on:{click:e.cancel}},[e._v("取消订单")]):e._e(),e._v(" "),e.changeInfo?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/add",expression:"'subjectChange/add'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},s=[],n=(a("96cf"),a("1da1")),i=(a("7f7f"),a("5530")),o=(a("ac6a"),a("456d"),a("b85c")),l=a("d044"),c=a.n(l),u=a("f904"),m=a.n(u),d=(a("6612"),a("1cc7")),p=a("61f7"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),e.groupOptions.length?a("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.groupOptions,(function(t){return a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(e._f("moneyFormat")(t.price))+"元")])]),e._v(" "),e._l(t.subs,(function(t){return a("p",{key:t},[e._v(e._s(t))])}))],2)})),1):a("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.list,(function(t){return a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),t.groupPurchasePrice>0?a("span",[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+" 元")]):a("span",[e._v("免费")])])])})),1)],1)},h=[],b=a("2909"),g={props:["list","groupList"],data:function(){return{type:"list",checkAll:!1,checkeds:[],accessoriesByid:{},groupListById:{},selectMoney:0,isIndeterminate:!1}},watch:{checkeds:function(e){"list"===this.type?this.accessoriesByid:this.groupListById;var t=0;if("list"===this.type){var a,r=Object(o["a"])(e);try{for(r.s();!(a=r.n()).done;){var s=a.value,n=this.accessoriesByid[s];n&&(t+=parseFloat(n.groupPurchasePrice))}}catch(y){r.e(y)}finally{r.f()}}else{var i,l=Object(o["a"])(e);try{for(l.s();!(i=l.n()).done;){var c=i.value,u=this.groupListById[c];u&&(t+=parseFloat(u.price))}}catch(y){l.e(y)}finally{l.f()}}var m=[];if("list"!==this.type){var d,p=Object(o["a"])(e);try{for(p.s();!(d=p.n()).done;){var f=d.value,h=this.groupListById[f];if(h){var g=this.groupListById[f].goodsList;m=m.concat((g||[]).map((function(e){return e.id})))}}}catch(y){p.e(y)}finally{p.f()}}else m=Object(b["a"])(e);this.$listeners.change(m,t)}},mounted:function(){var e=this;this.$nextTick((function(){var t,a={},r=Object(o["a"])(e.list);try{for(r.s();!(t=r.n()).done;){var s=t.value;a[s.id]=s}}catch(u){r.e(u)}finally{r.f()}var n,i={},l=Object(o["a"])(e.groupList);try{for(l.s();!(n=l.n()).done;){var c=n.value;i[c.id]=c}}catch(u){l.e(u)}finally{l.f()}e.accessoriesByid=a,e.groupListById=i}))},computed:{groupOptions:function(){var e=this.groupList.map((function(e){return{name:e.name,price:e.price,id:e.id,subs:e.childGoodsList?e.childGoodsList.map((function(e){return e.name})):[]}}));return e.length&&(this.type="group"),e}},methods:{handleCheckAllChange:function(e){var t="list"===this.type?this.list:this.groupOptions,a=t.map((function(e){return e.id}));this.checkeds=e?a:[],this.isIndeterminate=!1},optionChange:function(e){var t="list"===this.type?this.list:this.groupOptions,a=e.length;this.checkAll=a===t.length,this.isIndeterminate=a>0&&a<t.length}}},y=g,v=(a("6ca4"),a("2877")),_=Object(v["a"])(y,f,h,!1,null,"72a63fe6",null),k=_.exports,F=a("267e"),S=function(e,t){var a=[],r={},s=[],n={},l=[],c={},u={};if(e){var m,d=e.musicGroupSubjectGoodsGroupList,p={},f=Object(o["a"])(d);try{for(f.s();!(m=f.n()).done;){var h=m.value;p[h.type]||(p[h.type]=[]),p[h.type].push(h)}}catch(j){f.e(j)}finally{f.f()}for(var b=Object.keys(p),g=0,y=b;g<y.length;g++){var v,_=y[g],k=Object(o["a"])(p[_]);try{for(k.s();!(v=k.n()).done;){var F=v.value;if("INSTRUMENT"===_){var S={},x={};try{S=JSON.parse(F.kitGroupPurchaseTypeJson)}catch(P){}try{x=JSON.parse(F.coursePurchaseTypeJson)}catch(P){}var T=Object(i["a"])(Object(i["a"])({},F),{},{kitGroupPurchaseTypeJsonParse:S,kitGroupPurchaseTypePrice:S[t]||0,coursePurchaseTypeJsonTypePrice:x[t]||0,_calculated_price:"FREE"===t?0:"LEASE"===t?F.depositFee:F.price});if(s.push(T),n[F.goodsIdList]=T,!p.ACCESSORIES){u[F.goodsIdList]||(u[F.goodsIdList]=[]);var O,I=F.goodsList[0].goodsList?F.goodsList[0].goodsList:[],w=Object(o["a"])(I);try{for(w.s();!(O=w.n()).done;){var C=O.value;u[F.goodsIdList].push(C),r[C.id]=C}}catch(j){w.e(j)}finally{w.f()}}}else"ACCESSORIES"===F.type&&(l.push(F),c[F.id]=F)}}catch(j){k.e(j)}finally{k.f()}}}return{accessories:a,accessoriesById:r,musicalGoods:s,musicalGoodsById:n,groupList:l,groupListById:c,accessoriesByGoods:u}},x={GROUP:"price",LEASE:"depositFee"},T={props:["detail","musicGroupId","voiceList"],components:{accessories:k},data:function(){return{typeAndprice:x,kitGroupPurchaseTypeFormater:F["kitGroupPurchaseType"],changeInfo:null,oldAllMoney:0,accessories:[],accessoriesByid:{},musicalGoods:[],musicalGoodsById:{},groupList:[],groupListById:{},accessoriesByGoods:{},selectAccessories:[],selectAccessoriesMoney:0,kitGroupPurchaseTypePrice:0,coursePurchaseTypeJsonTypePrice:0,form:{subjectId:"",accessories:"",musicalGoods:"",type:""},rules:{},item:{},originalMusicalGoods:"",originalAccessoriesGoods:"",originalAccessoriesPrice:0,originalMusicalPrice:0,originalCourseFee:0,musicGroupSubjectPlanFee:0,musicalPrice:0}},watch:{detail:function(){this.detail&&this.fetchDetail()},"form.musicalGoods":function(){this.$set(this.form,"type","")},"form.type":function(){this.musicalGoodsChange(this.form.musicalGoods)}},computed:{copyLink:function(){return this.changeInfo?Object(p["d"])()+"/#/change-voice?id="+this.changeInfo.id:""},filterVoiceList:function(){var e=this;return this.voiceList.filter((function(t){return t.subjectId!=e.detail.actualSubjectId}))},activeAccessories:function(){var e=this.form||{},t=e.musicalGoods;return t&&this.accessoriesByGoods[t]||[]},changeSubjectName:function(){var e="";if(this.item.changeSubjectId){var t,a=Object(o["a"])(this.voiceList);try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r.subjectId===this.item.changeSubjectId){e=r.subjectName;break}}}catch(s){a.e(s)}finally{a.f()}}return e},changeAccessoriesGoods:function(){var e=this.changeInfo||{},t=(e.changeAccessoriesGoods||[]).map((function(e){return e.name})).join(",");return t||"未选择教辅"},editSpread:function(){var e=this.changeInfo||{},t=(e.originalAccessoriesPrice||0)+(e.originalCourseFee||0)+(e.originalMusicalPrice||0);return(e.changeMusicalPrice||0)+(e.changeAccessoriesPrice||0)+(e.changeCourseFee||0)-t},spread:function(){var e=this.numFormat(this.musicalPrice+this.selectAccessoriesMoney+this.musicGroupSubjectPlanFee-this.originalAccessoriesPrice-this.originalMusicalPrice-this.originalCourseFee-this.coursePurchaseTypeJsonTypePrice-this.kitGroupPurchaseTypePrice);return e}},mounted:function(){console.log(this.detail),this.detail&&this.detail.userId&&this.fetchDetail()},methods:{copyUrl:function(e){m()(e),this.$message.success("复制成功")},fetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){var t=e.data;a.item=t||{},t&&(a.$set(a.form,"type",a.item.kitGroupPurchaseType),a.originalAccessoriesPrice=t.originalAccessoriesPrice,a.originalMusicalPrice=t.originalMusicalPrice,a.originalCourseFee=t.originalCourseFee,a.originalMusicalGoods=t.originalMusicalGoods&&t.originalMusicalGoods.name,a.originalAccessoriesGoods=(t.originalAccessoriesGoods||[]).map((function(e){return e.name})).join())},!this.detail.subjectChange){e.next=6;break}return e.next=4,Object(d["S"])({id:this.detail.subjectChange.id}).then((function(e){t(e),a.changeInfo=e.data}));case 4:e.next=9;break;case 6:return this.changeInfo=this.detail.subjectChange,e.next=9,Object(d["Cb"])({musicGroupId:this.musicGroupId,studentId:this.detail.studentId}).then(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),subjectChange:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s,n,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.form,"musicalGoods",""),a=null,!t){e.next=7;break}return e.next=5,Object(d["Gb"])({musicGroupId:this.musicGroupId,subjectId:t}).then((function(e){a=e.data,i.musicGroupSubjectPlanFee=e.data.musicGroupSubjectPlan.fee}));case 5:e.next=8;break;case 7:this.musicGroupSubjectPlanFee=0;case 8:for(s in r=S(a,this.item.kitGroupPurchaseType),r)r.hasOwnProperty(s)&&(n=r[s],this[s]=n);this.musicalGoodsChange();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),musicalGoodsChange:function(e){var t=this.musicalGoodsById[e];t?(this.musicalPrice=this.numFormat(t[x[this.form.type]]||0),this.coursePurchaseTypeJsonTypePrice=this.numFormat(t.coursePurchaseTypeJsonTypePrice),this.types=t.kitGroupPurchaseTypeJsonParse):(this.musicalPrice=0,this.coursePurchaseTypeJsonTypePrice=0,this.$set(this.form,"type",""))},accessoriesChange:function(e,t){this.selectAccessories=e,this.selectAccessoriesMoney=t},numFormat:function(e){var t=parseFloat(e);return isNaN(t)&&(t=0),parseFloat(t.toFixed(2))},onCreateQRCode:function(){var e=this;setTimeout((function(){e.$refs.qrCodeUrl.innerHTML="",e.qrcode=new c.a(e.$refs.qrCodeUrl,{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.a.CorrectLevel.H}),e.qrcode.makeCode(e.copyLink),e.codeUrl=e.copyLink}),500)},submit:function(){var e=this;this.$refs["form"].validate((function(t){var a;(e.detail.subjectId,t)&&Object(d["Dc"])({changeCourseFee:e.numFormat(e.musicGroupSubjectPlanFee-e.coursePurchaseTypeJsonTypePrice),changeAccessories:e.selectAccessories.join(",")||null,changeAccessoriesPrice:e.numFormat(e.selectAccessoriesMoney),changeMusicalPrice:e.numFormat(e.musicalPrice),originalCourseFee:e.originalCourseFee,originalMusicalPrice:e.originalMusicalPrice,originalMusical:e.item.originalMusical,originalAccessories:e.item.originalAccessories,originalAccessoriesPrice:e.originalAccessoriesPrice,cooperationOrganId:e.item.cooperationOrganId,kitGroupPurchaseType:"OWNED"===e.form.musicalGoods?e.form.musicalGoods:e.form.type,musicGroupId:e.musicGroupId,studentId:e.detail.studentId,changeMusical:"OWNED"===e.form.musicalGoods?0:e.form.musicalGoods,originalCost:e.item.originalCost,organId:e.item.organId,originalSubjectId:null===(a=e.detail)||void 0===a?void 0:a.actualSubjectId,changeSubjectId:e.form.subjectId}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("提交成功!")}))}))},cancel:function(){var e=this;this.$confirm("是否确认取消订单?","提示",{onfirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["Ec"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},O=T,I=(a("ebaf"),Object(v["a"])(O,r,s,!1,null,"f23a05fa",null));t["a"]=I.exports},"704d":function(e,t,a){"use strict";a("96cf");var r=a("1da1"),s=a("2909"),n=a("5530"),i=a("2f62"),o=a("1cc7"),l=new i["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(n["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(s["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var r,s,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.commit,s=t.state,e.prev=1,(null===(n=a.data)||void 0===n?void 0:n.musicGroupId)===s.musicGroup.id&&!a.force){e.next=8;break}return e.next=5,Object(o["Lb"])(a.data);case 5:return i=e.sent,r("updateBaseinfo",i),e.abrupt("return",Promise.resolve(i));case 8:return e.abrupt("return",Promise.resolve(s.res));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var r,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.commit,s=t.state,e.prev=1,!s.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(s.sounds));case 4:return e.next=6,Object(o["J"])(Object(n["a"])({},a.data));case 6:return i=e.sent,r("updateSound",i.data),e.abrupt("return",Promise.resolve(s.sounds));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}()}});t["a"]=l},"73b3":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("teambaseinfo"),e._v(" "),a("div",{staticClass:"wrap"},["look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},s=[],n=(a("1cc7"),a("80b0")),i=a("bc3a"),o=a.n(i),l=a("4328"),c=a.n(l),u=a("5f87"),m=a("3908"),d={components:{teambaseinfo:n["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),l=e.$route.query.id+"-"+o+"订货清单.xls";n.href=s,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),l=e.$route.query.id+"-"+o+"分发清单.xls";n.href=s,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))}}},p=d,f=(a("fc1a"),a("2877")),h=Object(f["a"])(p,r,s,!1,null,"546db682",null);t["a"]=h.exports},7472:function(e,t,a){"use strict";var r,s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cl-container"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"teamDetails-courseList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"courseStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},e._l(e.courseArray,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.classStatus,callback:function(t){e.$set(e.searchForm,"classStatus","string"===typeof t?t.trim():t)},expression:"searchForm.classStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"class"}},[a("el-select",{attrs:{placeholder:"班级名称",filterable:"",clearable:""},model:{value:e.searchForm.class,callback:function(t){e.$set(e.searchForm,"class","string"===typeof t?t.trim():t)},expression:"searchForm.class"}},e._l(e.classList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isSettlement"}},[a("el-select",{attrs:{placeholder:"是否结算",filterable:"",clearable:""},model:{value:e.searchForm.isSettlement,callback:function(t){e.$set(e.searchForm,"isSettlement","string"===typeof t?t.trim():t)},expression:"searchForm.isSettlement"}},[a("el-option",{attrs:{value:"0",label:"未结算"}}),e._v(" "),a("el-option",{attrs:{value:"1",label:"已结算"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"timer"}},[a("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"btnWraps"}),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.courseScheduleType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.courseScheduleStatus)))])]}}])},[e._v("s\n ")]),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签到"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签退"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"结算状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementTime?"已结算":"未结算"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否点名"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(t.row.isCallNames?"已点名":"未点名")+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"280px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("teacherAttendance/updateTeacherAttendance?t=568")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onMarkAttendance(t.row)}}},[e._v("补考勤")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&e.permission("studentAttendance/updateStudentAttendances?t=570")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCallName(t.row)}}},[e._v("点名表")]):e._e(),e._v(" "),!t.row.settlementTime&&e.permission("courseSchedule/classStartDateAdjust/teamCourseListInfo")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("courseSchedule/cleanAttendancecourseSchedule/classStartDateAdjust/teamCourseListInfo")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.clearAttend(t.row)}}},[e._v("清除考勤")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teamDetails-courseList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[e.courseVisible?a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.courseScheduleType&&"HIGH_ONLINE"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220,multiple:!0},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(),"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[a("el-select",{on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return a("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:e.nowTime+" - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-select",{attrs:{placeholder:"结束时间",disabled:"","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1):e._e(),e._v(" "),"HIGH_ONLINE"!=e.maskForm.courseScheduleType&&"MUSIC_NETWORK"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"教学地点",prop:"schoolId"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.schoolId,callback:function(t){e.$set(e.maskForm,"schoolId","string"===typeof t?t.trim():t)},expression:"\n maskForm.schoolId"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改时间",width:"400px","before-close":e.handleCloseTimer,visible:e.timerVisible},on:{"update:visible":function(t){e.timerVisible=t}}},[a("el-form",{attrs:{model:e.timerMask}},[a("el-form-item",{attrs:{label:"上课日期",rules:[{required:!0,message:"请选择日期",trigger:"blur"}]}},[a("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.timerMask.timer,callback:function(t){e.$set(e.timerMask,"timer","string"===typeof t?t.trim():t)},expression:"timerMask.timer"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.timerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchAdjustmentTime}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"补考勤",width:"400px",visible:e.markAttendance.status},on:{"update:visible":function(t){return e.$set(e.markAttendance,"status",t)}}},[a("el-form",[a("el-form-item",{attrs:{label:"签到状态"}},[e._v(e._s(e._f("attendanceType")(e.markAttendance.dataInfo.signInStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签到时间"}},[e._v(e._s(e.markAttendance.dataInfo.signInTime))]),e._v(" "),a("el-form-item",{attrs:{label:"签退状态"}},[e._v(e._s(e._f("attendanceOutType")(e.markAttendance.dataInfo.signOutStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签退时间"}},[e._v(e._s(e.markAttendance.dataInfo.signOutTime))])],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.markAttendance.status=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:1==e.markAttendance.dataInfo.signOutStatus&&1==e.markAttendance.dataInfo.signInStatus},on:{click:e.batchAdjustmentTime}},[e._v("确定补卡")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"点名表",width:"800px",visible:e.rollCall.status},on:{"update:visible":function(t){return e.$set(e.rollCall,"status",t)}}},[a("el-table",{attrs:{data:e.rollCall.gridData}},[a("el-table-column",{attrs:{align:"center",property:"userName",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"subjectName",label:"学员声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"到课状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentCallName")(t.row.status)))]}}])}),e._v(" "),e.rollCall.selectItem.settlementTime?e._e():a("el-table-column",{attrs:{align:"center",label:"操作",width:"240px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:function(a){return e.onChangeRollCall("TRUANT",t.row)}}},[e._v("未到")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"warning",round:""},on:{click:function(a){return e.onChangeRollCall("LEAVE",t.row)}}},[e._v("请假")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"success",round:""},on:{click:function(a){return e.onChangeRollCall("NORMAL",t.row)}}},[e._v("到课")])]}}],null,!1,3311584737)})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rollCall.total,page:e.rollCall.page,limit:e.rollCall.limit,"page-sizes":e.rollCall.page_size},on:{"update:total":function(t){return e.$set(e.rollCall,"total",t)},"update:page":function(t){return e.$set(e.rollCall,"page",t)},"update:limit":function(t){return e.$set(e.rollCall,"limit",t)},pagination:e.getCallName}})],1)],1)},n=[],i=(a("386d"),a("28a5"),a("96cf"),a("1da1")),o=a("5a0c"),l=a.n(o),c=a("333d"),u=a("7e78"),m=a("1cc7"),d=a("ec8a"),p=a("c466"),f=a("92e3"),h=a("99b4"),b=a("e3eb"),g=a.n(b),y={name:"tcourseList",data:function(){return{classTimeList:f["h"],courseArray:f["q"],typeVisible:!1,timerVisible:!1,courseVisible:!1,searchForm:{courseStatus:"",classStatus:"",timer:[],class:"",isSettlement:""},tableList:[],searchLsit:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},maskForm:{teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",type:"",timer:"",courseScheduleType:null,address:"",teachMode:"",schoolId:""},typeForm:{teacher:"",assistant:"",date:"",startTime:"",endTime:"",type:null,id:null},maskRules:{schoolId:[{required:!0,message:"请选教学地点",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},typeRules:{type:[{required:!0,message:"请选择课程类型",trigger:"blur"}]},teacherList:[],classList:[],activeCourseList:[],timerMask:{timer:""},markAttendance:{status:!1,dataInfo:{}},rollCall:{status:!1,gridData:[],selectItem:{},limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:"",schoolList:[],courseTimeList:{},typeTimeList:[]}},components:{pagination:c["a"]},created:function(){r=this},mounted:function(){var e=this;this.init(),Object(h["o"])({organId:this.$route.query.organId}).then((function(t){200==t.code&&(e.schoolList=t.data)}))},activated:function(){this.init()},methods:{init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,this.organId=this.$route.query.organId,e.prev=2,e.next=5,Object(m["tb"])({organId:this.organId});case 5:t=e.sent,this.courseTimeList=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:this.getList(),Object(m["mb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(a.classList=e.data)}));case 13:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}(),onMarkAttendance:function(e){this.markAttendance={status:!0,dataInfo:e}},onCallName:function(e){this.rollCall.page=1,this.rollCall.selectItem=e,this.getCallName()},getCallName:function(){var e=this.rollCall,t={page:e.page,rows:e.limit,courseScheduleId:e.selectItem.courseScheduleId};Object(m["E"])(t).then((function(t){var a=t.data;e.status=!0,200==t.code&&(e.gridData=a.rows,e.total=a.total)}))},onChangeRollCall:function(e,t){var a=this,r=this.rollCall,s={courseScheduleId:r.selectItem.courseScheduleId,studentAttendances:[{userId:t.studentId,status:e}]};Object(m["Nc"])(s).then((function(r){200==r.code?(a.$message.success("修改成功"),t.status=e,a.getList()):a.$message.error(r.msg)}))},permission:function(e,t){return Object(d["a"])(e,t)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.timer||(t.timer=[]);var a={classScheduleStatus:t.classStatus||null,classScheduleType:t.courseStatus||null,musicGroupId:this.teamid,startTime:t.timer[0]||null,endTime:t.timer[1]||null,page:this.rules.page,rows:this.rules.limit,classGroupId:t.class||null,isSettlement:t.isSettlement||null};Object(m["Y"])(a).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(e){for(var t in this.maskForm.teacher=parseInt(e.masterTeacherId),this.maskForm.courseScheduleType=e.courseScheduleType,this.courseTimeList)t==e.courseScheduleType&&(this.typeTimeList=this.courseTimeList[t].split(","));for(var a in this.maskForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[a].teacherRole&&this.maskForm.assistant.push(e.teachingTeachers[a].userId);this.maskForm.date=e.classDate,this.$set(this.maskForm,"startTime",e.startClassTimeStr.substring(0,5));var r=Object(p["b"])(e.classDate,e.startClassTimeStr,e.endClassTimeStr);this.maskForm.timer=r,this.maskForm.endTime=Object(p["a"])(e.classDate,e.startClassTimeStr,r),this.maskForm.id=e.courseScheduleId,this.maskForm.schoolId=e.schoolId,this.courseVisible=!0},removeSingleClass:function(e){var t=this;this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=e.courseScheduleId;Object(u["g"])({courseScheduleIds:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},removeCourses:function(){var e=this;if(this.activeCourseList.length<1)this.$message.error("请至少选择一节课");else{var t=[];t=this.activeCourseList.map((function(e){return e.courseScheduleId})),this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.join(",");Object(u["g"])({courseScheduleIds:a}).then((function(t){200==t.code&&(e.$message.success("删除成功"),e.getList())}))})).catch((function(){}))}},submitResetClass:function(){var e=this,t=this.maskForm,a=l()(t.date+" "+t.startTime).diff(new Date,"second");a<=0?this.$message.error("课程开始时间必须大于当前时间"):t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:"MUSIC",schoolId:t.schoolId};Object(m["lc"])(g()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){r.allowZeroSalary=!0,Object(m["lc"])(g()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1)}))}))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},handleClose:function(){this.courseVisible=!1,this.maskForm={teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",schoolId:null},this.$refs["maskForm"].resetFields()},handleSelectionChange:function(e){this.activeCourseList=e},checkSelectable:function(e){return"NOT_START"==e.courseScheduleStatus},batchAdjustmentTime:function(){var e=this,t=this.markAttendance.dataInfo,a={teacherId:t.masterTeacherId,courseScheduleId:t.courseScheduleId,signInStatus:1,signOutStatus:1};Object(m["Rc"])(a).then((function(t){200==t.code?(e.$message.success("补卡成功"),e.markAttendance.status=!1,e.getList()):e.$message.error(t.msg)}))},handleCloseTimer:function(){this.timerVisible=!1,this.timerMask.timer=""},resetTimer:function(){this.activeCourseList.length<1?this.$message.error("请至少选择一节课"):this.timerVisible=!0},resetType:function(e){for(var t in this.typeForm.type=e.courseScheduleType,this.typeForm.id=e.courseScheduleId,this.typeForm.teacher=parseInt(e.masterTeacherId),this.typeForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[t].teacherRole&&this.typeForm.assistant.push(e.teachingTeachers[t].userId);this.typeForm.date=e.classDate,this.$set(this.typeForm,"startTime",e.startClassTimeStr.substring(0,5)),this.typeForm.endTime=e.endClassTimeStr.substring(0,5),this.typeVisible=!0},submitResetType:function(){var e=this;this.$refs.typeForm.validate((function(t){if(t){var a=e.typeForm.assistant.join(",");if(a.length<=0);var r={actualTeacherId:e.typeForm.teacher,startClassTimeStr:e.typeForm.startTime,endClassTimeStr:e.typeForm.endTime,id:e.typeForm.id,type:e.typeForm.type,teachingTeacherIdList:a,classDate:e.typeForm.date};Object(m["lc"])(r).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.typeVisible=!1)}))}}))},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["s"])({courseScheduleIds:e.courseScheduleId}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},changeStartTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,e,t.maskForm.timer)}))},changeTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},filters:{studentCallName:function(e){var t={NORMAL:"到课",TRUANT:"未到",LEAVE:"请假",DROP_OUT:"退学","":"未到"};return t[e]}},watch:{"maskForm.timer":function(e){this.maskForm.endTime=Object(p["a"])(this.maskForm.date,this.maskForm.startTime,e)}},computed:{nowTime:function(){var e="04:30:00";return r.maskForm.date==l()(new Date).format("YYYY-MM-DD")&&(e=l()(new Date).format("HH:mm:ss")),e}}},v=y,_=(a("272e"),a("2877")),k=Object(_["a"])(v,s,n,!1,null,"78b28c4d",null);t["a"]=k.exports},7619:function(e,t,a){},"7a3c":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():a("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.hidePaymentPattern?e._e():a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},s=[],n=a("267e"),i=a("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney"],data:function(){return{paymentPatternTypeOptions:Object(i["b"])(n["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}},l=o,c=(a("2666"),a("2877")),u=Object(c["a"])(l,r,s,!1,null,"e3750f40",null);t["a"]=u.exports},"7a7c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACaZJREFUeAHtXGtsVMcVnnPv7joEY9LgtQlNHUCNkhbSJrgv1CjkQSq1UqiUBKtSklaJmgLGa+pgUwlVKlWrUtkLFK/tgPIjKqItcUr7p1X/hBqiVqqUQpQAaVNF5VFkbK9JgWJj1rt3+p27D9+7u3efc9c2+Er2zpyZOXPOd8+851wSFXx2SKn1vLrrITLo81LK+wT+SIhlQsgaQWKBlGIBi0Mk/ick/gRdlUKcAeFDwp/U5Hstm7a+u4PIqJTYkM/d51Oh0JIJcf0ZKekJ1LQGYNxRXo10GeWPEckjt4l5h/8TCAyWxy93aVcAWvr667eNj196RsbktyWJJ2Apem4xSkwlipEUR0inA7ffvujw2RdfnCiRk2MxpQD5e3uryRjbKAVtRRNa7FirCwlogkMk5C6pzd8X3rz5mqoqlAD06MCA59Tpv7eSlNvRjyxSJVwpfNB/XZJEP1u54gvdRx97LFoKD2uZsgHy9wYfFobRB2AesDKe7jCAOik0rTm8uf0v5chSMkAr+vt9I8Png1LIFvQxJfMpR/i8ZdGTk6CeuvqG9tNNTZG8+bNkKEmx+r49y2PRaD9GpMYsPGcgiY7rHk/TcHPbv4sVrmiA6kNdj8eE/B3mKQuLrWxa85O4ogt6ejjQ8edi5NCKyewPda6PSfmnWQcOK4kXyrKzDsXoXDBAtd1dL6MjPgTmvmIqmGF5fawD61KoXAU1MUY9AU7BgBYqwDTlMzDKfSsc2PZmvvrzAmT2OdysZrflZMMhohN9PV+flBMgc7SKTZ6YlX1ONkjSadxx695VuUY3xybD8xxzKJ9to1U6CLni3HFjusK6OmVzBIgngbNnnuOkXiF02RjXNXverE2Mlw/SkG/P2Blydl1Kp/KMW6NHsi1LMiyIF568trplwGFYeakEnU3d02DOAIhX5TNt4ZkmsytR1pl1T2dua2K8nyOMsbPIPK1bFulCVirOWyVCm7/Uup9ksyBzs+sWBYdfAhsGY2B9ISkL4m3SsWujZxTuBA74SGvWRdVVa4Wqw9f1G3dRVL6GbZeHVPDmncn51bXLktu3niRTcw9Z4TYpkD8wGGj/Z5K/i7+D/p6uN4QhlADEBsJYQN5fscwpgHiDXa0S1Obv2TUidHExjKMatbzj3Pw4QhIx4160je+p5J/AwgTI7IP4aMY8fVBYC0z+c9KI/VFEY79VyNbOKmocwnztDfQdy+0J5cUYC8aEuZgATciJZ/EW3DmaEVRXnrjOpQGMO7yBBZ/lpQCSJPlQz5UHbbr67v7d81Qzb9y/34txp8xDSGepEgedQtuB42Ah6RHnrOWnTIzQZ8rnYudwITJ2v52iPLaGsTHPyt18Eyw2yaiSEcYKgUHGKmtcfVjewfcINL5IoJ65nSOG/C9bKXWhzm3+UHCLlZYrjE27ZbWhzt/XvfaL+lQ+Kb+UCrsUYGw09BH3ucQ/xRY3NJ4ym3KKIh6U0uhcsn9vwxTJOWQIuRN2+JTHoCrOBZlxiCvXOZdQk8LYoP+pAECYfPWG9nw1JbZOP8eVFm/kRuSnKZpDoLYv2IjRaj2s8ODghi3nOVt93+7V+LnboYg6MgOEipep45iDE8VSTWqkueN9TOl/CVt4IdcJwyd7ehZR1MA8iq5hPvLjJHfMrzJW3ck0lb+MjYZJ0UKVTJ14oZk9Xf9q18pkelWd1ozV8wlcnOr1d3dlKOzft/feiBwfwEWEe3DG/hw2189w2SWh4P1sUUk+7v7KGsIbvIQ3eae7FcW544387dHFSx9+s6kpxpTa/Xvuokj0MNr6ajS5ozgcCHq8ntOxySiu0MhmnKt7cKVl40jrtgOcP76gDv8VALk8gnFtsFtsf8ByZXU86v5/WNFXjg6fSzWV0Q1tFxt8NWvQ3HaiL8Q5v/xDdHLyDMD5AWjvktBWJ8Fh6bDbwLdIKgIO14e6FsCCOm8g7LirzxlVP7CMLeHWjm4r308f7K65/N+JLkxanxWa58nRlrYT1vTaULBNSGO3lVaBcIRwajoKpCq+gwjz3dvgW9hxfMOGyaSi/p7gd/DafhQOdCxP0hr6+j5xPTq2D1bVlKRV6jfexMzbpJWqcqoevJQt5yJX3lu8L/jZKao9xGnjsbGT0wGOKQmwQR9EV+1iVSpGHwup/WRoY/sHTjVyGt7iK2iSo0553KXTVQ0dpzl8uluRnTsUPoXRqnG0tf039pTMWLilo99b5WtEmfczU92lMDYaxrIP3a3Gzh2j00c0z7t2aFPbWXuKc4xn0Hp11VrkqKisjI0GgStWKZrLhEfzrBt5+fvDznBkTxl6qTUsNH0dLOl69hzqqYyNxtf71bPOzpGk9sOLm9v+kT01P3W0Zeu/sHu1PX9ONTkYG419H9BR8/V+t58L/sUNoXIrucdb0wvTP1cun/zl6TJjo+2IO4Ycy1+gzBwa7Sr1Kq61Zp43oePstNJcCh9jbDDM85pDHnGpkjhb+FTouvi1qjp887RDEDo1wVTF18oniYkJEHvNINGwZlAcPja8qWNEFc8L333lY3ZiUcUvgw9eaAKT+LEPuxRhdHgrI6M6wlF1rBKcNKGeZ4I1g590szItiOnsUpRIV/5DmnxHNVPMcJXzTMpoxSIFEPtbYdwfSmZS+Ss93sKmEtIYx+y1oKao+9yZWTMGjEVSf+xhTT04bWg3pOiaoigIoT23tLT7EqOlAoZTLLATOYGFrLmRP0UtL4Q96I6RwLZgkkvKgpjAzmi8xE8mqvhFex5xAxxTXhJKLZ51ZwysetsA4ptV7IxmzVBqGKb6kU76NzWv+FqpPPKV83jpGx5dfxw9qJL+iHW33i7j+m1NjAl8kfH0qXdOYL/mAY6X+uDW6HasxHeWWr6YcnU9wRcMwzhQTJn0vLCekytWfnFVupdiBkBcUMU1YN7SEEJvpqroYLowKuMyCldyg/Zi47/0+wU5rgFnBcgEKRTsxulnQKUyM5UXkRYKB9ozjp5YXlsfZFWA3RjRAo9baTdnmI7Hdc2unSNAvLBkN0b0UleyF70JqOzMAh1zLaIdAWL12QuG3RgRLMkhdoZDGDFdNPP4seYEyAQJPp7o4Z9H2M3FbKWxZIe65/P5irFQeQHiTHHPPOIL1jcDSNCBNhbibci6O45inJj+JFwzD4LuS0+bJfEIW06h4LBORQHEBW41t/CiATJBmvuwAMOQ+5n7NEVufFKpcx83SUHhHJj7PI4zNraUuQ8s2eBwjsx9ossZm4yU1EfehFgbd3ko178Cp8Ak38bw+9as/chbBkoJwvr+fn1g9PyDs+kzgf8Hz2nY3WMBjb4AAAAASUVORK5CYII="},"7e28":function(e,t,a){"use strict";a("23ce")},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return o})),a.d(t,"t",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"v",(function(){return m})),a.d(t,"u",(function(){return d})),a.d(t,"n",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"D",(function(){return h})),a.d(t,"y",(function(){return b})),a.d(t,"x",(function(){return g})),a.d(t,"B",(function(){return y})),a.d(t,"g",(function(){return v})),a.d(t,"q",(function(){return _})),a.d(t,"z",(function(){return k})),a.d(t,"A",(function(){return F})),a.d(t,"s",(function(){return S})),a.d(t,"i",(function(){return x})),a.d(t,"m",(function(){return T})),a.d(t,"r",(function(){return O})),a.d(t,"a",(function(){return I})),a.d(t,"l",(function(){return w})),a.d(t,"o",(function(){return C})),a.d(t,"p",(function(){return j})),a.d(t,"k",(function(){return P})),a.d(t,"d",(function(){return L})),a.d(t,"c",(function(){return G})),a.d(t,"j",(function(){return D})),a.d(t,"b",(function(){return $})),a.d(t,"f",(function(){return A}));var r=a("b775"),s=a("4328"),n=a.n(s),i="/api-web";function o(e){return Object(r["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/teacher/get",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function b(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(r["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function v(e){return Object(r["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function _(e){return Object(r["a"])({url:i+"/teacher/add",method:"post",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/teacher/update",method:"post",data:n.a.stringify(e)})}function F(e){return Object(r["a"])({url:i+"/teacher/update1",method:"post",data:n.a.stringify(e)})}function S(e){return Object(r["a"])({url:i+"/teacherFreeTime/query",method:"get",params:e})}function x(e){return Object(r["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function T(e){return Object(r["a"])({url:i+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function O(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function I(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function w(e){return Object(r["a"])({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function j(e){return Object(r["a"])({url:i+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function P(e){return Object(r["a"])({url:i+"/sysTenantAccount/get",method:"get",params:e})}function L(e){return Object(r["a"])({url:i+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function G(e){return Object(r["a"])({url:i+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function D(e){return Object(r["a"])({url:i+"/teacher/queryStudent",method:"get",params:e})}function $(e){return Object(r["a"])({url:i+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function A(e){return Object(r["a"])({url:i+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"80b0":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},[a("el-option",{attrs:{label:"课程收费",value:0}}),e._v(" "),a("el-option",{attrs:{label:"系统收费",value:1}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,r){return a("el-option",{key:r,attrs:{label:t.userName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"isClass"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},s=[],n=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),i=a("ade3"),o=a("1cc7"),l=a("a488"),c=a("5a0c"),u=a.n(c),m=a("7676"),d=a.n(m),p=a("99b4"),f=a("641c"),h=a("92e3"),b=a("61f7"),g=a("879d"),y={components:{mergeMusic:g["a"],qrCode:f["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(i["a"])({classStatus:h["g"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(a=this.$helpers.lodash,r=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),a.isEqual(this.topFrom,r)||!r){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.gotoNext(t);case 2:return a=e.sent,console.log(a),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(s.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,r=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==r&&void 0!==r&&r.section)this.topFrom=r,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Lb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var s,n=JSON.parse(localStorage.getItem("newTeambase"));n?this.topFrom=n:this.topFrom,null!==(s=this.topFrom)&&void 0!==s&&s.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["eb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Rb"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(p["z"])({organId:t}).then((function(e){200==e.code&&(s.cooperationList=e.data)})),Object(p["o"])({organId:t}).then((function(e){200==e.code&&(s.addList=e.data)})),Object(l["b"])().then((function(e){200==e.code&&(s.technician=e.data)})),e.prev=3,e.next=6,Object(o["O"])({organId:t,employeeRole:"EDUCATION"});case 6:a=e.sent,this.educationList=a.data,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),console.log(e.t0);case 13:return e.prev=13,e.next=16,Object(o["O"])({organId:t,employeeRole:"TEAM_TEACHER"});case 16:r=e.sent,this.bossList=r.data,e.next=23;break;case 20:e.prev=20,e.t1=e["catch"](13),console.log(e.t1);case 23:Object(o["Jb"])({organId:t}).then((function(e){200==e.code&&(s.teacherList=e.data)}));case 24:case"end":return e.stop()}}),e,this,[[3,10],[13,20]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){},gotoNext:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){r.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(n,i){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(n){s.next=5;break}r.$message.error("请填写建团必要参数"),e(!1),s.next=16;break;case 5:if(r.$store.dispatch("topinfo",r.topFrom),"teamAudit"!=r.teamStatus){s.next=10;break}r.$emit("handleClick",{name:"2"}),s.next=16;break;case 10:return r.$emit("getName",r.topFrom.name),s.next=13,r.resetSubmit(t);case 13:a=s.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){a.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(i,l){var c,m;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(i){s.next=5;break}a.$message.error("请填写必要参数"),r(),s.next=26;break;case 5:c=null,s.t0=a.teamStatus,s.next="resetTeam"===s.t0?9:"newTeam"===s.t0?11:"teamList"===s.t0?13:"teamDraft"===s.t0?15:17;break;case 9:return c="PROGRESS",s.abrupt("break",17);case 11:return c="DRAFT",s.abrupt("break",17);case 13:return c=null,s.abrupt("break",17);case 15:return c="DRAFT",s.abrupt("break",17);case 17:if(m={},m.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:u()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:a.topFrom.type,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,educationalTeacherId:a.topFrom.teacher,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?u()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?u()(a.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):a.topFrom.paymentValidEndDate,organId:a.topFrom.section,schoolId:a.topFrom.address,id:a.teamid,directorUserId:a.topFrom.head,isClassroomLessons:a.topFrom.isClass,status:c,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType},"newTeam"==a.teamStatus){s.next=25;break}return s.next=22,Object(o["tc"])(m).then(function(){var r=Object(n["a"])(regeneratorRuntime.mark((function r(s){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:200==s.code&&(localStorage.setItem("".concat(a.teamid,"base"),JSON.stringify(a.topFrom)),a.$emit("getBaseInfo"),"teamDraft"==a.teamStatus?(a.$message.success("保存成功"),t||a.$emit("handleClick",{name:"2"}),e(!0)):a.$message.success("修改乐团成功"),e(!0));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 22:return s.abrupt("return",s.sent);case 25:Object(o["x"])(m).then((function(e){if(200==e.code){var t=a.$createElement;a.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新建乐团成功 "),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return a.$router.push({query:d()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.$emit("handleClick",{name:"2"}),!0})).catch((function(){return a.$router.push({query:d()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.init(),!0}))}}));case 26:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Bb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["Yb"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(o["D"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["C"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate,a.setBase(e))}))):a.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(b["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:d()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},v=y,_=(a("6193"),a("1400"),a("2877")),k=Object(_["a"])(v,r,s,!1,null,"76a299a1",null);t["a"]=k.exports},"879d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"merge-music"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?a("empty",{attrs:{desc:"暂未选择乐团"}}):a("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,r){return a("el-collapse-item",{key:r,staticClass:"item",attrs:{name:r},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"header"},[a("span",{staticClass:"title"},[a("span",[e._v(e._s(t.name))])]),e._v(" "),a("span",{staticStyle:{width:"20%"}},[a("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),a("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(r)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),a("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),a("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[a("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),a("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?a("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},s=[],n=(a("96cf"),a("1da1")),i=a("5530"),o=a("b85c"),l=(a("ac6a"),a("456d"),a("160b")),c=a("3078"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",staticStyle:{width:"100%"}},[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"musicGroupName"}},[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),a("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},m=[],d=(a("386d"),a("7f7f"),a("333d")),p={props:["visible","organId"],components:{pagination:d["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var a in e){var r={};r.id=e[a].id,r.name=e[a].name,t.push(r)}this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])(Object(i["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==a.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},f=p,h=(a("1aa8"),a("2877")),b=Object(h["a"])(f,u,m,!1,null,"64b6b690",null),g=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},v=[],_=(a("6762"),a("2fdb"),a("1672")),k={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_["a"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},F=k,S=Object(h["a"])(F,y,v,!1,null,null,null),x=S.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},O=[],I=a("1cc7"),w={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].userId);this.passed=t},removeStuden:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(c["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(I["Pb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},C=w,j=Object(h["a"])(C,T,O,!1,null,null,null),P=j.exports,L={props:["organId"],components:{selectMusic:g,selectItem:x,mergedStudents:P},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,a={},r=Object(o["a"])(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;a[s.id]?a[s.id]=Object(i["a"])(Object(i["a"])({},a[s.id]),s):a[s.id]=Object(i["a"])(Object(i["a"])({},s),{},{num:0})}}catch(n){r.e(n)}finally{r.f()}this.items=a},remove:function(e){var t=Object(i["a"])({},this.items),a=Object(i["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(i["a"])({},t),this.studentsByMusicId=Object(i["a"])({},a)},selected:function(e,t){var a=this.studentsByMusicId;a[t]||(a[t]=[]),a[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=a},merge:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(r=this.studentsByMusicId[a],t=t.concat(r));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},G=L,D=(a("f089"),Object(h["a"])(G,r,s,!1,null,"4c59032c",null));t["a"]=D.exports},9076:function(e,t,a){},"95e8":function(e,t,a){"use strict";a("2149")},a05b:function(e,t,a){},aa6f:function(e,t,a){},b133:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},s=[],n={props:["form"]},i=n,o=(a("4000"),a("2877")),l=Object(o["a"])(i,r,s,!1,null,"55ad3016",null);t["a"]=l.exports},b2df:function(e,t,a){},b3f6:function(e,t,a){},b4ac:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return i}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},n=function(e){return Object(r["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},i=function(e){return Object(r["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},ba30:function(e,t,a){},c34d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACM1JREFUeAHlnH9oVVUcwHtvm27kjwoXKkKspBGRuswEmTO1/pBI8UeWkKV/RGqipMU2Z7HAH5urkQqa+UeUQWiuhH6QYMtyQyxdKKKMyKW2TRtb+CNm7lef72Pn8fbe/fnuefdu88Dl3Ht+fL/f87nnfO859573Qnf5GHp6ekIlJSWPdnV1TQiHw7lcy5ETCoVGYMZwObjuIb5B2k3ia1w2cF7PeT3x6a1bt57j3LcQSrWm4uLibHQs6O7unkUDZ9JguU46IOMqMn4E8JGhQ4d+VVpa2pa0MAcVUwIIo4fcunVrHvqXcsyhQekObHFdBFi3qfQtx77MzMyv0dvpWohNBa2AKisrs1paWl6lt7yF3nE2urVmA+tPBJaPHTv24zVr1vynS7gWQAcOHEirq6tbSU95G8Pu12VcMnIA1Uy9UnzVXs7Fn3kKngHhY6YCZjdHnidLNFcGzgn81KotW7bUeRGdNKA9e/ZkXLhwoQzlb3AkLceL8XZ1gdTNUZaXl/fO4sWLu+zKG+Un1TAe1Q/wqN5Pr5lqJLS/pQHpWFpa2pLNmzc3urXNNaDCwsICFB4Czr1ulQVZHptbOJ7DN51wY0fYTeGioqL5KDk80OBIG7E5m6N6w4YNc9y0Oc1pYZzxchTso/wQp3X6YbkMbHqhoKDg92PHjp11Yp+jISY9BzhfINAxUCfKAyzTwUiYW1ZW9r2dDbaA6DkzmPgdRtBQO2EDLP9fpgGz7XySJaCNGzfmdHR0yDzingHWeEfmiuNmiTKJJUqTWQVTJy3znM7Ozv2DFY4AEcfNmvFzWQm4BsQkcBsCpphVHCzptLGAZdK7Zu0xHGJMBKfRe2qoZJhvJmwAp3cx3KbgtH+Lb0PCEJPuxix51x0ER5jIEJP1ZEKHSBh748ePX0vBV6TWHRbGVVdXN9bU1PRZ3PbpQRUVFXfzSC/xCobu2skj9HniD73KclC/kjJL0dXtoKxlEdpeumPHjj7TmT5v+tra2l5DwihLKTaZAociLzK/qKInVjGPkqfFCptqyWZXlpeXr5fKrBHvQvcn6Opz010KHtvc3LyMOntUveiYE3JNTU0NKBijMt3GCg7OrkrVRV4ISLuIdUOKwlG6gPSSBkgNWVlZD6vXt1HajY2NC73AwcgejFsSC0cMJ62H3rSKWOdwS4AjuuhNn6FnmZx7CDnt7e3PqvpRQCS8rBKTjEOM4clGdTVDMoSj9HKTn1DnHuIoi8gQ4xXAGB7tlxGY8FRLQkkZd7LYqJ6G4WYJh0X1dnSsMdLtJo0bKl9LRjMa/on0IOAsIkEHHLGjCF+wVU7ig8ee5AscsRnI8kpnvpxHAGH4bLnQGHRD8g2OYgCkCJMw3jrMxQyVoTHWBcl3OMKATjMzEjNuJwPopEYw8aK8+KRA4KgGMNl9JAypCSohRXGyPckOzgfcWM8O2arNyJ8owyvXqpCmPLeQnMBZq8k2UzHCxi9AYoRTSP0CTi+13BA+6DSkUj3MYu+SpU+SqUBs4dhzbJVhlfKeo3Riy3F5zI9QCT7Flj3JzAa/4fTaMVIAyc4uv4MpJCNDAoIjE8ZhQQESDo4gBQVHDGSIDY/MpOUioGD5lZY7KGtF+RoaWBBANwLSbvm0EpvEYfOqZDWxvCMPItwMCpAtHEUjYEg3BNB1ZYwfMQ1+X70mdaovKEgM8esCqMGpoV7LCRzesbxpJgeHvJNji1F+EJDQ2SAz6Xojg3SnOYGDLas5iu0gYdtu3faZyKuXxWrKATmFo4y0g0QvfN0PSKzm68Ps3TujDEtF7BaOskEgWb2Z9AMSgE6HJ06cKN+jrynDdMbJwomxwXQyieyeVEJC/tVNmzadD8v2WC5+ijFKy6kGOMqOoCBViwHyFJMJ2Q8S6woa4SiTfIekmEQA8auZgyR4/rYtrUkBHN8h0Qb57HNIFEcAyRY0nKLnXpRCOFFITAFkd39CQLc2nwSL71jitIqSCKBebZ8maHWXIJ+eZdOVYZBJIIpXG2a6SERGoRUkRJna4FQN7YiyiALig/1BBFxxKsSgnHx6PsCjeV58ni44Sq4ZJPQsoUy0caq8mxg4F3Nycr5RdaJfU48ePdo5ffp0AfaMykwiFnkL8/Pzz9TW1kYmoLrhxNiUj71ZbHg6ImkCB3D7OI22Kaas41MAlSAr+nOFyLd5VRtfNIydDRe5vk+lJRl3MMlajMGzOTwPKysbaFA5+fJeXQecZrYFPwiHW0pnH0CSCL31KHtPFfAQy8v3BPke5FlV1aIL2CuZfPbZphP1QUo7BLdT8Ky69hD7BUdM9KyLNv9K2z+Kb6+hYHaETcfh/hxfeLBeA6ebNelUfk92Mr6Nhg4Nx3cJBziKwk/GVxiM1wDaxrzH8OmXMMQUALqbbI6sU9eDNQZOLW3daNY+wyGmCvNjlofYcV+H0/b746IyIaUxcFoZWnkMrctmikx7kFRguf8Hj+sFCJK1yWAL7bRrnhUcabChD4olwS/zGpj4yf9mLCTdssfF1uvP57RFNrovwu/Yrj9tAUlDcdrngHQFwbI9dqBDkp+HL2e+I0sr2+AIkEgB0ikgnZduyaXjerYW+FugHXWL+OzkCI6Y5ro3MNOehdP+krojRcAACm0Mq7kMq1o3Nls6aSNBdM3qjIyMyfSkU0b5/TENW49jV55bONIW14CkkjzdmDtM447s5NJ0w5OUDTjIO6oKbC1gWF1KxhbXQyxeCe9/8kmTzQWPxecFfF2Xnp6+ksf4L17sSKoHxSrkztTwsu1xetN67lbkNWVsfgDnf6NzNTZN8QpHbPfcg2IByA/yWltbV+DE5fv76Ng8H87/4iZVZGdn7123bp08rbQErYCURbxwyuTn1vLzqqWkPc2RkmkBPbYTHYeJ5S+65P/MtM/4UwJIgZK495dEizidxfEUh9c/KWhDxlGOIwyjKqDIkEpZSDmgWMtpTPj27duTeNc0gTufy51P+JvA3vKy602Oa5SL/E0gZSN/E4hfOc25b0/O/wFGCwAhyqFeLQAAAABJRU5ErkJggg=="},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return m})),a.d(t,"b",(function(){return d})),a.d(t,"a",(function(){return p}));a("a481");var r=a("5a0c"),s=a.n(r),n=a("56d7");function i(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),s=864e5;return new Date(r-s)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,s=new Date(r),n=s.getFullYear(),i=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),l=n+"-"+i+"-"+o;return l}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var s=t+24*r*60*60*1e3,n=new Date(s),i=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=i+"-"+o+"-"+l;return c}function m(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function d(e,t,a){return Math.abs(s()(e+" "+t).diff(e+" "+a,"Minute"))}function p(e,t,a){var r=s()(e+" "+t).add(a,"minute");return console.log(),s()(e+" 23:59").isBefore(r)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},c477:function(e,t,a){},d349:function(e,t,a){"use strict";a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"f",(function(){return m})),a.d(t,"c",(function(){return d})),a.d(t,"s",(function(){return p})),a.d(t,"D",(function(){return f})),a.d(t,"E",(function(){return h})),a.d(t,"h",(function(){return b})),a.d(t,"l",(function(){return g})),a.d(t,"g",(function(){return y})),a.d(t,"m",(function(){return v})),a.d(t,"v",(function(){return _})),a.d(t,"t",(function(){return k})),a.d(t,"u",(function(){return F})),a.d(t,"i",(function(){return S})),a.d(t,"j",(function(){return x})),a.d(t,"p",(function(){return T})),a.d(t,"k",(function(){return O})),a.d(t,"w",(function(){return I})),a.d(t,"F",(function(){return w})),a.d(t,"n",(function(){return C})),a.d(t,"x",(function(){return j})),a.d(t,"A",(function(){return P})),a.d(t,"y",(function(){return L})),a.d(t,"z",(function(){return G})),a.d(t,"r",(function(){return D})),a.d(t,"b",(function(){return $})),a.d(t,"C",(function(){return A})),a.d(t,"q",(function(){return M})),a.d(t,"B",(function(){return R})),a.d(t,"a",(function(){return q})),a.d(t,"o",(function(){return N}));var r=a("15fd"),s=a("b775"),n=a("829b"),i=a("4328"),o=a.n(i),l="/api-web";function c(e){return Object(s["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(s["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function m(e){return Object(s["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function d(e){return Object(s["a"])({url:l+"/area/queryChild",method:"get",params:e})}function p(e){return Object(s["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(s["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function h(e){return Object(s["a"])({url:l+"/subject/upset",method:"post",data:e})}function b(e){return Object(s["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function g(e){return Object(s["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(s["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function v(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function k(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function F(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(s["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(s["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function T(e){return Object(s["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function O(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function I(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function w(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function C(e){var t=e.id,a=Object(r["a"])(e,["id"]);return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function j(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function G(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function D(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function $(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function A(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function M(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function R(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:e})}function q(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function N(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:e})}},da35:function(e,t,a){},e3de:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"t-container"},[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"老师姓名 编号 手机号",clearable:""},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"teacherId",label:"老师编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherId)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherPhone)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"jobNature",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("jobNature")(t.row.jobNature))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"执教班级"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"num",label:"出勤次数"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":e.saveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)},s=[],n=(a("7f7f"),a("386d"),a("333d")),i=a("1cc7"),o={name:"tteacherList",data:function(){return{searchForm:{status:"",teachingClass:"",attendance:"",search:""},searchLsit:[],tableList:[],mixCourseList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]}}},components:{pagination:n["a"]},mounted:function(){this.teamid=this.$route.query.id,this.getList()},activated:function(){this.teamid=this.$route.query.id,this.getList()},computed:{saveKey:function(){return"teamDetails-teacherList|id|"+this.$route.query.id}},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;Object(i["Qb"])({musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,search:this.searchForm.search||null}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},gotoRecord:function(){this.$router.push({path:"/business/teamTeacherRecord",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name}})}}},l=o,c=(a("6814"),a("2877")),u=Object(c["a"])(l,r,s,!1,null,null,null);t["a"]=u.exports},ebaf:function(e,t,a){"use strict";a("a05b")},f068:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.name},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("p",{staticClass:"msg",class:"PROGRESS"==e.status?"ing":""},[a("img",{attrs:{src:"PROGRESS"==e.status?e.stepImgs.PROGRESS:e.stepImgs.PAUSE,alt:""}}),e._v("\n "+e._s("PROGRESS"==e.status?"进行中":"已结束"))]),e._v(" "),a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/teamDetails/baseInfo")?a("el-tab-pane",{attrs:{label:"基本信息",lazy:"",name:"1"}},["1"==e.activeIndex?a("baseinfo",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/teacherList")?a("el-tab-pane",{attrs:{label:"老师列表",lazy:"",name:"2"}},["2"==e.activeIndex?a("teacherList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/studentList")?a("el-tab-pane",{attrs:{label:"学员列表",lazy:"",name:"3"}},["3"==e.activeIndex?a("studentList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/classList")?a("el-tab-pane",{attrs:{label:"班级详情",lazy:"",name:"4"}},["4"==e.activeIndex?a("classList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/courseList")?a("el-tab-pane",{attrs:{label:"课表详情",lazy:"",name:"5"}},["5"==e.activeIndex?a("courseList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e()],1)],1)])},s=[],n=(a("7f7f"),a("51c1")),i=a("e3de"),o=a("7472"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"c-container"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/coursePostpone",expression:"'courseSchedule/coursePostpone'"}],staticClass:"newBand",on:{click:e.postpone}},[e._v("课程顺延")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("classType")(t.row.classGroupType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacher",label:"主教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subTeacher",label:"助教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentClassTimes",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studyNum",label:"在读人数"}}),e._v(" "),e.permission("courseSchedule/coursePostpone")?a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.signPostpone(t.row)}}},[e._v("顺延课程")])],1)]}}],null,!1,433730982)}):e._e()],1),e._v(" "),a("pagination",{attrs:{sync:"","save-key":"teamDetails-classList",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程顺延",visible:e.postponeVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.postponeVisible=t}}},[a("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[a("el-form-item",{attrs:{label:"开始日期",prop:"stopTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.stopTime,callback:function(t){e.$set(e.postponeForm,"stopTime","string"===typeof t?t.trim():t)},expression:"postponeForm.stopTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺延日期",prop:"resetTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.options,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.resetTime,callback:function(t){e.$set(e.postponeForm,"resetTime","string"===typeof t?t.trim():t)},expression:"postponeForm.resetTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"跳过节假日"}},[a("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1)],1),e._v(" "),a("span",{staticStyle:{color:"#F56C6C"}},[e._v("注意:将会把所选班级的课表,「开始日期」之后的全部未开始课程;\n 调整到「顺延日期」之后重新排课,可以勾选跳过节假日;")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.postponeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},c=[],u=a("333d"),m=a("1cc7"),d=a("ec8a"),p={name:"tclassList",data:function(){return{postponeVisible:!1,searchLsit:[],searchForm:{name:"",status:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},postponeForm:{stopTime:"",resetTime:"",holiday:!1},postponeRules:{stopTime:[{required:!0,message:"请选择开始日期",trigger:"blur"}],resetTime:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]},activeClass:"",activeList:[],options:this.processDate(),bigin:this.beginDate()}},components:{pagination:u["a"]},created:function(){},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(d["a"])(e)},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(m["V"])({search:this.teamid,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(){this.$router.push({path:"/business/resetClass",query:{id:this.teamid}})},postpone:function(){this.activeList.length<=0?this.$message.error("请至少选择一个班级"):this.postponeVisible=!0},signPostpone:function(e){this.activeClass=e.classGroupId,this.postponeVisible=!0},handleClose:function(){this.postponeVisible=!1,this.$refs["postponeForm"].resetFields()},handleSelectionChange:function(e){this.activeList=e;var t=e.map((function(e){return e.classGroupId}));this.activeClass=t.join(",")},submitInfo:function(){var e=this;this.$refs["postponeForm"].validate((function(t){if(t){var a=e.activeClass,r=e.postponeForm.stopTime,s=e.postponeForm.resetTime,n=e.postponeForm.holiday,i={classGroupIds:a,pauseDate:r,recoveryDate:s,skipHoliday:n};Object(m["v"])(i).then((function(t){200==t.code&&e.$message.success("修改成功")}))}}))},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.postponeForm.stopTime?new Date(e.postponeForm.stopTime).getTime()>t.getTime():t.getTime()>Date.now()}}},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}}},f=p,h=a("2877"),b=Object(h["a"])(f,l,c,!1,null,null,null),g=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"-","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.searchForm.date,callback:function(t){e.$set(e.searchForm,"date","string"===typeof t?t.trim():t)},expression:"searchForm.date"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.masterTeacherName)+"("+e._s(t.row.masterTeacherId)+")\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",e._l(t.row.teachingTeachers,(function(t,r){return"TEACHING"==t.teacherRole?a("p",{key:r},[e._v(" "+e._s(t.userName)+"("+e._s(t.userId)+")")]):e._e()})),0)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/queryTeacherSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调整")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课酬调整",width:"800px",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.activeTeacherList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"老师姓名",prop:"teacherName"}}),e._v(" "),a("el-table-column",{attrs:{label:"老师角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程课酬",prop:"expectSalary"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/updateTeacherCoursesSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetTeacher(t.row)}}},[e._v("操作")]):e._e()],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{width:"500px",title:"调整",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[a("el-form",{ref:"teacherMask",attrs:{model:e.teacherMask,rules:e.teacherRules}},[a("el-form-item",{attrs:{label:"调整范围",prop:"radio"}},[a("el-radio",{attrs:{label:"all"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("仅限本次")])],1),e._v(" "),a("el-form-item",{attrs:{label:"课程课酬",prop:"salary"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.teacherMask.salary,callback:function(t){e.$set(e.teacherMask,"salary","string"===typeof t?t.trim():t)},expression:"teacherMask.salary"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.innerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetSalary}},[e._v("确 定")])],1)],1)],1)],1)},v=[],_=a("8018"),k={name:"tsalaryList",data:function(){return{dialogTableVisible:!1,innerVisible:!1,searchForm:{date:""},pickerOptions:{firstDayOfWeek:1},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchLsit:[],activeTeacherList:[{1:1}],teacherMask:{salary:"",subsidy:"",radio:""},courseScheduleId:"",teacherRules:{salary:[{required:!0,message:"请输入课程课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],radio:[{required:!0,message:"请选择调整范围",trigger:"blur"}]},tempSelectRow:{}}},components:{pagination:u["a"]},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(d["a"])(e)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;this.teamid=this.$route.query.id,this.searchForm.date||(this.searchForm.date=[]);var t={musicGroupId:this.teamid,startTime:this.searchForm.date[0]||null,endTime:this.searchForm.date[1]||null,page:this.rules.page,rows:this.rules.limit};Object(m["X"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},setCourseInfo:function(e){var t=this;this.tempSelectRow=e,Object(m["Kb"])({courseScheduleId:e.courseScheduleId}).then((function(a){200==a.code&&(t.dialogTableVisible=!0,t.courseScheduleId=e.courseScheduleId,t.activeTeacherList=a.data)}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},resetSalary:function(){var e=this,t=this;this.$refs["teacherMask"].validate((function(a){a?Object(_["B"])({courseScheduleId:e.courseScheduleId,salary:e.teacherMask.salary,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(a){200==a.code&&(e.$message.success("修改成功"),e.teacherMask={salary:"",subsidy:"",radio:""},e.innerVisible=!1,t.setCourseInfo(e.tempSelectRow))})):e.$message.error("请填写必要参数")}))}}},F=k,S=Object(h["a"])(F,y,v,!1,null,null,null),x=S.exports,T=a("73b3"),O={name:"teamDetail",data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:a("7a7c"),PAUSE:a("c34d")},status:""}},mounted:function(){this.activeIndex="1",this.init()},activated:function(){this.activeIndex="1",this.init()},methods:{permission:function(e){return Object(d["a"])(e)},init:function(){var e=this;this.$nextTick((function(t){e.status=e.$route.query.status,e.teamid=e.$route.query.id,e.name=e.$route.query.name}))},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})}},components:{studentList:n["a"],teacherList:i["a"],courseList:o["a"],classList:g,salaryList:x,baseinfo:T["a"]}},I=O,w=(a("103d"),Object(h["a"])(I,r,s,!1,null,"1079db74",null));t["default"]=w.exports},f089:function(e,t,a){"use strict";a("054c")},fc1a:function(e,t,a){"use strict";a("ba30")}}]);
- =======
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17b879c2","chunk-770fa607"],{"0464":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,r){return a("el-option",{key:r,attrs:{disabled:e.isOptionDisabled(r),label:e.courseType[r],value:r}})})),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},s=[],n=(a("6762"),a("2fdb"),a("267e")),i=a("ed08"),o=a("92e3"),l=a("6612"),c=a.n(l),u=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:n["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(i["b"])(n["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["h"])}},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return c()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(a,r,s){var n=t.list.form[e].courseType;n&&r>1&&t.classTimeList[n]&&r<t.classTimeList[n]?s(new Error("单节课不得少于".concat(t.classTimeList[n],"分钟"))):s()}}}}),m=u,d=(a("1139"),a("2877")),p=Object(d["a"])(m,r,s,!1,null,"a10777a0",null);t["a"]=p.exports},"054c":function(e,t,a){},"103d":function(e,t,a){"use strict";a("9076")},1139:function(e,t,a){"use strict";a("44d1")},1400:function(e,t,a){"use strict";a("b3f6")},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}));var r=a("b775"),s=a("829b"),n="/api-web";function i(e){return Object(s["a"])({url:n+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(r["a"])({url:n+"/chargeType/queryPage",method:"get",params:e})}},1672:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"g",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"f",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return m})),a.d(t,"i",(function(){return d}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},n=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},i=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},c=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},u=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},d=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})}},"1a3f":function(e,t,a){},"1aa8":function(e,t,a){"use strict";a("7619")},2149:function(e,t,a){},"23ce":function(e,t,a){},2666:function(e,t,a){"use strict";a("1a3f")},"272e":function(e,t,a){"use strict";a("da35")},3004:function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"h",(function(){return m}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},n=function(e){return Object(r["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},i=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},4e3:function(e,t,a){"use strict";a("3004")},"44d1":function(e,t,a){},5137:function(e,t,a){"use strict";a.d(t,"n",(function(){return o})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"t",(function(){return m})),a.d(t,"o",(function(){return d})),a.d(t,"s",(function(){return p})),a.d(t,"m",(function(){return f})),a.d(t,"r",(function(){return h})),a.d(t,"j",(function(){return b})),a.d(t,"l",(function(){return g})),a.d(t,"a",(function(){return y})),a.d(t,"g",(function(){return v})),a.d(t,"b",(function(){return _})),a.d(t,"q",(function(){return k})),a.d(t,"i",(function(){return F})),a.d(t,"v",(function(){return S})),a.d(t,"u",(function(){return x})),a.d(t,"k",(function(){return T})),a.d(t,"p",(function(){return O})),a.d(t,"w",(function(){return I})),a.d(t,"c",(function(){return w})),a.d(t,"x",(function(){return C})),a.d(t,"y",(function(){return j})),a.d(t,"h",(function(){return P}));var r=a("b775"),s=a("4328"),n=a.n(s),i="/api-web";function o(e){return Object(r["a"])({url:i+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/studentManage/queryStudentPayment",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/order/queryPage",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/studentRegistration/batchUpdateSubject",method:"post",data:n.a.stringify(e)})}function b(e){return Object(r["a"])({url:i+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function y(e){return Object(r["a"])({url:i+"/studentRegistration/insertStudent",method:"POST",data:e})}function v(e){return Object(r["a"])({url:i+"/classGroupStudent/findAllStudent",method:"POST",data:n.a.stringify(e)})}function _(e){return Object(r["a"])({url:i+"/classGroupStudent/addStudents",method:"POST",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/classGroupStudent/del",method:"POST",data:n.a.stringify(e)})}function F(e){return Object(r["a"])({url:i+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function S(e){return Object(r["a"])({url:i+"/userCashAccount/updateCourseBalance",method:"post",data:n.a.stringify(e)})}function x(e){return Object(r["a"])({url:i+"/userCashAccount/updateBalance",method:"post",data:n.a.stringify(e)})}function T(e){return Object(r["a"])({url:i+"/studentManage/queryUserByPhone",method:"get",params:e})}function O(e){return Object(r["a"])({url:i+"/studentManage/register",method:"post",data:n.a.stringify(e)})}function I(e){return Object(r["a"])({url:i+"/studentManage/studentUpdate",method:"post",data:n.a.stringify(e)})}function w(e){return Object(r["a"])({url:i+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/userCashAccountDetail/queryPage",method:"get",params:e})}function j(e){return Object(r["a"])({url:i+"/userCoursesAccount/queryPage",method:"get",params:e})}function P(e){return Object(r["a"])({url:i+"/sysUserContracts/getLatest",method:"get",params:e})}},"51c1":function(e,t,a){"use strict";var r,s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"stu-container"},["PROGRESS"==e.team_status?a("div",{staticClass:"studentListWrap"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/insertStudent",expression:"'studentRegistration/insertStudent'"}],staticClass:"newBand",on:{click:e.createStudentFrom}},[e._v("\n 新增学员\n ")])]):e._e(),e._v(" "),a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名或电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"studentStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"学员状态"},model:{value:e.searchForm.studentStatus,callback:function(t){e.$set(e.searchForm,"studentStatus","string"===typeof t?t.trim():t)},expression:"searchForm.studentStatus"}},[a("el-option",{attrs:{label:"在读",value:"NORMAL"}}),e._v(" "),a("el-option",{attrs:{label:"请假",value:"LEAVE"}}),e._v(" "),a("el-option",{attrs:{label:"退团",value:"QUIT"}}),e._v(" "),a("el-option",{attrs:{label:"报名",value:"APPLY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"createYear"}},[a("el-date-picker",{attrs:{type:"year","value-format":"yyyy",placeholder:"选择入团年份"},model:{value:e.searchForm.createYear,callback:function(t){e.$set(e.searchForm,"createYear",t)},expression:"searchForm.createYear"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"currentGrade"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入年级"},model:{value:e.searchForm.currentGrade,callback:function(t){e.$set(e.searchForm,"currentGrade","string"===typeof t?t.trim():t)},expression:"searchForm.currentGrade"}},e._l(e.gradeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classGroupId"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择班级"},model:{value:e.searchForm.classGroupId,callback:function(t){e.$set(e.searchForm,"classGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.classGroupId"}},e._l(e.classList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"major"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"所选专业"},model:{value:e.searchForm.major,callback:function(t){e.$set(e.searchForm,"major","string"===typeof t?t.trim():t)},expression:"searchForm.major"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isPay"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"报名缴费"},model:{value:e.searchForm.isPay,callback:function(t){e.$set(e.searchForm,"isPay","string"===typeof t?t.trim():t)},expression:"searchForm.isPay"}},[a("el-option",{attrs:{label:"未开启缴费",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"开启缴费",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"已缴费",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"oweFlag"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否欠费"},model:{value:e.searchForm.oweFlag,callback:function(t){e.$set(e.searchForm,"oweFlag","string"===typeof t?t.trim():t)},expression:"searchForm.oweFlag"}},[a("el-option",{attrs:{label:"否",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isActive"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否激活"},model:{value:e.searchForm.isActive,callback:function(t){e.$set(e.searchForm,"isActive","string"===typeof t?t.trim():t)},expression:"searchForm.isActive"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"hasCourse"}},[a("el-select",{attrs:{clearable:"",placeholder:"VIP/网管是否有课"},model:{value:e.searchForm.hasCourse,callback:function(t){e.$set(e.searchForm,"hasCourse","string"===typeof t?t.trim():t)},expression:"searchForm.hasCourse"}},[a("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"carePackage"}},[a("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"关心包"},model:{value:e.searchForm.carePackage,callback:function(t){e.$set(e.searchForm,"carePackage","string"===typeof t?t.trim():t)},expression:"searchForm.carePackage"}},[a("el-option",{attrs:{label:"不可用",value:0}}),e._v(" "),a("el-option",{attrs:{label:"可用",value:1}}),e._v(" "),a("el-option",{attrs:{label:"已使用",value:2}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"comeOnPackage"}},[a("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"加油包"},model:{value:e.searchForm.comeOnPackage,callback:function(t){e.$set(e.searchForm,"comeOnPackage","string"===typeof t?t.trim():t)},expression:"searchForm.comeOnPackage"}},[a("el-option",{attrs:{label:"不可用",value:0}}),e._v(" "),a("el-option",{attrs:{label:"可用",value:1}}),e._v(" "),a("el-option",{attrs:{label:"已使用",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/musicGroupStudent",expression:"'export/musicGroupStudent'"}],attrs:{type:"primary"},on:{click:e.onMusicGroupExport}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 在读人数:"+e._s(e.studentListInfo.studying)),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" 退团人数:"+e._s(e.studentListInfo.quit)),a("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" VIP&网管转化率:"+e._s(e.studentListInfo.courseRate)),a("i",{staticStyle:{width:"10px",display:"inline-block"}})]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkboxSelect}}),e._v(" "),a("el-table-column",{attrs:{label:"学员编号",width:"120px;",prop:"userId"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.userId)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"学员姓名",width:"120px;",prop:"realName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.realName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"gender",width:"50px;",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.phone)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入团年份"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dayjsFormat")(t.row.registerTime,"YYYY年")))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.currentGrade+t.row.currentClass))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"报名专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.regSubjectName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入团专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.subjectName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentStatus",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("musicGroupStudentType")(t.row.studentStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"报名缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("paymentStatus")(t.row.paymentStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否激活"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isActive?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"VIP/网管是否有课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.hasCourse?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"关心包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.carePackage)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"加油包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.comeOnPackage)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"欠费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{class:[t.row.noPaymentAmount>0?"error":null]},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.noPaymentAmount))+"\n "),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/queryPage/studentList",router:["/teamLists"]}},[a("i",{staticClass:"el-icon-view",staticStyle:{color:"#14928a","font-size":"17px"},attrs:{title:"缴费记录"},on:{click:function(a){return e.onPaymentDetail(t.row)}}})])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"退团原因",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("Tooltip",{attrs:{content:e.row.quitReason}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",fixed:"right",width:"360px;",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("studentManage/queryStudentClassGroup")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookClass(t.row)}}},[e._v("查看班级")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/add")&&"APPLY"==t.row.studentStatus&&"2"!=t.row.paymentStatus&&"PROGRESS"==e.team_status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addPay(t.row)}}},[e._v("添加缴费")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup2")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quieTeamMask(t.row)}}},[e._v("退团退费")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup3")&&"QUIT"!=t.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quieTeam(t.row)}}},[e._v("退团")]):e._e(),e._v(" "),e.permission("visit/add/teamStudentList")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e(),e._v(" "),a("el-popover",{directives:[{name:"show",rawName:"v-show",value:t.row.remark,expression:"scope.row.remark"}],attrs:{placement:"top-start",title:"备注",width:"200",trigger:"hover",content:t.row.remark}},[a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("备注")])],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":e.saveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{staticClass:"studentInfo",attrs:{title:"新增学员",width:"700px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm,"label-position":"right","label-width":"120px",rules:e.maskRules,inline:!0}},[a("el-alert",{staticClass:"alert",attrs:{title:"基本信息",closable:!1,type:"info"}}),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"联系电话"},on:{blur:function(t){return e.checkPhone(e.maskForm.phone)}},model:{value:e.maskForm.phone,callback:function(t){e.$set(e.maskForm,"phone","string"===typeof t?t.trim():t)},expression:"maskForm.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员姓名",prop:"studentName"}},[a("el-input",{attrs:{placeholder:"学员姓名"},model:{value:e.maskForm.studentName,callback:function(t){e.$set(e.maskForm,"studentName","string"===typeof t?t.trim():t)},expression:"maskForm.studentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员性别",prop:"sex"}},[a("el-select",{attrs:{clearable:""},model:{value:e.maskForm.sex,callback:function(t){e.$set(e.maskForm,"sex","string"===typeof t?t.trim():t)},expression:"maskForm.sex"}},[a("el-option",{attrs:{label:"男",value:1}}),e._v(" "),a("el-option",{attrs:{label:"女",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"家长姓名",prop:"parentName"}},[a("el-input",{attrs:{placeholder:"家长姓名"},model:{value:e.maskForm.parentName,callback:function(t){e.$set(e.maskForm,"parentName","string"===typeof t?t.trim():t)},expression:"maskForm.parentName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年级",prop:"currentGradeNum"}},[a("el-select",{attrs:{placeholder:"起始年级",filterable:"",clearable:""},model:{value:e.maskForm.currentGradeNum,callback:function(t){e.$set(e.maskForm,"currentGradeNum","string"===typeof t?t.trim():t)},expression:"maskForm.currentGradeNum"}},e._l(e.gradeList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"班级",prop:"course"}},[a("el-input",{attrs:{placeholder:"班级"},model:{value:e.maskForm.course,callback:function(t){e.$set(e.maskForm,"course","string"===typeof t?t.trim():t)},expression:"maskForm.course"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员声部",prop:"sound"}},[a("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.onSoundChange},model:{value:e.maskForm.sound,callback:function(t){e.$set(e.maskForm,"sound","string"===typeof t?t.trim():t)},expression:"maskForm.sound"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:"出生日期",prop:"timer"}},[a("el-col",{attrs:{span:24}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer","string"===typeof t?t.trim():t)},expression:"maskForm.timer"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.addStudent}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员所在班级",width:"640px",visible:e.studentClassVisible},on:{"update:visible":function(t){e.studentClassVisible=t}}},[a("el-form",{attrs:{model:e.classMask}},[a("el-form-item",{attrs:{label:"学生姓名"}},[e._v(e._s(e.classMask.studentName))]),e._v(" "),e._l(e.classLists,(function(t,r){return a("el-form-item",{key:r,attrs:{label:"所在班级"}},[e._v(e._s(t.name))])}))],2)],1),e._v(" "),a("el-dialog",{attrs:{title:"退团信息确认",width:"640px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[a("el-form",{ref:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[a("el-form-item",{attrs:{label:"退还课程费用",prop:"isRefundCourseFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("否")])],1),e._v(" "),a("el-form-item",{attrs:{label:"退还乐器费用",prop:"isRefundInstrumentFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("否")])],1),e._v(" "),a("el-form-item",{attrs:{label:"退还教辅费用",prop:"isRefundTeachingAssistantsFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("否")])],1),e._v(" "),e.activeRow.hasMaintenance?a("el-form-item",{attrs:{label:"退还乐保费用",prop:"isMaintenanceFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("否")])],1):e._e(),e._v(" "),e.quitForm.isMaintenanceFee?a("el-form-item",{attrs:{label:"退还乐保金额",prop:"maintenanceFee"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.maintenanceFee,callback:function(t){e.$set(e.quitForm,"maintenanceFee",t)},expression:"quitForm.maintenanceFee"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"退团原因",prop:"reason"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.quitForm.reason,callback:function(t){e.$set(e.quitForm,"reason","string"===typeof t?t.trim():t)},expression:"quitForm.reason"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[a("div",[a("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[a("div",{staticClass:"popoverWrap"},[a("p",[e._v("乐团退团退费规则:")]),e._v(" "),a("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),a("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),a("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")])]),e._v(" "),a("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),a("div",[a("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1),e._v(" "),a("el-dialog",{attrs:{title:"修改缴费周期","before-close":e.closePayVisible,width:"600px",visible:e.payVisible},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0}},[a("el-form-item",{attrs:{label:"学生姓名",prop:"studentName"}},[a("el-input",{attrs:{disabled:""},model:{value:e.payForm.studentName,callback:function(t){e.$set(e.payForm,"studentName","string"===typeof t?t.trim():t)},expression:"payForm.studentName"}})],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"缴费金额",prop:"payMoney"}},[a("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.payForm.payMoney,callback:function(t){e.$set(e.payForm,"payMoney","string"===typeof t?t.trim():t)},expression:"payForm.payMoney"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费月份",prop:"payMonth"}},[a("el-checkbox-group",{attrs:{fill:"#14928A","text-color":"#474747"},model:{value:e.payForm.payMonth,callback:function(t){e.$set(e.payForm,"payMonth","string"===typeof t?t.trim():t)},expression:"payForm.payMonth"}},[a("el-checkbox",{attrs:{label:"1"}},[e._v("一月")]),e._v(" "),a("el-checkbox",{attrs:{label:"2"}},[e._v("二月")]),e._v(" "),a("el-checkbox",{attrs:{label:"3"}},[e._v("三月")]),e._v(" "),a("el-checkbox",{attrs:{label:"4"}},[e._v("四月")]),e._v(" "),a("el-checkbox",{attrs:{label:"5"}},[e._v("五月")]),e._v(" "),a("el-checkbox",{attrs:{label:"6"}},[e._v("六月")]),e._v(" "),a("el-checkbox",{attrs:{label:"7"}},[e._v("七月")]),e._v(" "),a("el-checkbox",{attrs:{label:"8"}},[e._v("八月")]),e._v(" "),a("el-checkbox",{attrs:{label:"9"}},[e._v("九月")]),e._v(" "),a("el-checkbox",{attrs:{label:"10"}},[e._v("十月")]),e._v(" "),a("el-checkbox",{attrs:{label:"11"}},[e._v("十一月")]),e._v(" "),a("el-checkbox",{attrs:{label:"12"}},[e._v("十二月")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitPay}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增回访",width:"500px","destroy-on-close":"","close-on-click-modal":!1,visible:e.visitVisiable},on:{"update:visible":function(t){e.visitVisiable=t}}},[e.visitVisiable&&e.detail?a("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisiable=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"选择班级","destroy-on-close":"",width:"700px",visible:e.createUserPayVisible},on:{"update:visible":function(t){e.createUserPayVisible=t}}},[a("createUserPay",{attrs:{signList:e.signList,mixList:e.mixList,highList:e.highList,snapList:e.snapList,musicGroupId:this.teamid,organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,createdUserId:e.createdUserId,baseInfo:e.baseInfo},on:{submited:e.getList,close:function(t){e.createUserPayVisible=!1}}})],1),e._v(" "),a("el-dialog",{attrs:{title:"缴费记录",width:"900px",visible:e.paymentDetailVisible},on:{"update:visible":function(t){e.paymentDetailVisible=t}}},[e.paymentDetailVisible?a("payment-list",{attrs:{paymentDetail:e.paymentDetail},on:{close:function(t){e.paymentDetailVisible=!1}}}):e._e()],1),e._v(" "),e.orderVisible?a("el-dialog",{attrs:{title:"订单详情",visible:e.orderVisible,width:"600px"},on:{"update:visible":function(t){e.orderVisible=t}}},[a("el-form",{attrs:{model:e.orderForm,inline:!0}},[a("el-form-item",{attrs:{label:"学员姓名"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.name,callback:function(t){e.$set(e.orderForm,"name","string"===typeof t?t.trim():t)},expression:"orderForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"实缴金额"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.totalAmount,callback:function(t){e.$set(e.orderForm,"totalAmount","string"===typeof t?t.trim():t)},expression:"orderForm.totalAmount"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"实际专业"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subject,callback:function(t){e.$set(e.orderForm,"subject","string"===typeof t?t.trim():t)},expression:"orderForm.subject"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课程费用"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subjectFee,callback:function(t){e.$set(e.orderForm,"subjectFee","string"===typeof t?t.trim():t)},expression:"orderForm.subjectFee"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择乐器"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axe,callback:function(t){e.$set(e.orderForm,"axe","string"===typeof t?t.trim():t)},expression:"orderForm.axe"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"乐器价格"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axePrice,callback:function(t){e.$set(e.orderForm,"axePrice","string"===typeof t?t.trim():t)},expression:"orderForm.axePrice"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"教辅组合"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.others,callback:function(t){e.$set(e.orderForm,"others","string"===typeof t?t.trim():t)},expression:"orderForm.others"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"组合价格"}},[a("el-input",{attrs:{disabled:""},model:{value:e.orderForm.othersPrice,callback:function(t){e.$set(e.orderForm,"othersPrice","string"===typeof t?t.trim():t)},expression:"orderForm.othersPrice"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.orderVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],i=(a("a481"),a("28a5"),a("3b2b"),a("ade3")),o=(a("7f7f"),a("386d"),a("ac6a"),a("96cf"),a("1da1")),l=a("1cc7"),c=a("5137"),u=a("641c"),m=a("d349"),d=a("92e3"),p=a("333d"),f=(a("61f7"),a("d044"),a("bc3a")),h=a.n(f),b=a("5f87"),g=a("ec8a"),y=a("46f6"),v=a("e3eb"),_=a.n(v),k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"班级信息",closable:!1,type:"info"}}),e._v(" "),a("el-form",{attrs:{model:e.form,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"声部班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.signClass,callback:function(t){e.$set(e.form,"signClass","string"===typeof t?t.trim():t)},expression:"form.signClass"}},e._l(e.signList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"合奏班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.mixClass,callback:function(t){e.$set(e.form,"mixClass","string"===typeof t?t.trim():t)},expression:"form.mixClass"}},e._l(e.mixList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"基础技能班"}},[a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.highClass,callback:function(t){e.$set(e.form,"highClass","string"===typeof t?t.trim():t)},expression:"form.highClass"}},e._l(e.highList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"临时班"}},[a("select-all",{attrs:{filterable:"",clearable:"",multiple:""},model:{value:e.form.snapClass,callback:function(t){e.$set(e.form,"snapClass","string"===typeof t?t.trim():t)},expression:"form.snapClass"}},e._l(e.snapList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType},on:{priceChange:e.priceChange,moneyChange:e.syncAllMoney}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}},[a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern","label-width":"160px",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),0==e.payment.paymentPattern?[a("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,r){return a("el-collapse-item",{key:r,attrs:{name:r}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(r+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(r)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,hidePaymentPattern:!0,isUserType:!0,isCommon:!1,isDisabled:!0}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{isUserType:!0,hidePaymentPattern:!0,form:e.cycle,isCommon:!1,isDisabled:!0},on:{"update:form":function(t){e.cycle=t}}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],2)},F=[],S=a("15fd"),x=(a("6762"),a("2fdb"),a("5530")),T=a("b85c"),O=a("2909"),I=a("6612"),w=a.n(I),C=a("7a3c"),j=a("b133"),P=a("0464"),L=a("1672"),G=a("b4ac"),D=a("267e"),$=a("ed08"),A={props:["snapList","highList","mixList","signList","createdUserId","organizationCourseUnitPriceSettings","musicGroupId","baseInfo"],components:{paymentCycle:C["a"],otherform:j["a"],extraClass:P["a"]},data:function(){return{courseTypeOptions:D["courseType"],ids:"",form:{signClass:"",mixClass:"",highClass:"",snapClass:""},payment:{paymentPattern:null},other:{},cycle:{},eclass:[],collapse:[0],cycles:[{}],organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object($["b"])(D["paymentPatternType"])}},watch:{"form.signClass":function(){this.classChange()},"form.mixClass":function(){this.classChange()},"form.highClass":function(){this.classChange()},"form.snapClass":function(){this.classChange()},"payment.paymentPattern":function(){this.syncAllMoney()},baseInfo:function(){this.formatCourse()}},mounted:function(){ (Object(O["a"])(this.snapList)),this.formatCourse()},methods:{addExtraClass:function(){this.eclass.push({})},priceChange:function(e,t){var a=Object(O["a"])(this.eclass),r=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(w()(e.courseTotalMinuties||1).multiply(r.unitPrice||1).value());e.courseCurrentPrice=s,e.courseOriginalPrice=s,a[t]=e,this.eclass=Object(O["a"])(a),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,a=0,r=0,s=Object(T["a"])(this.eclass);try{for(s.s();!(e=s.n()).done;){var n=e.value;if(t+=n.courseCurrentPrice,this.cycles&&this.cycles.length)if(n.isStudentOptional)a+=n.courseCurrentPrice;else{var i=Math.floor(n.courseCurrentPrice/this.cycles.length),o=n.courseCurrentPrice%this.cycles.length;a+=i+o,r+=i}}}catch(l){s.e(l)}finally{s.f()}if(this.cycles.length){Math.floor(t/this.cycles.length),this.cycles.length;this.cycles=this.cycles.map((function(e,t){return Object(x["a"])(Object(x["a"])({},e),{},{paymentAmount:0===t?a:r})}))}return this.$refs.cycle&&this.$set(this.cycle,"paymentAmount",t),t},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},formatCourse:function(){var e,t,a,r=null===(e=this.baseInfo)||void 0===e?void 0:e.organId,s=null===(t=this.baseInfo)||void 0===t?void 0:t.chargeTypeId,n={},i=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return r&&r==e.organId&&s&&s==e.chargeTypeId})),o=Object(T["a"])(i);try{for(o.s();!(a=o.n()).done;){var l=a.value;n[l.courseType]=l}}catch(c){o.e(c)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},getAllIds:function(){return[this.form.signClass,this.form.mixClass,this.form.highClass].concat(Object(O["a"])(this.form.snapClass)).filter((function(e){return!!e}))},classChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.getAllIds().join(","),!t){e.next=10;break}return e.next=5,Object(G["a"])({classGroupIdList:t});case 5:a=e.sent,this.ids=t,r=a.data.map((function(e){var t=s.organizationCourseUnitPriceSettingsByType[e.courseType]||{},a=Math.round(w()(t.unitPrice||1).multiply(e.remainMinutes||1).value());return{courseType:e.courseType,courseTotalMinuties:e.remainMinutes,courseOriginalPrice:a,courseCurrentPrice:a}})),this.eclass=Object(O["a"])(r),this.syncAllMoney();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0), (e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.payment,e.other].concat(Object(O["a"])(e.cycles||[])).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},submit:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,r,s,n,i,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],r=Object(T["a"])(t);try{for(n=function(){var e=s.value;e.validate((function(t){t&&a.push(e)}))},r.s();!(s=r.n()).done;)n()}catch(c){r.e(c)}finally{r.f()}if(this.getAllIds().length){e.next=7;break}return this.$message.error("请至少选择一个班级"),e.abrupt("return");case 7:if(t.length!==a.length){e.next=21;break}return i=0==this.payment.paymentPattern?this.cycles:[this.cycle],o=Object(x["a"])({attribute1:this.ids,musicGroupPaymentDateRangeList:i.map((function(e){var t=e.paymentDate,a=e.paymentValid,r=Object(S["a"])(e,["paymentDate","paymentValid"]);return Object(x["a"])(Object(x["a"])(Object(x["a"])(Object(x["a"])({},r),Object($["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object($["a"])(a,["paymentValidStartDate","paymentValidEndDate"])),{},{paymentPattern:l.payment.paymentPattern})})),paymentPattern:this.payment.paymentPattern,musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",payUserType:"STUDENT",studentIds:this.createdUserId,musicGroupPaymentCalenderCourseSettingsList:this.eclass},this.other),e.prev=10,e.next=13,Object(L["c"])(o);case 13:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close(),e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](10), (e.t0);case 21:case"end":return e.stop()}}),e,this,[[10,18]])})));function t(){return e.apply(this,arguments)}return t}()}},M=A,R=(a("7e28"),a("2877")),q=Object(R["a"])(M,k,F,!1,null,"1fae2041",null),N=q.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"hastimer"}},[a("el-select",{attrs:{clearable:"",placeholder:"是否存在剩余时长"},model:{value:e.search.hastimer,callback:function(t){e.$set(e.search,"hastimer","string"===typeof t?t.trim():t)},expression:"search.hastimer"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.filterlist,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"userId",label:"学生编号",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"username",label:"学生姓名",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"学生手机号",width:"140",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程时长"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.mapDtos,(function(t){return a("el-tag",{key:t.key,staticStyle:{"margin-right":"5px","margin-bottom":"5px"},attrs:{type:"info",size:"small"}},[e._v(e._s(e.courseType[t.key])+": "+e._s(t.value)+"分钟")])}))}}])})],1)],1)},V=[],B={props:["detail"],data:function(){return{courseType:D["courseType"],list:[],filterlist:[],extra:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{array2object:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a={},r=Object(T["a"])(t);try{for(r.s();!(e=r.n()).done;){var s=e.value;a[s.key]=s.value}}catch(n){r.e(n)}finally{r.f()}return a},filter:function(){var e=this.search,t=e.keyword,a=e.hastimer;this.filterlist=this.list.filter((function(e){var r=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.username).indexOf(t)>-1,s=e.mapDtos.filter((function(e){return e.value>0})).length,n=!a||"1"==a&&s||"0"==a&&!s;return r&&n}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},FetchDetail:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(G["b"])({musicGroupId:this.$route.query.id});case 3:t=e.sent,this.list=t.data,this.filter(),t.data[0]&&(this.extra=t.data[0].mapDtos),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()}},U=B,z=Object(R["a"])(U,E,V,!1,null,null,null),H=z.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"paymentList tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"缴费单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.musicGroupPaymentCalenderId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDateMgpc))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费截止日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDateMgpc))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"预计缴费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",width:"150px",label:"支付时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.payTime))+"\n ")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getDetail}})],1)},W=[],Y={name:"paymentList",props:["paymentDetail"],components:{pagination:p["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.paymentDetail,e.next=3,Object(l["Ub"])({musicGroupId:t.musicGroupId,userId:t.userId}).then((function(e){ (e),a.tableList=e.data.rows,a.pageInfo.total=e.data.total}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},J=Y,Q=Object(R["a"])(J,K,W,!1,null,null,null),Z=Q.exports,X=a("a5b0"),ee=a("6cc5"),te=a("4edf"),ae=a("879d"),re={name:"tstudentList",data:function(){return{detail:null,teamid:"",paymentDetailVisible:!1,paymentDetail:{},payVisible:!1,quitVisible:!1,studentClassVisible:!1,addStudentVisible:!1,timesVisible:!1,timerDetail:null,topFrom:{expect:"2",studing:"5",allmoney:"100",students:"5",signout:"10"},searchForm:{studentStatus:"",major:"",isPay:"",search:"",isActive:"",oweFlag:"",currentGrade:null,createYear:null,classGroupId:null,hasCourse:null,carePackage:null,comeOnPackage:null},organizationCourseUnitPriceSettings:[],quitForm:{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},classMask:{studentName:""},baseInfo:{},searchLsit:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},studentListInfo:{add:"",quit:"",studying:"",courseRate:""},signList:[],mixList:[],highList:[],snapList:[],soundList:[],highonlineList:[],muiscnetworkList:[],qrcodeStatus:!1,qrcodes:!0,qrcode:null,codeUrl:null,gradeList:[],maskForm:{studentName:"",sex:"",parentName:"",course:"",phone:"",sound:"",timer:"",signClass:"",mixClass:"",highClass:"",snapClass:[],highonline:"",muiscnetwork:"",startClass:"",currentGradeNum:null,id:"",temporaryCourseFee:null,musicGoodsIdList:null,kitGroupPurchaseType:"GROUP",musicPrice:null,instrGoodsIdList:[],instrPrice:null},remark:"",classList:[],quitRules:{isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],isMaintenanceFee:[{required:!0,message:"选择是否退还乐保费用"}],maintenanceFee:[{required:!0,message:"请输入退还乐保金额"}],reason:[{required:!0,message:"请填写退团退费原因"}]},maskRules:{studentName:[{required:!0,message:"请输入学生姓名"}],sex:[{required:!0,message:"请选择学生姓名"}],parentName:[{required:!0,message:"请输入家长姓名"}],course:[{required:!0,message:"请输入班级"}],sound:[{required:!0,message:"请选择声部"}],timer:[{required:!0,message:"请选择出生日期"}],signClass:[{required:!0,message:"请选择声部班"}],currentGradeNum:[{required:!0,message:"请选择年级"}],id:[{required:!0,message:"请输入证件号"}],temporaryCourseFee:[{required:!0,message:"请输课程费用"}],musicGoodsIdList:[{required:!0,message:"请选择乐器",trigger:"change"}],musicPrice:[{required:!0,message:"请输入乐器购买金额"}],instrGoodsIdList:[{required:!0,message:"请选择辅件"}],instrPrice:[{required:!0,message:"请输入辅件金额"}]},INSTRUMENTLIST:[],ACCESSORIESLIST:[],activeRow:{hasMaintenance:!1},Fsearch:null,Frules:null,payForm:{studentName:"",payMoney:"",payMonth:[]},kitStatus:!1,visitVisiable:!1,visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""},cycles:[{}],collapse:[0],visitChiose:d["F"],visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},pickerOptions:null,classLists:null,createdUserId:0,createUserPayVisible:!1,team_status:"",orderVisible:!1,orderForm:{name:"",totalAmount:"",subject:"",subjectFee:"",axe:"",axePrice:"",others:"",othersPrice:""},maskSoundForm:{subject:""},subjectVisible:!1,multipleSelection:[],isCanReg:!1,organId:""}},components:{pagination:p["a"],paymentCycle:C["a"],createUserPay:N,Tooltip:X["a"],"times-view":H,paymentList:Z,visit:te["a"],qrCode:u["a"],changeVoice:ee["a"],mergeMusic:ae["a"]},created:function(){},filters:{studentPays:function(e){var t={0:"未缴费",1:"已缴费"};return t[e]}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),methods:(r={onPaymentDetail:function(e){this.paymentDetail=e,this.paymentDetailVisible=!0},viewTimer:function(e){this.timesVisible=!0},permission:function(e){return Object(g["a"])(e)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,Object(l["ob"])({musicGroupId:this.teamid}).then((function(e){var a=e.data;if(200==e.code&&a)for(var r in a)t.gradeList.push({value:r,label:a[r]})})),this.pickerOptions=this.beginDate(),this.getList(),Object(l["J"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)})),Object(l["lb"])({musicGroupId:this.teamid}).then((function(e){return t.baseInfo=e.data})),Object(l["mb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.classList=e.data,t.signList=[],t.mixList=[],t.highList=[],t.snapList=[],t.classList.forEach((function(e){"NORMAL"==e.type?t.signList.push(e):"MIX"==e.type?t.mixList.push(e):"HIGH"==e.type?t.highList.push(e):"SNAP"==e.type?t.snapList.push(e):"HIGH_ONLINE"==e.type?t.highonlineList.push(e):"MUSIC_NETWORK"==e.type&&t.muiscnetworkList.push(e)})))}));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getTeamStudent:function(){var e=this;Object(l["Ob"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.studentListInfo=t.data)}))}},Object(i["a"])(r,"permission",(function(e){return Object(g["a"])(e)})),Object(i["a"])(r,"onInstrumentChange",(function(){})),Object(i["a"])(r,"onKitGroupChnage",(function(e){this.kitStatus=!1,"FREE"==e?(this.kitStatus=!0,this.maskForm.musicPrice=0):this.maskForm.musicPrice=null})),Object(i["a"])(r,"onMusicGroupExport",(function(){var e=this,t="/api-web/export/musicGroupStudent",a={musicGroupId:this.teamid,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,hasCourse:this.searchForm.hasCourse||null,comeOnPackage:this.searchForm.comeOnPackage,carePackage:this.searchForm.carePackage},r={method:"get",headers:{Authorization:Object(b["a"])()},url:t,params:a,responseType:"blob"};this.$confirm("您确定导出学员列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){h()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=URL.createObjectURL(a),s=document.createElement("a"),n=e.$route.query.name+"学员列表.xls";s.href=r,s.setAttribute("download",n),document.body.appendChild(s),s.click()}))})).catch((function(){}))})),Object(i["a"])(r,"search",(function(){this.rules.page=1,this.getList()})),Object(i["a"])(r,"onReSet",(function(){this.$refs.searchForm.resetFields(),this.search()})),Object(i["a"])(r,"getList",(function(){var e,t=this;this.getTeamStudent();var a=(e={musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,oweFlag:this.searchForm.oweFlag||null,hasCourse:this.searchForm.hasCourse||null},Object(i["a"])(e,"oweFlag",this.searchForm.oweFlag||null),Object(i["a"])(e,"comeOnPackage",this.searchForm.comeOnPackage),Object(i["a"])(e,"carePackage",this.searchForm.carePackage),e);return Object(l["Pb"])(a).then((function(e){if(200==e.code)return t.tableList=e.data.rows,t.rules.total=e.data.total,e}))})),Object(i["a"])(r,"addPay",(function(e){this.createUserPayVisible=!0,this.createdUserId=e.userId})),Object(i["a"])(r,"addCycle",(function(){this.cycles.push({}),this.collapse.push(this.collapse.length)})),Object(i["a"])(r,"removeCycle",(function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.pop()})),Object(i["a"])(r,"collapseChange",(function(e){this.collapse=e})),Object(i["a"])(r,"gotoSignin",(function(){this.$router.push({path:"/business/studentSignin",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name,rules:this.Frules,search:this.Fsearch}})})),Object(i["a"])(r,"chioseType",(function(){var e=this;this.$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow;Object(l["b"])({musicGroupId:e.teamid,userId:t.userId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee,maintenanceFee:e.quitForm.maintenanceFee}).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))})),Object(i["a"])(r,"addStudent",(function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a,r=e.maskForm;if(r.musicGoodsIdList&&(""===r.musicPrice||null===r.musicPrice))return void e.$message.error("请输入乐器金额");if(r.instrGoodsIdList&&r.instrGoodsIdList.length>0&&(""===r.instrPrice||null===r.instrPrice))return void e.$message.error("请输入辅件金额");a=r.snapClass?r.snapClass.join(","):null;var s={signClassId:r.signClass,mixClassId:r.mixClass,snapClassIds:a,highClassId:r.highClass,courseFee:r.courseFee,temporaryCourseFee:r.temporaryCourseFee,studentRegistration:{name:r.studentName,gender:r.sex,birthdate:r.timer,parentsName:r.parentName,parentsPhone:r.phone,currentGrade:r.startClass,currentGradeNum:r.currentGradeNum,currentClass:r.course,subjectId:r.sound,musicGroupId:e.teamid},studentPaymentOrderDetails:[]};r.musicGoodsIdList&&s.studentPaymentOrderDetails.push({goodsIdList:r.musicGoodsIdList,kitGroupPurchaseType:r.kitGroupPurchaseType,type:"MUSICAL",price:r.musicPrice}),r.instrGoodsIdList&&""!=r.instrGoodsIdList&&s.studentPaymentOrderDetails.push({goodsIdList:r.instrGoodsIdList.join(","),type:"ACCESSORIES",price:r.instrPrice}),Object(c["a"])(s).then((function(t){200==t.code&&(e.$message.success("添加学生成功"),e.getList(),e.addStudentVisible=!1,e.createUserPayVisible=!0,e.createdUserId=t.data),e.$refs.maskForm.resetFields()}))}}))})),Object(i["a"])(r,"onSoundChange",(function(e){this.ACCESSORIESLIST=[],this.maskForm.instrGoodsIdList=[],this.maskForm.instrPrice=null,this.INSTRUMENTLIST=[],this.maskForm.musicPrice=null,this.maskForm.musicGoodsIdList=null,this.getGoodsList(e,"INSTRUMENT"),this.getGoodsList(e,"ACCESSORIES")})),Object(i["a"])(r,"findSubjectPlan",(function(e){var t=this;Object(l["M"])({musicGroupId:this.teamid,subjectId:e}).then((function(e){var a=e.data;200==e.code&&(t.maskForm.musicMode=t.getBranchType(a.kitGroupPurchaseType))}))})),Object(i["a"])(r,"getGoodsList",(function(e,t){var a=this;Object(l["gb"])({subjectId:e,type:t}).then((function(e){var r=e.data;if(200==e.code){var s=[];r.forEach((function(e){s.push({label:e.name,value:e.id,marketPrice:e.marketPrice})})),"ACCESSORIES"==t&&(a.ACCESSORIESLIST=s),"INSTRUMENT"==t&&(a.INSTRUMENTLIST=s)}}))})),Object(i["a"])(r,"getBranchType",(function(e){var t={FREE:"免费",GROUP:"团购",LEASE:"租赁"};return t[e]})),Object(i["a"])(r,"lookClass",(function(e){var t=this;this.classMask.studentName=e.realName,Object(c["i"])({musicGroupId:this.teamid,teacherId:e.userId}).then((function(e){200==e.code&&(t.classLists=e.data,t.studentClassVisible=!0)}))})),Object(i["a"])(r,"quieTeamMask",(function(e){this.activeRow=e,this.quitVisible=!0})),Object(i["a"])(r,"quieTeam",(function(e){var t=this;this.$prompt("请输入退团原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",inputPattern:/\S/,inputErrorMessage:"请输入退团原因"}).then((function(a){Object(l["b"])({musicGroupId:t.teamid,userId:e.userId,reason:a.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1}).then((function(e){t.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==e.code&&(t.$message.success("退团成功"),t.getList(),t.quitVisible=!1)}))})).catch((function(){}))})),Object(i["a"])(r,"checkPhone",(function(e){var t=this,a=/^1[3456789]\d{9}$/,r=new RegExp(a);r.test(e)&&Object(c["k"])({mobile:this.maskForm.phone}).then((function(a){200==a.code&&a.data&&(t.maskForm.studentName=a.data.name,t.maskForm.sex=a.data.gender,t.maskForm.parentName=a.data.parentsName,t.maskForm.course=a.data.currentClass,t.maskForm.startClass=a.data.currentGrade,t.maskForm.currentGradeNum=a.data.currentGradeNum?a.data.currentGradeNum+"":null,t.maskForm.phone=e,t.maskForm.timer=a.data.birthdate)}))})),Object(i["a"])(r,"lockStudent",(function(e){var t=this;this.$confirm("是否锁定/解锁学生缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a,r=t.teamid,s=e.userId;a=0==e.isLock?1:0,Object(l["a"])({musicGroupId:r,studentId:s,isLock:a}).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.getList())}))})).catch((function(){}))})),Object(i["a"])(r,"resetPay",(function(e){this.activeRow=e,this.payVisible=!0,this.payForm.studentName=e.realName,this.payForm.payMoney=e.courseFee,this.payForm.payMonth=e.paymentPeriodList.split(","),""==this.payForm.payMonth[0]&&(this.payForm.payMonth=[])})),Object(i["a"])(r,"submitPay",(function(){var e=this,t=this.activeRow.userId,a=this.teamid,r=this.payForm.payMonth.join(",")||null,s=this.payForm.payMoney,n={studentId:t,musicGroupId:a,month:r,amount:s};Object(l["Oc"])(n).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))})),Object(i["a"])(r,"closePayVisible",(function(){this.$refs["payForm"].resetFields(),this.payVisible=!1})),Object(i["a"])(r,"addVisit",(function(e){ (e),this.detail=e,this.visitVisiable=!0})),Object(i["a"])(r,"handleChange",(function(e){this.visitForm.type=e[0],this.visitForm.purpose=e[1]})),Object(i["a"])(r,"submitAddVisit",(function(){var e=this; (this.$refs.visitForm),this.$refs.visitForm.validate((function(t){t&&Object(y["a"])(_()(e.visitForm)).then((function(t){200===t.code&&(e.$message.success("新增成功"),e.visitVisiable=!1)}))}))})),Object(i["a"])(r,"beginDate",(function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>=(new Date).getTime()}}})),Object(i["a"])(r,"createStudentFrom",(function(){this.addStudentVisible=!0})),Object(i["a"])(r,"payDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}})),Object(i["a"])(r,"applyDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}})),Object(i["a"])(r,"handleSelectionChange",(function(e){this.multipleSelection=e})),Object(i["a"])(r,"checkboxSelect",(function(e){return 0==e.paymentStatus})),r),watch:{"quitForm.isMaintenanceFee":function(e){this.quitForm.maintenanceFee=e?300:0},quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},this.$refs["quitForm"].resetFields())}},computed:{saveKey:function(){return"teamDetails-studentList|id|"+this.$route.query.id}}},se=re,ne=(a("95e8"),Object(R["a"])(se,s,n,!1,null,"2f41341b",null));t["a"]=ne.exports},6193:function(e,t,a){"use strict";a("aa6f")},6814:function(e,t,a){"use strict";a("b2df")},"6ca4":function(e,t,a){"use strict";a("c477")},"6cc5":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"原乐器",prop:"name"}},[a("span",[e._v(e._s(e.originalMusicalGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"原教辅",prop:"name"}},[a("span",[e._v(e._s(e.originalAccessoriesGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"更改声部",prop:"subjectId",rules:[{required:!0,message:"请选择更改声部",trigger:"change"}]}},[e.changeInfo?a("span",[e._v(e._s(e.changeSubjectName))]):a("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择声部"},on:{change:e.subjectChange},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId",t)},expression:"form.subjectId"}},e._l(e.filterVoiceList,(function(e){return a("el-option",{key:e.subjectId,attrs:{label:e.subjectName,value:e.subjectId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"更改乐器",prop:"musicalGoods",rules:[{required:!0,message:"请选择更改乐器",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.changeMusicalGoods?a("span",[e._v(e._s(e.changeInfo.changeMusicalGoods.name))]):e._e():a("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择乐器"},on:{change:e.musicalGoodsChange},model:{value:e.form.musicalGoods,callback:function(t){e.$set(e.form,"musicalGoods",t)},expression:"form.musicalGoods"}},[a("el-option",{attrs:{label:"自备乐器",value:"OWNED"}}),e._v(" "),e._l(e.musicalGoods,(function(e){return a("el-option",{key:e.goodsIdList,attrs:{label:e.name,value:e.goodsIdList}})}))],2)],1),e._v(" "),e.changeInfo||e.form.musicalGoods&&e.musicalGoodsById[e.form.musicalGoods]&&e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse?a("el-form-item",{attrs:{label:"乐器提供方式",prop:"type",rules:[{required:!0,message:"请选择乐器提供方式",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.kitGroupPurchaseType?a("span",[e._v(e._s(e.kitGroupPurchaseTypeFormater[e.changeInfo.kitGroupPurchaseType]))]):e._e():a("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse,(function(t,r){return a("el-radio",{key:r,attrs:{label:r}},[e._v(e._s(e.kitGroupPurchaseTypeFormater[r]+" "+((e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[r]]||0)>0?e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[r]]+"元":"免费")))])})),1)],1):e._e(),e._v(" "),e.activeAccessories.length||e.groupList.length||e.changeInfo?a("el-form-item",{attrs:{label:"更换教辅",prop:"name"}},[e.changeInfo?e.changeInfo?a("span",[e._v(e._s(e.changeAccessoriesGoods))]):e._e():a("accessories",{attrs:{list:e.activeAccessories,groupList:e.groupList},on:{"update:list":function(t){e.activeAccessories=t},"update:groupList":function(t){e.groupList=t},"update:group-list":function(t){e.groupList=t},change:e.accessoriesChange}})],1):e._e(),e._v(" "),e.changeInfo?a("el-form-item",{attrs:{label:"查看链接",prop:"name"}},[a("div",{staticClass:"viewlink"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.copyLink,placement:"top"}},[a("span",{staticClass:"link"},[e._v(e._s(e.copyLink))])]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"220",trigger:"click"}},[a("div",{staticClass:"left-code"},[a("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),e._v(" "),e.copyLink?a("p",{staticClass:"code-url"},[e._v("\n "+e._s(e.copyLink)+"\n "),a("el-link",{staticClass:"linkbtn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.copyLink)}}},[e._v("复制")])],1):e._e()]),e._v(" "),a("el-button",{staticClass:"btn",attrs:{slot:"reference",type:"primary"},on:{click:e.onCreateQRCode},slot:"reference"},[e._v("二维码")])],1)],1)]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"支付差价",prop:"name"}},[e.changeInfo?a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.editSpread))+"元")]):a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.spread))+"元")])])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.changeInfo&&1!==e.changeInfo.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/cancel",expression:"'subjectChange/cancel'"}],attrs:{type:"danger"},on:{click:e.cancel}},[e._v("取消订单")]):e._e(),e._v(" "),e.changeInfo?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/add",expression:"'subjectChange/add'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},s=[],n=(a("96cf"),a("1da1")),i=(a("7f7f"),a("5530")),o=(a("ac6a"),a("456d"),a("b85c")),l=a("d044"),c=a.n(l),u=a("f904"),m=a.n(u),d=(a("6612"),a("1cc7")),p=a("61f7"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),e.groupOptions.length?a("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.groupOptions,(function(t){return a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(e._f("moneyFormat")(t.price))+"元")])]),e._v(" "),e._l(t.subs,(function(t){return a("p",{key:t},[e._v(e._s(t))])}))],2)})),1):a("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.list,(function(t){return a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),t.groupPurchasePrice>0?a("span",[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+" 元")]):a("span",[e._v("免费")])])])})),1)],1)},h=[],b=a("2909"),g={props:["list","groupList"],data:function(){return{type:"list",checkAll:!1,checkeds:[],accessoriesByid:{},groupListById:{},selectMoney:0,isIndeterminate:!1}},watch:{checkeds:function(e){"list"===this.type?this.accessoriesByid:this.groupListById;var t=0;if("list"===this.type){var a,r=Object(o["a"])(e);try{for(r.s();!(a=r.n()).done;){var s=a.value,n=this.accessoriesByid[s];n&&(t+=parseFloat(n.groupPurchasePrice))}}catch(y){r.e(y)}finally{r.f()}}else{var i,l=Object(o["a"])(e);try{for(l.s();!(i=l.n()).done;){var c=i.value,u=this.groupListById[c];u&&(t+=parseFloat(u.price))}}catch(y){l.e(y)}finally{l.f()}}var m=[];if("list"!==this.type){var d,p=Object(o["a"])(e);try{for(p.s();!(d=p.n()).done;){var f=d.value,h=this.groupListById[f];if(h){var g=this.groupListById[f].goodsList;m=m.concat((g||[]).map((function(e){return e.id})))}}}catch(y){p.e(y)}finally{p.f()}}else m=Object(b["a"])(e);this.$listeners.change(m,t)}},mounted:function(){var e=this;this.$nextTick((function(){var t,a={},r=Object(o["a"])(e.list);try{for(r.s();!(t=r.n()).done;){var s=t.value;a[s.id]=s}}catch(u){r.e(u)}finally{r.f()}var n,i={},l=Object(o["a"])(e.groupList);try{for(l.s();!(n=l.n()).done;){var c=n.value;i[c.id]=c}}catch(u){l.e(u)}finally{l.f()}e.accessoriesByid=a,e.groupListById=i}))},computed:{groupOptions:function(){var e=this.groupList.map((function(e){return{name:e.name,price:e.price,id:e.id,subs:e.childGoodsList?e.childGoodsList.map((function(e){return e.name})):[]}}));return e.length&&(this.type="group"),e}},methods:{handleCheckAllChange:function(e){var t="list"===this.type?this.list:this.groupOptions,a=t.map((function(e){return e.id}));this.checkeds=e?a:[],this.isIndeterminate=!1},optionChange:function(e){var t="list"===this.type?this.list:this.groupOptions,a=e.length;this.checkAll=a===t.length,this.isIndeterminate=a>0&&a<t.length}}},y=g,v=(a("6ca4"),a("2877")),_=Object(v["a"])(y,f,h,!1,null,"72a63fe6",null),k=_.exports,F=a("267e"),S=function(e,t){var a=[],r={},s=[],n={},l=[],c={},u={};if(e){var m,d=e.musicGroupSubjectGoodsGroupList,p={},f=Object(o["a"])(d);try{for(f.s();!(m=f.n()).done;){var h=m.value;p[h.type]||(p[h.type]=[]),p[h.type].push(h)}}catch(j){f.e(j)}finally{f.f()}for(var b=Object.keys(p),g=0,y=b;g<y.length;g++){var v,_=y[g],k=Object(o["a"])(p[_]);try{for(k.s();!(v=k.n()).done;){var F=v.value;if("INSTRUMENT"===_){var S={},x={};try{S=JSON.parse(F.kitGroupPurchaseTypeJson)}catch(P){}try{x=JSON.parse(F.coursePurchaseTypeJson)}catch(P){}var T=Object(i["a"])(Object(i["a"])({},F),{},{kitGroupPurchaseTypeJsonParse:S,kitGroupPurchaseTypePrice:S[t]||0,coursePurchaseTypeJsonTypePrice:x[t]||0,_calculated_price:"FREE"===t?0:"LEASE"===t?F.depositFee:F.price});if(s.push(T),n[F.goodsIdList]=T,!p.ACCESSORIES){u[F.goodsIdList]||(u[F.goodsIdList]=[]);var O,I=F.goodsList[0].goodsList?F.goodsList[0].goodsList:[],w=Object(o["a"])(I);try{for(w.s();!(O=w.n()).done;){var C=O.value;u[F.goodsIdList].push(C),r[C.id]=C}}catch(j){w.e(j)}finally{w.f()}}}else"ACCESSORIES"===F.type&&(l.push(F),c[F.id]=F)}}catch(j){k.e(j)}finally{k.f()}}}return{accessories:a,accessoriesById:r,musicalGoods:s,musicalGoodsById:n,groupList:l,groupListById:c,accessoriesByGoods:u}},x={GROUP:"price",LEASE:"depositFee"},T={props:["detail","musicGroupId","voiceList"],components:{accessories:k},data:function(){return{typeAndprice:x,kitGroupPurchaseTypeFormater:F["kitGroupPurchaseType"],changeInfo:null,oldAllMoney:0,accessories:[],accessoriesByid:{},musicalGoods:[],musicalGoodsById:{},groupList:[],groupListById:{},accessoriesByGoods:{},selectAccessories:[],selectAccessoriesMoney:0,kitGroupPurchaseTypePrice:0,coursePurchaseTypeJsonTypePrice:0,form:{subjectId:"",accessories:"",musicalGoods:"",type:""},rules:{},item:{},originalMusicalGoods:"",originalAccessoriesGoods:"",originalAccessoriesPrice:0,originalMusicalPrice:0,originalCourseFee:0,musicGroupSubjectPlanFee:0,musicalPrice:0}},watch:{detail:function(){this.detail&&this.fetchDetail()},"form.musicalGoods":function(){this.$set(this.form,"type","")},"form.type":function(){this.musicalGoodsChange(this.form.musicalGoods)}},computed:{copyLink:function(){return this.changeInfo?Object(p["d"])()+"/#/change-voice?id="+this.changeInfo.id:""},filterVoiceList:function(){var e=this;return this.voiceList.filter((function(t){return t.subjectId!=e.detail.actualSubjectId}))},activeAccessories:function(){var e=this.form||{},t=e.musicalGoods;return t&&this.accessoriesByGoods[t]||[]},changeSubjectName:function(){var e="";if(this.item.changeSubjectId){var t,a=Object(o["a"])(this.voiceList);try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r.subjectId===this.item.changeSubjectId){e=r.subjectName;break}}}catch(s){a.e(s)}finally{a.f()}}return e},changeAccessoriesGoods:function(){var e=this.changeInfo||{},t=(e.changeAccessoriesGoods||[]).map((function(e){return e.name})).join(",");return t||"未选择教辅"},editSpread:function(){var e=this.changeInfo||{},t=(e.originalAccessoriesPrice||0)+(e.originalCourseFee||0)+(e.originalMusicalPrice||0);return(e.changeMusicalPrice||0)+(e.changeAccessoriesPrice||0)+(e.changeCourseFee||0)-t},spread:function(){var e=this.numFormat(this.musicalPrice+this.selectAccessoriesMoney+this.musicGroupSubjectPlanFee-this.originalAccessoriesPrice-this.originalMusicalPrice-this.originalCourseFee-this.coursePurchaseTypeJsonTypePrice-this.kitGroupPurchaseTypePrice);return e}},mounted:function(){ (this.detail),this.detail&&this.detail.userId&&this.fetchDetail()},methods:{copyUrl:function(e){m()(e),this.$message.success("复制成功")},fetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){var t=e.data;a.item=t||{},t&&(a.$set(a.form,"type",a.item.kitGroupPurchaseType),a.originalAccessoriesPrice=t.originalAccessoriesPrice,a.originalMusicalPrice=t.originalMusicalPrice,a.originalCourseFee=t.originalCourseFee,a.originalMusicalGoods=t.originalMusicalGoods&&t.originalMusicalGoods.name,a.originalAccessoriesGoods=(t.originalAccessoriesGoods||[]).map((function(e){return e.name})).join())},!this.detail.subjectChange){e.next=6;break}return e.next=4,Object(d["S"])({id:this.detail.subjectChange.id}).then((function(e){t(e),a.changeInfo=e.data}));case 4:e.next=9;break;case 6:return this.changeInfo=this.detail.subjectChange,e.next=9,Object(d["Cb"])({musicGroupId:this.musicGroupId,studentId:this.detail.studentId}).then(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),subjectChange:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s,n,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.form,"musicalGoods",""),a=null,!t){e.next=7;break}return e.next=5,Object(d["Gb"])({musicGroupId:this.musicGroupId,subjectId:t}).then((function(e){a=e.data,i.musicGroupSubjectPlanFee=e.data.musicGroupSubjectPlan.fee}));case 5:e.next=8;break;case 7:this.musicGroupSubjectPlanFee=0;case 8:for(s in r=S(a,this.item.kitGroupPurchaseType),r)r.hasOwnProperty(s)&&(n=r[s],this[s]=n);this.musicalGoodsChange();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),musicalGoodsChange:function(e){var t=this.musicalGoodsById[e];t?(this.musicalPrice=this.numFormat(t[x[this.form.type]]||0),this.coursePurchaseTypeJsonTypePrice=this.numFormat(t.coursePurchaseTypeJsonTypePrice),this.types=t.kitGroupPurchaseTypeJsonParse):(this.musicalPrice=0,this.coursePurchaseTypeJsonTypePrice=0,this.$set(this.form,"type",""))},accessoriesChange:function(e,t){this.selectAccessories=e,this.selectAccessoriesMoney=t},numFormat:function(e){var t=parseFloat(e);return isNaN(t)&&(t=0),parseFloat(t.toFixed(2))},onCreateQRCode:function(){var e=this;setTimeout((function(){e.$refs.qrCodeUrl.innerHTML="",e.qrcode=new c.a(e.$refs.qrCodeUrl,{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.a.CorrectLevel.H}),e.qrcode.makeCode(e.copyLink),e.codeUrl=e.copyLink}),500)},submit:function(){var e=this;this.$refs["form"].validate((function(t){var a;(e.detail.subjectId,t)&&Object(d["Dc"])({changeCourseFee:e.numFormat(e.musicGroupSubjectPlanFee-e.coursePurchaseTypeJsonTypePrice),changeAccessories:e.selectAccessories.join(",")||null,changeAccessoriesPrice:e.numFormat(e.selectAccessoriesMoney),changeMusicalPrice:e.numFormat(e.musicalPrice),originalCourseFee:e.originalCourseFee,originalMusicalPrice:e.originalMusicalPrice,originalMusical:e.item.originalMusical,originalAccessories:e.item.originalAccessories,originalAccessoriesPrice:e.originalAccessoriesPrice,cooperationOrganId:e.item.cooperationOrganId,kitGroupPurchaseType:"OWNED"===e.form.musicalGoods?e.form.musicalGoods:e.form.type,musicGroupId:e.musicGroupId,studentId:e.detail.studentId,changeMusical:"OWNED"===e.form.musicalGoods?0:e.form.musicalGoods,originalCost:e.item.originalCost,organId:e.item.organId,originalSubjectId:null===(a=e.detail)||void 0===a?void 0:a.actualSubjectId,changeSubjectId:e.form.subjectId}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("提交成功!")}))}))},cancel:function(){var e=this;this.$confirm("是否确认取消订单?","提示",{onfirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["Ec"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},O=T,I=(a("ebaf"),Object(v["a"])(O,r,s,!1,null,"f23a05fa",null));t["a"]=I.exports},"704d":function(e,t,a){"use strict";a("96cf");var r=a("1da1"),s=a("2909"),n=a("5530"),i=a("2f62"),o=a("1cc7"),l=new i["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(n["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(s["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var r,s,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.commit,s=t.state,e.prev=1,(null===(n=a.data)||void 0===n?void 0:n.musicGroupId)===s.musicGroup.id&&!a.force){e.next=8;break}return e.next=5,Object(o["Lb"])(a.data);case 5:return i=e.sent,r("updateBaseinfo",i),e.abrupt("return",Promise.resolve(i));case 8:return e.abrupt("return",Promise.resolve(s.res));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a){var r,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.commit,s=t.state,e.prev=1,!s.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(s.sounds));case 4:return e.next=6,Object(o["J"])(Object(n["a"])({},a.data));case 6:return i=e.sent,r("updateSound",i.data),e.abrupt("return",Promise.resolve(s.sounds));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}()}});t["a"]=l},"73b3":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("teambaseinfo"),e._v(" "),a("div",{staticClass:"wrap"},["look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},s=[],n=(a("1cc7"),a("80b0")),i=a("bc3a"),o=a.n(i),l=a("4328"),c=a.n(l),u=a("5f87"),m=a("3908"),d={components:{teambaseinfo:n["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),l=e.$route.query.id+"-"+o+"订货清单.xls";n.href=s,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),l=e.$route.query.id+"-"+o+"分发清单.xls";n.href=s,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))}}},p=d,f=(a("fc1a"),a("2877")),h=Object(f["a"])(p,r,s,!1,null,"546db682",null);t["a"]=h.exports},7472:function(e,t,a){"use strict";var r,s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cl-container"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"teamDetails-courseList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"courseStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},e._l(e.courseArray,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.classStatus,callback:function(t){e.$set(e.searchForm,"classStatus","string"===typeof t?t.trim():t)},expression:"searchForm.classStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"class"}},[a("el-select",{attrs:{placeholder:"班级名称",filterable:"",clearable:""},model:{value:e.searchForm.class,callback:function(t){e.$set(e.searchForm,"class","string"===typeof t?t.trim():t)},expression:"searchForm.class"}},e._l(e.classList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isSettlement"}},[a("el-select",{attrs:{placeholder:"是否结算",filterable:"",clearable:""},model:{value:e.searchForm.isSettlement,callback:function(t){e.$set(e.searchForm,"isSettlement","string"===typeof t?t.trim():t)},expression:"searchForm.isSettlement"}},[a("el-option",{attrs:{value:"0",label:"未结算"}}),e._v(" "),a("el-option",{attrs:{value:"1",label:"已结算"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"timer"}},[a("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"btnWraps"}),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.courseScheduleType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.courseScheduleStatus)))])]}}])},[e._v("s\n ")]),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签到"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签退"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"结算状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementTime?"已结算":"未结算"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否点名"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(t.row.isCallNames?"已点名":"未点名")+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"280px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("teacherAttendance/updateTeacherAttendance?t=568")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onMarkAttendance(t.row)}}},[e._v("补考勤")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&e.permission("studentAttendance/updateStudentAttendances?t=570")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCallName(t.row)}}},[e._v("点名表")]):e._e(),e._v(" "),!t.row.settlementTime&&e.permission("courseSchedule/classStartDateAdjust/teamCourseListInfo")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("courseSchedule/cleanAttendancecourseSchedule/classStartDateAdjust/teamCourseListInfo")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.clearAttend(t.row)}}},[e._v("清除考勤")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teamDetails-courseList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[e.courseVisible?a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.courseScheduleType&&"HIGH_ONLINE"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220,multiple:!0},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(),"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[a("el-select",{on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return a("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:e.nowTime+" - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-select",{attrs:{placeholder:"结束时间",disabled:"","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1):e._e(),e._v(" "),"HIGH_ONLINE"!=e.maskForm.courseScheduleType&&"MUSIC_NETWORK"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"教学地点",prop:"schoolId"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.schoolId,callback:function(t){e.$set(e.maskForm,"schoolId","string"===typeof t?t.trim():t)},expression:"\n maskForm.schoolId"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改时间",width:"400px","before-close":e.handleCloseTimer,visible:e.timerVisible},on:{"update:visible":function(t){e.timerVisible=t}}},[a("el-form",{attrs:{model:e.timerMask}},[a("el-form-item",{attrs:{label:"上课日期",rules:[{required:!0,message:"请选择日期",trigger:"blur"}]}},[a("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.timerMask.timer,callback:function(t){e.$set(e.timerMask,"timer","string"===typeof t?t.trim():t)},expression:"timerMask.timer"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.timerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchAdjustmentTime}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"补考勤",width:"400px",visible:e.markAttendance.status},on:{"update:visible":function(t){return e.$set(e.markAttendance,"status",t)}}},[a("el-form",[a("el-form-item",{attrs:{label:"签到状态"}},[e._v(e._s(e._f("attendanceType")(e.markAttendance.dataInfo.signInStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签到时间"}},[e._v(e._s(e.markAttendance.dataInfo.signInTime))]),e._v(" "),a("el-form-item",{attrs:{label:"签退状态"}},[e._v(e._s(e._f("attendanceOutType")(e.markAttendance.dataInfo.signOutStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签退时间"}},[e._v(e._s(e.markAttendance.dataInfo.signOutTime))])],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.markAttendance.status=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:1==e.markAttendance.dataInfo.signOutStatus&&1==e.markAttendance.dataInfo.signInStatus},on:{click:e.batchAdjustmentTime}},[e._v("确定补卡")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"点名表",width:"800px",visible:e.rollCall.status},on:{"update:visible":function(t){return e.$set(e.rollCall,"status",t)}}},[a("el-table",{attrs:{data:e.rollCall.gridData}},[a("el-table-column",{attrs:{align:"center",property:"userName",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"subjectName",label:"学员声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"到课状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentCallName")(t.row.status)))]}}])}),e._v(" "),e.rollCall.selectItem.settlementTime?e._e():a("el-table-column",{attrs:{align:"center",label:"操作",width:"240px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:function(a){return e.onChangeRollCall("TRUANT",t.row)}}},[e._v("未到")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"warning",round:""},on:{click:function(a){return e.onChangeRollCall("LEAVE",t.row)}}},[e._v("请假")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"success",round:""},on:{click:function(a){return e.onChangeRollCall("NORMAL",t.row)}}},[e._v("到课")])]}}],null,!1,3311584737)})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rollCall.total,page:e.rollCall.page,limit:e.rollCall.limit,"page-sizes":e.rollCall.page_size},on:{"update:total":function(t){return e.$set(e.rollCall,"total",t)},"update:page":function(t){return e.$set(e.rollCall,"page",t)},"update:limit":function(t){return e.$set(e.rollCall,"limit",t)},pagination:e.getCallName}})],1)],1)},n=[],i=(a("386d"),a("28a5"),a("96cf"),a("1da1")),o=a("5a0c"),l=a.n(o),c=a("333d"),u=a("7e78"),m=a("1cc7"),d=a("ec8a"),p=a("c466"),f=a("92e3"),h=a("99b4"),b=a("e3eb"),g=a.n(b),y={name:"tcourseList",data:function(){return{classTimeList:f["h"],courseArray:f["q"],typeVisible:!1,timerVisible:!1,courseVisible:!1,searchForm:{courseStatus:"",classStatus:"",timer:[],class:"",isSettlement:""},tableList:[],searchLsit:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},maskForm:{teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",type:"",timer:"",courseScheduleType:null,address:"",teachMode:"",schoolId:""},typeForm:{teacher:"",assistant:"",date:"",startTime:"",endTime:"",type:null,id:null},maskRules:{schoolId:[{required:!0,message:"请选教学地点",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},typeRules:{type:[{required:!0,message:"请选择课程类型",trigger:"blur"}]},teacherList:[],classList:[],activeCourseList:[],timerMask:{timer:""},markAttendance:{status:!1,dataInfo:{}},rollCall:{status:!1,gridData:[],selectItem:{},limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:"",schoolList:[],courseTimeList:{},typeTimeList:[]}},components:{pagination:c["a"]},created:function(){r=this},mounted:function(){var e=this;this.init(),Object(h["o"])({organId:this.$route.query.organId}).then((function(t){200==t.code&&(e.schoolList=t.data)}))},activated:function(){this.init()},methods:{init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,this.organId=this.$route.query.organId,e.prev=2,e.next=5,Object(m["tb"])({organId:this.organId});case 5:t=e.sent,this.courseTimeList=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:this.getList(),Object(m["mb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(a.classList=e.data)}));case 13:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}(),onMarkAttendance:function(e){this.markAttendance={status:!0,dataInfo:e}},onCallName:function(e){this.rollCall.page=1,this.rollCall.selectItem=e,this.getCallName()},getCallName:function(){var e=this.rollCall,t={page:e.page,rows:e.limit,courseScheduleId:e.selectItem.courseScheduleId};Object(m["E"])(t).then((function(t){var a=t.data;e.status=!0,200==t.code&&(e.gridData=a.rows,e.total=a.total)}))},onChangeRollCall:function(e,t){var a=this,r=this.rollCall,s={courseScheduleId:r.selectItem.courseScheduleId,studentAttendances:[{userId:t.studentId,status:e}]};Object(m["Nc"])(s).then((function(r){200==r.code?(a.$message.success("修改成功"),t.status=e,a.getList()):a.$message.error(r.msg)}))},permission:function(e,t){return Object(d["a"])(e,t)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.timer||(t.timer=[]);var a={classScheduleStatus:t.classStatus||null,classScheduleType:t.courseStatus||null,musicGroupId:this.teamid,startTime:t.timer[0]||null,endTime:t.timer[1]||null,page:this.rules.page,rows:this.rules.limit,classGroupId:t.class||null,isSettlement:t.isSettlement||null};Object(m["Y"])(a).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(e){for(var t in this.maskForm.teacher=parseInt(e.masterTeacherId),this.maskForm.courseScheduleType=e.courseScheduleType,this.courseTimeList)t==e.courseScheduleType&&(this.typeTimeList=this.courseTimeList[t].split(","));for(var a in this.maskForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[a].teacherRole&&this.maskForm.assistant.push(e.teachingTeachers[a].userId);this.maskForm.date=e.classDate,this.$set(this.maskForm,"startTime",e.startClassTimeStr.substring(0,5));var r=Object(p["b"])(e.classDate,e.startClassTimeStr,e.endClassTimeStr);this.maskForm.timer=r,this.maskForm.endTime=Object(p["a"])(e.classDate,e.startClassTimeStr,r),this.maskForm.id=e.courseScheduleId,this.maskForm.schoolId=e.schoolId,this.courseVisible=!0},removeSingleClass:function(e){var t=this;this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=e.courseScheduleId;Object(u["g"])({courseScheduleIds:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},removeCourses:function(){var e=this;if(this.activeCourseList.length<1)this.$message.error("请至少选择一节课");else{var t=[];t=this.activeCourseList.map((function(e){return e.courseScheduleId})),this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.join(",");Object(u["g"])({courseScheduleIds:a}).then((function(t){200==t.code&&(e.$message.success("删除成功"),e.getList())}))})).catch((function(){}))}},submitResetClass:function(){var e=this,t=this.maskForm,a=l()(t.date+" "+t.startTime).diff(new Date,"second");a<=0?this.$message.error("课程开始时间必须大于当前时间"):t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:"MUSIC",schoolId:t.schoolId};Object(m["lc"])(g()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){r.allowZeroSalary=!0,Object(m["lc"])(g()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1)}))}))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},handleClose:function(){this.courseVisible=!1,this.maskForm={teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",schoolId:null},this.$refs["maskForm"].resetFields()},handleSelectionChange:function(e){this.activeCourseList=e},checkSelectable:function(e){return"NOT_START"==e.courseScheduleStatus},batchAdjustmentTime:function(){var e=this,t=this.markAttendance.dataInfo,a={teacherId:t.masterTeacherId,courseScheduleId:t.courseScheduleId,signInStatus:1,signOutStatus:1};Object(m["Rc"])(a).then((function(t){200==t.code?(e.$message.success("补卡成功"),e.markAttendance.status=!1,e.getList()):e.$message.error(t.msg)}))},handleCloseTimer:function(){this.timerVisible=!1,this.timerMask.timer=""},resetTimer:function(){this.activeCourseList.length<1?this.$message.error("请至少选择一节课"):this.timerVisible=!0},resetType:function(e){for(var t in this.typeForm.type=e.courseScheduleType,this.typeForm.id=e.courseScheduleId,this.typeForm.teacher=parseInt(e.masterTeacherId),this.typeForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[t].teacherRole&&this.typeForm.assistant.push(e.teachingTeachers[t].userId);this.typeForm.date=e.classDate,this.$set(this.typeForm,"startTime",e.startClassTimeStr.substring(0,5)),this.typeForm.endTime=e.endClassTimeStr.substring(0,5),this.typeVisible=!0},submitResetType:function(){var e=this;this.$refs.typeForm.validate((function(t){if(t){var a=e.typeForm.assistant.join(",");if(a.length<=0);var r={actualTeacherId:e.typeForm.teacher,startClassTimeStr:e.typeForm.startTime,endClassTimeStr:e.typeForm.endTime,id:e.typeForm.id,type:e.typeForm.type,teachingTeacherIdList:a,classDate:e.typeForm.date};Object(m["lc"])(r).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.typeVisible=!1)}))}}))},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["s"])({courseScheduleIds:e.courseScheduleId}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},changeStartTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,e,t.maskForm.timer)}))},changeTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},filters:{studentCallName:function(e){var t={NORMAL:"到课",TRUANT:"未到",LEAVE:"请假",DROP_OUT:"退学","":"未到"};return t[e]}},watch:{"maskForm.timer":function(e){this.maskForm.endTime=Object(p["a"])(this.maskForm.date,this.maskForm.startTime,e)}},computed:{nowTime:function(){var e="04:30:00";return r.maskForm.date==l()(new Date).format("YYYY-MM-DD")&&(e=l()(new Date).format("HH:mm:ss")),e}}},v=y,_=(a("272e"),a("2877")),k=Object(_["a"])(v,s,n,!1,null,"78b28c4d",null);t["a"]=k.exports},7619:function(e,t,a){},"7a3c":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():a("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.hidePaymentPattern?e._e():a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},s=[],n=a("267e"),i=a("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney"],data:function(){return{paymentPatternTypeOptions:Object(i["b"])(n["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}},l=o,c=(a("2666"),a("2877")),u=Object(c["a"])(l,r,s,!1,null,"e3750f40",null);t["a"]=u.exports},"7a7c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACaZJREFUeAHtXGtsVMcVnnPv7joEY9LgtQlNHUCNkhbSJrgv1CjkQSq1UqiUBKtSklaJmgLGa+pgUwlVKlWrUtkLFK/tgPIjKqItcUr7p1X/hBqiVqqUQpQAaVNF5VFkbK9JgWJj1rt3+p27D9+7u3efc9c2+Er2zpyZOXPOd8+851wSFXx2SKn1vLrrITLo81LK+wT+SIhlQsgaQWKBlGIBi0Mk/ick/gRdlUKcAeFDwp/U5Hstm7a+u4PIqJTYkM/d51Oh0JIJcf0ZKekJ1LQGYNxRXo10GeWPEckjt4l5h/8TCAyWxy93aVcAWvr667eNj196RsbktyWJJ2Apem4xSkwlipEUR0inA7ffvujw2RdfnCiRk2MxpQD5e3uryRjbKAVtRRNa7FirCwlogkMk5C6pzd8X3rz5mqoqlAD06MCA59Tpv7eSlNvRjyxSJVwpfNB/XZJEP1u54gvdRx97LFoKD2uZsgHy9wYfFobRB2AesDKe7jCAOik0rTm8uf0v5chSMkAr+vt9I8Png1LIFvQxJfMpR/i8ZdGTk6CeuvqG9tNNTZG8+bNkKEmx+r49y2PRaD9GpMYsPGcgiY7rHk/TcHPbv4sVrmiA6kNdj8eE/B3mKQuLrWxa85O4ogt6ejjQ8edi5NCKyewPda6PSfmnWQcOK4kXyrKzDsXoXDBAtd1dL6MjPgTmvmIqmGF5fawD61KoXAU1MUY9AU7BgBYqwDTlMzDKfSsc2PZmvvrzAmT2OdysZrflZMMhohN9PV+flBMgc7SKTZ6YlX1ONkjSadxx695VuUY3xybD8xxzKJ9to1U6CLni3HFjusK6OmVzBIgngbNnnuOkXiF02RjXNXverE2Mlw/SkG/P2Blydl1Kp/KMW6NHsi1LMiyIF568trplwGFYeakEnU3d02DOAIhX5TNt4ZkmsytR1pl1T2dua2K8nyOMsbPIPK1bFulCVirOWyVCm7/Uup9ksyBzs+sWBYdfAhsGY2B9ISkL4m3SsWujZxTuBA74SGvWRdVVa4Wqw9f1G3dRVL6GbZeHVPDmncn51bXLktu3niRTcw9Z4TYpkD8wGGj/Z5K/i7+D/p6uN4QhlADEBsJYQN5fscwpgHiDXa0S1Obv2TUidHExjKMatbzj3Pw4QhIx4160je+p5J/AwgTI7IP4aMY8fVBYC0z+c9KI/VFEY79VyNbOKmocwnztDfQdy+0J5cUYC8aEuZgATciJZ/EW3DmaEVRXnrjOpQGMO7yBBZ/lpQCSJPlQz5UHbbr67v7d81Qzb9y/34txp8xDSGepEgedQtuB42Ah6RHnrOWnTIzQZ8rnYudwITJ2v52iPLaGsTHPyt18Eyw2yaiSEcYKgUHGKmtcfVjewfcINL5IoJ65nSOG/C9bKXWhzm3+UHCLlZYrjE27ZbWhzt/XvfaL+lQ+Kb+UCrsUYGw09BH3ucQ/xRY3NJ4ym3KKIh6U0uhcsn9vwxTJOWQIuRN2+JTHoCrOBZlxiCvXOZdQk8LYoP+pAECYfPWG9nw1JbZOP8eVFm/kRuSnKZpDoLYv2IjRaj2s8ODghi3nOVt93+7V+LnboYg6MgOEipep45iDE8VSTWqkueN9TOl/CVt4IdcJwyd7ehZR1MA8iq5hPvLjJHfMrzJW3ck0lb+MjYZJ0UKVTJ14oZk9Xf9q18pkelWd1ozV8wlcnOr1d3dlKOzft/feiBwfwEWEe3DG/hw2189w2SWh4P1sUUk+7v7KGsIbvIQ3eae7FcW544387dHFSx9+s6kpxpTa/Xvuokj0MNr6ajS5ozgcCHq8ntOxySiu0MhmnKt7cKVl40jrtgOcP76gDv8VALk8gnFtsFtsf8ByZXU86v5/WNFXjg6fSzWV0Q1tFxt8NWvQ3HaiL8Q5v/xDdHLyDMD5AWjvktBWJ8Fh6bDbwLdIKgIO14e6FsCCOm8g7LirzxlVP7CMLeHWjm4r308f7K65/N+JLkxanxWa58nRlrYT1vTaULBNSGO3lVaBcIRwajoKpCq+gwjz3dvgW9hxfMOGyaSi/p7gd/DafhQOdCxP0hr6+j5xPTq2D1bVlKRV6jfexMzbpJWqcqoevJQt5yJX3lu8L/jZKao9xGnjsbGT0wGOKQmwQR9EV+1iVSpGHwup/WRoY/sHTjVyGt7iK2iSo0553KXTVQ0dpzl8uluRnTsUPoXRqnG0tf039pTMWLilo99b5WtEmfczU92lMDYaxrIP3a3Gzh2j00c0z7t2aFPbWXuKc4xn0Hp11VrkqKisjI0GgStWKZrLhEfzrBt5+fvDznBkTxl6qTUsNH0dLOl69hzqqYyNxtf71bPOzpGk9sOLm9v+kT01P3W0Zeu/sHu1PX9ONTkYG419H9BR8/V+t58L/sUNoXIrucdb0wvTP1cun/zl6TJjo+2IO4Ycy1+gzBwa7Sr1Kq61Zp43oePstNJcCh9jbDDM85pDHnGpkjhb+FTouvi1qjp887RDEDo1wVTF18oniYkJEHvNINGwZlAcPja8qWNEFc8L333lY3ZiUcUvgw9eaAKT+LEPuxRhdHgrI6M6wlF1rBKcNKGeZ4I1g590szItiOnsUpRIV/5DmnxHNVPMcJXzTMpoxSIFEPtbYdwfSmZS+Ss93sKmEtIYx+y1oKao+9yZWTMGjEVSf+xhTT04bWg3pOiaoigIoT23tLT7EqOlAoZTLLATOYGFrLmRP0UtL4Q96I6RwLZgkkvKgpjAzmi8xE8mqvhFex5xAxxTXhJKLZ51ZwysetsA4ptV7IxmzVBqGKb6kU76NzWv+FqpPPKV83jpGx5dfxw9qJL+iHW33i7j+m1NjAl8kfH0qXdOYL/mAY6X+uDW6HasxHeWWr6YcnU9wRcMwzhQTJn0vLCekytWfnFVupdiBkBcUMU1YN7SEEJvpqroYLowKuMyCldyg/Zi47/0+wU5rgFnBcgEKRTsxulnQKUyM5UXkRYKB9ozjp5YXlsfZFWA3RjRAo9baTdnmI7Hdc2unSNAvLBkN0b0UleyF70JqOzMAh1zLaIdAWL12QuG3RgRLMkhdoZDGDFdNPP4seYEyAQJPp7o4Z9H2M3FbKWxZIe65/P5irFQeQHiTHHPPOIL1jcDSNCBNhbibci6O45inJj+JFwzD4LuS0+bJfEIW06h4LBORQHEBW41t/CiATJBmvuwAMOQ+5n7NEVufFKpcx83SUHhHJj7PI4zNraUuQ8s2eBwjsx9ossZm4yU1EfehFgbd3ko178Cp8Ak38bw+9as/chbBkoJwvr+fn1g9PyDs+kzgf8Hz2nY3WMBjb4AAAAASUVORK5CYII="},"7e28":function(e,t,a){"use strict";a("23ce")},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return o})),a.d(t,"t",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"v",(function(){return m})),a.d(t,"u",(function(){return d})),a.d(t,"n",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"D",(function(){return h})),a.d(t,"y",(function(){return b})),a.d(t,"x",(function(){return g})),a.d(t,"B",(function(){return y})),a.d(t,"g",(function(){return v})),a.d(t,"q",(function(){return _})),a.d(t,"z",(function(){return k})),a.d(t,"A",(function(){return F})),a.d(t,"s",(function(){return S})),a.d(t,"i",(function(){return x})),a.d(t,"m",(function(){return T})),a.d(t,"r",(function(){return O})),a.d(t,"a",(function(){return I})),a.d(t,"l",(function(){return w})),a.d(t,"o",(function(){return C})),a.d(t,"p",(function(){return j})),a.d(t,"k",(function(){return P})),a.d(t,"d",(function(){return L})),a.d(t,"c",(function(){return G})),a.d(t,"j",(function(){return D})),a.d(t,"b",(function(){return $})),a.d(t,"f",(function(){return A}));var r=a("b775"),s=a("4328"),n=a.n(s),i="/api-web";function o(e){return Object(r["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/teacher/get",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function b(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(r["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function v(e){return Object(r["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function _(e){return Object(r["a"])({url:i+"/teacher/add",method:"post",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/teacher/update",method:"post",data:n.a.stringify(e)})}function F(e){return Object(r["a"])({url:i+"/teacher/update1",method:"post",data:n.a.stringify(e)})}function S(e){return Object(r["a"])({url:i+"/teacherFreeTime/query",method:"get",params:e})}function x(e){return Object(r["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function T(e){return Object(r["a"])({url:i+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function O(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function I(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function w(e){return Object(r["a"])({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function j(e){return Object(r["a"])({url:i+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function P(e){return Object(r["a"])({url:i+"/sysTenantAccount/get",method:"get",params:e})}function L(e){return Object(r["a"])({url:i+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function G(e){return Object(r["a"])({url:i+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function D(e){return Object(r["a"])({url:i+"/teacher/queryStudent",method:"get",params:e})}function $(e){return Object(r["a"])({url:i+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function A(e){return Object(r["a"])({url:i+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"80b0":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},[a("el-option",{attrs:{label:"课程收费",value:0}}),e._v(" "),a("el-option",{attrs:{label:"系统收费",value:1}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,r){return a("el-option",{key:r,attrs:{label:t.userName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"isClass"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},s=[],n=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),i=a("ade3"),o=a("1cc7"),l=a("a488"),c=a("5a0c"),u=a.n(c),m=a("7676"),d=a.n(m),p=a("99b4"),f=a("641c"),h=a("92e3"),b=a("61f7"),g=a("879d"),y={components:{mergeMusic:g["a"],qrCode:f["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(i["a"])({classStatus:h["g"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(a=this.$helpers.lodash,r=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),a.isEqual(this.topFrom,r)||!r){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.gotoNext(t);case 2:return a=e.sent, (a),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return (e),"close"!=e&&(localStorage.removeItem("".concat(s.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,r=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==r&&void 0!==r&&r.section)this.topFrom=r,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Lb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var s,n=JSON.parse(localStorage.getItem("newTeambase"));n?this.topFrom=n:this.topFrom,null!==(s=this.topFrom)&&void 0!==s&&s.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["eb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Rb"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(p["z"])({organId:t}).then((function(e){200==e.code&&(s.cooperationList=e.data)})),Object(p["o"])({organId:t}).then((function(e){200==e.code&&(s.addList=e.data)})),Object(l["b"])().then((function(e){200==e.code&&(s.technician=e.data)})),e.prev=3,e.next=6,Object(o["O"])({organId:t,employeeRole:"EDUCATION"});case 6:a=e.sent,this.educationList=a.data,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3), (e.t0);case 13:return e.prev=13,e.next=16,Object(o["O"])({organId:t,employeeRole:"TEAM_TEACHER"});case 16:r=e.sent,this.bossList=r.data,e.next=23;break;case 20:e.prev=20,e.t1=e["catch"](13), (e.t1);case 23:Object(o["Jb"])({organId:t}).then((function(e){200==e.code&&(s.teacherList=e.data)}));case 24:case"end":return e.stop()}}),e,this,[[3,10],[13,20]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){},gotoNext:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){r.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(n,i){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(n){s.next=5;break}r.$message.error("请填写建团必要参数"),e(!1),s.next=16;break;case 5:if(r.$store.dispatch("topinfo",r.topFrom),"teamAudit"!=r.teamStatus){s.next=10;break}r.$emit("handleClick",{name:"2"}),s.next=16;break;case 10:return r.$emit("getName",r.topFrom.name),s.next=13,r.resetSubmit(t);case 13:a=s.sent, (a,"tempStatus"),e(a);case 16:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){a.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(i,l){var c,m;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(i){s.next=5;break}a.$message.error("请填写必要参数"),r(),s.next=26;break;case 5:c=null,s.t0=a.teamStatus,s.next="resetTeam"===s.t0?9:"newTeam"===s.t0?11:"teamList"===s.t0?13:"teamDraft"===s.t0?15:17;break;case 9:return c="PROGRESS",s.abrupt("break",17);case 11:return c="DRAFT",s.abrupt("break",17);case 13:return c=null,s.abrupt("break",17);case 15:return c="DRAFT",s.abrupt("break",17);case 17:if(m={},m.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:u()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:a.topFrom.type,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,educationalTeacherId:a.topFrom.teacher,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?u()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?u()(a.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):a.topFrom.paymentValidEndDate,organId:a.topFrom.section,schoolId:a.topFrom.address,id:a.teamid,directorUserId:a.topFrom.head,isClassroomLessons:a.topFrom.isClass,status:c,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType},"newTeam"==a.teamStatus){s.next=25;break}return s.next=22,Object(o["tc"])(m).then(function(){var r=Object(n["a"])(regeneratorRuntime.mark((function r(s){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:200==s.code&&(localStorage.setItem("".concat(a.teamid,"base"),JSON.stringify(a.topFrom)),a.$emit("getBaseInfo"),"teamDraft"==a.teamStatus?(a.$message.success("保存成功"),t||a.$emit("handleClick",{name:"2"}),e(!0)):a.$message.success("修改乐团成功"),e(!0));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 22:return s.abrupt("return",s.sent);case 25:Object(o["x"])(m).then((function(e){if(200==e.code){var t=a.$createElement;a.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新建乐团成功 "),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return a.$router.push({query:d()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){ (e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.$emit("handleClick",{name:"2"}),!0})).catch((function(){return a.$router.push({query:d()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){ (e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.init(),!0}))}}));case 26:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Bb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["Yb"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(o["D"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["C"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate,a.setBase(e))}))):a.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(b["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:d()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},v=y,_=(a("6193"),a("1400"),a("2877")),k=Object(_["a"])(v,r,s,!1,null,"76a299a1",null);t["a"]=k.exports},"879d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"merge-music"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?a("empty",{attrs:{desc:"暂未选择乐团"}}):a("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,r){return a("el-collapse-item",{key:r,staticClass:"item",attrs:{name:r},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"header"},[a("span",{staticClass:"title"},[a("span",[e._v(e._s(t.name))])]),e._v(" "),a("span",{staticStyle:{width:"20%"}},[a("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),a("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(r)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),a("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),a("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[a("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),a("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?a("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},s=[],n=(a("96cf"),a("1da1")),i=a("5530"),o=a("b85c"),l=(a("ac6a"),a("456d"),a("160b")),c=a("3078"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",staticStyle:{width:"100%"}},[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"musicGroupName"}},[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),a("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},m=[],d=(a("386d"),a("7f7f"),a("333d")),p={props:["visible","organId"],components:{pagination:d["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var a in e){var r={};r.id=e[a].id,r.name=e[a].name,t.push(r)}this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])(Object(i["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==a.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},f=p,h=(a("1aa8"),a("2877")),b=Object(h["a"])(f,u,m,!1,null,"64b6b690",null),g=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},v=[],_=(a("6762"),a("2fdb"),a("1672")),k={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_["a"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},F=k,S=Object(h["a"])(F,y,v,!1,null,null,null),x=S.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},O=[],I=a("1cc7"),w={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].userId);this.passed=t},removeStuden:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(c["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(I["Pb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},C=w,j=Object(h["a"])(C,T,O,!1,null,null,null),P=j.exports,L={props:["organId"],components:{selectMusic:g,selectItem:x,mergedStudents:P},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,a={},r=Object(o["a"])(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;a[s.id]?a[s.id]=Object(i["a"])(Object(i["a"])({},a[s.id]),s):a[s.id]=Object(i["a"])(Object(i["a"])({},s),{},{num:0})}}catch(n){r.e(n)}finally{r.f()}this.items=a},remove:function(e){var t=Object(i["a"])({},this.items),a=Object(i["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(i["a"])({},t),this.studentsByMusicId=Object(i["a"])({},a)},selected:function(e,t){var a=this.studentsByMusicId;a[t]||(a[t]=[]),a[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=a},merge:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(r=this.studentsByMusicId[a],t=t.concat(r));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},G=L,D=(a("f089"),Object(h["a"])(G,r,s,!1,null,"4c59032c",null));t["a"]=D.exports},9076:function(e,t,a){},"95e8":function(e,t,a){"use strict";a("2149")},a05b:function(e,t,a){},aa6f:function(e,t,a){},b133:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},s=[],n={props:["form"]},i=n,o=(a("4000"),a("2877")),l=Object(o["a"])(i,r,s,!1,null,"55ad3016",null);t["a"]=l.exports},b2df:function(e,t,a){},b3f6:function(e,t,a){},b4ac:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return i}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},n=function(e){return Object(r["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},i=function(e){return Object(r["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},ba30:function(e,t,a){},c34d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACM1JREFUeAHlnH9oVVUcwHtvm27kjwoXKkKspBGRuswEmTO1/pBI8UeWkKV/RGqipMU2Z7HAH5urkQqa+UeUQWiuhH6QYMtyQyxdKKKMyKW2TRtb+CNm7lef72Pn8fbe/fnuefdu88Dl3Ht+fL/f87nnfO859573Qnf5GHp6ekIlJSWPdnV1TQiHw7lcy5ETCoVGYMZwObjuIb5B2k3ia1w2cF7PeT3x6a1bt57j3LcQSrWm4uLibHQs6O7unkUDZ9JguU46IOMqMn4E8JGhQ4d+VVpa2pa0MAcVUwIIo4fcunVrHvqXcsyhQekObHFdBFi3qfQtx77MzMyv0dvpWohNBa2AKisrs1paWl6lt7yF3nE2urVmA+tPBJaPHTv24zVr1vynS7gWQAcOHEirq6tbSU95G8Pu12VcMnIA1Uy9UnzVXs7Fn3kKngHhY6YCZjdHnidLNFcGzgn81KotW7bUeRGdNKA9e/ZkXLhwoQzlb3AkLceL8XZ1gdTNUZaXl/fO4sWLu+zKG+Un1TAe1Q/wqN5Pr5lqJLS/pQHpWFpa2pLNmzc3urXNNaDCwsICFB4Czr1ulQVZHptbOJ7DN51wY0fYTeGioqL5KDk80OBIG7E5m6N6w4YNc9y0Oc1pYZzxchTso/wQp3X6YbkMbHqhoKDg92PHjp11Yp+jISY9BzhfINAxUCfKAyzTwUiYW1ZW9r2dDbaA6DkzmPgdRtBQO2EDLP9fpgGz7XySJaCNGzfmdHR0yDzingHWeEfmiuNmiTKJJUqTWQVTJy3znM7Ozv2DFY4AEcfNmvFzWQm4BsQkcBsCpphVHCzptLGAZdK7Zu0xHGJMBKfRe2qoZJhvJmwAp3cx3KbgtH+Lb0PCEJPuxix51x0ER5jIEJP1ZEKHSBh748ePX0vBV6TWHRbGVVdXN9bU1PRZ3PbpQRUVFXfzSC/xCobu2skj9HniD73KclC/kjJL0dXtoKxlEdpeumPHjj7TmT5v+tra2l5DwihLKTaZAociLzK/qKInVjGPkqfFCptqyWZXlpeXr5fKrBHvQvcn6Opz010KHtvc3LyMOntUveiYE3JNTU0NKBijMt3GCg7OrkrVRV4ISLuIdUOKwlG6gPSSBkgNWVlZD6vXt1HajY2NC73AwcgejFsSC0cMJ62H3rSKWOdwS4AjuuhNn6FnmZx7CDnt7e3PqvpRQCS8rBKTjEOM4clGdTVDMoSj9HKTn1DnHuIoi8gQ4xXAGB7tlxGY8FRLQkkZd7LYqJ6G4WYJh0X1dnSsMdLtJo0bKl9LRjMa/on0IOAsIkEHHLGjCF+wVU7ig8ee5AscsRnI8kpnvpxHAGH4bLnQGHRD8g2OYgCkCJMw3jrMxQyVoTHWBcl3OMKATjMzEjNuJwPopEYw8aK8+KRA4KgGMNl9JAypCSohRXGyPckOzgfcWM8O2arNyJ8owyvXqpCmPLeQnMBZq8k2UzHCxi9AYoRTSP0CTi+13BA+6DSkUj3MYu+SpU+SqUBs4dhzbJVhlfKeo3Riy3F5zI9QCT7Flj3JzAa/4fTaMVIAyc4uv4MpJCNDAoIjE8ZhQQESDo4gBQVHDGSIDY/MpOUioGD5lZY7KGtF+RoaWBBANwLSbvm0EpvEYfOqZDWxvCMPItwMCpAtHEUjYEg3BNB1ZYwfMQ1+X70mdaovKEgM8esCqMGpoV7LCRzesbxpJgeHvJNji1F+EJDQ2SAz6Xojg3SnOYGDLas5iu0gYdtu3faZyKuXxWrKATmFo4y0g0QvfN0PSKzm68Ps3TujDEtF7BaOskEgWb2Z9AMSgE6HJ06cKN+jrynDdMbJwomxwXQyieyeVEJC/tVNmzadD8v2WC5+ijFKy6kGOMqOoCBViwHyFJMJ2Q8S6woa4SiTfIekmEQA8auZgyR4/rYtrUkBHN8h0Qb57HNIFEcAyRY0nKLnXpRCOFFITAFkd39CQLc2nwSL71jitIqSCKBebZ8maHWXIJ+eZdOVYZBJIIpXG2a6SERGoRUkRJna4FQN7YiyiALig/1BBFxxKsSgnHx6PsCjeV58ni44Sq4ZJPQsoUy0caq8mxg4F3Nycr5RdaJfU48ePdo5ffp0AfaMykwiFnkL8/Pzz9TW1kYmoLrhxNiUj71ZbHg6ImkCB3D7OI22Kaas41MAlSAr+nOFyLd5VRtfNIydDRe5vk+lJRl3MMlajMGzOTwPKysbaFA5+fJeXQecZrYFPwiHW0pnH0CSCL31KHtPFfAQy8v3BPke5FlV1aIL2CuZfPbZphP1QUo7BLdT8Ky69hD7BUdM9KyLNv9K2z+Kb6+hYHaETcfh/hxfeLBeA6ebNelUfk92Mr6Nhg4Nx3cJBziKwk/GVxiM1wDaxrzH8OmXMMQUALqbbI6sU9eDNQZOLW3daNY+wyGmCvNjlofYcV+H0/b746IyIaUxcFoZWnkMrctmikx7kFRguf8Hj+sFCJK1yWAL7bRrnhUcabChD4olwS/zGpj4yf9mLCTdssfF1uvP57RFNrovwu/Yrj9tAUlDcdrngHQFwbI9dqBDkp+HL2e+I0sr2+AIkEgB0ikgnZduyaXjerYW+FugHXWL+OzkCI6Y5ro3MNOehdP+krojRcAACm0Mq7kMq1o3Nls6aSNBdM3qjIyMyfSkU0b5/TENW49jV55bONIW14CkkjzdmDtM447s5NJ0w5OUDTjIO6oKbC1gWF1KxhbXQyxeCe9/8kmTzQWPxecFfF2Xnp6+ksf4L17sSKoHxSrkztTwsu1xetN67lbkNWVsfgDnf6NzNTZN8QpHbPfcg2IByA/yWltbV+DE5fv76Ng8H87/4iZVZGdn7123bp08rbQErYCURbxwyuTn1vLzqqWkPc2RkmkBPbYTHYeJ5S+65P/MtM/4UwJIgZK495dEizidxfEUh9c/KWhDxlGOIwyjKqDIkEpZSDmgWMtpTPj27duTeNc0gTufy51P+JvA3vKy602Oa5SL/E0gZSN/E4hfOc25b0/O/wFGCwAhyqFeLQAAAABJRU5ErkJggg=="},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return m})),a.d(t,"b",(function(){return d})),a.d(t,"a",(function(){return p}));a("a481");var r=a("5a0c"),s=a.n(r),n=a("56d7");function i(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),s=864e5;return new Date(r-s)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,s=new Date(r),n=s.getFullYear(),i=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),l=n+"-"+i+"-"+o;return l}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var s=t+24*r*60*60*1e3,n=new Date(s),i=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=i+"-"+o+"-"+l;return c}function m(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function d(e,t,a){return Math.abs(s()(e+" "+t).diff(e+" "+a,"Minute"))}function p(e,t,a){var r=s()(e+" "+t).add(a,"minute");return (),s()(e+" 23:59").isBefore(r)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},c477:function(e,t,a){},d349:function(e,t,a){"use strict";a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"f",(function(){return m})),a.d(t,"c",(function(){return d})),a.d(t,"s",(function(){return p})),a.d(t,"D",(function(){return f})),a.d(t,"E",(function(){return h})),a.d(t,"h",(function(){return b})),a.d(t,"l",(function(){return g})),a.d(t,"g",(function(){return y})),a.d(t,"m",(function(){return v})),a.d(t,"v",(function(){return _})),a.d(t,"t",(function(){return k})),a.d(t,"u",(function(){return F})),a.d(t,"i",(function(){return S})),a.d(t,"j",(function(){return x})),a.d(t,"p",(function(){return T})),a.d(t,"k",(function(){return O})),a.d(t,"w",(function(){return I})),a.d(t,"F",(function(){return w})),a.d(t,"n",(function(){return C})),a.d(t,"x",(function(){return j})),a.d(t,"A",(function(){return P})),a.d(t,"y",(function(){return L})),a.d(t,"z",(function(){return G})),a.d(t,"r",(function(){return D})),a.d(t,"b",(function(){return $})),a.d(t,"C",(function(){return A})),a.d(t,"q",(function(){return M})),a.d(t,"B",(function(){return R})),a.d(t,"a",(function(){return q})),a.d(t,"o",(function(){return N}));var r=a("15fd"),s=a("b775"),n=a("829b"),i=a("4328"),o=a.n(i),l="/api-web";function c(e){return Object(s["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(s["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function m(e){return Object(s["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function d(e){return Object(s["a"])({url:l+"/area/queryChild",method:"get",params:e})}function p(e){return Object(s["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(s["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function h(e){return Object(s["a"])({url:l+"/subject/upset",method:"post",data:e})}function b(e){return Object(s["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function g(e){return Object(s["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(s["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function v(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function k(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function F(e){return Object(s["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(s["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(s["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function T(e){return Object(s["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function O(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function I(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function w(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function C(e){var t=e.id,a=Object(r["a"])(e,["id"]);return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function j(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function G(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function D(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function $(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function A(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function M(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function R(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:e})}function q(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function N(e){return Object(n["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:e})}},da35:function(e,t,a){},e3de:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"t-container"},[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"老师姓名 编号 手机号",clearable:""},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"teacherId",label:"老师编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherId)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.teacherPhone)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"jobNature",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("jobNature")(t.row.jobNature))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"执教班级"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"num",label:"出勤次数"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":e.saveKey,sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)},s=[],n=(a("7f7f"),a("386d"),a("333d")),i=a("1cc7"),o={name:"tteacherList",data:function(){return{searchForm:{status:"",teachingClass:"",attendance:"",search:""},searchLsit:[],tableList:[],mixCourseList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]}}},components:{pagination:n["a"]},mounted:function(){this.teamid=this.$route.query.id,this.getList()},activated:function(){this.teamid=this.$route.query.id,this.getList()},computed:{saveKey:function(){return"teamDetails-teacherList|id|"+this.$route.query.id}},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;Object(i["Qb"])({musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,search:this.searchForm.search||null}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},gotoRecord:function(){this.$router.push({path:"/business/teamTeacherRecord",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name}})}}},l=o,c=(a("6814"),a("2877")),u=Object(c["a"])(l,r,s,!1,null,null,null);t["a"]=u.exports},ebaf:function(e,t,a){"use strict";a("a05b")},f068:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.name},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("p",{staticClass:"msg",class:"PROGRESS"==e.status?"ing":""},[a("img",{attrs:{src:"PROGRESS"==e.status?e.stepImgs.PROGRESS:e.stepImgs.PAUSE,alt:""}}),e._v("\n "+e._s("PROGRESS"==e.status?"进行中":"已结束"))]),e._v(" "),a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/teamDetails/baseInfo")?a("el-tab-pane",{attrs:{label:"基本信息",lazy:"",name:"1"}},["1"==e.activeIndex?a("baseinfo",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/teacherList")?a("el-tab-pane",{attrs:{label:"老师列表",lazy:"",name:"2"}},["2"==e.activeIndex?a("teacherList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/studentList")?a("el-tab-pane",{attrs:{label:"学员列表",lazy:"",name:"3"}},["3"==e.activeIndex?a("studentList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/classList")?a("el-tab-pane",{attrs:{label:"班级详情",lazy:"",name:"4"}},["4"==e.activeIndex?a("classList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamDetails/courseList")?a("el-tab-pane",{attrs:{label:"课表详情",lazy:"",name:"5"}},["5"==e.activeIndex?a("courseList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e()],1)],1)])},s=[],n=(a("7f7f"),a("51c1")),i=a("e3de"),o=a("7472"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"c-container"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/coursePostpone",expression:"'courseSchedule/coursePostpone'"}],staticClass:"newBand",on:{click:e.postpone}},[e._v("课程顺延")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("classType")(t.row.classGroupType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacher",label:"主教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subTeacher",label:"助教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentClassTimes",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studyNum",label:"在读人数"}}),e._v(" "),e.permission("courseSchedule/coursePostpone")?a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.signPostpone(t.row)}}},[e._v("顺延课程")])],1)]}}],null,!1,433730982)}):e._e()],1),e._v(" "),a("pagination",{attrs:{sync:"","save-key":"teamDetails-classList",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程顺延",visible:e.postponeVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.postponeVisible=t}}},[a("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[a("el-form-item",{attrs:{label:"开始日期",prop:"stopTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.stopTime,callback:function(t){e.$set(e.postponeForm,"stopTime","string"===typeof t?t.trim():t)},expression:"postponeForm.stopTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺延日期",prop:"resetTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.options,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.resetTime,callback:function(t){e.$set(e.postponeForm,"resetTime","string"===typeof t?t.trim():t)},expression:"postponeForm.resetTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"跳过节假日"}},[a("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1)],1),e._v(" "),a("span",{staticStyle:{color:"#F56C6C"}},[e._v("注意:将会把所选班级的课表,「开始日期」之后的全部未开始课程;\n 调整到「顺延日期」之后重新排课,可以勾选跳过节假日;")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.postponeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},c=[],u=a("333d"),m=a("1cc7"),d=a("ec8a"),p={name:"tclassList",data:function(){return{postponeVisible:!1,searchLsit:[],searchForm:{name:"",status:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},postponeForm:{stopTime:"",resetTime:"",holiday:!1},postponeRules:{stopTime:[{required:!0,message:"请选择开始日期",trigger:"blur"}],resetTime:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]},activeClass:"",activeList:[],options:this.processDate(),bigin:this.beginDate()}},components:{pagination:u["a"]},created:function(){},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(d["a"])(e)},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(m["V"])({search:this.teamid,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(){this.$router.push({path:"/business/resetClass",query:{id:this.teamid}})},postpone:function(){this.activeList.length<=0?this.$message.error("请至少选择一个班级"):this.postponeVisible=!0},signPostpone:function(e){this.activeClass=e.classGroupId,this.postponeVisible=!0},handleClose:function(){this.postponeVisible=!1,this.$refs["postponeForm"].resetFields()},handleSelectionChange:function(e){this.activeList=e;var t=e.map((function(e){return e.classGroupId}));this.activeClass=t.join(",")},submitInfo:function(){var e=this;this.$refs["postponeForm"].validate((function(t){if(t){var a=e.activeClass,r=e.postponeForm.stopTime,s=e.postponeForm.resetTime,n=e.postponeForm.holiday,i={classGroupIds:a,pauseDate:r,recoveryDate:s,skipHoliday:n};Object(m["v"])(i).then((function(t){200==t.code&&e.$message.success("修改成功")}))}}))},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.postponeForm.stopTime?new Date(e.postponeForm.stopTime).getTime()>t.getTime():t.getTime()>Date.now()}}},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}}},f=p,h=a("2877"),b=Object(h["a"])(f,l,c,!1,null,null,null),g=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"-","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.searchForm.date,callback:function(t){e.$set(e.searchForm,"date","string"===typeof t?t.trim():t)},expression:"searchForm.date"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.masterTeacherName)+"("+e._s(t.row.masterTeacherId)+")\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",e._l(t.row.teachingTeachers,(function(t,r){return"TEACHING"==t.teacherRole?a("p",{key:r},[e._v(" "+e._s(t.userName)+"("+e._s(t.userId)+")")]):e._e()})),0)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/queryTeacherSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调整")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课酬调整",width:"800px",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.activeTeacherList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"老师姓名",prop:"teacherName"}}),e._v(" "),a("el-table-column",{attrs:{label:"老师角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程课酬",prop:"expectSalary"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/updateTeacherCoursesSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetTeacher(t.row)}}},[e._v("操作")]):e._e()],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{width:"500px",title:"调整",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[a("el-form",{ref:"teacherMask",attrs:{model:e.teacherMask,rules:e.teacherRules}},[a("el-form-item",{attrs:{label:"调整范围",prop:"radio"}},[a("el-radio",{attrs:{label:"all"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("仅限本次")])],1),e._v(" "),a("el-form-item",{attrs:{label:"课程课酬",prop:"salary"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.teacherMask.salary,callback:function(t){e.$set(e.teacherMask,"salary","string"===typeof t?t.trim():t)},expression:"teacherMask.salary"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.innerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetSalary}},[e._v("确 定")])],1)],1)],1)],1)},v=[],_=a("8018"),k={name:"tsalaryList",data:function(){return{dialogTableVisible:!1,innerVisible:!1,searchForm:{date:""},pickerOptions:{firstDayOfWeek:1},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchLsit:[],activeTeacherList:[{1:1}],teacherMask:{salary:"",subsidy:"",radio:""},courseScheduleId:"",teacherRules:{salary:[{required:!0,message:"请输入课程课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],radio:[{required:!0,message:"请选择调整范围",trigger:"blur"}]},tempSelectRow:{}}},components:{pagination:u["a"]},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(d["a"])(e)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;this.teamid=this.$route.query.id,this.searchForm.date||(this.searchForm.date=[]);var t={musicGroupId:this.teamid,startTime:this.searchForm.date[0]||null,endTime:this.searchForm.date[1]||null,page:this.rules.page,rows:this.rules.limit};Object(m["X"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},setCourseInfo:function(e){var t=this;this.tempSelectRow=e,Object(m["Kb"])({courseScheduleId:e.courseScheduleId}).then((function(a){200==a.code&&(t.dialogTableVisible=!0,t.courseScheduleId=e.courseScheduleId,t.activeTeacherList=a.data)}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},resetSalary:function(){var e=this,t=this;this.$refs["teacherMask"].validate((function(a){a?Object(_["B"])({courseScheduleId:e.courseScheduleId,salary:e.teacherMask.salary,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(a){200==a.code&&(e.$message.success("修改成功"),e.teacherMask={salary:"",subsidy:"",radio:""},e.innerVisible=!1,t.setCourseInfo(e.tempSelectRow))})):e.$message.error("请填写必要参数")}))}}},F=k,S=Object(h["a"])(F,y,v,!1,null,null,null),x=S.exports,T=a("73b3"),O={name:"teamDetail",data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:a("7a7c"),PAUSE:a("c34d")},status:""}},mounted:function(){this.activeIndex="1",this.init()},activated:function(){this.activeIndex="1",this.init()},methods:{permission:function(e){return Object(d["a"])(e)},init:function(){var e=this;this.$nextTick((function(t){e.status=e.$route.query.status,e.teamid=e.$route.query.id,e.name=e.$route.query.name}))},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})}},components:{studentList:n["a"],teacherList:i["a"],courseList:o["a"],classList:g,salaryList:x,baseinfo:T["a"]}},I=O,w=(a("103d"),Object(h["a"])(I,r,s,!1,null,"1079db74",null));t["default"]=w.exports},f089:function(e,t,a){"use strict";a("054c")},fc1a:function(e,t,a){"use strict";a("ba30")}}]);
- >>>>>>> 05/08permission
|