| 
					
				 | 
			
			
				@@ -15,7 +15,9 @@ var retryCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //是否在读卡中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 var mztczfSiReadCardStatus = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //药品组号与处方号关系 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-var gropuIdAndOrderNoMap=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+var gropuIdAndOrderNoMap = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//上一个药品大类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+var prevCategoriesFlag = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     initGenderSelect(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     iniAdmissStatus(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1160,7 +1162,7 @@ function fitTemplateData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var emptyHtml = '<img src="/thmz/images/no-recommend.png" style="height: 120px;position: absolute;top: 50%;transform: translateY(-50%);margin-left: -30px;margin-left: 145px;">'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        url: '/thmz/getTemplate?templateKindType=' + $("#templateKindTypeForm").val()+'&templateType='+$("#templateTypeForm").val(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: '/thmz/getTemplate?templateKindType=' + $("#templateKindTypeForm").val() + '&templateType=' + $("#templateTypeForm").val(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         contentType: "application/json;charset=UTF-8", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataType: "json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         async: false, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1692,7 +1694,6 @@ function cancelClinic(patientId, times) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 设置当前接诊病人信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param mzPatientMi 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2045,8 +2046,8 @@ function clearWorkSpaceExcludeUser(source) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         clearApidAcceptsModal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         clearTurnToConsultationInput(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         clearZgtczfInput(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        gropuIdAndOrderNoMap=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        gropuIdAndOrderNoMap = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        prevCategoriesFlag=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#totalAmount").text(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2288,12 +2289,12 @@ function afterFitContent(contentId, zyReqHtml, titleId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#" + titleId).removeClass("hide").addClass("in"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //是否默认勾选处方回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var checkboxFlag = localStorage.getItem("checkboxFlag"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (checkboxFlag != null && (checkboxFlag == "0" || checkboxFlag == 0)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#" + titleId).find("input[type='checkbox']").prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#" + contentId).find("input[type='checkbox']").each(function (index, obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $(obj).prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#" + titleId).find("input[type='checkbox']").prop("checked", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2373,10 +2374,10 @@ function prescriptionJmblChosice(obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function medicalModelModal(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //是否默认勾选处方回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var checkboxFlag = localStorage.getItem("checkboxFlag"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (checkboxFlag != null && (checkboxFlag == "0" || checkboxFlag == 0)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#conciseRecordsYlfw").prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#prescriptionSubsidiaryYlfw").prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#conciseRecordsYlfw").prop("checked", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#prescriptionSubsidiaryYlfw").prop("checked", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2618,11 +2619,11 @@ function editPrescription(jsonData, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                       if(res.data!=null &&res.data.length>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           for(var i=0;i<res.data.length;i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                               fitDiagnoseValue(res.data[i].name, res.data[i].code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (res.data != null && res.data.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            for (var i = 0; i < res.data.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                fitDiagnoseValue(res.data[i].name, res.data[i].code); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         errorMesage(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3279,9 +3280,9 @@ function initTemplateTypeSelect(templateTypeId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 res.data.forEach(function (item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     var html = '<option value="' + item.code + '">' + item.name + '</option>'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    $('#'+templateTypeId).append(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $('#' + templateTypeId).append(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                $('#'+templateTypeId).selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $('#' + templateTypeId).selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // $('#'+templateTypeId).selectpicker('val', "0"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // $('#'+templateTypeId).selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3554,18 +3555,18 @@ function saveMedicine(index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function saveWesternMedicine(calculateTotalAmountFlag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //当前处方选项卡下标 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var xyTabIndex=$("#xyTab li.active").index(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var xyTabIndex = $("#xyTab li.active").index(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //组号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var groupId = $("#groupId").val(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(gropuIdAndOrderNoMap==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        gropuIdAndOrderNoMap= new Map(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (gropuIdAndOrderNoMap == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        gropuIdAndOrderNoMap = new Map(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var exitIndex = gropuIdAndOrderNoMap.get(groupId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(exitIndex==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        exitIndex=xyTabIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        gropuIdAndOrderNoMap.put(groupId,xyTabIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (exitIndex == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        exitIndex = xyTabIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        gropuIdAndOrderNoMap.put(groupId, xyTabIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(xyTabIndex!=exitIndex){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (xyTabIndex != exitIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         errorMesageSimaple("同一组药必须出现在同一个处方中,当前组号已经被其他处方使用,请调整处方!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -6808,6 +6809,13 @@ function refreshNavTabs(index, groupNo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#" + tabContentId).append(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //切换处方 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#" + tabId).find("a[href='#" + paneId + "']").off("click").tab('show'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(prevCategoriesFlag!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //如果上一个药品大类不为空,又增加了处方分页,组号要自动切换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var last = parseInt($("#groupId > option:last").val()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $("#groupId").selectpicker('val', last); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $('#groupId').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -6817,6 +6825,14 @@ function refreshNavTabs(index, groupNo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param groupNo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function fitWesternMedicine(res, groupNo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!(res.data.categoriesFlag == 2 || res.data.categoriesFlag == "2" || res.data.categoriesFlag == 1 || res.data.categoriesFlag == "1") || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ((res.data.categoriesFlag == 2 || res.data.categoriesFlag == "2" || res.data.categoriesFlag == 1 || res.data.categoriesFlag == "1") && prevCategoriesFlag != null && prevCategoriesFlag != "1" && prevCategoriesFlag != 1 && prevCategoriesFlag != "2" && prevCategoriesFlag != 2)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //非针剂默认要切换组号 或者 是针剂,但是上一个药品不是针剂,这时候也要新换一个组号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var last = parseInt($("#groupId > option:last").val()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $("#groupId").selectpicker('val', last); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $('#groupId').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    prevCategoriesFlag = res.data.categoriesFlag; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#western_medicine_name").val(res.data.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#western_medicine_name").blur(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var drugWinHtml = ''; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -7291,7 +7307,7 @@ function initWorkspaceConfigForCurrent() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //设置是否默认勾选处方回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                localStorage.setItem("checkboxFlag",res.data.checkboxFlag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                localStorage.setItem("checkboxFlag", res.data.checkboxFlag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 errorMesage(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8197,10 +8213,10 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //是否默认勾选处方回调 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var checkboxFlag = localStorage.getItem("checkboxFlag"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(checkboxFlag!=null &&(checkboxFlag=="0" || checkboxFlag==0)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (checkboxFlag != null && (checkboxFlag == "0" || checkboxFlag == 0)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#conciseRecordsJzxq").prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#prescriptionSubsidiaryJzxq").prop("checked", true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#conciseRecordsJzxq").prop("checked", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#prescriptionSubsidiaryJzxq").prop("checked", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8349,6 +8365,8 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#previewYjReqAll").off("click"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#deletePrescription").removeClass("in").addClass("hide"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#deletePrescription").off("click"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#consultationCliniced").removeClass("in").addClass("hide"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#consultationCliniced").off("click"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (jsonData.mzYjReqList != null && jsonData.mzYjReqList.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#previewYjReq").removeClass("hide").addClass("in"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#previewYjReq").off("click").on("click", function (t) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8430,6 +8448,11 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             deletePrescription(clnicId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //已诊列表发起会诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $("#consultationCliniced").removeClass("hide").addClass("in"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $("#consultationCliniced").off("click").on("click", function (t) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        consultationCliniced(patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#printPrescription").removeClass("in").addClass("hide"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#printZyReq").removeClass("in").addClass("hide"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8503,7 +8526,7 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#totalAmountView").html(0.00); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        url: '/thmz/getChargeDetailFee?patientId=×=&receiptNo=&clnicId='+clnicId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: '/thmz/getChargeDetailFee?patientId=×=&receiptNo=&clnicId=' + clnicId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         contentType: "application/json;charset=UTF-8", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataType: "json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8514,10 +8537,10 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(res.fundPay!=undefined && res.fundPay!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (res.fundPay != undefined && res.fundPay != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#fundPayView").text("¥" + res.fundPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(res.acctPay!=undefined && res.acctPay!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (res.acctPay != undefined && res.acctPay != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     $("#acctPayView").text("¥" + res.acctPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 $("#selfAmountView").text("¥" + res.selfAmount); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8972,10 +8995,10 @@ function printPrescription(patientId, times, clnicId, payMark, printType) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     //var strDataURI =canvas.toDataURL("image/png"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     $("#payQrcodeGuideCard").html("<img src='" + src + "' style='width:100px;height:100px;'/><div style='width: 100px;margin-top: 10px;text-align: center;'>微信支付</div>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if(res.fundPay!=undefined && res.fundPay!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (res.fundPay != undefined && res.fundPay != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     $("#fundPayGuideCard").text("¥" + res.fundPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if(res.acctPay!=undefined && res.acctPay!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (res.acctPay != undefined && res.acctPay != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     $("#acctPayGuideCard").text("¥" + res.acctPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 $("#selfAmountGuideCard").text("¥" + res.selfAmount); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10595,8 +10618,6 @@ function consultation() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#consultationDept').empty(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#consultationDept').html(html); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $('#consultationDept').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 url: '/thmz/getUnConsultation?serialNo=' + $("#mzfzSerialNoInClick").val(), 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10795,4 +10816,31 @@ function verifyInsuranceInfo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 已诊列表发起会诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @param patientId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function consultationCliniced(patientId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "GET", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: '/thmz/getLastClinicedFzOrder?patientId=' + patientId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        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) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#visitingDetailModal").modal("hide"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#mzfzSerialNoInClick").val(res.data.serialNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                consultation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errorMesage(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |