|
@@ -17,10 +17,28 @@ const { get } = require('jquery');
|
|
|
let payMoney = [],behosDateStart="",ownSelectDate='',behosDateEnd="",dayLis = [],dateType = 2,slideType = 1,hospital=getCookie("hospital"),deptType="内科",deptId="",level="甲",lineType="all",lineType1=[],lineType2=[],lineType3=[],lineType4=[];
|
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
|
listenScroll(".partWrap")
|
|
|
+if(isPlacefile == 1){
|
|
|
+ $(".part01 .partTitlePub").css('cursor','default')
|
|
|
+ $(".part01 .partTitlePub img").css('display','none')
|
|
|
+}else{
|
|
|
+ $(".part01 .partTitlePub img").css('display','inline-block')
|
|
|
+ $(".part01 .partTitlePub").css('cursor','pointer')
|
|
|
+}
|
|
|
$(function(){
|
|
|
if(!hasData('YH-KZT')){
|
|
|
$("body").html('')
|
|
|
}
|
|
|
+
|
|
|
+ const firstM = $(".menu .page",parent.document).eq(0);
|
|
|
+ $('.page',parent.document).removeClass("active")
|
|
|
+ firstM.addClass("active");
|
|
|
+ if(firstM.is(".YH-KZT")||firstM.is(".YH-KZTKS")){
|
|
|
+ $(".container",parent.document).addClass("console-cont");
|
|
|
+ $('.qiehuan',parent.document).css("display","inline-block")
|
|
|
+ }else{
|
|
|
+ $('.qiehuan',parent.document).css("display","none")
|
|
|
+ }
|
|
|
+
|
|
|
// if(hospital == "台州市立"){
|
|
|
// $(".part03 .partTitlePub .name").html('各科室甲级病例占比')
|
|
|
// $(".innerOuter").css("display","block")
|
|
@@ -34,15 +52,16 @@ $(function(){
|
|
|
// getBarData(2)//图标数据获取
|
|
|
dateChange()
|
|
|
$(window).resize(function(){
|
|
|
+ console.log('窗口大小改变');
|
|
|
resizeBox()
|
|
|
})
|
|
|
$(window).click(function(){
|
|
|
window.parent.userActionHide()
|
|
|
- $(".toggleSlide ul").css("display","none")
|
|
|
+ $(".part02 .toggleSlide ul").css("display","none")
|
|
|
})
|
|
|
let sildeIS = true
|
|
|
if(!hasData('FUNC000045')&&!hasData('FUNC000046')){
|
|
|
- $(".toggleSlide").css("opacity","0.5")
|
|
|
+ $(".part02 .toggleSlide").css("opacity","0.5")
|
|
|
sildeIS = false
|
|
|
}
|
|
|
$(".toggleSlide p").click(function(e){
|
|
@@ -138,13 +157,6 @@ function getDetails(dateType){
|
|
|
$(parent.document).find("#contentIframe").attr("src","./qcList.html?from=1&dateType="+dateType+"&chengdu="+chengdu+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
})
|
|
|
$(".part03 .partTitlePub").click(function(){
|
|
|
- // if(hospital=="台州市立"){
|
|
|
- // focusMenuItem("YH-ZKK-GKSJJBLZB_XQ")
|
|
|
- // $(parent.document).find("#contentIframe").attr("src","./jiaji.html?from=1&dateType="+dateType)
|
|
|
- // }else{
|
|
|
- // focusMenuItem("YH-ZKK-BASYHGLZB_XQ");
|
|
|
- // $(parent.document).find("#contentIframe").attr("src","./partDetailControl.html?from=1&dateType="+dateType)
|
|
|
- // }
|
|
|
if(isPlacefile == 1){
|
|
|
focusMenuItem("YH-ZKK-BASYHGLZB_XQ");
|
|
|
$(parent.document).find("#contentIframe").attr("src","./partDetailControl.html?from=1&dateType="+dateType+"&lineType="+lineType+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
@@ -153,6 +165,12 @@ function getDetails(dateType){
|
|
|
$(parent.document).find("#contentIframe").attr("src","./uncorrectedCasesStatistics.html?from=1&dateType="+dateType+"&lineType="+lineType+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
}
|
|
|
})
|
|
|
+ $(".part01 .partTitlePub").click(function(){
|
|
|
+ if(isPlacefile == 0){
|
|
|
+ focusMenuItem("YH-ZKK-RYRSTJ");
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","./qcListOutHospital.html?inner=2&from=1&dateType="+dateType+"&lineType="+lineType+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
+ }
|
|
|
+ })
|
|
|
$(".paymoney.pubEchart .title").click(function(){
|
|
|
// if($(this).text().indexOf("花费")!==-1){
|
|
|
// focusMenuItem("YH-ZKK-KSPJZYHF_XQ");
|
|
@@ -584,6 +602,32 @@ function personNum(data){
|
|
|
$(".chuyuanEmpty").css("display","none")
|
|
|
$(".chuyuan,.personNum").css("display","block")
|
|
|
}
|
|
|
+ $('.chuyuan').html(`
|
|
|
+ <ul class="clearfix" style="cursor: default;">
|
|
|
+ <li class="topLis chuyuannum" data-type="1">
|
|
|
+ <p class="numShow died"></p>
|
|
|
+ <p class="explainNum">死亡人数</p>
|
|
|
+ </li>
|
|
|
+ <li class="li02 topLis chuyuannum" data-type="2">
|
|
|
+ <p class="numShow newborn"></p>
|
|
|
+ <p class="explainNum">新生儿患者</p>
|
|
|
+ </li>
|
|
|
+ <li class="li03 topLis chuyuannum" data-type="3">
|
|
|
+ <p class="numShow patientNum"></p>
|
|
|
+ <p class="explainNum">手术病人数</p>
|
|
|
+ </li>
|
|
|
+ <li class="li04 chuyuannum" data-type="4">
|
|
|
+ <p class="numShow goAwayNum"></p>
|
|
|
+ <p class="explainNum">非医嘱离院病人数</p>
|
|
|
+ </li>
|
|
|
+ <li class="li04 li04again" data-type="5">
|
|
|
+ <p class="numShow againNum"></p>
|
|
|
+ <p class="explainNum">31日再入院病人数</p>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ `)
|
|
|
+ $('.part01 .partTitlePub .name').text('出院人数统计')
|
|
|
$(".personNum").html("总人数:"+data['总人数']).parent(".chuyuannum").attr("data-num",'全部')
|
|
|
$(".died").html(data['死亡人数']).parent(".chuyuannum").attr("data-num",'死亡人数')
|
|
|
$(".newborn").html(data['新生儿人数']).parent(".chuyuannum").attr("data-num",'新生儿患者')
|
|
@@ -905,7 +949,7 @@ function lineChartSpecial(dataX,dataY,dom){
|
|
|
$(".binganshouye").css("display","none")
|
|
|
}
|
|
|
}
|
|
|
- console.log(999,dataX,dataY,dom)
|
|
|
+ // console.log(999,dataX,dataY,dom)
|
|
|
|
|
|
var myCharts = echarts.init(document.getElementById(dom));
|
|
|
$(window).resize(function(){
|
|
@@ -1151,15 +1195,17 @@ function lineChartHome(dataX,dataY){
|
|
|
}
|
|
|
//柱状图住院费用
|
|
|
function barChartPay(dataX,dataY){
|
|
|
- // console.log(dataX,dataY,78787878)
|
|
|
if(dataX.length==0&&dataY.length==0){
|
|
|
$("#barChartPay,.innerOuter").css("display","none")
|
|
|
picEmptyData('.barChartPayEmptys')
|
|
|
return
|
|
|
}else{
|
|
|
- if(hospital == "台州市立"){
|
|
|
+ if(getCookie("hospital") == "台州市立"){
|
|
|
+ console.log($(".innerOuter")[0],88989898)
|
|
|
+
|
|
|
$(".innerOuter").css("display","block")
|
|
|
}else{
|
|
|
+ console.log($(".innerOuter")[0])
|
|
|
$(".innerOuter").css("display","none")
|
|
|
}
|
|
|
$("#barChartPay").css("display","block")
|
|
@@ -1258,14 +1304,16 @@ function barChartPay(dataX,dataY){
|
|
|
function barChartLevel(dataX,dataY){
|
|
|
// console.log(dataX,dataY,7887878787)
|
|
|
if(dataX.length==0&&dataY.length==0){
|
|
|
- $("#barChart,.toggleSlide").css("display","none")
|
|
|
+ $("#barChart,.part02 .toggleSlide").css("display","none")
|
|
|
picEmptyData('.barChartPayEmpty')
|
|
|
- return
|
|
|
}else{
|
|
|
- $("#barChart,.toggleSlide").css("display","block")
|
|
|
+ // $("#barChart,.part02 .toggleSlide").css("display","block")
|
|
|
+ $("#barChart,.part02 .toggleSlide").show()
|
|
|
$(".barChartPayEmpty").css("display","none")
|
|
|
}
|
|
|
var myCharts = echarts.init(document.getElementById('barChart'));
|
|
|
+ // console.log(myCharts,'myCharts');
|
|
|
+ setTimeout(function () { myCharts.resize()},0) // 处理 #5737bug,暂时处理方法,需后续优化
|
|
|
$(window).resize(function(){
|
|
|
myCharts.resize()
|
|
|
});
|
|
@@ -1360,16 +1408,17 @@ function barChartLevel(dataX,dataY){
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
+ // setTimeout(function () { myCharts.setOption(option);},200)
|
|
|
myCharts.setOption(option);
|
|
|
}
|
|
|
function barChart(data,type){
|
|
|
// console.log(data,type,78787888787787)
|
|
|
if(data.length==0){
|
|
|
- $(".toggleSlide,#barChart").css("display","none")
|
|
|
+ $(".part02 .toggleSlide,#barChart").css("display","none")
|
|
|
picEmptyData('.barChartPayEmpty')
|
|
|
return
|
|
|
}else{
|
|
|
- $(".toggleSlide,#barChart").css("display","block")
|
|
|
+ $(".part02 .toggleSlide,#barChart").css("display","block")
|
|
|
$(".barChartPayEmpty").css("display","none")
|
|
|
}
|
|
|
var myChart = echarts.init(document.getElementById('barChart'));
|