chunk-59664cd7.b2001513.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59664cd7"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(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,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var o=Math.easeInOutQuad(c,s,i,t);a(o),c<t?n(e):r&&"function"===typeof r&&r()};u()}},"1ce5":function(e,t,r){"use strict";r("6e01")},"38da":function(e,t,r){},"3f6c":function(e,t,r){},"53a6":function(e,t,r){"use strict";r("3f6c")},"60a4":function(e,t,r){"use strict";r("38da")},"6e01":function(e,t,r){},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("bc3a"),a=r.n(n),o=(r("4328"),r("5f87")),s=r("3908"),i=r("e3eb"),l=r.n(i),c=function(e,t,r,n){var i=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),a()(l()(c)).then((function(r){var a=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(a).text();o.then((function(r){if(-1!=r.indexOf("code")){var o=JSON.parse(r);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),n&&n()}else{var s=URL.createObjectURL(a),i=document.createElement("a"),l=t.fileName||"导出文件.xls";i.href=s,i.setAttribute("download",l),document.body.appendChild(i),i.click(),n&&n()}})),s["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},ed08:function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return i}));var n=r("ade3"),a=(r("c5f6"),r("28a5"),r("a481"),r("6b54"),r("53ca"),r("5a0c")),o=r.n(a);var s=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r],a=r.toLocaleUpperCase();t.push({label:n,value:"TRUE"===a||"FALSE"===a?"TRUE"===a:r})}return t},i=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(n["a"])(t,r[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(a):""),Object(n["a"])(t,r[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(a):""),t):{}}},fbd1:function(e,t,r){"use strict";r.r(t);var n=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("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[r("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumer",expression:"'studentCourseConsumer/queryCourseConsumer'"}],attrs:{label:"实际课耗",lazy:"",name:"1"}},["1"===e.activeIndex?r("actualList"):e._e()],1),e._v(" "),r("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryPreCourseConsumer",expression:"'studentCourseConsumer/queryPreCourseConsumer'"}],attrs:{label:"预计课耗",lazy:"",name:"2"}},["2"===e.activeIndex?r("preList"):e._e()],1),e._v(" "),r("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumerSum",expression:"'studentCourseConsumer/queryCourseConsumerSum'"}],attrs:{label:"课耗统计",lazy:"",name:"3"}},["3"===e.activeIndex?r("statisticsList"):e._e()],1)],1)],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 小课课耗统计\n ")])}],o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vipClass"},[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"smallCourseConsumption-actualList",model:e.searchForm},on:{submit:e.getList,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",multiple:"","collapse-tags":"",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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{attrs:{clearable:!1,type:"month","value-format":"yyyy-MM",placeholder:"选择月分"},model:{value:e.searchForm.month,callback:function(t){e.$set(e.searchForm,"month",t)},expression:"searchForm.month"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:"export/EXPORT_COURSE_CONSUMER",expression:"'export/EXPORT_COURSE_CONSUMER'"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px"},attrs:{name:"实际课耗导出",ExportEnum:"EXPORT_COURSE_CONSUMER",exportData:e.onExport,fileName:"实际课耗导出",errorMsg:"请选择月份",isDownList:!0}}),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"180px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumerDetail",expression:"'studentCourseConsumer/queryCourseConsumerDetail'"}],attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),r("actualDetail",{ref:"actualDetailRef"})],1)],1)},s=[],i=r("5530"),l=(r("96cf"),r("1da1")),c=r("829b"),u=function(e){return Object(c["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumer",data:e,method:"post"})},m=function(e){return Object(c["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumerDetail",data:e,method:"post"})},p=function(e){return Object(c["a"])({url:"/api-web/studentCourseConsumer/queryPreCourseConsumer",data:e,method:"post"})},f=function(e){return Object(c["a"])({url:"/api-web/studentCourseConsumer/queryPreCourseConsumerDetail",data:e,method:"post"})},d=function(e){return Object(c["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumerSum",data:e,method:"post"})},h=r("333d"),b=r("5a0c"),v=r.n(b),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{title:"实际课耗详情",width:"1000px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t},close:e.cancelHandel}},[r("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.getList}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{staticClass:"search",attrs:{type:"text",clearable:"",placeholder:"学员名称/编号/手机号"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:"export/EXPORT_COURSE_CONSUMER_DETAIL",expression:"'export/EXPORT_COURSE_CONSUMER_DETAIL'"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px","margin-left":"10px",display:"inline-block"},attrs:{name:"导出",ExportEnum:"EXPORT_COURSE_CONSUMER_DETAIL",exportData:e.onExport,fileName:"实际课耗详细导出",errorMsg:"请选择时间",isDownList:!0}})],1)],1),e._v(" "),r("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{prop:"username",label:"学生姓名"}}),e._v(" "),r("el-table-column",{attrs:{prop:"userId",label:"学生编号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"preConsumerNum",label:"应耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.preConsumerNum)+"节\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"consumerNum",label:"实耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.consumerNum)+"节\n ")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}}),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.courseVisible=!1}}},[e._v("确 定")])],1)],1)],1)},_=[],y=r("3655"),C={data:function(){return{tableList:[],courseVisible:!1,searchForm:{search:"",month:"",organId:""},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},components:{pagination:h["a"],ExportChiose:y["a"]},mounted:function(){},methods:{openDialog:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.searchForm.month=r,this.searchForm.organId=t.organId,this.getList(),this.courseVisible=!0}catch(n){console.log(n)}case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m(Object(i["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm));case 2:t=e.sent,this.tableList=t.data.rows,this.pageInfo.total=t.data.total;case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onReSet:function(){this.searchForm.search="",this.pageInfo.page=1,this.getList()},cancelHandel:function(){this.searchForm.search="",this.pageInfo.page=1}},computed:{onExport:function(){return Object(i["a"])({},this.searchForm)}}},w=C,x=r("2877"),E=Object(x["a"])(w,g,_,!1,null,"844989bc",null),I=E.exports,O={name:"actualList",components:{pagination:h["a"],actualDetail:I,ExportChiose:y["a"]},provide:function(){var e=this;return{organId:function(){return e.searchForm.organId.join(",")},isSearch:function(){return e.isSearch}}},data:function(){return{searchForm:{organId:[],month:v()(new Date).format("YYYY-MM")},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs"),this.getList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{__init:function(){},reset:function(){this.searchForm.organId=[],this.searchForm.month=v()(new Date).format("YYYY-MM"),this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object(i["a"])(Object(i["a"])({},this.searchForm),{},{organId:this.searchForm.organId.join(",")}),e.next=4,u(t);case 4:r=e.sent,this.tableList=r.data,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),lookDetail:function(e){this.$refs.actualDetailRef.openDialog(e,this.searchForm.month)}},computed:{onExport:function(){return Object(i["a"])(Object(i["a"])({},this.searchForm),{},{organId:this.searchForm.organId.join(",")})}}},k=O,D=(r("1ce5"),Object(x["a"])(k,o,s,!1,null,"7e0f68cc",null)),F=D.exports,R=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vipClass"},[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"smallCourseConsumption-actualList",model:e.searchForm},on:{submit:e.getList,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",multiple:"","collapse-tags":"",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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},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(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:"export/EXPORT_PRE_COURSE_CONSUMER",expression:"'export/EXPORT_PRE_COURSE_CONSUMER'"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px"},attrs:{name:"预计课耗导出",ExportEnum:"EXPORT_PRE_COURSE_CONSUMER",exportData:e.onExport,fileName:"预计课耗导出",errorMsg:"请选择时间",isDownList:!0}}),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"180px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryPreCourseConsumerDetail",expression:"'studentCourseConsumer/queryPreCourseConsumerDetail'"}],attrs:{type:"text"},on:{click:function(r){return e.lookDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),r("preDetail",{ref:"preDetailRef"})],1)],1)},S=[],j=r("15fd"),N=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{title:"预计课耗详情",width:"1000px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t},close:e.cancelHandel}},[r("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.getList}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{staticClass:"search",attrs:{type:"text",clearable:"",placeholder:"学员名称/编号/手机号"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:"export/EXPORT_PRE_COURSE_CONSUMER_DETAIL",expression:"'export/EXPORT_PRE_COURSE_CONSUMER_DETAIL'"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px","margin-left":"10px",display:"inline-block"},attrs:{name:"导出",ExportEnum:"EXPORT_PRE_COURSE_CONSUMER_DETAIL",exportData:e.onExport,fileName:"预计课耗详情导出",errorMsg:"请选择时间",isDownList:!0}})],1)],1),e._v(" "),r("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{prop:"username",label:"学生姓名"}}),e._v(" "),r("el-table-column",{attrs:{prop:"userId",label:"学生编号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"preConsumerNum",label:"应耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.preConsumerNum)+"节\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"courseNum",label:"已排课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.courseNum)+"节\n ")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}}),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.courseVisible=!1}}},[e._v("确 定")])],1)],1)],1)},L=[],M=r("ed08"),Y={data:function(){return{tableList:[],courseVisible:!1,searchForm:{search:"",timer:[],organId:""},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},components:{pagination:h["a"],ExportChiose:y["a"]},mounted:function(){},methods:{openDialog:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.searchForm.timer=r,this.searchForm.organId=t.organId,this.getList(),this.courseVisible=!0}catch(n){console.log(n)}case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,r=t.timer,n=Object(j["a"])(t,["timer"]),a=Object(i["a"])(Object(i["a"])(Object(i["a"])({},n),Object(M["a"])(r,["startDate","endDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}),e.next=4,f(a);case 4:o=e.sent,this.tableList=o.data.rows,this.pageInfo.total=o.data.total;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onReSet:function(){this.searchForm.search="",this.pageInfo.page=1,this.getList()},cancelHandel:function(){this.searchForm.search="",this.pageInfo.page=1}},computed:{onExport:function(){var e=this.searchForm,t=e.timer,r=Object(j["a"])(e,["timer"]),n=Object(i["a"])(Object(i["a"])({},r),Object(M["a"])(t,["startDate","endDate"]));return n}}},U=Y,T=Object(x["a"])(U,N,L,!1,null,"bef7bab2",null),$=T.exports,P={name:"actualList",components:{pagination:h["a"],preDetail:$,ExportChiose:y["a"]},provide:function(){var e=this;return{organId:function(){return e.searchForm.organId.join(",")},isSearch:function(){return e.isSearch}}},data:function(){return{searchForm:{organId:[],timer:[v()((new Date).setDate(1)).format("YYYY-MM-DD"),v()(new Date).endOf("month").format("YYYY-MM-DD")]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs"),this.getList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{__init:function(){},reset:function(){this.searchForm.organId=[],this.searchForm.timer=[v()((new Date).setDate(1)).format("YYYY-MM-DD"),v()(new Date).format("YYYY-MM-DD")],this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.timer,Object(j["a"])(t,["timer"]),n=Object(i["a"])(Object(i["a"])({},this.searchForm),{},{organId:this.searchForm.organId.join(",")},Object(M["a"])(r,["startDate","endDate"])),e.next=5,p(n);case 5:a=e.sent,this.tableList=a.data,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),lookDetail:function(e){this.$refs.preDetailRef.openDialog(e,this.searchForm.timer)}},computed:{onExport:function(){var e=this.searchForm,t=e.timer,r=(Object(j["a"])(e,["timer"]),Object(i["a"])({organId:this.searchForm.organId.join(",")},Object(M["a"])(t,["startDate","endDate"])));return r}}},B=P,q=(r("60a4"),Object(x["a"])(B,R,S,!1,null,"055cebca",null)),X=q.exports,z=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"vipClass"},[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"smallCourseConsumption-actualList",model:e.searchForm},on:{submit:e.getList,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",multiple:"","collapse-tags":"",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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},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(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("ExportChiose",{directives:[{name:"permission",rawName:"v-permission",value:"export/EXPORT_COURSE_CONSUMER_SUM",expression:"'export/EXPORT_COURSE_CONSUMER_SUM'"}],staticStyle:{"margin-bottom":"20px","margin-right":"10px"},attrs:{name:"课耗统计导出",ExportEnum:"EXPORT_COURSE_CONSUMER_SUM",exportData:e.onExport,fileName:"课耗统计导出",errorMsg:"请选择时间",isDownList:!0}}),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"应有课耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.courseConsumerNum)+"节\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"实际课耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.courseSum)+"节\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"课耗达标率"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.courseConsumerRate)+"%\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"达标占比"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("p",[e._v("\n "+e._s(t.row.standRate)+"%\n ")])]}}])})],1),e._v(" "),r("preDetail",{ref:"preDetailRef"})],1)],1)},A=[],V={name:"actualList",components:{pagination:h["a"],preDetail:$,ExportChiose:y["a"]},provide:function(){var e=this;return{organId:function(){return e.searchForm.organId.join(",")},isSearch:function(){return e.isSearch}}},data:function(){return{searchForm:{organId:[],timer:[v()((new Date).setDate(1)).format("YYYY-MM-DD"),v()(new Date).format("YYYY-MM-DD")]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs"),this.getList();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{__init:function(){},reset:function(){this.searchForm.organId=[],this.searchForm.timer=[v()((new Date).setDate(1)).format("YYYY-MM-DD"),v()(new Date).format("YYYY-MM-DD")],this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.timer,n=Object(j["a"])(t,["timer"]),a=Object(i["a"])(Object(i["a"])({},n),{},{organId:this.searchForm.organId.join(",")},Object(M["a"])(r,["startDate","endDate"])),e.next=5,d(a);case 5:o=e.sent,this.tableList=o.data,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),lookDetail:function(e){this.$refs.preDetailRef.openDialog(e,this.searchForm.timer)}},computed:{onExport:function(){var e=this.searchForm,t=e.timer,r=(Object(j["a"])(e,["timer"]),Object(i["a"])({organId:this.searchForm.organId.join(",")},Object(M["a"])(t,["startDate","endDate"])));return r}}},W=V,H=(r("53a6"),Object(x["a"])(W,z,A,!1,null,"62161394",null)),J=H.exports,Q={components:{actualList:F,preList:X,statisticsList:J},data:function(){return{activeIndex:"1"}},mounted:function(){},methods:{handleClick:function(e){}}},G=Q,K=Object(x["a"])(G,n,a,!1,null,"30e3b7bc",null);t["default"]=K.exports}}]);