1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59664cd7"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=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,a){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?r(e):a&&"function"===typeof a&&a()};u()}},"1ce5":function(e,t,a){"use strict";a("6e01")},"38da":function(e,t,a){},"3f6c":function(e,t,a){},"53a6":function(e,t,a){"use strict";a("3f6c")},"60a4":function(e,t,a){"use strict";a("38da")},"6e01":function(e,t,a){},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a("bc3a"),n=a.n(r),o=(a("4328"),a("5f87")),s=a("3908"),i=a("e3eb"),c=a.n(i),l=function(e,t,a,r){var i=t.url,l={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==l.method?l.data=t.params:l.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),n()(c()(l)).then((function(a){var n=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(n).text();o.then((function(a){if(-1!=a.indexOf("code")){var o=JSON.parse(a);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),r&&r()}else{var s=URL.createObjectURL(n),i=document.createElement("a"),c=t.fileName||"导出文件.xls";i.href=s,i.setAttribute("download",c),document.body.appendChild(i),i.click(),r&&r()}})),s["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return c}));var r=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),o=a.n(n);var s=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var r=e[a],n=a.toLocaleUpperCase();t.push({label:r,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},i=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(r["a"])(t,a[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(n):""),Object(r["a"])(t,a[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(n):""),t):{}},c=function(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===s?(t={},Object(r["a"])(t,n[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(s)+" 00:00:00":""),Object(r["a"])(t,n[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(s)+" 23:59:59":""),t):(a={},Object(r["a"])(a,n[0]||"start",o()(e[0]).isValid()?o()(e[0]).format(s):""),Object(r["a"])(a,n[1]||"end",o()(e[1]).isValid()?o()(e[1]).format(s):""),a):{}}},fbd1:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("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"}},[a("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumer",expression:"'studentCourseConsumer/queryCourseConsumer'"}],attrs:{label:"实际课耗",lazy:"",name:"1"}},["1"===e.activeIndex?a("actualList"):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryPreCourseConsumer",expression:"'studentCourseConsumer/queryPreCourseConsumer'"}],attrs:{label:"预计课耗",lazy:"",name:"2"}},["2"===e.activeIndex?a("preList"):e._e()],1),e._v(" "),a("el-tab-pane",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumerSum",expression:"'studentCourseConsumer/queryCourseConsumerSum'"}],attrs:{label:"课耗统计",lazy:"",name:"3"}},["3"===e.activeIndex?a("statisticsList"):e._e()],1)],1)],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 小课课耗统计\n ")])}],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vipClass"},[a("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}}},[a("el-form-item",{attrs:{prop:"organId"}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("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(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryCourseConsumerDetail",expression:"'studentCourseConsumer/queryCourseConsumerDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),a("actualDetail",{ref:"actualDetailRef"})],1)],1)},s=[],i=a("db72"),c=a("c80c"),l=(a("96cf"),a("3b8d")),u=a("829b"),p=function(e){return Object(u["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumer",data:e,method:"post"})},m=function(e){return Object(u["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumerDetail",data:e,method:"post"})},d=function(e){return Object(u["a"])({url:"/api-web/studentCourseConsumer/queryPreCourseConsumer",data:e,method:"post"})},f=function(e){return Object(u["a"])({url:"/api-web/studentCourseConsumer/queryPreCourseConsumerDetail",data:e,method:"post"})},b=function(e){return Object(u["a"])({url:"/api-web/studentCourseConsumer/queryCourseConsumerSum",data:e,method:"post"})},h=a("333d"),v=a("5a0c"),_=a.n(v),g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"实际课耗详情",width:"1000px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t},close:e.cancelHandel}},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",{attrs:{prop:"search"}},[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("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(" "),a("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"username",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userId",label:"学生编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"preConsumerNum",label:"应耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.preConsumerNum)+"节\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"consumerNum",label:"实耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.consumerNum)+"节\n ")])]}}])})],1),e._v(" "),a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.courseVisible=!1}}},[e._v("确 定")])],1)],1)],1)},y=[],C=a("3655"),O={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:C["a"]},mounted:function(){},methods:{openDialog:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(t,a){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.searchForm.month=a,this.searchForm.organId=t.organId,this.getList(),this.courseVisible=!0}catch(r){console.log(r)}case 1:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().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=O,x=a("2877"),E=Object(x["a"])(w,g,y,!1,null,"844989bc",null),I=E.exports,j={name:"actualList",components:{pagination:h["a"],actualDetail:I,ExportChiose:C["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:_()(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"])(Object(c["a"])().mark((function e(){return Object(c["a"])().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=_()(new Date).format("YYYY-MM"),this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t,a;return Object(c["a"])().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,p(t);case 4:a=e.sent,this.tableList=a.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(",")})}}},D=j,k=(a("1ce5"),Object(x["a"])(D,o,s,!1,null,"7e0f68cc",null)),F=k.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vipClass"},[a("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}}},[a("el-form-item",{attrs:{prop:"organId"}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("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(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentCourseConsumer/queryPreCourseConsumerDetail",expression:"'studentCourseConsumer/queryPreCourseConsumerDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),a("preDetail",{ref:"preDetailRef"})],1)],1)},N=[],L=a("a8db"),R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"预计课耗详情",width:"1000px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t},close:e.cancelHandel}},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",{attrs:{prop:"search"}},[a("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(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("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(" "),a("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"username",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userId",label:"学生编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"preConsumerNum",label:"应耗课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.preConsumerNum)+"节\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"courseNum",label:"已排课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.courseNum)+"节\n ")])]}}])})],1),e._v(" "),a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.courseVisible=!1}}},[e._v("确 定")])],1)],1)],1)},M=[],Y=a("ed08"),U=["timer"],T=["timer"],$={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:C["a"]},mounted:function(){},methods:{openDialog:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(t,a){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.searchForm.timer=a,this.searchForm.organId=t.organId,this.getList(),this.courseVisible=!0}catch(r){console.log(r)}case 1:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t,a,r,n,o;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,a=t.timer,r=Object(L["a"])(t,U),n=Object(i["a"])(Object(i["a"])(Object(i["a"])({},r),Object(Y["b"])(a,["startDate","endDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}),e.next=4,f(n);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,a=Object(L["a"])(e,T),r=Object(i["a"])(Object(i["a"])({},a),Object(Y["b"])(t,["startDate","endDate"]));return r}}},P=$,B=Object(x["a"])(P,R,M,!1,null,"bef7bab2",null),q=B.exports,V=["timer"],X=["timer"],z={name:"actualList",components:{pagination:h["a"],preDetail:q,ExportChiose:C["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:[_()((new Date).setDate(1)).format("YYYY-MM-DD"),_()(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"])(Object(c["a"])().mark((function e(){return Object(c["a"])().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=[_()((new Date).setDate(1)).format("YYYY-MM-DD"),_()(new Date).format("YYYY-MM-DD")],this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t,a,r,n;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.timer,Object(L["a"])(t,V),r=Object(i["a"])(Object(i["a"])({},this.searchForm),{},{organId:this.searchForm.organId.join(",")},Object(Y["b"])(a,["startDate","endDate"])),e.next=5,d(r);case 5:n=e.sent,this.tableList=n.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,a=(Object(L["a"])(e,X),Object(i["a"])({organId:this.searchForm.organId.join(",")},Object(Y["b"])(t,["startDate","endDate"])));return a}}},A=z,W=(a("60a4"),Object(x["a"])(A,S,N,!1,null,"055cebca",null)),H=W.exports,J=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vipClass"},[a("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}}},[a("el-form-item",{attrs:{prop:"organId"}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("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(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.normalNum)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"应有课耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.courseConsumerNum)+"节\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"实际课耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.courseSum)+"节\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"课耗达标率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.courseConsumerRate)+"%\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"大于等于5节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num5)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"4节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num4)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"3节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num3)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"2节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num2)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"1节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num1)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"0节"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.num0)+"人\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentBasicInfo.subjectName",label:"达标占比"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.standRate)+"%\n ")])]}}])})],1),e._v(" "),a("preDetail",{ref:"preDetailRef"})],1)],1)},Q=[],G=["timer"],K=["timer"],Z={name:"actualList",components:{pagination:h["a"],preDetail:q,ExportChiose:C["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:[_()((new Date).setDate(1)).format("YYYY-MM-DD"),_()(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"])(Object(c["a"])().mark((function e(){return Object(c["a"])().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=[_()((new Date).setDate(1)).format("YYYY-MM-DD"),_()(new Date).format("YYYY-MM-DD")],this.pageInfo.page=1,this.getList()},getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t,a,r,n,o;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.timer,r=Object(L["a"])(t,G),n=Object(i["a"])(Object(i["a"])({},r),{},{organId:this.searchForm.organId.join(",")},Object(Y["b"])(a,["startDate","endDate"])),e.next=5,b(n);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,a=(Object(L["a"])(e,K),Object(i["a"])({organId:this.searchForm.organId.join(",")},Object(Y["b"])(t,["startDate","endDate"])));return a}}},ee=Z,te=(a("53a6"),Object(x["a"])(ee,J,Q,!1,null,"62161394",null)),ae=te.exports,re={components:{actualList:F,preList:H,statisticsList:ae},data:function(){return{activeIndex:"1"}},mounted:function(){},methods:{handleClick:function(e){}}},ne=re,oe=Object(x["a"])(ne,r,n,!1,null,"30e3b7bc",null);t["default"]=oe.exports}}]);
|