|  | @@ -7,7 +7,7 @@ var jzCfPrintIndex = window.localStorage["jzCfPrintIndex"];
 | 
	
		
			
				|  |  |  var mzydPrintIndex = window.localStorage["mzydPrintIndex"];
 | 
	
		
			
				|  |  |  var groupNo = window.localStorage["groupNo"];
 | 
	
		
			
				|  |  |  var windowsNoYf = window.localStorage["winNo"];
 | 
	
		
			
				|  |  | -var printType = '';
 | 
	
		
			
				|  |  | +var xtsPrint = window.localStorage["xtsPrint"];
 | 
	
		
			
				|  |  |  var temporaryKeyList="";
 | 
	
		
			
				|  |  |  var timer="";
 | 
	
		
			
				|  |  |  var printTimer = "";
 | 
	
	
		
			
				|  | @@ -33,22 +33,18 @@ $(function () {
 | 
	
		
			
				|  |  |          $(this).click(function () {
 | 
	
		
			
				|  |  |              if ($(this).prop('checked')) {
 | 
	
		
			
				|  |  |                  $(':checkbox[name=autoPrint]').removeAttr('checked');
 | 
	
		
			
				|  |  | -                $(':checkbox[name=printType]').removeAttr('checked');
 | 
	
		
			
				|  |  |                  $(this).prop('checked', true);
 | 
	
		
			
				|  |  |                  var chk_value = '';
 | 
	
		
			
				|  |  |                  $('input[name="autoPrint"]:checked').each(function () {
 | 
	
		
			
				|  |  |                      chk_value = $(this).val();
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  | -                $('input[name="printType"]:checked').each(function () {
 | 
	
		
			
				|  |  | -                    printType = $(this).val();
 | 
	
		
			
				|  |  | -                });
 | 
	
		
			
				|  |  |                  if (!printTimer) {
 | 
	
		
			
				|  |  | -                    printTimer = setInterval("autoPrintMzCf()",timesLong);
 | 
	
		
			
				|  |  | +                    printTimer = setInterval(function(){
 | 
	
		
			
				|  |  | +                        autoPrintMzCf(chk_value);
 | 
	
		
			
				|  |  | +                    },timesLong);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  $(':checkbox[name=autoPrint]').removeAttr('checked');
 | 
	
		
			
				|  |  | -                $(':checkbox[name=printType]').removeAttr('checked');
 | 
	
		
			
				|  |  | -                printType = "";
 | 
	
		
			
				|  |  |                  clearTimeout(printTimer);
 | 
	
		
			
				|  |  |                  printTimer=null;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -560,13 +556,14 @@ function prescriptionDetail(realNo, orderNo, receiptNo, times, patientId) {
 | 
	
		
			
				|  |  |   * 构建列表查询参数
 | 
	
		
			
				|  |  |   * @param params
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  | -function queryParams(params) {
 | 
	
		
			
				|  |  | +function queryParams() {
 | 
	
		
			
				|  |  |      var rePortRangeArr = getRePortRangeArr();
 | 
	
		
			
				|  |  |      var temp = {
 | 
	
		
			
				|  |  |          /* pageSize: params.limit,   //页面大小
 | 
	
		
			
				|  |  |           pageIndex: params.offset / params.limit,  //页码*/
 | 
	
		
			
				|  |  |          beginTime: new Date(rePortRangeArr[0]),
 | 
	
		
			
				|  |  |          endTime: new Date(rePortRangeArr[1]),
 | 
	
		
			
				|  |  | +        xtsPrint: xtsPrint, // 是否血透室打印:3为是
 | 
	
		
			
				|  |  |          mzChargeDetail: {
 | 
	
		
			
				|  |  |              patientId: $("#patientIdSearch").val() == "" ? null : $("#patientIdSearch").val(),
 | 
	
		
			
				|  |  |              name: $("#nameSearch").val() == "" ? null : $("#nameSearch").val(),
 | 
	
	
		
			
				|  | @@ -695,7 +692,7 @@ function printPrescriptions(chkValue) {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      $.ajax({
 | 
	
		
			
				|  |  |          type: "GET",
 | 
	
		
			
				|  |  | -        url: '/thmz/getPrintPrescriptionDatas?groupNo=' + groupNo + '&printType=' + printType,
 | 
	
		
			
				|  |  | +        url: '/thmz/getPrintPrescriptionDatas?groupNo=' + groupNo + '&printType=' + xtsPrint,
 | 
	
		
			
				|  |  |          contentType: "application/json;charset=UTF-8",
 | 
	
		
			
				|  |  |          dataType: "json",
 | 
	
		
			
				|  |  |          headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
 | 
	
	
		
			
				|  | @@ -1040,8 +1037,7 @@ function checkInput() {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // 定时器调用处方打印
 | 
	
		
			
				|  |  | -function autoPrintMzCf(){
 | 
	
		
			
				|  |  | -    let v = $("#autoPrint").val();
 | 
	
		
			
				|  |  | -    printPrescriptions(v);
 | 
	
		
			
				|  |  | +function autoPrintMzCf(chk_value){
 | 
	
		
			
				|  |  | +    printPrescriptions(chk_value);
 | 
	
		
			
				|  |  |      initTable();
 | 
	
		
			
				|  |  |  }
 |