chunk-0c76ba02.f991b2f4.js 5.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c76ba02"],{"0ccb":function(t,e,a){var n=a("e330"),r=a("50c4"),i=a("577e"),s=a("1148"),o=a("1d80"),c=n(s),l=n("".slice),d=Math.ceil,u=function(t){return function(e,a,n){var s,u,p=i(o(e)),m=r(a),h=p.length,f=void 0===n?" ":i(n);return m<=h||""==f?p:(s=m-h,u=c(f,d(s/f.length)),u.length>s&&(u=l(u,0,s)),t?p+u:u+p)}};t.exports={start:u(!1),end:u(!0)}},"4d90":function(t,e,a){"use strict";var n=a("23e7"),r=a("0ccb").start,i=a("9a0c");n({target:"String",proto:!0,forced:i},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"9a0c":function(t,e,a){var n=a("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},a8ca:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[t._v(" 日期范围:")]),a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy-MM-dd"},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.initList}},[t._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:t.reset}},[t._v("重置")])],1),a("el-row",{staticClass:"top_box"},[a("el-col",{staticClass:"two_box",attrs:{span:8}},[a("p",[t._v("患者个数:"+t._s(t.tableForm.patientCount))]),a("p",[t._v("预约个数: "+t._s(t.tableForm.patientAppointmentCount))])]),a("el-col",{staticClass:"two_box",attrs:{span:8}},[a("p",[t._v("应收费用:"+t._s(t.tableForm.receivableCost)+"(元)")]),a("p",[t._v("就诊数: "+t._s(t.tableForm.medicalRecordCount))])]),a("el-col",{staticClass:"two_box",attrs:{span:8}},[a("p",[t._v("实收费用: "+t._s(t.tableForm.netReceiptsCost)+"(元)")]),a("p",[t._v("回访数: "+t._s(t.tableForm.patientFollowUpCount))])])],1),a("div",{staticClass:"big_box",style:{height:t.innerHeight-350+"px"}},[a("div",{staticClass:"echart",style:{width:"50%",height:"100%"},attrs:{id:"leftCenterChart"}}),a("div",{staticClass:"echart",style:{width:"50%",height:"100%"},attrs:{id:"rightCenterChart"}})])],1)},r=[],i=a("c7eb"),s=a("1da1"),o=(a("99af"),a("d81d"),a("4d90"),a("943d")),c=a("313e"),l={name:"EitcErmPcIndex",data:function(){return{time:[],form:{startDate:"",endDate:""},innerHeight:window.innerHeight,tableForm:{}}},mounted:function(){this.time=[(new Date).getFullYear()+"-01-01",this.getCurrentDate()],this.initList()},methods:{reset:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.time=[(new Date).getFullYear()+"-01-01",t.getCurrentDate()],Array.isArray(t.time)&&t.time.length?t.form={startDate:t.time[0],endDate:t.time[1]}:t.form={startDate:"",endDate:""},e.next=4,Object(o["Cb"])(t.form);case 4:a=e.sent,t.tableForm=a.data,t.initCharts(),t.initCharts2();case 8:case"end":return e.stop()}}),e)})))()},initList:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Array.isArray(t.time)&&t.time.length?t.form={startDate:t.time[0],endDate:t.time[1]}:t.form={startDate:"",endDate:""},e.next=3,Object(o["Cb"])(t.form);case 3:a=e.sent,t.tableForm=a.data,t.initCharts(),t.initCharts2();case 7:case"end":return e.stop()}}),e)})))()},getCurrentDate:function(){var t=new Date,e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(a,"-").concat(n)},initCharts:function(){var t={title:{text:"预约状态统计",left:"center"},tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)",data:["Industries","Technology","Forex","Gold","Forecasts"]},legend:{top:"8%",left:"center"},series:[{type:"pie",radius:"60%",data:this.tableForm.patientAppointmentStatus.map((function(t){return t.value=+t.count,t})),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},e=c["init"](document.getElementById("leftCenterChart"));e.setOption(t),window.addEventListener("resize",(function(){e.resize()}))},initCharts2:function(){var t={title:{text:"诊断统计",left:"center"},tooltip:{trigger:"item"},legend:{top:"8%",left:"center"},xAxis:{type:"category",data:this.tableForm.diagnosisCount.map((function(t){return t.diagnosisTypeName})),axisLabel:{interval:0,rotate:20}},yAxis:{type:"value"},series:[{data:this.tableForm.diagnosisCount.map((function(t){return t.count})),label:{show:!0,position:"top"},type:"bar",barWidth:"25%"}]},e=c["init"](document.getElementById("rightCenterChart"));e.setOption(t),window.addEventListener("resize",(function(){e.resize()}))}}},d=l,u=(a("e74d"),a("2877")),p=Object(u["a"])(d,n,r,!1,null,"f84db39a",null);e["default"]=p.exports},cb29:function(t,e,a){},e74d:function(t,e,a){"use strict";a("cb29")}}]);