|  | @@ -3,7 +3,6 @@ var LODOP; //声明为全局变量
 | 
	
		
			
				|  |  |  var zsdPrintIndex;
 | 
	
		
			
				|  |  |  var bqPrintIndex;
 | 
	
		
			
				|  |  |  var fskPrintIndex;
 | 
	
		
			
				|  |  | -var printRecord = new Set();
 | 
	
		
			
				|  |  |  $(function () {
 | 
	
		
			
				|  |  |      openSocket("FY");
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -36,6 +35,15 @@ $(function () {
 | 
	
		
			
				|  |  |      $("#btn_ty").click(function (t) {
 | 
	
		
			
				|  |  |          saveRefundMedicine();
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +    $("#sendDispose").click(function (t) {
 | 
	
		
			
				|  |  | +        let orderNo = $("#orderNoLabel").val();
 | 
	
		
			
				|  |  | +        let receiptNo = $("#receiptNoLabel").val();
 | 
	
		
			
				|  |  | +        let times = $("#timesLabel").val();
 | 
	
		
			
				|  |  | +        let name = $("#nameLabel").val();
 | 
	
		
			
				|  |  | +        let patientId = $("#patientIdLabel").val();
 | 
	
		
			
				|  |  | +        let realNo = $("#realNoLabel").val();
 | 
	
		
			
				|  |  | +        sendMedicineProcessing(realNo, 71, orderNo, receiptNo, times, patientId, name);
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      $(".selectpicker").selectpicker({
 | 
	
		
			
				|  |  |          dropuAuto: false
 | 
	
	
		
			
				|  | @@ -126,9 +134,9 @@ function sendRefundButtonChange(object, realIndex) {
 | 
	
		
			
				|  |  |   * 发药处理
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  function sendMedicineProcessing(realNo, groupNo, orderNo, receiptNo, times, patientId, name) {
 | 
	
		
			
				|  |  | -    if (!confirm("确定要对当前处方进行发药处理吗?")) {
 | 
	
		
			
				|  |  | +    /*if (!confirm("确定要对当前处方进行发药处理吗?")) {
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    }*/
 | 
	
		
			
				|  |  |      var temp = {
 | 
	
		
			
				|  |  |          groupNo: groupNo,
 | 
	
		
			
				|  |  |          realNo: realNo,
 | 
	
	
		
			
				|  | @@ -153,12 +161,7 @@ function sendMedicineProcessing(realNo, groupNo, orderNo, receiptNo, times, pati
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (res.code == 0) {
 | 
	
		
			
				|  |  |                  successMesage(res);
 | 
	
		
			
				|  |  | -                //清除打印记录缓存
 | 
	
		
			
				|  |  | -                for (let val of printRecord.values()) {
 | 
	
		
			
				|  |  | -                    if(val.patientId == patientId && val.times == times && val.orderNo == orderNo){
 | 
	
		
			
				|  |  | -                        printRecord.delete(val);
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                $('#cfxxModal').modal('hide');
 | 
	
		
			
				|  |  |                  initTbTable();
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  errorMesage(res);
 | 
	
	
		
			
				|  | @@ -194,7 +197,7 @@ function initTbTable() {
 | 
	
		
			
				|  |  |          sidePagination: "server",           //分页方式:client客户端分页,server服务端分页(*)
 | 
	
		
			
				|  |  |          pageNumber: 1,                       //初始化加载第一页,默认第一页
 | 
	
		
			
				|  |  |          pageSize: 15,                       //每页的记录行数(*)
 | 
	
		
			
				|  |  | -        pageList: [20, 40, 70, 100],        //可供选择的每页的行数(*)
 | 
	
		
			
				|  |  | +        pageList: [20, 25, 50, 100],        //可供选择的每页的行数(*)
 | 
	
		
			
				|  |  |          search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
 | 
	
		
			
				|  |  |          singleSelect: true,           // 单选checkbox
 | 
	
		
			
				|  |  |          strictSearch: true,
 | 
	
	
		
			
				|  | @@ -222,12 +225,12 @@ function initTbTable() {
 | 
	
		
			
				|  |  |                  formatter: function (value, row, index) {
 | 
	
		
			
				|  |  |                      var str = "";
 | 
	
		
			
				|  |  |                      if (sendRefundGroup == 0) {
 | 
	
		
			
				|  |  | -                        str = '<button type="button" class="registration-no-color-foot-button" title="打印" onclick="printInjectionOralMedicine(\'' + row.patientId + '\',\'' + row.orderNo + '\',\'' + row.realNo + '\',\'' + row.times + '\',\'' + row.receiptNo + '\');" style="color: #35D082;"><i class="fa fa-print"></i></button>';
 | 
	
		
			
				|  |  | +                        str = '<button type="button" class="registration-no-color-foot-button" title="打印" onclick="printInjectionOralMedicine(\'' + row.patientId + '\',\'' + row.orderNo + '\',\'' + row.realNo + '\',\'' + row.times + '\',\'' + row.receiptNo + '\',\'' + row.confirmFlag + '\');" style="color: #35D082;"><i class="fa fa-print"></i></button>';
 | 
	
		
			
				|  |  |                          str += '<button type="button" class="registration-no-color-foot-button" title="叫号" onclick="callNumber(\'' + row.patientId + '\',\'' + row.name + '\')"><i class="glyphicon glyphicon-bullhorn"></i></button>';
 | 
	
		
			
				|  |  |                          if(row.confirmFlag ==5 || row.confirmFlag ==0){
 | 
	
		
			
				|  |  |                              str += '<button type="button" class="registration-no-color-foot-button" title="发药" onclick="sendMedicineProcessing(\'' + row.realNo + '\',\'' + 71 + '\',\'' + row.orderNo + '\',\'' + row.receiptNo + '\',\'' + row.times + '\',\'' + row.patientId + '\',\'' + row.name + '\')"><i class="fa fa-check-square-o"></i></button>';
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        str += '<button type="button" class="registration-no-color-foot-button" title="详细" onclick="prescriptionDetail(\'' + row.realNo + '\',\'' + 71 + '\',\'' + row.orderNo + '\',\'' + row.receiptNo + '\',\'' + row.times + '\',\'' + row.patientId + '\')"><i class="fa fa-plus"></i></button>';
 | 
	
		
			
				|  |  | +                        str += '<button type="button" class="registration-no-color-foot-button" title="详细" onclick="prescriptionDetail(\'' + row.realNo + '\',\'' + 71 + '\',\'' + row.orderNo + '\',\'' + row.receiptNo + '\',\'' + row.times + '\',\'' + row.patientId + '\',\'' + row.confirmFlag + '\')"><i class="fa fa-plus"></i></button>';
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      return str;
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -316,16 +319,6 @@ function initTbTable() {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }*/
 | 
	
		
			
				|  |  |          ],
 | 
	
		
			
				|  |  | -        rowStyle: function (row, index) {
 | 
	
		
			
				|  |  | -            if ($("#confirmFlagSearch").val() == 0 || $("#confirmFlagSearch").val() == 5) {
 | 
	
		
			
				|  |  | -                for (let val of printRecord.values()) {
 | 
	
		
			
				|  |  | -                    if(val.patientId == row.patientId && val.times == row.times && val.orderNo == row.orderNo){
 | 
	
		
			
				|  |  | -                        return { css: { 'background-color': 'aliceblue' } };
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            return {css:{}}
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  |          onClickRow: function (row) {
 | 
	
		
			
				|  |  |              if (sendRefundGroup == 1) {
 | 
	
		
			
				|  |  |                  fitfymx(row.patientId, row.times, row.receiptNo, row.orderNo, row.groupNo);
 | 
	
	
		
			
				|  | @@ -333,7 +326,7 @@ function initTbTable() {
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          onDblClickRow: function (row) {
 | 
	
		
			
				|  |  |              if (sendRefundGroup == 0) {
 | 
	
		
			
				|  |  | -                printInjectionOralMedicine(row.patientId, row.orderNo, row.realNo, row.times, row.receiptNo);
 | 
	
		
			
				|  |  | +                printInjectionOralMedicine(row.patientId, row.orderNo, row.realNo, row.times, row.receiptNo,row.confirmFlag);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          responseHandler: function (res) {
 | 
	
	
		
			
				|  | @@ -636,12 +629,8 @@ function sendMedicineProcessingRad() {
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 打印注射卡口服药品
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  | -function printInjectionOralMedicine(patientId, orderNo, realNo, times, receiptNo) {
 | 
	
		
			
				|  |  | -    if($("#confirmFlagSearch").val() == 0 || $("#confirmFlagSearch").val() == 5 ){
 | 
	
		
			
				|  |  | -        //将打印的处方缓存
 | 
	
		
			
				|  |  | -        printRecord.add({patientId:patientId,orderNo:orderNo,times:times});
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -    initTbTable();
 | 
	
		
			
				|  |  | +function printInjectionOralMedicine(patientId, orderNo, realNo, times, receiptNo,confirmFlag) {
 | 
	
		
			
				|  |  | +    prescriptionDetail(realNo, 71, orderNo, receiptNo, times, patientId,confirmFlag);
 | 
	
		
			
				|  |  |      var tem = {
 | 
	
		
			
				|  |  |          patientId: patientId,
 | 
	
		
			
				|  |  |          orderNo: orderNo,
 | 
	
	
		
			
				|  | @@ -923,7 +912,8 @@ function queryParams(params) {
 | 
	
		
			
				|  |  |          confirmFlag: $("#confirmFlagSearch").val(),
 | 
	
		
			
				|  |  |          realNo: $("#realNoSearch").val() == "" ? null : $("#realNoSearch").val(),
 | 
	
		
			
				|  |  |          groupNoOut: '71',
 | 
	
		
			
				|  |  | -        isSendAndMatch: $('#sendAndMatch').prop('checked')?1:0
 | 
	
		
			
				|  |  | +        isSendAndMatch: 1
 | 
	
		
			
				|  |  | +        /*isSendAndMatch: $('#sendAndMatch').prop('checked')?1:0*/
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |      return temp;
 | 
	
		
			
				|  |  |  };
 | 
	
	
		
			
				|  | @@ -974,7 +964,12 @@ function cleanParams() {
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  var $table;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -function prescriptionDetail(realNo, groupNo, orderNo, receiptNo, times, patientId) {
 | 
	
		
			
				|  |  | +function prescriptionDetail(realNo, groupNo, orderNo, receiptNo, times, patientId,confirmFlag) {
 | 
	
		
			
				|  |  | +    if(confirmFlag ==5 || confirmFlag ==0){
 | 
	
		
			
				|  |  | +        $("#sendDispose").show();//显示
 | 
	
		
			
				|  |  | +    }else{
 | 
	
		
			
				|  |  | +        $("#sendDispose").hide();//隐藏
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |      var temp = {
 | 
	
		
			
				|  |  |          groupNo: groupNo,
 | 
	
		
			
				|  |  |          realNo: realNo,
 | 
	
	
		
			
				|  | @@ -1119,6 +1114,12 @@ function prescriptionDetail(realNo, groupNo, orderNo, receiptNo, times, patientI
 | 
	
		
			
				|  |  |                  $("#warnDeptNameLabel").val(ress.data[0].warnDeptName);
 | 
	
		
			
				|  |  |                  $("#chargeDateLabel").val(format(ress.data[0].chargeDate, "yyyy-MM-dd HH:mm:ss"));
 | 
	
		
			
				|  |  |                  $("#icdTextLabel").val(ress.data[0].icdText);
 | 
	
		
			
				|  |  | +                $("#orderNoLabel").val(ress.data[0].orderNo);
 | 
	
		
			
				|  |  | +                $("#receiptNoLabel").val(ress.data[0].receiptNo);
 | 
	
		
			
				|  |  | +                $("#timesLabel").val(ress.data[0].times);
 | 
	
		
			
				|  |  | +                $("#nameLabel").val(ress.data[0].name);
 | 
	
		
			
				|  |  | +                $("#patientIdLabel").val(ress.data[0].patientId);
 | 
	
		
			
				|  |  | +                $("#realNoLabel").val(ress.data[0].realNo);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (ress.code == -1) {
 | 
	
		
			
				|  |  |                  if (ress.message != null && ress.message != '') {
 |