|  | @@ -191,6 +191,41 @@ $(function () {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    //获取医生工作统计数据
 | 
	
		
			
				|  |  | +    $.ajax({
 | 
	
		
			
				|  |  | +        type: "GET",
 | 
	
		
			
				|  |  | +        url: '/thmz/getDoctorDateForDay',
 | 
	
		
			
				|  |  | +        dataType: "json",
 | 
	
		
			
				|  |  | +        headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
 | 
	
		
			
				|  |  | +        success: function (res) {
 | 
	
		
			
				|  |  | +            if (res == '401' || res == 401) {
 | 
	
		
			
				|  |  | +                window.location.href = '/thmz/login/view'
 | 
	
		
			
				|  |  | +                return;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (res.code == 0) {
 | 
	
		
			
				|  |  | +                $("#numberOfPatient").html(res.numberOfPatient);
 | 
	
		
			
				|  |  | +                $("#numberOfPrescription").html(res.numberOfPrescription);
 | 
	
		
			
				|  |  | +                var html='';
 | 
	
		
			
				|  |  | +                if(res.numberOfIcdText!=null && res.numberOfIcdText.length>0){
 | 
	
		
			
				|  |  | +                    for(var i=0;i<res.numberOfIcdText.length;i++){
 | 
	
		
			
				|  |  | +                        var obj=res.numberOfIcdText[i];
 | 
	
		
			
				|  |  | +                        html+=' <div class="work_detail_full">';
 | 
	
		
			
				|  |  | +                        html+='<div title="'+obj.icd_text+'" style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: calc(100% - 300px);float: left;">';
 | 
	
		
			
				|  |  | +                        html+='<i class="fa fa-file-text" style="color: #6D31CF;margin-right: 10px;"></i>';
 | 
	
		
			
				|  |  | +                        html+=obj.icd_text+'</div>';
 | 
	
		
			
				|  |  | +                        html+='<div class="el-col el-col-4" style="float: right;text-align: right;margin-right: 5px;">';
 | 
	
		
			
				|  |  | +                        html+=obj.num;
 | 
	
		
			
				|  |  | +                        html+=' 张</div><div style="clear: both;"></div></div>';
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                $("#numberOfIcdText").html(html);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -226,18 +261,18 @@ function getRePortRangeArrById(id) {
 | 
	
		
			
				|  |  |   * @returns {string}
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  function getBirthSlot(birthDay,nowDate) {
 | 
	
		
			
				|  |  | -    let birth = new Date(birthDay);
 | 
	
		
			
				|  |  | -    let now = new Date(nowDate);
 | 
	
		
			
				|  |  | -    let date1 = Date.parse(birth);
 | 
	
		
			
				|  |  | -    let date2 = Date.parse(now);
 | 
	
		
			
				|  |  | -    let day = Math.ceil((date2 - date1) / (60 * 60 * 1000 * 24));
 | 
	
		
			
				|  |  | -    let age = '';
 | 
	
		
			
				|  |  | -    let year = Math.floor(day / 365);
 | 
	
		
			
				|  |  | +    var birth = new Date(birthDay);
 | 
	
		
			
				|  |  | +    var now = new Date(nowDate);
 | 
	
		
			
				|  |  | +    var date1 = Date.parse(birth);
 | 
	
		
			
				|  |  | +    var date2 = Date.parse(now);
 | 
	
		
			
				|  |  | +    var day = Math.ceil((date2 - date1) / (60 * 60 * 1000 * 24));
 | 
	
		
			
				|  |  | +    var age = '';
 | 
	
		
			
				|  |  | +    var year = Math.floor(day / 365);
 | 
	
		
			
				|  |  |      if(year > 0) age += year + '岁';
 | 
	
		
			
				|  |  | -    let y = day % 365;
 | 
	
		
			
				|  |  | -    let month = Math.floor(y / 30);
 | 
	
		
			
				|  |  | +    var y = day % 365;
 | 
	
		
			
				|  |  | +    var month = Math.floor(y / 30);
 | 
	
		
			
				|  |  |      if(month > 0) age += month + '月';
 | 
	
		
			
				|  |  | -    let d = Math.floor(day % 365 % 30);
 | 
	
		
			
				|  |  | +    var d = Math.floor(day % 365 % 30);
 | 
	
		
			
				|  |  |      if(d > 0) age += d + '天';
 | 
	
		
			
				|  |  |      if(age.substring(0,age.indexOf('岁')) >= 7){
 | 
	
		
			
				|  |  |          age = age.substring(0,age.indexOf('岁')+1);
 |