|  | @@ -38,6 +38,12 @@ $(function () {
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      $("#btn_query").click(function (t) {
 | 
	
		
			
				|  |  | +        $("#initButton").find("button").each(function (index, element) {
 | 
	
		
			
				|  |  | +            if ($(element).hasClass("btn-primary")) {
 | 
	
		
			
				|  |  | +                $(element).removeClass("btn-primary").addClass("btn-default");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        $("#qld").removeClass("btn-default").addClass("btn-primary");
 | 
	
		
			
				|  |  |          initTbTable();
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  });
 | 
	
	
		
			
				|  | @@ -661,12 +667,12 @@ function printCount() {
 | 
	
		
			
				|  |  |      let totalMoney = 0;
 | 
	
		
			
				|  |  |      $(".title").text(pageClass=="T"?'病房退药单':'病房汇总领药单('+$("#pageClassSearch").find("option:selected").text()+')');
 | 
	
		
			
				|  |  |      $(".groupName").text(groupNo==71?'门诊西药房':'住院药房');
 | 
	
		
			
				|  |  | -    $(".wardName").text($("#wardCode").find("option:selected").text().split("(")[0]);
 | 
	
		
			
				|  |  | +    let w_code = $("#wardCode").find("option:selected").text();
 | 
	
		
			
				|  |  | +    $(".wardName").text(w_code.substring(0,w_code.lastIndexOf("(")));
 | 
	
		
			
				|  |  |      $(".pageNo").text($("#pageNoSearch").val()==''?pageNos:$("#pageNoSearch").val());
 | 
	
		
			
				|  |  |      $(".printDate").html(format(new Date(),"yyyy-MM-dd HH:mm"));
 | 
	
		
			
				|  |  |      $('.sjh').remove();
 | 
	
		
			
				|  |  |      let datas = getJQAllData("tb_summarizing_table");
 | 
	
		
			
				|  |  | -    console.log(datas);
 | 
	
		
			
				|  |  |      for (var i = 0; i < datas.length; i++) {
 | 
	
		
			
				|  |  |          let data = datas[i];
 | 
	
		
			
				|  |  |          let handle =data.fybz;
 | 
	
	
		
			
				|  | @@ -727,7 +733,6 @@ function getPrintDetail(flag) {
 | 
	
		
			
				|  |  |                      window.location.href = '/thmz/login/view';
 | 
	
		
			
				|  |  |                      return;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                console.log(res.data);
 | 
	
		
			
				|  |  |                  if (res.code == 0) {
 | 
	
		
			
				|  |  |                      for (let i = 0; i < res.data.list.length; i++) {
 | 
	
		
			
				|  |  |                          let byjDate = res.data.list[i];
 | 
	
	
		
			
				|  | @@ -802,7 +807,6 @@ function printDetail(datas,kfFlag,flag) {
 | 
	
		
			
				|  |  |   *
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  function printDetailHtml(datas,flag) {
 | 
	
		
			
				|  |  | -    console.log(datas);
 | 
	
		
			
				|  |  |      let html = '';
 | 
	
		
			
				|  |  |      let totalMoney = 0;
 | 
	
		
			
				|  |  |      let oldInpatientNo = '';//记录上一个病人
 |