| 
					
				 | 
			
			
				@@ -853,24 +853,47 @@ function confirmFeeModal() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (!validatorResult) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var payTypeList = $("#payType").children(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (payTypeList.length == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $('#payType').selectpicker('val', 'Y'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $('#payType').selectpicker('val', 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //$('#payType').selectpicker('val', 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $('#payType').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    var prevAll = $("#changeAmountParent").prevAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    while (prevAll.length > 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        $("#changeAmountParent").prev().remove(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        prevAll = $("#changeAmountParent").prevAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#realMoney").val($("#amountMoneyConfirm").text()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#cash").val($("#amountMoneyConfirm").text()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //$("#cash").val(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#confirmFeeModal").modal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    sendPriceMessage($("#amountMoneyConfirm").text(), 0.0, 0.0, $("#patientId").val()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $.ajax({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "POST", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        url: '/thmz/validFurtherVisit', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        contentType: "application/json;charset=UTF-8", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataType: "json", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        data: JSON.stringify({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "patientId": $("#patientId").val(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "visitDept": $("#deptNo").val(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "chargeType": $("#chargeType").val() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        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) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errorMesage(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                var payTypeList = $("#payType").children(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (payTypeList.length == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $('#payType').selectpicker('val', 'Y'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $('#payType').selectpicker('val', 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //$('#payType').selectpicker('val', 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $('#payType').selectpicker('refresh'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                var prevAll = $("#changeAmountParent").prevAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                while (prevAll.length > 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    $("#changeAmountParent").prev().remove(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    prevAll = $("#changeAmountParent").prevAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#realMoney").val($("#amountMoneyConfirm").text()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#cash").val($("#amountMoneyConfirm").text()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //$("#cash").val(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $("#confirmFeeModal").modal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                sendPriceMessage($("#amountMoneyConfirm").text(), 0.0, 0.0, $("#patientId").val()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 |