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