| 
					
				 | 
			
			
				@@ -132,7 +132,7 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     cardNoChange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //病人姓名输入改变事件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   // userNameChange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // userNameChange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //数据校验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     init_validator(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //时间区间 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -229,9 +229,9 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //每隔三秒读一次身份证 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    setInterval(function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    setInterval(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         new Device().startFun(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    },3000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 3000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // $("#birthDay").keypress(function () {   // keypress:输入框每获取一个字符,就触发一次该事件。 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -240,14 +240,14 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#birthDay").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var birthDay= $("#birthDay").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(birthDay.length==8 && birthDay.indexOf("-")<=0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            birthDay=birthDay.substring(0,4)+"-"+birthDay.substring(4,6)+"-"+birthDay.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#birthDay").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var birthDay = $("#birthDay").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (birthDay.length == 8 && birthDay.indexOf("-") <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            birthDay = birthDay.substring(0, 4) + "-" + birthDay.substring(4, 6) + "-" + birthDay.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $("#birthDay").val(birthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var dateFormat =/^(\d{4})-(\d{2})-(\d{2})$/; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(!dateFormat.test(birthDay)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var dateFormat = /^(\d{4})-(\d{2})-(\d{2})$/; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!dateFormat.test(birthDay)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title: '错误提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 text: '生日日期错误', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -256,8 +256,8 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 styling: 'bootstrap3' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var arr =birthDay.split("-"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(!checkDate(arr[0],arr[1],arr[2])){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var arr = birthDay.split("-"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!checkDate(arr[0], arr[1], arr[2])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title: '错误提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 text: '生日日期错误', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -266,19 +266,19 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 styling: 'bootstrap3' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var returnAge=jsGetAge(birthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var returnAge = jsGetAge(birthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#age").val(returnAge); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#age").blur(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#editUserBirthDay").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var editUserBirthDay= $("#editUserBirthDay").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(editUserBirthDay.length==8 && editUserBirthDay.indexOf("-")<=0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            editUserBirthDay=editUserBirthDay.substring(0,4)+"-"+editUserBirthDay.substring(4,6)+"-"+editUserBirthDay.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#editUserBirthDay").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var editUserBirthDay = $("#editUserBirthDay").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (editUserBirthDay.length == 8 && editUserBirthDay.indexOf("-") <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            editUserBirthDay = editUserBirthDay.substring(0, 4) + "-" + editUserBirthDay.substring(4, 6) + "-" + editUserBirthDay.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $("#editUserBirthDay").val(editUserBirthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var dateFormat =/^(\d{4})-(\d{2})-(\d{2})$/; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(!dateFormat.test(editUserBirthDay)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var dateFormat = /^(\d{4})-(\d{2})-(\d{2})$/; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!dateFormat.test(editUserBirthDay)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title: '错误提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 text: '生日日期错误', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -287,8 +287,8 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 styling: 'bootstrap3' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var arr =editUserBirthDay.split("-"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(!checkDate(arr[0],arr[1],arr[2])){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var arr = editUserBirthDay.split("-"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!checkDate(arr[0], arr[1], arr[2])) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title: '错误提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 text: '生日日期错误', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -297,32 +297,32 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 styling: 'bootstrap3' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var returnAge=jsGetAge(editUserBirthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var returnAge = jsGetAge(editUserBirthDay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#editUserAge").val(returnAge); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#idCard").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#idCard").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryUserInfoBySocialNo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#editUserIdCard").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#editUserIdCard").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var editUserIdCard = $("#editUserIdCard").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var birthday = editUserIdCard.substring(6,14); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        birthday =birthday.substring(0,4)+"-"+birthday.substring(4,6)+"-"+birthday.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var birthday = editUserIdCard.substring(6, 14); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        birthday = birthday.substring(0, 4) + "-" + birthday.substring(4, 6) + "-" + birthday.substring(6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#editUserBirthDay").val(birthday); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var returnAge=jsGetAge(birthday); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var returnAge = jsGetAge(birthday); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#editUserAge").val(returnAge); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var gender = editUserIdCard.substring(16,17); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (gender%2 ==0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var gender = editUserIdCard.substring(16, 17); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (gender % 2 == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $("#editUserGender").val(2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $("#editUserGender").val(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $('#editUserGender').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#phoneNum").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#phoneNum").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryUserInfoByphoneNo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#userName").change(function(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#userName").change(function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryUserInfoByName(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -330,9 +330,9 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //判断给定日期是否合法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function checkDate(year,month,date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var now = new Date(year,month -1,date); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(now.getDate()==date&&now.getFullYear()==year&&now.getMonth()==(month-1)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function checkDate(year, month, date) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var now = new Date(year, month - 1, date); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (now.getDate() == date && now.getFullYear() == year && now.getMonth() == (month - 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return false; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -353,8 +353,6 @@ function checkDate(year,month,date){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 初始化性别下拉选 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -428,7 +426,7 @@ function initDeptPlus() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var html = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $.each(data.data, function (commentIndex, comment) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                html += '<option value="' + comment.code + '">' + comment.name + '('+comment.pyCode+')</option>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                html += '<option value="' + comment.code + '">' + comment.name + '(' + comment.pyCode + ')</option>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#deptNo').empty(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#deptNo').html(html); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -459,19 +457,19 @@ function initEmployee() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var html = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var defaultCode=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var defaultCode = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $.each(res.data, function (commentIndex, comment) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 html += '<option value="' + comment.employee.employeeCode + '" data-chargeType="' + comment.chargeType + '"  data-checkFee="' + comment.checkFee + '" data-mzyRequestId="' + comment.mzyRequestId + '">' + comment.employee.employeeName + '</option>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(res.data.length==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (res.data.length == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //如果只有一个号别,默认选中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    defaultCode=comment.employee.employeeCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    defaultCode = comment.employee.employeeCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#doctor').empty(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#doctor').html(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#doctor').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //validator.checkAll($("#regi_form")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (defaultCode!=null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (defaultCode != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //如果有无需选择医生的选项,默认选择 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $('#doctor').selectpicker('val', defaultCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $('#doctor').selectpicker('refresh'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -534,18 +532,18 @@ function initChargeType() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var html = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var defaultCode=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var defaultCode = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $.each(res.data, function (commentIndex, comment) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(res.data.length==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (res.data.length == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //如果只有一个号别,默认选中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    defaultCode=comment.code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    defaultCode = comment.code; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 html += '<option value="' + comment.code + '">' + comment.name + '</option>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#chargeType').empty();   //清空resText里面的所有内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#chargeType').html(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#chargeType').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (defaultCode!=null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (defaultCode != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //如果有默认选项,默认选择 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $('#chargeType').selectpicker('val', defaultCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $('#chargeType').selectpicker('refresh'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -662,8 +660,6 @@ function listTypeChange(object) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 打开编辑用户信息窗口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param data 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -705,8 +701,6 @@ function editUserModal(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 打开打印内容窗口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param data 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -754,7 +748,7 @@ function formatCheck() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function queryUserInfoByCardNo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var cardNo = $("#cardNo").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (cardNo.indexOf("-")>0 || cardNo.length == 8) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (cardNo.indexOf("-") > 0 || cardNo.length == 8) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#cardNo").attr("title", cardNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: "GET", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -803,6 +797,13 @@ function queryUserInfoByCardNo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         $("#saveUser").show(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         $("#newCardModal").modal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        $(document).keydown(function (event) { //监听键盘按下时的事件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (event.keyCode == 13) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                //回车键 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                $('#newCardModal').modal('hide'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     new PNotify({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1190,7 +1191,7 @@ function readonlyOrNot(flag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 查询默认打印机 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function setPrint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(printIndex>=0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (printIndex >= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1206,9 +1207,9 @@ function setPrint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                printIndex=res.data.printIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                printIndex = res.data.printIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                printIndex=-1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                printIndex = -1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1326,10 +1327,10 @@ function savePatient(flag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(flag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (flag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#patientId").val(res.data.patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     saveMzyReqrec(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     clearRegistration(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     successMesage(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1454,7 +1455,7 @@ function saveMzyReqrec() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     styling: 'bootstrap3' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $('#confirmFeeModal').modal('hide'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                prn1Print(patientId,-1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                prn1Print(patientId, -1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // loadTableCount(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // loadRegistrationList(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 clearRegistration(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1535,10 +1536,6 @@ function initListDoctorSelect() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 清空搜索参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1632,11 +1629,11 @@ function clearRegistration() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 直接打印发票 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param patientId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function prn1Print(patientId,times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function prn1Print(patientId, times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setPrint(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        url: '/thmz/printMzyReqrecRecept?patientId=' + patientId+"×="+times, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: '/thmz/printMzyReqrecRecept?patientId=' + patientId + "×=" + times, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         contentType: "application/json;charset=UTF-8", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataType: "json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1657,7 +1654,7 @@ function prn1Print(patientId,times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "120mm"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "93mm"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.SET_PRINT_PAGESIZE(1, "120mm", "93mm", "CreateCustomPage"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME","门诊发票");//对新建的纸张重命名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊发票");//对新建的纸张重命名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.SET_PRINT_STYLE("FontSize", 11); //字体大小 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.ADD_PRINT_TEXT("6mm", "0mm", "45mm", "3mm", "湖南泰和医院管理有限公司"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.ADD_PRINT_TEXT("6mm", "59mm", "30mm", "3mm", "流水号:"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1683,10 +1680,10 @@ function prn1Print(patientId,times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.ADD_PRINT_TEXT("79mm", "53mm", "23mm", "3mm", res.user.userName);//收费员 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //LODOP.PREVIEW(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LODOP.PRINT(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(times>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (times > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     loadRegistrationList(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } else if(res.code == -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else if (res.code == -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 new PNotify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     title: '错误提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     text: res.message, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1700,11 +1697,6 @@ function prn1Print(patientId,times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 销卡 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param data 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1736,7 +1728,7 @@ function clearIcCardNo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 根据手机号码查询病人信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function queryUserInfoByphoneNo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   var phoneNo =$("#phoneNum").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var phoneNo = $("#phoneNum").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (phoneNo.length == 11) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: "GET", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1764,11 +1756,11 @@ function queryUserInfoByphoneNo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function queryUserInfoByName() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var userName = $('#userName').val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   // var cardNo=$("#cardNo").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // var cardNo=$("#cardNo").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (userName == null || userName == "") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (userName.length >0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (userName.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             url: '/thmz/getPatientMiByName?name=' + userName, 
			 |