webpackJsonp([55],{"5/hE":function(t,n){},SKyX:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("CCn6"),r={name:"index",data:function(){return{list:[],dateList:[],propertyList:["title","start_at","total_join_num","total_max_join_num","total_target_join_num","complete_rate","target_diff","wait_join_num","other_wait_join_num"]}},methods:{initPage:function(){var t=this;Object(a._70)().then(function(n){t.list=n,n[0].date&&n[0].date.forEach(function(n){t.dateList.push(n.pay_date)})})},tableRowClassName:function(t){t.row;return 0===t.rowIndex?"warning-row":""},arraySpanMethod:function(t){if(this.propertyList.indexOf(t.column.property)>-1){if(0===t.rowIndex||t.row.id!==this.list[t.rowIndex-1].id){for(var n=1,e=t.rowIndex+1;e<this.list.length&&t.row.id===this.list[e].id;e++)n++;return{rowspan:n,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}}},created:function(){this.initPage()}},o={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("el-table",{attrs:{border:"",align:"center","header-cell-style":{background:"#5f5f5f",color:"#fff"},data:t.list,height:"calc(100vh - 60px)",size:"mini","row-class-name":t.tableRowClassName,"span-method":t.arraySpanMethod}},[e("el-table-column",{attrs:{"min-width":"180",prop:"wait_join_num",align:"left",fixed:"left",label:"期数总状况"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n        期数名称："+t._s(n.row.title)+"\n        "),e("br"),t._v("\n        开始时间："+t._s(n.row.start_at)+"\n        "),e("br"),t._v("\n        团购待进班人数："+t._s(n.row.wait_join_num)+"\n        "),e("br"),t._v("\n        外部订单待进班人数："+t._s(n.row.other_wait_join_num)+"\n        "),e("br"),t._v("\n        总进班人数："+t._s(n.row.total_join_num)+"\n        "),e("br"),t._v("\n        需求供量："+t._s(n.row.total_max_join_num)+"\n        "),e("br"),t._v("\n        目标差距："+t._s(n.row.target_diff<0?"超标"+-1*n.row.target_diff:n.row.target_diff)+"个\n        "),e("br"),t._v("\n        完成率："),e("el-progress",{staticStyle:{display:"inline-block",width:"calc(90% - 50px)"},attrs:{"text-inside":!0,"stroke-width":16,status:n.row.complete_rate>=1?"exception":"success",percentage:1e3*n.row.complete_rate/10}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"class_name",align:"center","min-width":"80",fixed:"left",label:"班级名称"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n        "+t._s("合计"===n.row.title?"合计":n.row.class_name)+"\n      ")]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"max_join_num","min-width":"60",align:"center",label:"预计加入人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"join_num","min-width":"60",align:"center",label:"已进班人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"other_allot_num",align:"center","min-width":"60",label:"外部订单已分配人数"}}),t._v(" "),t._l(t.dateList,function(n,a){return e("el-table-column",{key:a,attrs:{align:"center",label:n}},[e("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"系统招生量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n          "+t._s(n.row.date[a].total_buy_num)+"\n        ")]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"外部订单招生量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n          "+t._s(n.row.date[a].total_other_buy_num)+"\n        ")]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center","min-width":"60px",label:"进班量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n          "+t._s(n.row.date[a].total_into_num)+"\n        ")]}}])})],1)})],2)],1)},staticRenderFns:[]};var l=e("VU/8")(r,o,!1,function(t){e("5/hE")},"data-v-1957a46f",null);n.default=l.exports}});