1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-052884fc"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,l,a){return e/=a/2,e<1?l/2*e*e+t:(e--,-l/2*(e*(e-2)-1)+t)};var a=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 n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,l){var u=n(),o=e-u,s=20,c=0;t="undefined"===typeof t?500:t;var i=function e(){c+=s;var n=Math.easeInOutQuad(c,u,o,t);r(n),c<t?a(e):l&&"function"===typeof l&&l()};i()}},"0efd":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"m-container"},[e._m(0),e._v(" "),l("div",{staticClass:"m-core"},[l("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[l("el-form-item",{attrs:{prop:"studentID"}},[l("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.studentID,callback:function(t){e.$set(e.searchForm,"studentID","string"===typeof t?t.trim():t)},expression:"searchForm.studentID"}})],1),e._v(" "),l("el-form-item",{attrs:{prop:"teacherId"}},[l("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return l("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"musicGroupId"}},[l("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.musicGroupId,callback:function(t){e.$set(e.searchForm,"musicGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupId"}})],1),e._v(" "),l("el-form-item",{attrs:{prop:"courseScheduleId"}},[l("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.courseScheduleId,callback:function(t){e.$set(e.searchForm,"courseScheduleId","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleId"}})],1),e._v(" "),l("el-form-item",{attrs:{prop:"groupType"}},[l("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 l("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"courseScheduleType"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return l("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"status"}},[l("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 l("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"dates"}},[l("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(" "),l("el-form-item",[l("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),l("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[l("el-table-column",{attrs:{align:"center",prop:"courseSchedule.organization.name",label:"分部"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"username",label:"学生姓名",width:"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(t.row.username)+"\n "),l("p",{staticStyle:{color:"#f56c6c"}},[e._v("\n ("),l("copy-text",[e._v(e._s(t.row.userId))]),e._v(")\n ")],1)])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"courseSchedule.teacherName",width:"120px",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.courseSchedule.teacherName)+"\n "),t.row.teacherId?l("p",{staticStyle:{color:"#f56c6c"}},[e._v("\n ("),l("copy-text",[e._v(e._s(t.row.teacherId))]),e._v(")\n ")],1):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("copy-text",[e._v(e._s(t.row.musicGroupId))])],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"courseSchedule.name",label:"课程名称"}}),e._v(" "),l("el-table-column",{attrs:{width:"180px",align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("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(" "),l("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.groupType))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseSchedule.type))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"签到时间",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(t.row.signInTime)+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"是否被合并"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(t.row.courseSchedule.newCourseId>0?"是":"否")+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"startClassTime",width:"180px",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(t.row.signOutTime)+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")])]}}])})],1),e._v(" "),l("pagination",{attrs:{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)])},r=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("h2",[l("div",{staticClass:"squrt"}),e._v("\n 学生考勤列表\n ")])}],n=(l("386d"),l("5530")),u=l("15fd"),o=(l("96cf"),l("1da1")),s=(l("bc3a"),l("5f87"),l("333d")),c=(l("3908"),l("ed08")),i=(l("4328"),l("1cc7")),d=l("92e3"),v={components:{pagination:s["a"]},data:function(){return{searchForm:{studentID:"",groupType:"MUSIC",musicGroupId:"",courseScheduleId:"",status:"",teacherId:"",courseScheduleType:"",organId:"",dates:[]},courseType:d["j"],courseListType:d["i"],attendanceStatus:d["z"],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e;(null===(e=this.searchForm.dates)||void 0===e?void 0:e.length)<1&&(this.searchForm.dates=[new Date,new Date]),this.init()},methods:{init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=this,t=this.searchForm,l=t.dates,a=Object(u["a"])(t,["dates"]),r=Object(n["a"])(Object(n["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit},Object(c["a"])(l,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD"));Object(i["G"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()}}},p=v,b=l("2877"),f=Object(b["a"])(p,a,r,!1,null,"37a99793",null);t["default"]=f.exports},"15fd":function(e,t,l){"use strict";function a(e,t){if(null==e)return{};var l,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)l=n[a],t.indexOf(l)>=0||(r[l]=e[l]);return r}function r(e,t){if(null==e)return{};var l,r,n=a(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)l=u[r],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}l.d(t,"a",(function(){return r}))},"92e3":function(e,t,l){"use strict";l.d(t,"j",(function(){return u})),l.d(t,"o",(function(){return o})),l.d(t,"i",(function(){return s})),l.d(t,"b",(function(){return c})),l.d(t,"m",(function(){return i})),l.d(t,"A",(function(){return d})),l.d(t,"z",(function(){return v})),l.d(t,"c",(function(){return p})),l.d(t,"s",(function(){return b})),l.d(t,"k",(function(){return f})),l.d(t,"p",(function(){return m})),l.d(t,"C",(function(){return h})),l.d(t,"h",(function(){return _})),l.d(t,"B",(function(){return y})),l.d(t,"v",(function(){return I})),l.d(t,"D",(function(){return E})),l.d(t,"u",(function(){return S})),l.d(t,"x",(function(){return T})),l.d(t,"l",(function(){return g})),l.d(t,"f",(function(){return O})),l.d(t,"y",(function(){return A})),l.d(t,"g",(function(){return C})),l.d(t,"t",(function(){return R})),l.d(t,"e",(function(){return L})),l.d(t,"d",(function(){return w})),l.d(t,"r",(function(){return F})),l.d(t,"q",(function(){return N})),l.d(t,"w",(function(){return k})),l.d(t,"n",(function(){return x})),l.d(t,"a",(function(){return D}));var a=l("b85c"),r=l("3835"),n=l("267e"),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:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],c=[{label:"正常签到",value:1},{label:"异常签到",value:0}],i=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],v=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(v,[{value:"QUIT_SCHOOL",label:"退学"}]),b=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",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:"声部更换"}],f=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],m=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"},{value:"FEE_AUDIT",text:"费用审核中"},{value:"CLOSE",text:"已关闭"}],h=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],_=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],I=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],T=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],g=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],O=[{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:"高三"}],A=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=M(n["classTime"]),R=M(n["payOrderType"]),L=M(n["auditType"]),w=M(n["auditPaymentType"]),F=M(n["orderServerType"]),N=M(n["orderAuditType"]),k=M(n["rewardModeType"]),x=M(n["musicClassType"]);function M(e){var t=[];for(var l in e)t.push({label:e[l],value:l});return t}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],l=Object(r["a"])(t,2),n=l[0],u=l[1],o={};if(e&&e.length){var s,c=Object(a["a"])(e);try{for(c.s();!(s=c.n()).done;){var i=s.value;o[i[n]]=i[u]}}catch(d){c.e(d)}finally{c.f()}}return o}},ed08:function(e,t,l){"use strict";l.d(t,"b",(function(){return u})),l.d(t,"a",(function(){return o}));var a=l("ade3"),r=(l("c5f6"),l("28a5"),l("a481"),l("6b54"),l("53ca"),l("5a0c")),n=l.n(r);var u=function(e){var t=[];for(var l in e)if(e.hasOwnProperty(l)){var a=e[l],r=l.toLocaleUpperCase();t.push({label:a,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:l})}return t},o=function(e){var t,l=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(a["a"])(t,l[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(r):""),Object(a["a"])(t,l[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(r):""),t):{}}}}]);
|