|
@@ -50,8 +50,6 @@ function dateChange(){
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
- $(".dayDetail .deptListWrap").css("display","block")
|
|
|
- $(".dayDetail .dayFilter").css("display","none")
|
|
|
statisticsType = 1
|
|
|
getTabData(1)
|
|
|
})
|
|
@@ -63,8 +61,6 @@ function dateChange(){
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
- $(".dayDetail .deptListWrap").css("display","none")
|
|
|
- $(".dayDetail .dayFilter").css("display","block")
|
|
|
statisticsType = 2
|
|
|
getTabData(1)
|
|
|
})
|
|
@@ -87,7 +83,7 @@ function getTabData(activePage){
|
|
|
size: 15,
|
|
|
name: behospitalCode||"",
|
|
|
type: statisticsType||2, //1-本月,2-本年
|
|
|
- dateType: level||1,//(3-上月,4-去年本月,5-去年(必填))
|
|
|
+ dateType: "",//(3-上月,4-去年本月,5-去年(必填))
|
|
|
}
|
|
|
post(api.getAverageDayNumPage,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
@@ -120,18 +116,40 @@ $(".filter").on("click", function(e){
|
|
|
getTabData(1)
|
|
|
})
|
|
|
function renderTab(data,hisId,activePage){
|
|
|
- let str = ``
|
|
|
+ let str = '',tmp = ''
|
|
|
+
|
|
|
for(let i = 0; i < data.length; i++){
|
|
|
const item = data[i]
|
|
|
str += `
|
|
|
<tr data-index=${i}>
|
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>
|
|
|
<td>${item.name || "-"}</td>
|
|
|
- <td >${item.averageValue || "-"}</td>
|
|
|
+ <td >${item.totleValue}</td>
|
|
|
+ <td >${item.lastAverageValue}</td>
|
|
|
+ <td style="display:${statisticsType==1?'table':'none'}">${item.lastYearAverageValue}</td>
|
|
|
</tr>
|
|
|
`
|
|
|
}
|
|
|
- $('tbody').html(str?str:'<tr><td colspan="17" style="text-align: center;color: #aaa">暂无数据~</td></tr>')
|
|
|
+ let sts = `
|
|
|
+ ${statisticsType==1?`<thead class="monType">
|
|
|
+ <th class="moduleName" style="width: 65px;">序号</th>
|
|
|
+ <th class="beHospitalId textCenter">科室名称</th>
|
|
|
+ <th class="patientNo textCenter" >上月平均住院天数(天)</th>
|
|
|
+ <th class="patientNo textCenter" >本月平均住院天数(天)</th>
|
|
|
+ <th class="patientNo textCenter" >去年本月平均住院天数(天)</th>
|
|
|
+ </thead>`:`
|
|
|
+ <thead class="yearType">
|
|
|
+ <th class="moduleName" style="width: 65px;">序号</th>
|
|
|
+ <th class="beHospitalId textCenter">科室名称</th>
|
|
|
+ <th class="patientNo textCenter" >本年平均住院天数(天)</th>
|
|
|
+ <th class="patientNo textCenter" >去年平均住院天数(天)</th>
|
|
|
+ </thead>
|
|
|
+ `}
|
|
|
+ <tbody>
|
|
|
+ ${str?str:'<tr><td colspan="17" style="text-align: center;color: #aaa">暂无数据~</td></tr>'}
|
|
|
+ </tbody>
|
|
|
+ `
|
|
|
+ $('.tableDay').html(sts)
|
|
|
bindScoreDetail(hisId)
|
|
|
}
|
|
|
|