|
@@ -15,14 +15,14 @@ const arrowRight = require("./../images/arrow_right.png")
|
|
|
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
-let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType=2,deptList=[],
|
|
|
+let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,statisticsType="",deptList=[],
|
|
|
nameTemp = "", behospitalCodeTemp="",levelTemp="",curDeptId="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
|
|
|
data_desc=[],data_asc=[];
|
|
|
$(function(){
|
|
|
deptList = JSON.parse(getCookie("deptList"))||[]
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
|
|
|
- statisticsType = getUrlArgObjectNew("dateType",srcUrl)||"2"
|
|
|
+ statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
from = getUrlArgObjectNew("from",srcUrl)||"1"
|
|
|
curDeptId = getUrlArgObjectNew("curDeptId",srcUrl)||""
|
|
|
let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
@@ -47,9 +47,11 @@ $(function(){
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
}else if(statisticsType == 3){
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
|
|
|
+ }else{
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
}
|
|
|
if(!statisticsType){
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
}
|
|
|
if(deptId){
|
|
|
$(".selectDept").html(deptId).attr({
|
|
@@ -67,10 +69,10 @@ $(function(){
|
|
|
|
|
|
|
|
|
$(".abnormalClear").click(function(){
|
|
|
- deptId = deptIdTemp = deptList[0].deptName
|
|
|
- curDeptId = deptList[0].deptId
|
|
|
+ deptId = deptIdTemp = deptList[0]&&deptList[0].deptName
|
|
|
+ curDeptId = deptIdTemp = deptList[0]&&deptList[0].deptId
|
|
|
behospitalCode=behospitalCodeTemp = ""
|
|
|
- setDatePicker($("#datepicker"),$("#datepicker2"),statisticsType||2)
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"default")
|
|
|
$(".patientNumInp").val("")
|
|
|
$(".selectDept").html(deptId).attr({
|
|
|
"data-id":deptId,
|
|
@@ -165,10 +167,12 @@ function getTabData(activePage){
|
|
|
"desc": "",
|
|
|
"level": "",
|
|
|
"name": behospitalCode||"",
|
|
|
- "type": statisticsType||2,
|
|
|
+ "type": 0, //1-本月,2-本年,0-自定义时间(现在 都是自定义时间,都会传具体时间进去)
|
|
|
"startDate":dateStatrt,
|
|
|
"endDate":dateEnd
|
|
|
}
|
|
|
+ startDateParam = dateStatrt
|
|
|
+ endDateParam = dateEnd
|
|
|
post(api.levelStatisticsByDept,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
const data = res.data.data;
|
|
@@ -222,13 +226,13 @@ function renderTab(data,hisId,activePage){
|
|
|
bindScoreDetail(hisId)
|
|
|
$(".goHomeDetail").click(function(){
|
|
|
let docName = $(this).attr("data-doc")
|
|
|
- $(parent.document).find("#contentIframe").attr("src","quexianDetail.html?from=2&deptName="+deptIdTemp+"&docName="+docName+"&shijian="+statisticsType)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","quexianDetail.html?from=2&deptName="+deptIdTemp+"&docName="+docName+"&shijian=3"+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
})
|
|
|
$(".goHomeDetailB").click(function(){
|
|
|
let docName = $(this).attr("data-dept")
|
|
|
let deptC = $(this).attr("data-c")
|
|
|
focusMenuItem("YH-BLZK-ZKPFKS");
|
|
|
- $(parent.document).find("#contentIframe").attr("src","qcListDept.html?from=2&deptName="+deptIdTemp+"&docName="+docName+"&shijian="+statisticsType+"&chengdu="+deptC+"&deptId="+curDeptId)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","qcListDept.html?from=2&deptName="+deptIdTemp+"&docName="+docName+"&shijian=3"+"&chengdu="+deptC+"&deptId="+curDeptId+"&startDateParam="+startDateParam+"&endDateParam="+endDateParam)
|
|
|
})
|
|
|
}
|
|
|
|