chunk-a5b4e03c.e18f89e8.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5b4e03c"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=i(),s=e-n,u=20,o=0;t="undefined"===typeof t?500:t;var c=function e(){o+=u;var i=Math.easeInOutQuad(o,n,s,t);r(i),o<t?l(e):a&&"function"===typeof a&&a()};c()}},"38a4":function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var l=a("829b"),r=function(e){return Object(l["a"])({url:"/api-web/musicGroupQuit/queryPage",params:e,method:"get",requestType:"form"})},i=function(e){return Object(l["a"])({url:"/api-web/webCurseHomework/getStudentHomeWorks",params:e})},n=function(e){return Object(l["a"])({url:"/api-web/musicGroupQuit/batchQuitMusicGroup",data:e,method:"post",requestType:"json"})}},"3e15":function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return u}));var l=a("b775"),r=(a("4328"),"/api-web");function i(e){return Object(l["a"])({url:r+"/extracurricularExercises/queryPageList",method:"get",params:e})}function n(e){return Object(l["a"])({url:r+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function s(e){return Object(l["a"])({url:r+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function u(e){return Object(l["a"])({url:r+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"46f6":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var l=a("b775"),r=(a("4328"),"/api-web");function i(e){return Object(l["a"])({url:r+"/visit/queryPage",method:"get",params:e})}function n(e){return Object(l["a"])({url:r+"/visit/add",method:"post",data:e,requestType:"json",headers:{"content-type":"application/json"}})}},"4edf":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"visitBtnWrap"},[a("auth",{attrs:{auths:"studentAttendance/findStudentAttendance"}},[a("el-button",{attrs:{type:"text"},on:{click:function(t){e.recordVisible=!0}}},[e._v("学员考勤")])],1),e._v(" "),a("auth",{attrs:{auths:["webCurseHomework/getStudentHomeWorks","extracurricularExercisesReply/queryPageList"]}},[a("el-button",{attrs:{type:"text"},on:{click:function(t){e.workVisible=!0}}},[e._v("训练情况")])],1)],1),e._v(" "),a("el-form",{ref:"visitForm",attrs:{model:e.visitForm,"label-width":"120px","label-position":"right",rules:e.visitRules}},[a("el-form-item",{attrs:{label:"学生姓名"}},[a("p",[e._v(e._s(e.userName))])]),e._v(" "),a("el-form-item",{attrs:{label:"回访类型",prop:"visitType"}},[a("el-cascader",{staticStyle:{width:"80% !important"},attrs:{disabled:e.isMainGo||!!e.useVisitType,"expand-trigger":"hover",clearable:"",placeholder:"请选择回访类型",options:e.visitChiose},model:{value:e.visitForm.visitType,callback:function(t){e.$set(e.visitForm,"visitType",t)},expression:"visitForm.visitType"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"回访日期",prop:"visitTime"}},[a("el-date-picker",{staticStyle:{width:"80% !important"},attrs:{align:"right",type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.visitForm.visitTime,callback:function(t){e.$set(e.visitForm,"visitTime","string"===typeof t?t.trim():t)},expression:"visitForm.visitTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员情况",prop:"overview"}},[a("el-input",{staticStyle:{width:"80% !important"},attrs:{type:"textarea",placeholder:"请输入学员情况",rows:3,maxlength:"50","show-word-limit":""},model:{value:e.visitForm.overview,callback:function(t){e.$set(e.visitForm,"overview",t)},expression:"visitForm.overview"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"家长反馈",prop:"feedback"}},[a("el-input",{staticStyle:{width:"80% !important"},attrs:{type:"textarea",placeholder:"请输入家长反馈",rows:3,maxlength:"50","show-word-limit":""},model:{value:e.visitForm.feedback,callback:function(t){e.$set(e.visitForm,"feedback",t)},expression:"visitForm.feedback"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"回访图片"}},[a("div",{staticStyle:{width:"80% !important"}},[a("uploadImageList",{attrs:{uploaded:e.visitForm.attachments}})],1)])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right","margin-right":"15%"},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.submitAddVisit}},[e._v("确 定")])],1),e._v(" "),e.recordVisible?a("el-dialog",{attrs:{title:"学员考勤",width:"1020px",visible:e.recordVisible,"append-to-body":""},on:{"update:visible":function(t){e.recordVisible=t}}},[a("record",{attrs:{studentId:this.detail.userId}})],1):e._e(),e._v(" "),e.workVisible?a("el-dialog",{attrs:{title:"训练列表",width:"1020px",visible:e.workVisible,"append-to-body":""},on:{"update:visible":function(t){e.workVisible=t}}},[a("studentWork",{attrs:{studentId:this.detail.userId}})],1):e._e()],1)},r=[],i=a("5530"),n=a("15fd"),s=a("e3eb"),u=a.n(s),o=a("92e3"),c=a("46f6"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",{attrs:{prop:"dates"}},[a("el-date-picker",{staticStyle:{width:"405px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期"},model:{value:e.searchForm.dates,callback:function(t){e.$set(e.searchForm,"dates",t)},expression:"searchForm.dates"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"groupType"}},[a("el-select",{attrs:{placeholder:"请选择课程组类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"请选择考勤状态",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},e._l(e.attendanceStatus,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseSchedule.name",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{width:"180px",align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.courseSchedule.classDate))+"\n "+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.startClassTime))+"-"+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.endClassTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.groupType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseSchedule.type))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.courseSchedule&&"NOT_START"!=t.row.courseSchedule.status?a("div",[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")]):e._e()]}}])})],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: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)},v=[],p=(a("386d"),a("333d")),b=a("1cc7"),m=a("ed08"),f={components:{pagination:p["a"]},props:["studentId"],data:function(){return{searchForm:{studentID:"",groupType:"",status:"",dates:[]},courseListType:o["s"],attendanceStatus:o["R"],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e;this.searchForm.studentID=this.studentId,(null===(e=this.searchForm.dates)||void 0===e?void 0:e.length)<1&&(this.searchForm.dates=[(new Date).setDate(1),new Date]),this.init()},methods:{init:function(){this.getList()},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.searchForm.dates=[(new Date).setDate(1),new Date],this.search()},getList:function(){var e=this,t=this.searchForm,a=t.dates,l=Object(n["a"])(t,["dates"]),r=Object(i["a"])(Object(i["a"])({},l),{},{page:this.rules.page,rows:this.rules.limit},Object(m["a"])(a,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD"));Object(b["N"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},h=f,_=a("2877"),g=Object(_["a"])(h,d,v,!1,null,"20eac814",null),y=g.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"课程训练",name:"first",lazy:""}},[e.studentId&&"first"==e.activeName?a("courseWork",{attrs:{studentId:e.studentId}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"课外训练",name:"second",lazy:""}},[e.studentId&&"second"==e.activeName?a("afterWork",{attrs:{studentId:e.studentId}}):e._e()],1)],1)],1)},E=[],I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseTimer,callback:function(t){e.$set(e.searchForm,"courseTimer","string"===typeof t?t.trim():t)},expression:"searchForm.courseTimer"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[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:"isReplied"}},[a("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[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:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupName",label:"课程组名称"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("overflow-text",{attrs:{text:e.row.groupName,width:"100%"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)]}}])}),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.status?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],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)},w=[],S=(a("96cf"),a("1da1")),O=a("38a4"),R=a("5a0c"),N=a.n(R),F={props:["studentId"],components:{pagination:p["a"]},data:function(){return{searchForm:{courseTimer:[],status:"",isReplied:"",userId:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e;(null===(e=this.searchForm.courseTimer)||void 0===e?void 0:e.length)<1&&(this.searchForm.courseTimer=[N()((new Date).setDate(1)).format("YYYY-MM-DD"),N()(new Date).format("YYYY-MM-DD")]),this.searchForm.userId=this.studentId,this.getList()},methods:{search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=Object(S["a"])(regeneratorRuntime.mark((function e(){var t,a,l,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,a=t.courseTimer,l=Object(n["a"])(t,["courseTimer"]),r=Object(i["a"])(Object(i["a"])({},l),{},{page:this.rules.page,rows:this.rules.limit},Object(m["a"])(a,["startTime","endTime"],"YYYY-MM-DD")),e.prev=2,e.next=5,Object(O["b"])(r);case 5:s=e.sent,this.tableList=s.data.rows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}()}},k=F,L=Object(_["a"])(k,I,w,!1,null,null,null),A=L.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",{attrs:{prop:"timer"}},[a("el-date-picker",{staticStyle:{width:"400px"},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",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[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:"isReplied"}},[a("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[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:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReset}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("div",[a("overflow-text",{attrs:{text:e.row.title,width:"100%"}})],1)])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("div",[a("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)])]}}])}),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.status?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],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)},C=[],x=a("3e15"),D={props:["studentId"],components:{pagination:p["a"]},data:function(){return{searchForm:{search:"",timer:[],status:null,isReplied:null,isRepliedTimely:null,isView:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e;(null===(e=this.searchForm.timer)||void 0===e?void 0:e.length)<1&&(this.searchForm.timer=[N()((new Date).setDate(1)).format("YYYY-MM-DD"),N()(new Date).format("YYYY-MM-DD")]),this.searchForm.search=this.studentId,this.getList()},methods:{onReset:function(){this.$refs.searchForm.resetFields(),this.search()},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.timer,l=Object(n["a"])(t,["timer"]),r=Object(i["a"])(Object(i["a"])({},l),{},{page:this.rules.page,rows:this.rules.limit},Object(m["a"])(a,["submitStartTime","submitEndTime"],"YYYY-MM-DD"));Object(x["a"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},G=D,j=Object(_["a"])(G,M,C,!1,null,null,null),V=j.exports,Y={props:["studentId"],components:{courseWork:A,afterWork:V},data:function(){return{activeName:"first"}},mounted:function(){},methods:{}},P=Y,$=Object(_["a"])(P,T,E,!1,null,null,null),U=$.exports,H={props:["detail","username","isMainGo","useVisitType"],components:{record:y,studentWork:U},data:function(){return{visitChiose:o["W"],visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:"",attachments:[]},visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},recordVisible:!1,workVisible:!1,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>(new Date).getTime()}}}},mounted:function(){this.isMainGo?(this.visitChiose=o["X"],this.$set(this.visitForm,"visitType",["常规回访","考勤申诉"])):this.useVisitType?(this.visitChiose=o["X"],this.$set(this.visitForm,"visitType",this.useVisitType)):this.visitChiose=o["W"]},computed:{userName:function(){var e;return this.username||(null===(e=this.detail.user)||void 0===e?void 0:e.username)||this.detail.realName||this.detail.userName||this.detail.studentName},studentId:function(){return this.detail.userId||this.detail.studentId}},methods:{submitAddVisit:function(){var e=this;this.$refs.visitForm.validate((function(t){if(t){var a=e.visitForm,l=a.visitType,r=Object(n["a"])(a,["visitType"]),s=e.visitForm.attachments.map((function(e){return e.url})),o=Object(i["a"])(Object(i["a"])({},r),{},{objectId:e.detail.id,studentName:e.userName,musicGroupId:e.detail.musicGroupId,studentId:e.studentId,type:l[0],purpose:l[1],attachments:s.join(",")});Object(c["a"])(u()(o)).then((function(t){200===t.code&&(e.$message.success("保存成功"),e.$emit("close"),e.$emit("submited"))}))}}))}}},W=H,q=(a("a340"),Object(_["a"])(W,l,r,!1,null,"690f83c2",null));t["a"]=q.exports},6755:function(e,t,a){},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return u})),a.d(t,"F",(function(){return o})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"C",(function(){return v})),a.d(t,"S",(function(){return p})),a.d(t,"R",(function(){return b})),a.d(t,"d",(function(){return m})),a.d(t,"J",(function(){return f})),a.d(t,"w",(function(){return h})),a.d(t,"U",(function(){return _})),a.d(t,"t",(function(){return g})),a.d(t,"o",(function(){return y})),a.d(t,"T",(function(){return T})),a.d(t,"M",(function(){return E})),a.d(t,"W",(function(){return I})),a.d(t,"X",(function(){return w})),a.d(t,"L",(function(){return S})),a.d(t,"P",(function(){return O})),a.d(t,"A",(function(){return R})),a.d(t,"l",(function(){return N})),a.d(t,"Q",(function(){return F})),a.d(t,"V",(function(){return k})),a.d(t,"G",(function(){return L})),a.d(t,"m",(function(){return A})),a.d(t,"v",(function(){return M})),a.d(t,"K",(function(){return C})),a.d(t,"f",(function(){return x})),a.d(t,"e",(function(){return D})),a.d(t,"I",(function(){return G})),a.d(t,"H",(function(){return j})),a.d(t,"O",(function(){return V})),a.d(t,"E",(function(){return Y})),a.d(t,"a",(function(){return P})),a.d(t,"x",(function(){return $})),a.d(t,"p",(function(){return U})),a.d(t,"n",(function(){return H})),a.d(t,"q",(function(){return W})),a.d(t,"g",(function(){return q})),a.d(t,"D",(function(){return z})),a.d(t,"r",(function(){return B})),a.d(t,"B",(function(){return X})),a.d(t,"z",(function(){return Q})),a.d(t,"y",(function(){return K})),a.d(t,"h",(function(){return J})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"N",(function(){return ae})),a.d(t,"b",(function(){return re}));var l=a("b85c"),r=a("3835"),i=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var s=n.tenantId,u=null,o=null;1==s?(o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]):(o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],v=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],b=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(b,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],_=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],T=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],E=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],O=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],R=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],N=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],F=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],k=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],L=le(i["musicGroupType"]),A=le(i["classTime"]),M=le(i["courseViewType"]),C=le(i["payOrderType"]),x=le(i["auditType"]),D=le(i["auditPaymentType"]),G=le(i["orderServerType"]),j=le(i["orderAuditType"]),V=le(i["rewardModeType"]),Y=le(i["musicClassType"]),P=le(i["ProbationPeriodStatus"]),$=le(i["downListType"]),U=le(i["conclusion"]),H=le(i["clientType"]),W=le(i["couponType"]),q=le(i["backType"]),z=le(i["memberEnum"]),B=le(i["coupontypeDetail"]),X=le(i["issue"]),Q=le(i["feedbackType"]),K=le(i["feedbackTypeDesc"]),J=le(i["campState"]),Z=le(i["catgGoupType"]),ee=le(i["catRole"]),te=le(i["catType"]),ae=le(i["quiteReason"]);function le(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),i=a[0],n=a[1],s={};if(e&&e.length){var u,o=Object(l["a"])(e);try{for(o.s();!(u=o.n()).done;){var c=u.value;s[c[i]]=c[n]}}catch(d){o.e(d)}finally{o.f()}}return s}},a340:function(e,t,a){"use strict";a("6755")},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return s}));var l=a("ade3"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),i=a.n(r);var n=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],r=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},s=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(r):""),Object(l["a"])(t,a[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(r):""),t):{}}}}]);