(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bec8f9d"],{"0ed2":function(e,t,a){e.exports=a.p+"img/papa-logo.b221938a.png"},"268b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pdf-container"},[a("i",{staticClass:"el-icon-download",attrs:{title:"点击下载"},on:{click:e.handeleClick}}),a("div",{ref:"pdf",staticClass:"appraisal-center-container",attrs:{id:"pdf"}},[a("div",{staticClass:"appraisal-logo"},[a("img",{attrs:{src:e.company_logo}})]),a("div",{staticClass:"appraisal-title"},[e._v(e._s(e.studentName)+e._s(e.template_name)+"报告")]),a("div",{staticClass:"appraisal-content"},[a("el-table",{staticClass:"user-table",staticStyle:{width:"100%","margin-bottom":"40px"},attrs:{data:e.userTableData}},[a("el-table-column",{attrs:{prop:"student_name",label:"姓名"}}),a("el-table-column",{attrs:{prop:"sex_str",label:"性别"}}),a("el-table-column",{attrs:{prop:"birthday",label:"年龄"}}),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),a("el-table-column",{attrs:{prop:"report_number",label:"测评报告号"}}),a("el-table-column",{attrs:{prop:"assessment_date",label:"测评日期"}})],1),a("el-table",{staticClass:"type-table",staticStyle:{width:"100%"},attrs:{data:e.dataList,border:!1,"span-method":e.spanMethod}},[a("el-table-column",{attrs:{label:"测评详情",align:"center"}},[a("el-table-column",{attrs:{prop:"type_name",label:"测评类型",align:"center","class-name":"row-3",width:"300"}}),a("el-table-column",{attrs:{prop:"item_name",label:"测评项目",align:"center"}}),a("el-table-column",{attrs:{prop:"item_value",label:"测评结果",align:"center"}})],1)],1)],1)])])},r=[],l=(a("2397"),a("96cf"),a("1da1")),s=(a("ac6a"),a("d4ec")),o=a("bee2"),i=a("99de"),c=a("7e84"),u=a("262e"),d=a("9ab4"),p=a("60a3"),m=a("c0e9"),b=a.n(m),f=a("8baf");function h(e,t){var a=document.getElementById(e);a.style.overflow="visible",b()(a,{allowTaint:!0,height:document.getElementById(e).scrollHeight,width:document.getElementById(e).scrollWidth}).then((function(e){var a=e.width,n=e.height,r=a/595.28*841.89,l=n,s=0,o=555.28,i=555.28/a*n,c=e.toDataURL("image/jpeg",1),u=new f["a"]("p","pt","a4");if(l<r)u.addImage(c,"JPEG",20,0,o,i);else while(l>0)u.addImage(c,"JPEG",20,s,o,i),l-=r,s-=841.89,l>0&&u.addPage();u.save(t+".pdf")})),a.style.overflow="auto"}var _=h,v=a("47fb"),g=a("9dba");function y(e,t,a){return t=Object(c["a"])(t),Object(i["a"])(e,w()?Reflect.construct(t,a||[],Object(c["a"])(e).constructor):t.apply(e,a))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}var k=function(e){function t(){var e;return Object(s["a"])(this,t),e=y(this,t,arguments),e.userTableData=[],e.tableData=[],e.studentName="",e.template_name="",e}return Object(u["a"])(t,e),Object(o["a"])(t,[{key:"record_id",get:function(){return this.$route.query.record_id}},{key:"company_logo",get:function(){return g["a"].userInfo.company_logo||a("0ed2")}},{key:"dataList",get:function(){var e=[];return this.tableData.forEach((function(t){t.item&&t.item.forEach((function(a,n){e.push({type_name:t.item_name,index:n,item_name:a.item_name,item_value:a.item_value,row:t.item.length})}))})),e}},{key:"spanMethod",value:function(e){var t=e.row,a=e.column,n=(e.rowIndex,e.columnIndex);if("type_name"==a.property)return 0==t.index&&0==n?[t.row,1]:[0,0]}},{key:"mounted",value:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,l,s,o,i,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["k"])({record_id:this.record_id});case 2:t=e.sent,a=t.data,n=a.student_name,r=a.template_name,l=a.birthday,s=a.report_number,o=a.assessment_date,i=a.sex_str,c=a.phone,this.userTableData=[{student_name:n,template_name:r,birthday:l,report_number:s,assessment_date:o,sex_str:i,phone:c}],this.studentName=a.student_name,this.template_name=a.template_name,this.tableData=a.list;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handeleClick",value:function(){_("pdf","".concat(this.studentName,"体质检测报告"))}}]),t}(p["i"]);k=Object(d["a"])([Object(p["a"])({})],k);var j=k,x=j,O=(a("32b5"),a("2877")),C=Object(O["a"])(x,n,r,!1,null,"26224def",null);t["default"]=C.exports},"32b5":function(e,t,a){"use strict";a("fe92")},fe92:function(e,t,a){}}]);