1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48901791"],{"1a42":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{ref:"extendForm",attrs:{"label-width":"110px",model:e.extendForm,rules:e.extendRule}},[n("el-form-item",{attrs:{label:"家长会时间",prop:"meetingDate"}},[n("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime","picker-options":e.applyDates,placeholder:"请选择家长会时间"},model:{value:e.extendForm.meetingDate,callback:function(t){e.$set(e.extendForm,"meetingDate","string"===typeof t?t.trim():t)},expression:"extendForm.meetingDate"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"家长会地址",prop:"address"}},[n("el-input",{attrs:{placeholder:"请输入家长会地址"},model:{value:e.extendForm.address,callback:function(t){e.$set(e.extendForm,"address",t)},expression:"extendForm.address"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"短信内容"}},[n("p",{staticClass:"msgP",domProps:{innerHTML:e._s(e.sysMsgStr)}})]),e._v(" "),n("p",{staticStyle:{color:"red"}},[e._v(e._s(e.msg))])],1)],1)},r=[],s={props:["extendForm","sysMsgStr","msg"],data:function(){return{extendRule:{meetingDate:[{required:!0,message:"请选择家长会时间",trigger:"change"}],address:[{required:!0,message:"请输入家长会地址",trigger:"blur"}]}}},methods:{applyDates:function(){return{firstDayOfWeek:1,disabledDate:function(e){return end?new Date(end).getTime()-864e5>=e.getTime():e.getTime()+864e5<Date.now()}}}}},i=s,o=n("2877"),c=Object(o["a"])(i,a,r,!1,null,"0f240446",null);t["a"]=c.exports},"1b32":function(e,t,n){"use strict";n("58f6")},3078:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"o",(function(){return d})),n.d(t,"n",(function(){return m})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return f})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"l",(function(){return g}));var a=n("829b"),r=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},s=function(e){return Object(a["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},i=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},l=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getRegisterOrPreList",params:e,method:"get",requestType:"json"})},d=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/setNoneCloudTeacher",params:e,method:"get",requestType:"json"})},m=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/setCloudTeacherToFailed",params:e,method:"post",requestType:"json"})},p=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},f=function(e){return Object(a["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})},b=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/queryPage",params:e,method:"get",requestType:"form"})},h=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat",params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/sysMessageConfig/getWithType",params:e,method:"get",requestType:"form"})},g=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/sendParentMeetingNotice",params:e,method:"post",requestType:"form"})}},"358f":function(e,t,n){},"3efb":function(e,t,n){"use strict";n("c461")},5068:function(e,t,n){"use strict";n("a36b")},"589d":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.permission("/initiationList")?n("el-tab-pane",{attrs:{label:"启蒙课问卷",name:"first"}},["first"==e.activeName?n("initiationList",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamForecastName")?n("el-tab-pane",{attrs:{label:"预报名信息",name:"second"}},["second"==e.activeName?n("forecastName",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1):e._e()],1)],1)},r=[],s=n("d80b"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"forecastName"},[n("div",{staticClass:"btnList"},[e.isedit?n("auth",{attrs:{auths:["musicEnlightenmentQuestionnaire/sendParentMeetingNotice"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.extendPaymentStatus=!0}}},[e._v("启蒙课家长会通知")])],1):e._e(),e._v(" "),e.isedit?n("auth",{attrs:{auths:["initiationList/forecastLink"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codeStatus=!0}}},[e._v("启蒙课问卷")])],1):e._e(),e._v(" "),n("auth",{attrs:{auths:["export/musicEnlightenmentQuestionnaires"]}},[n("el-button",{attrs:{type:"primary"},on:{click:e.downloadFile}},[e._v("启蒙课问卷导出")])],1),e._v(" "),n("auth",{attrs:{auths:["musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subjectVisible=!0}}},[e._v("启蒙课问卷统计")])],1)],1),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),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(" "),n("el-form-item",{attrs:{prop:"currentGradeNum"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择年级"},model:{value:e.searchForm.currentGradeNum,callback:function(t){e.$set(e.searchForm,"currentGradeNum","string"===typeof t?t.trim():t)},expression:"searchForm.currentGradeNum"}},e._l(e.gradeList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"teacherRecommandSubjectId"}},[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"老师推荐声部"},model:{value:e.searchForm.teacherRecommandSubjectId,callback:function(t){e.$set(e.searchForm,"teacherRecommandSubjectId",t)},expression:"searchForm.teacherRecommandSubjectId"}},e._l(e.subjectList,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"musicalInstrumentsLearning"}},[n("el-select",{attrs:{clearable:"",placeholder:"是否正在学习某乐器"},model:{value:e.searchForm.musicalInstrumentsLearning,callback:function(t){e.$set(e.searchForm,"musicalInstrumentsLearning",t)},expression:"searchForm.musicalInstrumentsLearning"}},[n("el-option",{attrs:{value:"true",label:"是"}}),e._v(" "),n("el-option",{attrs:{value:"false",label:"否"}})],1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"teacherRecommandSubjectId",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(-1!=t.row.teacherRecommandSubjectId?t.row.subjectName:"无")+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"musicalInstrumentsLearning",label:"是否在学习某件乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.musicalInstrumentsLearning?"是":"否")+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"userName",label:"目前所学乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.musicalInstrumentsLearning?t.row.musicalInstrumentsName:"否")+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"userName",label:"报名参加管乐团家长会了解相关情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.joinParentMeeting?"是":"否")+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注",width:"240px"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("overflow-text",{attrs:{width:"200px",text:e.row.remark}})]}}])})],1),e._v(" "),n("pagination",{attrs:{sync:"",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.getList}})],1)],1),e._v(" "),n("qr-code",{attrs:{title:"启蒙课问卷",codeUrl:e.codeUrl,ispreLook:!0},on:{preLook:e.preLook},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),n("qr-code",{attrs:{title:"预报名详情",codeUrl:e.detailUrl},model:{value:e.codedetailStatus,callback:function(t){e.codedetailStatus=t},expression:"codedetailStatus"}}),e._v(" "),n("el-dialog",{attrs:{title:"启蒙课家长会通知",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t},close:function(t){return e.onClose("extendForm")}}},[e.extendPaymentStatus?n("parentsMeeting",{ref:"extendForm",attrs:{extendForm:e.extendForm,sysMsgStr:e.sysMsgStr,msg:"确认后该短信将发送给已填写启蒙课问卷且【报名参加管乐团家长会了解相关情况】选择【是】的学员"}}):e._e(),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1),e._v(" "),e.subjectVisible?n("el-dialog",{attrs:{title:"启蒙课统计",width:"600px","close-on-click-modal":!1,visible:e.subjectVisible},on:{"update:visible":function(t){e.subjectVisible=t}}},[e.subjectVisible?n("intention-model",{on:{close:function(t){e.subjectVisible=!1}}}):e._e()],1):e._e(),e._v(" "),n("el-dialog",{attrs:{title:"预览",width:"500px","close-on-click-modal":!1,"append-to-body":"",visible:e.preLookVisible},on:{"update:visible":function(t){e.preLookVisible=t}}},[n("iframe",{attrs:{width:"100%",height:"600px",src:e.codeUrl+"&look=true",frameborder:"0"}})])],1)},o=[],c=(n("28a5"),n("db72")),u=(n("386d"),n("c80c")),l=n("75fc"),d=(n("96cf"),n("3b8d")),m=(n("7f7f"),n("333d")),p=n("641c"),f=n("ec8a"),b=n("61f7"),h=n("adb21"),v=n("4edf"),g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[n("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.subjectName?t.row.subjectName:"无")+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"userNum",align:"center",label:"人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userNum)+"人\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"learningUserNum",align:"center",label:"在学乐器人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.learningUserNum)+"人\n ")]}}])})],1)],1)},_=[],y=n("3078"),j={data:function(){var e=this.$route.query;return{list:[],musicGroupId:e.id}},mounted:function(){this.FetchList()},methods:{FetchList:function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(){var t;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["f"])({musicGroupId:this.musicGroupId});case 2:t=e.sent,this.list=t.data;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},x=j,w=(n("5068"),n("2877")),k=Object(w["a"])(x,g,_,!1,null,"213bbf36",null),S=k.exports,I=n("1cc7"),O=n("1a42"),F={name:"forecastName",components:{pagination:m["a"],qrCode:p["a"],visitModel:v["a"],intentionModel:S,parentsMeeting:O["a"]},props:["isedit"],data:function(){var e=this.$route.query,t=sessionStorage.getItem("tenantConfig");t=t?JSON.parse(t):{};var n=t.tenantId||0;return{codedetailStatus:!1,teamName:e.name||null,codeStatus:!1,musicGroupId:e.id,codeUrl:Object(b["d"])()+"/project/forecastName/initiation.html?musicGroupId="+e.id+"&tenantId="+n,detailUrl:Object(b["f"])()+"/#/preApplySubject?musicGroupId="+e.id+"&tenantId="+n,searchForm:{search:null,currentGradeNum:null,subjectId:null,teacherRecommandSubjectId:null,selectionSubjectId:null,musicalInstrumentsLearning:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},visitVisible:!1,subjectVisible:!1,visitDetail:null,extendPaymentStatus:!1,extendForm:{meetingDate:null,address:null},extendRule:{meetingDate:[{required:!0,message:"请选择家长会时间",trigger:"change"}],address:[{required:!0,message:"请输入家长会地址",trigger:"blur"}]},gradeList:[],preLookVisible:!1,sysMsg:"",subjectList:[]}},mounted:function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setSubjects");case 2:this.subjectList=Object(l["a"])(this.selects.subjects),this.subjectList.push({id:-1,name:"无"}),this.init();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(){var t,n,a=this;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,Object(I["rb"])({musicGroupId:this.teamid}).then((function(e){var t=e.data;if(a.gradeListObj=e.data,200==e.code&&t)for(var n in a.gradeList=[],t)a.gradeList.push({value:n,label:t[n]})})),e.next=4,Object(y["i"])({type:"STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE"});case 4:n=e.sent,this.sysMsg=(null===(t=n.data)||void 0===t?void 0:t.content)||"",this.getList();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),permission:f["a"],onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},search:function(){this.pageInfo.page=1,this.getList()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},downloadFile:function(){var e=this.searchForm;Object(h["a"])(this,{url:"/api-web/export/musicEnlightenmentQuestionnaires",params:Object(c["a"])(Object(c["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"启蒙课问卷.xls"},"是否确认导出报表?")},getList:function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(){var t;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(y["e"])(Object(c["a"])(Object(c["a"])({},this.searchForm),{},{musicGroupId:this.musicGroupId,page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.pageInfo.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}(),onPaymentGroup:function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(t){var n=this;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.$confirm("您是否确定开启乐团缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(d["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["d"])({isCheckStudentNum:1!=t,musicGroupId:n.musicGroupId});case 2:e.sent,n.$store.dispatch("delVisitedViews",n.$route),n.$router.push({path:"/teamList"});case 5:case"end":return e.stop()}}),e)}))))}catch(a){}case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addVisited:function(e){this.visitVisible=!0,this.visitDetail={musicGroupId:e.musicGroupId,overview:"",purpose:"",userId:e.userId,type:"",visitTime:"",visitType:"",feedback:"",realName:e.userName}},onClose:function(e){this.extendForm={meetingDate:null,address:null}},onExtendPayment:function(e){var t=this;this.$refs[e].$refs[e].validate(function(){var e=Object(d["a"])(Object(u["a"])().mark((function e(n){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=12;break}return e.prev=1,e.next=4,t.$confirm("您是否确定发送家长会通知?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:return e.next=6,Object(y["l"])(Object(c["a"])(Object(c["a"])({},t.extendForm),{},{musicGroupId:t.musicGroupId}));case 6:t.$message.success("家长会通知已发送"),t.extendPaymentStatus=!1,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](1);case 12:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}())},applyDates:function(){return{firstDayOfWeek:1,disabledDate:function(e){return end?new Date(end).getTime()-864e5>=e.getTime():e.getTime()+864e5<Date.now()}}},preLook:function(e){this.preLookVisible=!0}},computed:{sysMsgStr:function(){var e=this.sysMsg.split("{}");return 3==e.length?"".concat(e[0],'<span style="color:red">"').concat(this.extendForm.meetingDate?this.extendForm.meetingDate:"--",'"</span>').concat(e[1],'<span style="color:red">"').concat(this.extendForm.address?this.extendForm.address:"--",'"</span>\n ').concat(e[2]):""}}},L=F,N=(n("ae2c"),Object(w["a"])(L,i,o,!1,null,"0c1cc214",null)),$=N.exports,T={components:{forecastName:s["a"],initiationList:$},data:function(){return{activeName:"first",team_status:this.$route.query.team_status}},mounted:function(){},methods:{permission:function(e){return Object(f["a"])(e)}}},G=T,R=Object(w["a"])(G,a,r,!1,null,"e4558bb0",null);t["default"]=R.exports},"58f6":function(e,t,n){},"9d64":function(e,t,n){e.exports=n.p+"static/img/logo.ae7b11a3.png"},a36b:function(e,t,n){},adb21:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n("bc3a"),r=n.n(a),s=(n("4328"),n("5f87")),i=n("3908"),o=n("e3eb"),c=n.n(o),u=function(e,t,n,a){var o=t.url,u={method:t.method?t.method:"get",headers:{Authorization:Object(s["b"])(),tenantId:Object(s["a"])()},url:o,responseType:"blob"};"post"==u.method?u.data=t.params:u.params=t.params,e.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),r()(c()(u)).then((function(n){var r=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(r).text();s.then((function(n){if(-1!=n.indexOf("code")){var s=JSON.parse(n);if(403==s.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==s.code?e.$message.success(s.msg):e.$message.error(s.msg),a&&a()}else{var i=URL.createObjectURL(r),o=document.createElement("a"),c=t.fileName||"导出文件.xls";o.href=i,o.setAttribute("download",c),document.body.appendChild(o),o.click(),a&&a()}})),i["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},ae2c:function(e,t,n){"use strict";n("358f")},c461:function(e,t,n){},d80b:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"forecastName"},[n("div",{staticClass:"btnList"},[e.isedit||"DRAFT"==e.$route.query.team_status?n("auth",{attrs:{auths:["musicGroup/sendParentMeetingNotice"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.extendPaymentStatus=!0}}},[e._v("预报名家长会通知")])],1):e._e(),e._v(" "),e.isedit?n("auth",{attrs:{auths:["forecastName/forecastLink"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codeStatus=!0}}},[e._v("预报名问卷")])],1):e._e(),e._v(" "),n("auth",{attrs:{auths:["studentRegistration/preRegisterExport"]}},[n("el-button",{attrs:{type:"primary"},on:{click:e.downloadFile}},[e._v("预报名信息导出")])],1),e._v(" "),n("auth",{attrs:{auths:["studentRegistration/queryPreApplySubjectList"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subjectVisible=!0}}},[e._v("意向统计")])],1),e._v(" "),n("auth",{attrs:{auths:["musicGroup/finishPreApply"]}},[e.isedit?n("el-button",{attrs:{type:"primary"},on:{click:e.onPaymentGroup}},[e._v("乐团缴费")]):e._e()],1),e._v(" "),e.isedit?n("auth",{attrs:{auths:["musicGroup/finishPreApply/item"]}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onPaymentGroup(1)}}},[e._v("特色乐团缴费")])],1):e._e(),e._v(" "),e.isedit?n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codedetailStatus=!0}}},[e._v("预报名H5统计")]):e._e()],1),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm,"save-key":"/forecastName"},on:{reset:e.onReSet,submit:e.search}},[n("el-form-item",{attrs:{prop:"name"}},[n("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"isAllowAdjust"}},[n("el-select",{attrs:{clearable:"",placeholder:"是否允许调剂"},model:{value:e.searchForm.isAllowAdjust,callback:function(t){e.$set(e.searchForm,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchForm.isAllowAdjust"}},[n("el-option",{attrs:{label:"是",value:1}}),e._v(" "),n("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"teacherRecommandSubjectId"}},[n("el-select",{attrs:{clearable:"",placeholder:"老师推荐声部"},model:{value:e.searchForm.teacherRecommandSubjectId,callback:function(t){e.$set(e.searchForm,"teacherRecommandSubjectId",t)},expression:"searchForm.teacherRecommandSubjectId"}},e._l(e.subjectList,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"selectionSubjectId"}},[n("el-select",{attrs:{clearable:"",placeholder:"选报声部"},model:{value:e.searchForm.selectionSubjectId,callback:function(t){e.$set(e.searchForm,"selectionSubjectId",t)},expression:"searchForm.selectionSubjectId"}},e._l(e.selects.subjects,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"subjectId"}},[n("el-select",{attrs:{clearable:"",placeholder:"所选专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"kitPurchaseMethod"}},[n("el-select",{attrs:{clearable:"",placeholder:"乐器准备方式"},model:{value:e.searchForm.kitPurchaseMethod,callback:function(t){e.$set(e.searchForm,"kitPurchaseMethod","string"===typeof t?t.trim():t)},expression:"searchForm.kitPurchaseMethod"}},[n("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),n("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"cloudTeacherMethod"}},[n("el-select",{attrs:{clearable:"",placeholder:"系统意向"},model:{value:e.searchForm.cloudTeacherMethod,callback:function(t){e.$set(e.searchForm,"cloudTeacherMethod","string"===typeof t?t.trim():t)},expression:"searchForm.cloudTeacherMethod"}},[n("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),n("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"teacherRecommandSubjectId",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.teacherRecommandSubjectId?t.row.teacherRecommandSubjectName:null)+"\n "+e._s(t.row.teacherRecommandSubjectName||999!=t.row.teacherRecommandSubjectId?null:"听从老师安排")+"\n "+e._s(-1!=t.row.teacherRecommandSubjectId||t.row.teacherRecommandSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"selectionSubjectId",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.selectionSubjectId?t.row.selectionSubjectName:null)+"\n "+e._s(t.row.selectionSubjectName||999!=t.row.selectionSubjectId?null:"听从老师安排")+"\n "+e._s(t.row.selectionSubjectId||t.row.selectionSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"乐器准备方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"系统意向"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.cloudTeacherMethod))+"\n ")]}}])}),e._v(" "),e.isedit?n("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("auth",{attrs:{auths:["visit/add/teamForecastName"]}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.addVisited(t.row)}}},[e._v("新增回访")])],1)]}}],null,!1,3377006125)}):e._e()],1),e._v(" "),n("pagination",{attrs:{"save-key":"/forecastName",sync:"",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.getList}})],1)],1),e._v(" "),n("qr-code",{attrs:{title:"预报名问卷",codeUrl:e.codeUrl,ispreLook:!0},on:{preLook:e.preLook},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),n("qr-code",{attrs:{title:"预报名H5统计",codeUrl:e.detailUrl},model:{value:e.codedetailStatus,callback:function(t){e.codedetailStatus=t},expression:"codedetailStatus"}}),e._v(" "),n("el-dialog",{attrs:{title:"预报名家长会通知",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t},close:function(t){return e.onClose("extendForm")}}},[e.extendPaymentStatus?n("parentsMeeting",{ref:"extendForm",attrs:{extendForm:e.extendForm,sysMsgStr:e.sysMsgStr,msg:"确认后该短信将发送给已填写预报名问卷的学员"}}):e._e(),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1),e._v(" "),e.visitVisible?n("el-dialog",{attrs:{title:"新增回访",width:"760px","close-on-click-modal":!1,visible:e.visitVisible},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible?n("visit-model",{attrs:{detail:e.visitDetail},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1):e._e(),e._v(" "),e.subjectVisible?n("el-dialog",{attrs:{title:"意向统计",width:"600px","close-on-click-modal":!1,visible:e.subjectVisible},on:{"update:visible":function(t){e.subjectVisible=t}}},[e.subjectVisible?n("intention-model",{on:{close:function(t){e.subjectVisible=!1}}}):e._e()],1):e._e(),e._v(" "),n("el-dialog",{attrs:{title:"预览",width:"500px","close-on-click-modal":!1,"append-to-body":"",visible:e.preLookVisible},on:{"update:visible":function(t){e.preLookVisible=t}}},[n("iframe",{attrs:{width:"100%",height:"600px",src:e.codeUrl+"&look=true",frameborder:"0"}})])],1)},r=[],s=(n("28a5"),n("db72")),i=(n("386d"),n("c80c")),o=n("75fc"),c=(n("96cf"),n("3b8d")),u=(n("7f7f"),n("333d")),l=n("641c"),d=n("ec8a"),m=n("61f7"),p=n("adb21"),f=n("4edf"),b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[n("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"}}),e._v(" "),n("el-table-column",{attrs:{prop:"teacherRecommandSubjectNum",align:"center",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.teacherRecommandSubjectNum)+"人\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"selectionSubjectNum",align:"center",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.selectionSubjectNum)+"人\n ")]}}])})],1)],1)},h=[],v=n("3078"),g={data:function(){var e=this.$route.query;return{list:[],musicGroupId:e.id}},mounted:function(){this.FetchList()},methods:{FetchList:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["k"])({musicGroupId:this.musicGroupId});case 2:t=e.sent,this.list=t.data;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},_=g,y=(n("3efb"),n("2877")),j=Object(y["a"])(_,b,h,!1,null,"1caa218f",null),x=j.exports,w=n("1a42"),k={name:"forecastName",components:{pagination:u["a"],qrCode:l["a"],visitModel:f["a"],intentionModel:x,parentsMeeting:w["a"]},props:["isedit"],data:function(){var e=this.$route.query;return{codedetailStatus:!1,teamName:e.name||null,codeStatus:!1,musicGroupId:e.id,codeUrl:Object(m["d"])()+"/project/forecastName/index.html?musicGroupId="+e.id,searchForm:{name:null,subjectId:null,teacherRecommandSubjectId:null,selectionSubjectId:null,isAllowAdjust:null,cloudTeacherMethod:null,kitPurchaseMethod:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},visitVisible:!1,subjectVisible:!1,visitDetail:null,extendPaymentStatus:!1,extendForm:{meetingDate:null,address:null},extendRule:{meetingDate:[{required:!0,message:"请选择家长会时间",trigger:"change"}],address:[{required:!0,message:"请输入家长会地址",trigger:"blur"}]},preLookVisible:!1,sysMsg:"",subjectList:[],tenantId:null}},mounted:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(){var t,n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.tenantId=this.$helpers.tenantId,e.next=3,this.$store.dispatch("setSubjects");case 3:return this.subjectList=Object(o["a"])(this.selects.subjects),this.subjectList.push({id:-1,name:"无"}),e.next=7,Object(v["i"])({type:"STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE"});case 7:n=e.sent,this.sysMsg=(null===(t=n.data)||void 0===t?void 0:t.content)||"",this.getList();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{permission:d["a"],onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},search:function(){this.pageInfo.page=1,this.getList()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},downloadFile:function(){var e=this.searchForm;Object(p["a"])(this,{url:"/api-web/studentRegistration/preRegisterExport",params:Object(s["a"])(Object(s["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"预报名列表.xls"},"是否确认导出报表?")},getList:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(v["j"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{musicGroupId:this.musicGroupId,page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.pageInfo.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}(),onPaymentGroup:function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(t){var n=this;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.$confirm("您是否确定开启乐团缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["d"])({isCheckStudentNum:1!=t,musicGroupId:n.musicGroupId});case 2:e.sent,n.$store.dispatch("delVisitedViews",n.$route),n.$router.push({path:"/teamList"});case 5:case"end":return e.stop()}}),e)}))))}catch(a){}case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addVisited:function(e){this.visitVisible=!0,this.visitDetail={musicGroupId:e.musicGroupId,overview:"",purpose:"",userId:e.userId,type:"",visitTime:"",visitType:"",feedback:"",realName:e.userName}},onClose:function(e){this.extendForm={meetingDate:null,address:null}},onExtendPayment:function(e){var t=this;this.$refs[e].$refs[e].validate(function(){var e=Object(c["a"])(Object(i["a"])().mark((function e(n){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=12;break}return e.prev=1,e.next=4,t.$confirm("您是否确定发送家长会通知?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:return e.next=6,Object(v["m"])(Object(s["a"])(Object(s["a"])({},t.extendForm),{},{musicGroupId:t.musicGroupId}));case 6:t.$message.success("家长会通知已发送"),t.extendPaymentStatus=!1,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](1);case 12:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}())},applyDates:function(){return{firstDayOfWeek:1,disabledDate:function(e){return end?new Date(end).getTime()-864e5>=e.getTime():e.getTime()+864e5<Date.now()}}},preLook:function(e){this.preLookVisible=!0}},computed:{sysMsgStr:function(){var e=this.sysMsg.split("{}");return 3==e.length?"".concat(e[0],'<span style="color:red">"').concat(this.extendForm.meetingDate?this.extendForm.meetingDate:"--",'"</span>').concat(e[1],'<span style="color:red">"').concat(this.extendForm.address?this.extendForm.address:"--",'"</span>\n ').concat(e[2]):""},detailUrl:function(){return Object(m["f"])()+"/#/preApplySubject?musicGroupId="+this.$route.query.id+"&tenantId="+this.tenantId}}},S=k,I=(n("1b32"),Object(y["a"])(S,a,r,!1,null,"3e81a8e3",null));t["a"]=I.exports}}]);
|