WXL (wul)
8 小时以前 1feb410410781eb56159c8fdd856e68d2c23e0a4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4274b65e"],{"38a5":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"Questionnairemanagement"},[a("div",{staticClass:"leftvlue"},[a("div",{staticClass:"leftvlue-bg"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24,xs:24}},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"98px"}},[a("el-form-item",{attrs:{label:"统计类型",prop:"userName"}},[a("el-select",{attrs:{placeholder:"请选择统计类型"},model:{value:e.queryParams.statisticaltype,callback:function(t){e.$set(e.queryParams,"statisticaltype",t)},expression:"queryParams.statisticaltype"}},e._l(e.Statisticallist,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),1==e.queryParams.statisticaltype?a("el-select",{staticStyle:{"margin-left":"10px"},attrs:{size:"medium",multiple:"",filterable:"",placeholder:"请选择病区"},model:{value:e.queryParams.leavehospitaldistrictcodes,callback:function(t){e.$set(e.queryParams,"leavehospitaldistrictcodes",t)},expression:"queryParams.leavehospitaldistrictcodes"}},e._l(e.flatArrayhospit,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):2==e.queryParams.statisticaltype?a("el-select",{attrs:{size:"medium",multiple:"",filterable:"",placeholder:"请选择科室"},model:{value:e.queryParams.deptcodes,callback:function(t){e.$set(e.queryParams,"deptcodes",t)},expression:"queryParams.deptcodes"}},e._l(e.flatArraydept,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()],1),a("el-form-item",{attrs:{label:"统计题目",prop:"userName"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.queryParams.serviceType,callback:function(t){e.$set(e.queryParams,"serviceType",t)},expression:"queryParams.serviceType"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{"label-width":"200",label:"随访时间范围",prop:"userName"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.queryParams.dateRange,callback:function(t){e.$set(e.queryParams,"dateRange",t)},expression:"queryParams.dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:e.resetQuery}},[e._v("重置")])],1),a("el-col",{attrs:{span:19}},[a("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"medium"},on:{click:e.handleExport}},[e._v("导出")]),a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-data-line",size:"medium"},on:{click:e.showChartDialog}},[e._v("统计趋势图")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList,border:!0,"row-key":e.getRowKey,"expand-row-keys":e.expands},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{key:"leavehospitaldistrictname",attrs:{label:"出院病区",align:"center",sortable:"",prop:"leavehospitaldistrictname","show-overflow-tooltip":!0}}),a("el-table-column",{key:"deptname",attrs:{label:"科室",align:"center",prop:"deptname","show-overflow-tooltip":!0}}),a("el-table-column",{key:"dischargeCount",attrs:{label:"出院人次",align:"center",prop:"dischargeCount"}}),a("el-table-column",{key:"nonFollowUp",attrs:{label:"无需随访人次",align:"center",prop:"nonFollowUp"}}),a("el-table-column",{key:"followUpNeeded",attrs:{label:"应随访人次",align:"center",prop:"followUpNeeded"}}),a("el-table-column",{key:"followUpRate",attrs:{label:"随访率",align:"center",prop:"followUpRate"}}),a("el-table-column",{key:"rate",attrs:{label:"及时率",align:"center",prop:"rate"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.Seedetails(t.row)}}},[a("span",{staticClass:"button-zx"},[e._v(e._s((100*Number(t.row.rate)).toFixed(2))+"%")])])]}}])}),a("el-table-column",{key:"joyAllCount",attrs:{label:"满意度题目总量",align:"center",prop:"joyAllCount"}}),a("el-table-column",{key:"joyCount",attrs:{label:"满意度填报量",align:"center",prop:"joyCount"}}),a("el-table-column",{key:"joyTotal",attrs:{label:"完成比率",align:"center",prop:"joyTotal"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"button-zx"},[e._v(e._s((100*Number(t.row.joyTotal)).toFixed(2))+"%")])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right",width:"300","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.getinfo(t.row)}}},[a("span",{staticClass:"button-zx"},[a("i",{staticClass:"el-icon-s-order"}),e._v("查看详情")])])]}}])})],1)],1)],1)],1)]),a("el-dialog",{attrs:{title:"随访统计趋势图",visible:e.chartDialogVisible,width:"80%","close-on-click-modal":!1},on:{"update:visible":function(t){e.chartDialogVisible=t}}},[a("div",{staticClass:"chart-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"chart-title"},[e._v("随访状态分布")]),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"pieChart"}})]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"chart-title"},[e._v("随访趋势分析")]),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"barLineChart"}})])],1)],1)]),a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.Seedloading,expression:"Seedloading"}],attrs:{title:"未及时随访患者服务",visible:e.SeedetailsVisible,width:"70%","close-on-click-modal":!1},on:{"update:visible":function(t){e.SeedetailsVisible=t}}},[a("div",{staticClass:"examine-jic"},[a("div",{staticClass:"jic-value"},[a("el-row",{attrs:{gutter:20}},[a("el-form",{ref:"queryForm",attrs:{model:e.patientqueryParams,size:"small",inline:!0,"label-width":"98px"}},[a("el-form-item",{attrs:{label:"患者:"}},[a("el-input",{nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.patientqueryParams.name,callback:function(t){e.$set(e.patientqueryParams,"name",t)},expression:"patientqueryParams.name"}})],1),a("el-form-item",{attrs:{label:"患者诊断:"}},[a("el-input",{nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.patientqueryParams.leavediagname,callback:function(t){e.$set(e.patientqueryParams,"leavediagname",t)},expression:"patientqueryParams.leavediagname"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"medium"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"medium"},on:{click:e.resetQuery}},[e._v("取消创建")])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.logsheetlist}},[a("el-table-column",{attrs:{prop:"sendname",align:"center",label:"姓名",width:"100"}}),a("el-table-column",{attrs:{prop:"taskName",align:"center",width:"200","show-overflow-tooltip":"",label:"任务名称"}}),a("el-table-column",{attrs:{prop:"sendstate",align:"center",width:"200",label:"任务状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"primary","disable-transitions":!1}},[e._v("表单已领取")])],1):e._e(),2==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"primary","disable-transitions":!1}},[e._v("待随访")])],1):e._e(),3==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"success","disable-transitions":!1}},[e._v("表单已发送")])],1):e._e(),4==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"info","disable-transitions":!1}},[e._v("不执行")])],1):e._e(),5==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"danger","disable-transitions":!1}},[e._v("发送失败")])],1):e._e(),6==t.row.sendstate?a("div",[a("el-tag",{attrs:{type:"success","disable-transitions":!1}},[e._v("已完成")])],1):e._e()]}}])}),a("el-table-column",{attrs:{prop:"visitTime",align:"center",label:"应随访时间",width:"200","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"finishtime",align:"center",label:"随访完成时间",width:"200","show-overflow-tooltip":""}}),a("el-table-column",{key:"endtime",attrs:{label:"出院日期",width:"200",align:"center",prop:"endtime"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.formatTime(t.row.endtime)))])]}}])}),a("el-table-column",{key:"nurseName",attrs:{label:"责任护士",width:"120",align:"center",prop:"nurseName"}}),a("el-table-column",{key:"drname",attrs:{label:"主治医生",width:"120",align:"center",prop:"drname"}}),a("el-table-column",{key:"excep",attrs:{label:"结果状态",align:"center",prop:"excep",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.sys_yujing,value:t.row.excep}})]}}])}),a("el-table-column",{key:"suggest",attrs:{label:"处理意见",align:"center",prop:"suggest",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.sys_suggest,value:t.row.suggest}})]}}])}),a("el-table-column",{attrs:{prop:"templatename",align:"center",label:"服务模板",width:"200","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"remark",align:"center",label:"服务记录",width:"200","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"bankcardno",align:"center",label:"呼叫状态",width:"210"}}),a("el-table-column",{attrs:{label:"操作",fixed:"right",align:"center",width:"200","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"medium",type:"text"},on:{click:function(a){return e.SeedetailsgGo(t.row)}}},[a("span",{staticClass:"button-zx"},[a("i",{staticClass:"el-icon-s-order"}),e._v("查看")])])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.patienttotal>0&&6!=this.patientqueryParams.allhosp,expression:"patienttotal > 0 && this.patientqueryParams.allhosp != 6"}],attrs:{total:e.patienttotal,page:e.patientqueryParams.pn,limit:e.patientqueryParams.ps},on:{"update:page":function(t){return e.$set(e.patientqueryParams,"pn",t)},"update:limit":function(t){return e.$set(e.patientqueryParams,"ps",t)},pagination:e.Seedetails}})],1)])]),a("el-dialog",{attrs:{visible:e.topicVisible,width:"45%"},on:{"update:visible":function(t){e.topicVisible=t}}},[a("div",{staticClass:"topicdia"},[a("div",{staticClass:"top-text"},[e._v(e._s(e.topicvalue.name))]),a("div",{staticClass:"top-mintext"},[e._v("随访完成数"+e._s(e.topicvalue.number))]),a("div",{staticStyle:{"overflow-x":"hidden","overflow-y":"auto","max-height":"65vh"}},e._l(e.topiclist,(function(t){return a("div",{key:t.name,staticClass:"ttaabbcc"},[a("div",{staticClass:"describe"},[e._v(" 第"+e._s(t.number)+"题: "+e._s(t.name)+"?"),a("span",[e._v("["+e._s(1==t.type?"单选题":"多选题")+"]")])]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"date",label:"问题选项"}}),a("el-table-column",{attrs:{prop:"name",label:"选择人数"}}),a("el-table-column",{attrs:{prop:"address",label:"比例"}})],1)],1)])})),0)]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.topicVisible=!1}}},[e._v("关 闭")])],1)])],1)},r=[],s=a("b3d7"),n=a("025b"),l=(a("7103"),a("2f82"),a("6678"),a("6e70"),a("c33f"),a("21b9"),a("8ada"),a("4a55"),a("66c1"),a("e795"),a("cfee"),a("8adb"),a("46e6"),a("e8a6"),a("aad4"),a("63ce")),o=a("4360"),d=a("c0c7"),c=a("b84a"),u=a.n(c),p=(a("2c60"),[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]),m={name:"Percentage",dicts:["sys_normal_disable","sys_user_sex"],components:{Treeselect:u.a},data:function(){return{topactiveName:"Local",activeName:"first",expands:[],loading:!1,Seedloading:!1,chartDialogVisible:!1,pieChart:null,barLineChart:null,ids:[],single:!0,multiple:!0,showSearch:!0,idds:"",total:0,flatArrayhospit:[],flatArraydept:[],patienttotal:0,logsheetlist:[],Statisticallist:[{label:"病区统计",value:1},{label:"科室统计",value:2}],patientqueryParams:{pn:1,ps:10},topiclist:[{name:"您的身体康复情况如何",number:1,type:1},{name:"您的饮食情况如何",number:2,type:2},{name:"您的恢复情况如何",number:3,type:1}],tableData:[{date:"好",name:12,address:"50%"},{date:"一般",name:2,address:"6.2%"},{date:"差",name:0,address:"0%"}],amendtag:!1,lstamendtag:!1,scavisible:!1,deleteVisible:!1,deletefenl:"高血压",tagform:{isupload:"",tagname:"",tagcategoryid:"",tagdescription:""},classifyform:{categoryname:""},userList:[],title:"",open:!1,dateRange:[],postOptions:[],roleOptions:[],allDeptCodes:[],allWardCodes:[],form:{},forms:{name:""},numberlb:22,dialogFormVisible:!1,lstamendtagVisible:!1,goQRCodeVisible:!1,topicVisible:!1,topicvalue:{name:"骨科随访模板",number:222},sidecolumnval:"",propss:{multiple:!0},SeedetailsVisible:!1,options:o["a"].getters.tasktypes,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5},shortcuts:p},pickerOptionsa:{disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:p},queryParams:{pageNum:1,pageSize:10,serviceType:[2],dateRange:[],statisticaltype:1,leavehospitaldistrictcodes:["all"],deptcodes:[]},columns:[{key:0,label:"标签编号",visible:!0},{key:1,label:"标签名称",visible:!0},{key:2,label:"标签昵称",visible:!0},{key:3,label:"部门",visible:!0},{key:4,label:"手机号码",visible:!0},{key:5,label:"状态",visible:!0},{key:6,label:"创建时间",visible:!0}]}},watch:{},created:function(){this.getDeptTree(),this.getList()},methods:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({getList:function(){var e=this,t=Object(n["a"])(Object(n["a"])({},this.queryParams),{},{leavehospitaldistrictcodes:this.queryParams.leavehospitaldistrictcodes.includes("all")?this.allWardCodes:this.queryParams.leavehospitaldistrictcodes,deptcodes:this.queryParams.deptcodes.includes("all")?this.allDeptCodes:this.queryParams.deptcodes});delete t.leavehospitaldistrictcodes.all,delete t.deptcodes.all,Object(d["h"])(t).then((function(t){console.log(t),e.userList=t.data}))},getRowKey:function(e){return 1===e.statisticaltype?e.leavehospitaldistrictcode:e.deptcode},handleUpdate:function(e){console.log(e,"修改标签"),this.lstamendtagVisible=!0,this.lstamendtag=!0,this.tagform={isupload:e.isupload,tagname:e.tagname,tagcategoryid:e.tagcategoryid,tagdescription:e.tagdescription,tagid:e.tagid}},getDeptTree:function(){this.flatArraydept=o["a"].getters.belongDepts.map((function(e){return{label:e.deptName,value:e.deptCode}})),this.allDeptCodes=o["a"].getters.belongDepts.map((function(e){return e.deptCode})),this.flatArrayhospit=o["a"].getters.belongWards.map((function(e){return{label:e.districtName,value:e.districtCode}})),this.allWardCodes=o["a"].getters.belongWards.map((function(e){return e.districtCode})),this.flatArraydept.push({label:"全部",value:"all"}),this.flatArrayhospit.push({label:"全部",value:"all"})},flattenArray:function(e){var t=[];function a(e){if(e.children&&e.children.length>0)e.children.forEach((function(e){return a(e)}));else{var i=JSON.parse(JSON.stringify(e));t.push(i)}}return e.forEach((function(e){return a(e)})),t},addladeltag:function(){this.lstamendtagVisible=!0,this.lstamendtag=!1,this.tagform={isupload:"",tagname:"",tagcategoryid:"",tagdescription:"",tagid:""}},Seedetails:function(e){var t=this;this.SeedetailsVisible=!0,this.Seedloading=!0,this.patientqueryParams.starttime=this.parseTime(this.queryParams.dateRange[0]),this.patientqueryParams.endtime=this.parseTime(this.queryParams.dateRange[1]),this.patientqueryParams.deptcode=e.deptcode,Object(d["n"])(this.patientqueryParams).then((function(e){t.logsheetlist=e.data.detail,t.patienttotal=e.data.total,t.Seedloading=!1}))},SeedetailsgGo:function(e){var t=this;this.SeedetailsVisible=!1;var a="";e.preachformson&&e.preachformson.includes("3")&&(a=1),setTimeout((function(){t.$router.push({path:"/followvisit/record/detailpage/",query:{taskid:e.taskid,patid:e.patid,id:e.id,Voicetype:a}})}),300)},getinfo:function(e){this.topicVisible=!0},Maintenancetag:function(){var e=this;this.lstamendtag?Object(l["h"])(this.addDateRange(this.tagform)).then((function(t){console.log(t),e.getList()})):Object(l["a"])(this.addDateRange(this.tagform)).then((function(t){console.log(t),e.getList()})),this.tagform={isupload:"",tagname:"",tagcategoryid:"",tagdescription:"",tagid:""}},routerErr:function(e){console.log(e,"跳转异常"),this.$router.push({path:"/followvisit/discharge",query:{errtype:1,leavehospitaldistrictcode:e.leavehospitaldistrictcode}})},reset:function(){this.form={userId:void 0,deptId:void 0,userName:void 0,nickName:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:"0",remark:void 0,postIds:[],roleIds:[]},this.resetForm("form")},handleStatusChange:function(e){var t=this;console.log(e.isupload);var a="0"===e.isupload?"启用":"停用";this.$modal.confirm('确认要"'+a+'""'+e.tagname+'"标签吗?').then((function(){return Object(l["c"])(e.tagid,e.isupload)})).then((function(){t.$modal.msgSuccess(a+"成功")})).catch((function(){e.isupload="0"===e.isupload?"1":"0"}))},handleQuery:function(){this.queryParams.pageNum=1,this.queryParams.dateRange||(this.queryParams.dateRange=[]),1==this.queryParams.statisticaltype?this.queryParams.deptcodes=[]:2==this.queryParams.statisticaltype&&(this.queryParams.leavehospitaldistrictcodes=[]),console.log(this.queryParams.dateRange),this.queryParams.startTime=this.parseTime(this.queryParams.dateRange[0]),this.queryParams.endTime=this.parseTime(this.queryParams.dateRange[1]),this.getList()},resetQuery:function(){this.queryParams.dateRange=[],this.queryParams.leavehospitaldistrictcodes=[],this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.tagid})),this.single=1!=e.length,this.multiple=!e.length},handleDelete:function(e){var t=this;console.log(e,"删除弹窗");var a=e.tagid||this.ids;console.log(a);var i=e.tagname;this.$modal.confirm(i?'是否确认删除标签名称为"'+i+'"的数据项?':"是否确认删除选中的数据项?").then((function(){return Object(l["d"])(a)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("smartor/serviceSubtask/getSfStatisticsExport",Object(n["a"])({},this.queryParams),"user_".concat((new Date).getTime(),".xlsx"))},showChartDialog:function(){var e=this;this.chartDialogVisible=!0,this.$nextTick((function(){e.initPieChart(),e.initBarLineChart()}))}},"showChartDialog",(function(){var e=this;this.chartDialogVisible=!0,this.$nextTick((function(){console.log(e.userList,"this.userList"),e.initCharts()}))})),"initCharts",(function(){this.initPieChart(),this.initBarLineChart()})),"initPieChart",(function(){var e=a("ada4"),t=document.getElementById("pieChart");if(t){this.pieChart&&this.pieChart.dispose(),this.pieChart=e.init(t);var i={pending:0,success:0,fail:0};this.userList.forEach((function(e){i.pending+=e.pendingFollowUp||0,i.success+=e.followUpSuccess||0,i.fail+=e.followUpFail||0}));var r={title:{text:"随访状态分布",left:"center",textStyle:{color:"#333",fontSize:16}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["待随访","随访成功","随访失败"],textStyle:{color:"#666"}},color:["#FF9D4D","#36B37E","#FF5C5C"],series:[{name:"随访状态",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:"{b}: {c} ({d}%)",color:"#333"},emphasis:{label:{show:!0,fontSize:"18",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},data:[{value:i.pending,name:"待随访"},{value:i.success,name:"随访成功"},{value:i.fail,name:"随访失败"}]}]};this.pieChart.setOption(r),window.addEventListener("resize",this.resizePieChart)}})),"initBarLineChart",(function(){var e=a("ada4"),t=document.getElementById("barLineChart");if(t){this.barLineChart&&this.barLineChart.dispose(),this.barLineChart=e.init(t);var i=this.userList.map((function(e){return e.leavehospitaldistrictname||e.deptname})),r=this.userList.map((function(e){return e.dischargeCount||0})),s=this.userList.map((function(e){return e.followUpNeeded||0})),n=this.userList.map((function(e){if(!e.followUpRate)return 0;var t=String(e.followUpRate).replace("%","");return parseFloat(t)||0})),l=this.userList.map((function(e){return e.rate?(100*Number(e.rate)).toFixed(2):0})),o={title:{text:"科室/病区随访趋势",left:"center",textStyle:{color:"#333",fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["出院人次","应随访人次","随访率(%)","及时率(%)"],top:"bottom",textStyle:{color:"#666"}},color:["#5470C6","#91CC75","#EE6666","#9A60B4"],xAxis:{type:"category",data:i,axisLabel:{interval:0,rotate:30,color:"#666"},axisLine:{lineStyle:{color:"#ddd"}}},yAxis:[{type:"value",name:"人次",min:0,axisLabel:{color:"#666"},axisLine:{lineStyle:{color:"#ddd"}},splitLine:{lineStyle:{color:"#f0f0f0"}}},{type:"value",name:"百分比(%)",min:0,max:100,axisLabel:{color:"#666",formatter:"{value}%"},axisLine:{lineStyle:{color:"#ddd"}},splitLine:{show:!1}}],series:[{name:"出院人次",type:"bar",barWidth:"25%",data:r,itemStyle:{borderRadius:[4,4,0,0]}},{name:"应随访人次",type:"bar",barWidth:"25%",data:s,itemStyle:{borderRadius:[4,4,0,0]}},{name:"随访率(%)",type:"line",yAxisIndex:1,data:n,symbolSize:8,lineStyle:{width:3},markLine:{silent:!0,data:[{yAxis:80,lineStyle:{color:"#EE6666",type:"dashed"}}]}},{name:"及时率(%)",type:"line",yAxisIndex:1,data:l,symbolSize:8,lineStyle:{width:3,type:"dotted"},markLine:{silent:!0,data:[{yAxis:90,lineStyle:{color:"#9A60B4",type:"dashed"}}]}}],grid:{top:"15%",left:"3%",right:"4%",bottom:"15%",containLabel:!0}};this.barLineChart.setOption(o),window.addEventListener("resize",this.resizeBarLineChart)}})),"resizePieChart",(function(){this.pieChart&&this.pieChart.resize()})),"resizeBarLineChart",(function(){this.barLineChart&&this.barLineChart.resize()})),"beforeDestroy",(function(){window.removeEventListener("resize",this.resizePieChart),window.removeEventListener("resize",this.resizeBarLineChart),this.pieChart&&(this.pieChart.dispose(),this.pieChart=null),this.barLineChart&&(this.barLineChart.dispose(),this.barLineChart=null)}))},h=m,f=(a("610f"),a("1805")),b=Object(f["a"])(h,i,r,!1,null,"6025157b",null);t["default"]=b.exports},"610f":function(e,t,a){"use strict";a("8590")},"63ce":function(e,t,a){"use strict";a.d(t,"h",(function(){return r})),a.d(t,"c",(function(){return s})),a.d(t,"i",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return d})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return p}));var i=a("b775");a("c38a");function r(e){return Object(i["a"])({url:"/base/tag/edit",method:"post",data:e})}function s(e,t){var a={tagid:e,isupload:t};return Object(i["a"])({url:"/base/tag/edit",method:"post",data:a})}function n(e){return Object(i["a"])({url:"/system/tagcategory/edit",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/base/tag/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/system/tagcategory",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/base/tag/remove/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/system/tagcategory/remove/"+e,method:"get"})}function u(e){return Object(i["a"])({url:"/base/tag/list",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/system/tagcategory/baseTagCategoryByName",method:"post",params:e})}},8590:function(e,t,a){},c0c7:function(e,t,a){"use strict";a.d(t,"k",(function(){return s})),a.d(t,"i",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"p",(function(){return o})),a.d(t,"d",(function(){return d})),a.d(t,"m",(function(){return c})),a.d(t,"c",(function(){return u})),a.d(t,"j",(function(){return p})),a.d(t,"q",(function(){return m})),a.d(t,"g",(function(){return h})),a.d(t,"h",(function(){return f})),a.d(t,"n",(function(){return b})),a.d(t,"r",(function(){return g})),a.d(t,"s",(function(){return y})),a.d(t,"f",(function(){return v})),a.d(t,"o",(function(){return w})),a.d(t,"l",(function(){return C})),a.d(t,"e",(function(){return k})),a.d(t,"b",(function(){return x}));var i=a("b775"),r=a("c38a");function s(e){return Object(i["a"])({url:"/system/user/list",method:"get",params:e})}function n(e){return Object(i["a"])({url:"/system/user/getInfo/"+Object(r["g"])(e),method:"get"})}function l(e){return Object(i["a"])({url:"/system/user/add",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/system/user/edit",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/system/user/remove/"+e,method:"get"})}function c(e,t){var a={userId:e,password:t};return Object(i["a"])({url:"/system/user/resetPwd",method:"post",data:a})}function u(e,t){var a={userId:e,status:t};return Object(i["a"])({url:"/system/user/changeStatus/edit",method:"post",data:a})}function p(){return Object(i["a"])({url:"/system/user/profile",method:"get"})}function m(e){return Object(i["a"])({url:"/system/user/profile/edit",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/smartor/serviceSubtask/getSfStatistics",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/smartor/serviceSubtask/getSfStatisticsJoy",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/smartor/servicetask/selectTimelyRate",method:"post",data:e})}function g(e,t){var a={oldPassword:e,newPassword:t};return Object(i["a"])({url:"/system/user/profile/updatePwd",method:"post",params:a})}function y(e){return Object(i["a"])({url:"/system/user/profile/avatar",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/system/user/authRole/"+e,method:"get"})}function w(e){return Object(i["a"])({url:"/system/user/authRole/insertAuthRole",method:"post",data:e})}function C(e,t){return Object(i["a"])({url:"/smartor/userdept/removeByCode/"+e+"/"+t,method:"get"})}function k(e){var t={deptType:e,orgid:localStorage.getItem("orgid")};return Object(i["a"])({url:"/system/user/deptTree",method:"get",params:t})}function x(e){return Object(i["a"])({url:"/smartor/userdept/add",method:"post",data:e})}}}]);