chunk-49913f81.821d923b.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49913f81"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,r){var s=o(),i=e-s,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,s,i,t);n(o),l<t?a(e):r&&"function"===typeof r&&r()};u()}},dc1e:function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return c}));var a=r("b775"),n=(r("4328"),"/api-web");function o(e){return Object(a["a"])({url:n+"/studentManage/getOperatingStudents",method:"GET",params:e})}function s(e){return Object(a["a"])({url:n+"/teacherCourseReward/queryPage",method:"GET",params:e})}function i(e){return Object(a["a"])({url:n+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:e})}function c(e){return Object(a["a"])({url:n+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}},fbf1:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",[r("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(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("remote-search",{attrs:{commit:"setTeachers",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{placeholder:"转结状态",clearable:""},model:{value:e.searchForm.settlementStatus,callback:function(t){e.$set(e.searchForm,"settlementStatus",t)},expression:"searchForm.settlementStatus"}},[r("el-option",{attrs:{label:"已结算",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"未结算",value:"0"}})],1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"结转开始日期","end-placeholder":"结转结束日期"},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(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherCourseReward",expression:"'export/teacherCourseReward'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"课程组编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.musicGroupId))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseGroupName",label:"课程组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.courseGroupName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.teacherName))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"结转状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.settlementStatus?"已结算":"未结算"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"结转金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("moneyFormat")(t.row.expectRewardAmount))+"元")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"结转日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("formatTimer")(t.row.settlementDate)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"memo",width:"200",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{split:"",text:e.row.memo,width:"100%"}})]}}])})],1),e._v(" "),r("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)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 结转奖励\n ")])}],o=(r("386d"),r("bc3a")),s=r.n(o),i=r("4328"),c=r.n(i),l=r("5f87"),u=r("333d"),d=r("3908"),m=(r("1cc7"),r("dc1e")),h={components:{pagination:u["a"]},data:function(){return{searchForm:{search:null,organId:null,teacherId:null,settlementStatus:null,date:[]},teacherList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this;this.searchForm.page=this.rules.page,this.searchForm.rows=this.rules.limit,this.searchForm.date&&this.searchForm.date.length>0?(this.searchForm.startTime=this.searchForm.date[0],this.searchForm.endTime=this.searchForm.date[1]):(this.searchForm.startTime=null,this.searchForm.endTime=null);var t=JSON.parse(JSON.stringify(this.searchForm));t.date=null,Object(m["d"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},onExport:function(){var e=this,t="/api-web/export/teacherCourseReward";this.searchForm.page=this.rules.page,this.searchForm.rows=this.rules.limit,this.searchForm.date&&this.searchForm.date.length>0&&(this.searchForm.startTime=this.searchForm.date[0],this.searchForm.endTime=this.searchForm.date[1]),this.searchForm.startTime=null,this.searchForm.endTime=null;var r=JSON.parse(JSON.stringify(this.searchForm));r.date=null;var a={method:"POST",headers:{Authorization:Object(l["b"])(),tenantId:Object(l["a"])()},data:c.a.stringify(r),url:t,responseType:"blob"};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),s()(a).then((function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(r).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var n=URL.createObjectURL(r),o=document.createElement("a"),s=new Date,i=(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),"报表导出"+(new Date).getTime()+".xls");o.href=n,o.setAttribute("download",i),document.body.appendChild(o),o.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,teacherId:null,settlementStatus:null,date:[]},this.search()}}},p=h,f=r("2877"),v=Object(f["a"])(p,a,n,!1,null,"14d29434",null);t["default"]=v.exports}}]);