Преглед на файлове

检验申请单和检查申请单打印

hurugang преди 3 години
родител
ревизия
f088ca980c

+ 40 - 0
src/main/java/cn/hnthyy/thmz/controller/mz/MzChargeDetailController.java

@@ -1637,6 +1637,46 @@ public class MzChargeDetailController {
     }
 
 
+
+    /**
+     * 打印医技申请单
+     *
+     * @param patientId
+     * @param times
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/printYjReq", method = {RequestMethod.GET})
+    public Map<String, Object> printYjReq(@RequestParam("patientId") String patientId, @RequestParam("times") Integer times) {
+        Map<String, Object> results = new HashMap<>();
+        if (StringUtils.isBlank(patientId)) {
+            results.put("code", -1);
+            results.put("message", "患者门诊ID不能为空");
+            return results;
+        }
+        if (times == null) {
+            results.put("code", -1);
+            results.put("message", "就诊次数为空");
+            return results;
+        }
+        try {
+            results.put("code", 0);
+            results.put("message", "查询医技申请单数据成功");
+            results.put("data", mzChargeDetailService.printYjReq(patientId,times));
+            return results;
+        } catch (MzException e) {
+            results.put("code", -1);
+            results.put("message", "查询医技申请单数据失败,请联系管理员");
+            return results;
+        }catch (Exception e) {
+            results.put("code", -1);
+            results.put("message", "查询医技申请单数据失败,请联系管理员");
+            log.error("系统异常,错误信息{}", e.getMessage());
+            return results;
+        }
+    }
+
+
     /**
      * 修改收费方式
      *

+ 6 - 3
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzYjReqMapper.java

@@ -166,7 +166,7 @@ public interface MzYjReqMapper {
 
 
     /**
-     * 查询已缴费的医技申请单
+     * 查询医技申请单
      *
      * @param mzYjReq
      * @return
@@ -175,7 +175,10 @@ public interface MzYjReqMapper {
             "select req_no,patient_id,p_name patient_name,birth_date,times,receipt_no,order_no,item_no,p_bar_code,group_name,order_code,order_name,page_no,req_comment,req_doctor,",
             "req_ward,exec_dept,req_date,inspect_part,inspect_stuff,sample_status,rtrim(print_flag) print_flag,rtrim(receive_flag) receive_flag,req_type,result_comment,sys_date,",
             "rtrim(pay_mark) pay_mark,rtrim(status_flag) status_flag,serial_no,cash_id,jy_remark,req_other_result,original_list_no,req_tz_comment,rtrim(jz_flag) jz_flag,req_studyid,",
-            "percent_ft,rtrim(confirm_flag) confirm_flag,confirm_time,confirm_id,rtrim(print_flag_yj) print_flag_yj from mz_yj_req where pay_mark='0' ",
+            "percent_ft,rtrim(confirm_flag) confirm_flag,confirm_time,confirm_id,rtrim(print_flag_yj) print_flag_yj from mz_yj_req where 1=1 ",
+            "<when test='payMark!=null'>",
+            " and pay_mark =#{payMark}",
+            "</when>",
             "<when test='times!=null'>",
             " and times =#{times,jdbcType=SMALLINT}",
             "</when>",
@@ -183,6 +186,6 @@ public interface MzYjReqMapper {
             " and patient_id =#{patientId,jdbcType=VARCHAR}",
             "</when>",
             "</script>"})
-    List<MzYjReq> selectPaidMzYjReq(MzYjReq mzYjReq);
+    List<MzYjReq> selectMzYjReqByTimesAndPayMark(MzYjReq mzYjReq);
 
 }

+ 8 - 0
src/main/java/cn/hnthyy/thmz/service/his/mz/MzChargeDetailService.java

@@ -367,4 +367,12 @@ public interface MzChargeDetailService {
      * @return
      */
     Integer setPriceTime();
+
+    /**
+     * 打印医技申请单
+     * @param patientId
+     * @param times
+     * @return
+     */
+    Map<String,Object> printYjReq(String patientId,Integer times) throws MzException;
 }

+ 2 - 0
src/main/java/cn/hnthyy/thmz/service/his/mz/MzYjReqService.java

@@ -54,4 +54,6 @@ public interface MzYjReqService {
      */
     MzYjReq queryMzYjReqByReqNo(String reqNo);
 
+
+
 }

+ 49 - 11
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -976,7 +976,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                     name += mzChargeDetail.getQuantity() + "g";
                     detail.add(name);
                 } else if (Constants.YJ_GROUP_NO.equals(mzChargeDetail.getGroupNo())) {
-                    if (Constants.TC.equals(mzChargeDetail.getBillItemCode())) {
+                    if (Constants.TC.equals(mzChargeDetail.getBillItemCode()) || Constants.SSWRF.equals(mzChargeDetail.getBillItemCode())) {
                         continue;
                     }
                     if (zlPrescription.size() == 0) {
@@ -1202,7 +1202,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                 mzYjReq.setPayMark(PayMarkEnum.NO_CHARGE.code);
                 mzYjReq.setReqDoctor(mzPrescriptionVo.getDoctorCode());
                 mzYjReq.setReceiveFlag(YesNoEnum.NO.code.toString());
-                mzYjReq.setReqComment("主诉:" + mzPrescriptionVo.getMzBlRecord().getEmrChiefComplaint() + "现病史:" + mzPrescriptionVo.getMzBlRecord().getEmrHpi() + "既往史:" + mzPrescriptionVo.getMzBlRecord().getEmrPs());
+                mzYjReq.setReqComment("主诉:" + mzPrescriptionVo.getMzBlRecord().getEmrChiefComplaint() + " 现病史:" + mzPrescriptionVo.getMzBlRecord().getEmrHpi() + " 既往史:" + mzPrescriptionVo.getMzBlRecord().getEmrPs());
                 JcZdItem jcZdItem = jcZdItemMapper.selectJcZdItemByCode(mzYjReq.getOrderCode());
                 if (jcZdItem != null) {
                     mzYjReq.setOrderName(jcZdItem.getName());
@@ -1714,6 +1714,17 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                 }
             }
         }
+        mzPrescriptionVo.setMzChargeDetailList(mzChargeDetailList);
+        if (PayMarkEnum.CHARGED.code.equals(payMark)) {
+            MzYjReq  mzYjReq= new MzYjReq(patientId, times);
+            mzYjReq.setPayMark(PayMarkEnum.CHARGED.code);
+            mzPrescriptionVo.setMzYjReqList(mzYjReqMapper.selectMzYjReqByTimesAndPayMark(mzYjReq));
+        }else if (PayMarkEnum.NO_CHARGE.code.equals(payMark)) {
+            mzPrescriptionVo.setMzYjReqList(mzYjReqMapper.selectNotPayMzYjReq(new MzYjReq(patientId, times)));
+        }
+        if(mzBlRecord.getPrescriptionDetail()==null || StringUtils.isBlank(mzBlRecord.getPrescriptionDetail())){
+            setPrescriptionDetail(mzPrescriptionVo, YesNoEnum.NO);
+        }
         List<MzChargeDetail> removeList = null;
         if(mzChargeDetailList!=null && mzChargeDetailList.size()>0){
             //麻、精一
@@ -1750,15 +1761,6 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
             //对于已经收费的药品记录查询,只需要查询医生开立的药品,给要方式等记录需要过滤
             mzChargeDetailList.removeAll(removeList);
         }
-        mzPrescriptionVo.setMzChargeDetailList(mzChargeDetailList);
-        if (PayMarkEnum.CHARGED.code.equals(payMark)) {
-            mzPrescriptionVo.setMzYjReqList(mzYjReqMapper.selectPaidMzYjReq(new MzYjReq(patientId, times)));
-        }else if (PayMarkEnum.NO_CHARGE.code.equals(payMark)) {
-            mzPrescriptionVo.setMzYjReqList(mzYjReqMapper.selectNotPayMzYjReq(new MzYjReq(patientId, times)));
-        }
-        if(mzBlRecord.getPrescriptionDetail()==null || StringUtils.isBlank(mzBlRecord.getPrescriptionDetail())){
-            setPrescriptionDetail(mzPrescriptionVo, YesNoEnum.NO);
-        }
         return mzPrescriptionVo;
     }
 
@@ -1853,6 +1855,42 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         return 1;
     }
 
+    @Override
+    public Map<String, Object> printYjReq(String patientId, Integer times) throws MzException {
+        List<MzYjReq> mzYjReqList=mzYjReqMapper.selectMzYjReqByTimesAndPayMark(new MzYjReq(patientId, times));
+        if(mzYjReqList==null || mzYjReqList.size()==0){
+            return null;
+        }
+        Map<String, Object> resultMap = new HashMap<>();
+        resultMap.put("mzYjReqList",mzYjReqList);
+        MzYjReq mzYjReq = mzYjReqList.get(0);
+        if(mzYjReq.getReqWard()!=null && StringUtils.isNotBlank(mzYjReq.getReqWard())){
+            resultMap.put("deptName",zdUnitCodeService.queryDeptNameByIdInCache(mzYjReq.getReqWard()));
+        }
+        if(mzYjReq.getReqDoctor()!=null && StringUtils.isNotBlank(mzYjReq.getReqDoctor())){
+            Employee employee= employeeService.queryByUserCode(mzYjReq.getReqDoctor());
+            resultMap.put("doctorName",employee==null?"":employee.getEmployeeName());
+        }
+        MzPatientMi mzPatientMi=mzPatientMiService.queryByPatientId(patientId);
+        if(mzPatientMi==null){
+            throw new MzException("门诊病人不存在!");
+        }
+        mzPatientMi.setGender(GenderEnum.getGenderByCode(mzPatientMi.getSex()).name);
+        mzPatientMi.setResponseTypeName(ResponceTypeEnum.getReportTypeByCode(mzPatientMi.getResponseType()).name);
+        resultMap.put("mzPatientMi",mzPatientMi);
+        MzVisitTable mzVisitTable= mzVisitTableMapper.selectByPatientIdAndTimes(patientId,times,"mz_visit_table");
+        if(mzVisitTable==null){
+            throw new MzException("门诊病人就诊记录不存在!");
+        }
+        resultMap.put("mzVisitTable",mzVisitTable);
+        MzBlRecord mzBlRecord=mzBlRecordMapper.selectMzBlRecordByPatientIdAndTimes(patientId,times);
+        if(mzBlRecord!=null){
+            //历史数据会存在没有病历数据
+            resultMap.put("mzBlRecord",mzBlRecord);
+        }
+        return resultMap;
+    }
+
 //    @Override
 //    @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
 //    public int reSaveDetailFromBak(MzChargeDetail mzChargeDetail) {

+ 212 - 32
src/main/resources/static/js/mz/clinic.js

@@ -1044,6 +1044,14 @@ function realClinicalReception(patientId, serialNo) {
  */
 function clearWorkSpace() {
     clearUser();
+    clearWorkSpaceExcludeUser();
+}
+
+
+/**
+ * 清空工作台除了用户信息
+ */
+function clearWorkSpaceExcludeUser() {
     $("#symptom").val(null);
     $("#emrHpi").val(null);
     $("#emrPs").val(null);
@@ -1074,7 +1082,6 @@ function clearWorkSpace() {
     $("#totalAmount").text(0);
 }
 
-
 /**
  * 医疗范文详情预览
  * @param id
@@ -1369,7 +1376,7 @@ function editPrescription(jsonData) {
  * 调用医疗范文
  */
 function callTemplate() {
-    clearWorkSpace();
+    clearWorkSpaceExcludeUser();
     $.ajax({
         type: "GET",
         url: '/thmz/increaseNumber?id=' + $("#idTemplate").val(),
@@ -4781,20 +4788,20 @@ function zTreeOnClick(event, treeId, treeNode) {
  */
 function getParamsForpPrescription() {
     var codes = $("#diagnoseValue").val();
-    var icdCode=null;
-    if(codes!=null && codes.length>0){
-      var arr =  codes.split(",");
-      if(arr!=null){
-          for (i=0;i<arr.length;i++){
-              if(arr[i]!=""){
-                  if(icdCode==null){
-                      icdCode=arr[i];
-                  }else {
-                      icdCode+=","+arr[i];
-                  }
-              }
-          }
-      }
+    var icdCode = null;
+    if (codes != null && codes.length > 0) {
+        var arr = codes.split(",");
+        if (arr != null) {
+            for (i = 0; i < arr.length; i++) {
+                if (arr[i] != "") {
+                    if (icdCode == null) {
+                        icdCode = arr[i];
+                    } else {
+                        icdCode += "," + arr[i];
+                    }
+                }
+            }
+        }
     }
     var jsonData = JSON.parse('{"patientId": "","firstOrNot":"","icdCode": "","icdText": null,"jzFlag": "0","serialNo":"","mzBlRecord": {"firstOrNot": "","emrChiefComplaint": "","emrHpi": "","emrPs": "","emrPe": "","emrFzjc": null,"emrProcess": null,"emrXyy": "无","emrYypg": "无","emrGnpg": "无","emrJkjy": "","personalHistory": "","familyHistory": "","obstericalHistory": "","weight": "","temperature": "","sphygmus": "","breathe": "","pressureHigh": "","pressureFloor": "","pressureHighLeft": "","pressureFloorLeft": "","tentativeDiagnosis":"","prescriptionDetail":""},"mzChargeDetailList": [],"mzYjReqList": []}');
     jsonData.patientId = $("#patientId").val();
@@ -4840,7 +4847,7 @@ function getParamsForpPrescription() {
                 // } else if (i != xyTabContents.length - 1) {
                 //     emrProcess += "_";
                 // }
-               // var detailPrescription = JSON.parse('{"amount":"","detail":[]}');
+                // var detailPrescription = JSON.parse('{"amount":"","detail":[]}');
                 for (var j = 0; j < formGroups.length; j++) {
                     // var cfAmount = $(xyTabContents[i]).find("span.cf_amount").parent().text();
                     // emrProcess += $(formGroups[j]).text().replace(cfAmount, "") + "-";
@@ -4904,7 +4911,7 @@ function getParamsForpPrescription() {
         emrProcess += "付数" + zyfs + "_";
         //中药的类型
         var currentZyClassType = $("#current_zyClassType").val();
-       // var detailPrescription = JSON.parse('{"amount":"","zyfs":"","frequency":"","cyJssm":"","cyDj":"","cyFysm":"","detail":[]}');
+        // var detailPrescription = JSON.parse('{"amount":"","zyfs":"","frequency":"","cyJssm":"","cyDj":"","cyFysm":"","detail":[]}');
         for (var i = 0; i < zyTabContents.length; i++) {
             // var cfAmount = $(zyTabContents[i]).find("span.cf_amount").parent().text();
             // emrProcess += $(zyTabContents[i]).text().replace(cfAmount, "") + "-";
@@ -4928,7 +4935,7 @@ function getParamsForpPrescription() {
             tempJson.orderNo = orderNo;
             tempJson.groupNo = currentZyClassType;
             jsonData.mzChargeDetailList[jsonData.mzChargeDetailList.length] = tempJson;
-           // detailPrescription.detail[detailPrescription.detail.length] = $(zyTabContents[i]).text();
+            // detailPrescription.detail[detailPrescription.detail.length] = $(zyTabContents[i]).text();
         }
         // detailPrescription.zyfs = zyfs;
         // detailPrescription.frequency = $('#zy_orderFrequency_1 option:selected').text();
@@ -4982,7 +4989,7 @@ function getParamsForpPrescription() {
                 tempJson.orderNo = orderNo;
                 jsonData.mzYjReqList[jsonData.mzYjReqList.length] = tempJson;
             }
-           // detailPrescription.detail[detailPrescription.detail.length] = $(zlTabContents[i]).text();
+            // detailPrescription.detail[detailPrescription.detail.length] = $(zlTabContents[i]).text();
         }
         // detailPrescription.amount = $(arrs[orderNo - 1]).text();
         // jsonDataPrescription.zlPrescription[jsonDataPrescription.zlPrescription.length] = detailPrescription;
@@ -5537,28 +5544,28 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
                         if (zyArr != null && zyArr.length > 0) {
                             var zyhtml = "";
                             for (var i = 1; i < zyArr.length; i++) {
-                                if(i%4==1){
-                                    zyhtml +='<div class="item form-group" style="margin-bottom: -5px;">';
+                                if (i % 4 == 1) {
+                                    zyhtml += '<div class="item form-group" style="margin-bottom: -5px;">';
                                 }
-                                zyhtml +='<div class="col-md-3 col-sm-3 col-xs-12">';
+                                zyhtml += '<div class="col-md-3 col-sm-3 col-xs-12">';
                                 zyhtml += zyArr[i];
                                 zyhtml += "</div>";
-                                if(i%4==0){
-                                    zyhtml +='</div>';
+                                if (i % 4 == 0) {
+                                    zyhtml += '</div>';
                                 }
                             }
                             var zyfs = zyArr[0].substring(zyArr[0].indexOf("付数:") + 3);
                             if (zyfs != null && zyfs != "") {
-                                if(zyArr.length%4==1){
-                                    zyhtml +='<div class="item form-group" style="margin-bottom: -5px;">';
+                                if (zyArr.length % 4 == 1) {
+                                    zyhtml += '<div class="item form-group" style="margin-bottom: -5px;">';
                                 }
-                                zyhtml +='<div class="col-md-3 col-sm-3 col-xs-12">';
+                                zyhtml += '<div class="col-md-3 col-sm-3 col-xs-12">';
                                 zyhtml += ' <div style="text-indent: 2em;">';
                                 zyhtml += '  <div>';
                                 zyhtml += 'X<span>';
                                 zyhtml += zyfs;
                                 zyhtml += '</span> 付</div></div>';
-                                zyhtml +='</div>';
+                                zyhtml += '</div>';
                             }
                             $("#prescriptionDetail_zyzlContent").html(zyhtml);
                             $("#prescriptionDetail_zyzlTitle").removeClass("hide").addClass("in");
@@ -5593,6 +5600,15 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
                     $("#printPrescription").off("click").on("click", function (t) {
                         printPrescription(patientId, times, clnicId, payMark);
                     });
+                    if(jsonData.mzYjReqList==null || jsonData.mzYjReqList.length==0){
+                        $("#printYjReq").removeClass("in").addClass("hide");
+                        $("#printYjReq").off("click");
+                    }else {
+                        $("#printYjReq").removeClass("hide").addClass("in");
+                        $("#printYjReq").off("click").on("click", function (t) {
+                            printYjReq(patientId, times);
+                        });
+                    }
                 } else {
                     $("#printPrescription").removeClass("in").addClass("hide");
                     $("#callPrescription").removeClass("hide").addClass("in");
@@ -5604,6 +5620,9 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
                     $("#printPrescription").removeClass("in").addClass("hide");
                 } else {
                     $("#printPrescription").removeClass("hide").addClass("in");
+                    $("#printPrescription").off("click").on("click", function (t) {
+                        printPrescription(patientId, times, clnicId, payMark);
+                    });
                 }
             } else {
                 errorMesage(res);
@@ -5702,7 +5721,7 @@ function printPrescription(patientId, times, clnicId, payMark) {
                     //intWidth,intHeight 窗口的宽和高,整数型,单位是px
                     //strTitleButtonCaptoin 预览窗口和打印按钮的名称组合,字符型,用“点”分隔
                     //LODOP.SET_PREVIEW_WINDOW(intDispMode,intToolMode,blDirectPrint,intWidth,intHeight,strTitleButtonCaptoin)
-                    LODOP.SET_PREVIEW_WINDOW(0,2,0,700,900,"");
+                    LODOP.SET_PREVIEW_WINDOW(0, 2, 0, 700, 900, "");
                     //LODOP.SET_PRINT_STYLE("FontSize", 8); //字体大小
                     var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
                     var mzPatientMi = res.mzPatientMi;
@@ -5962,9 +5981,9 @@ function printPrescription(patientId, times, clnicId, payMark) {
                                 LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("guide_card_table").innerHTML);
                                 //LODOP.PRINT();
                                 LODOP.PREVIEW();
-                            } else if(res.code ==-2){
+                            } else if (res.code == -2) {
                                 LODOP.PREVIEW();
-                            }else {
+                            } else {
                                 errorMesage(res);
                             }
                         }
@@ -5977,3 +5996,164 @@ function printPrescription(patientId, times, clnicId, payMark) {
         }
     });
 }
+
+/**
+ * 构建体征描述
+ * @param mzBlRecord
+ * @returns {*}
+ */
+function getTz(mzBlRecord) {
+    var tz = null;
+    if (mzBlRecord.weight != null) {
+        var temp = "体重:" + mzBlRecord.weight + "kg ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.temperature != null) {
+        var temp = "体温:" + mzBlRecord.temperature + "℃ ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.sphygmus != null) {
+        var temp = "脉搏:" + mzBlRecord.sphygmus + "次/分 ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.breathe != null) {
+        var temp = "呼吸:" + mzBlRecord.breathe + "次/分 ";
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.pressureHigh != null && mzBlRecord.pressureFloor != null) {
+        var temp = "血压:" + mzBlRecord.pressureHigh + "/" + mzBlRecord.pressureFloor;
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    if (mzBlRecord.pressureHighLeft != null && mzBlRecord.pressureFloorLeft != null) {
+        var temp = "左血压:" + mzBlRecord.pressureHighLeft + "/" + mzBlRecord.pressureFloorLeft;
+        if (tz == null) {
+            tz = temp;
+        } else {
+            tz += " " + temp;
+        }
+    }
+    return tz;
+}
+
+/**
+ * 打印医技申请单
+ * @param patientId
+ * @param times
+ * @param clnicId
+ * @param payMark
+ */
+function printYjReq(patientId, times) {
+    $.ajax({
+        type: "GET",
+        url: '/thmz/printYjReq?patientId=' + patientId + '&times=' + times,
+        contentType: "application/json;charset=UTF-8",
+        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) {
+                if (res.data == null || res.data.mzYjReqList == null || res.data.mzYjReqList.length == 0) {
+                    return;
+                }
+                setPrint();
+                LODOP = getLodop();
+                LODOP.PRINT_INITA(6, 0, "148mm", "210mm", "湖南泰和医院检查申请单");
+                LODOP.SET_PRINT_STYLE("FontSize", 9); //字体大小
+                //设置默认打印机
+                LODOP.SET_PRINTER_INDEX(printIndex);
+                LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "148mm");
+                LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
+                LODOP.SET_PRINT_PAGESIZE(1, "148mm", "210mm", "CreateCustomPage");
+                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "检查申请单");//对新建的纸张重命名
+                //intDispMode:预览比例,数字型,0-适高  1-正常大小  2-适宽
+                //intToolMode:工具条和按钮,数字型  0-显示(上方)工具栏   1-显示(下方)按钮栏    2-两个都显示   3-两个都不显示
+                //blDirectPrint: 打印按钮是否“直接打印” 1-是  0-否(弹出界面“选机打印”)
+                //intWidth,intHeight 窗口的宽和高,整数型,单位是px
+                //strTitleButtonCaptoin 预览窗口和打印按钮的名称组合,字符型,用“点”分隔
+                //LODOP.SET_PREVIEW_WINDOW(intDispMode,intToolMode,blDirectPrint,intWidth,intHeight,strTitleButtonCaptoin)
+                LODOP.SET_PREVIEW_WINDOW(0, 2, 0, 700, 900, "");
+                //LODOP.SET_PRINT_STYLE("FontSize", 8); //字体大小
+                var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
+                var mzPatientMi = res.data.mzPatientMi;
+                $("#patientIdJcReq").text(mzPatientMi.patientId);
+                $("#patientNameJcReq").text(mzPatientMi.name);
+                $("#patientGenderJcReq").text(mzPatientMi.gender);
+                $("#patientAgeJcReq").text(mzPatientMi.age + "岁");
+                $("#responseTypeJcReq").text(mzPatientMi.responseTypeName);
+                $("#patientCardNoJcReq").text(mzPatientMi.icCardNo);
+                $("#icdTextJcReq").text(res.data.mzVisitTable.icdText);
+
+                $("#patientIdJyReq").text(mzPatientMi.patientId);
+                $("#patientNameJyReq").text(mzPatientMi.name);
+                $("#patientGenderJyReq").text(mzPatientMi.gender);
+                $("#patientAgeJyReq").text(mzPatientMi.age + "岁");
+                $("#responseTypeJyReq").text(mzPatientMi.responseTypeName);
+                $("#patientCardNoJyReq").text(mzPatientMi.icCardNo);
+                $("#icdTextJyReq").text(res.data.mzVisitTable.icdText);
+                var mzBlRecord = res.data.mzBlRecord;
+                $("#jcReqEmrChiefComplaint").text(mzBlRecord.emrChiefComplaint);
+                $("#jcReqHis").text(mzBlRecord.emrHpi);
+
+                $("#jyReqEmrChiefComplaint").text(mzBlRecord.emrChiefComplaint);
+                $("#jyReqHis").text(mzBlRecord.emrHpi);
+                var tz = getTz(mzBlRecord);
+                $("#jcReqTz").text(tz);
+                $("#jcReqReqDept").text(res.data.deptName);
+                $("#jcReqReqDoctor").text(res.data.doctorName);
+
+                $("#jyReqTz").text(tz);
+                $("#jyReqReqDept").text(res.data.deptName);
+                $("#jyReqReqDoctor").text(res.data.doctorName);
+                for (var i = 0; i < res.data.mzYjReqList.length; i++) {
+                    var obj = res.data.mzYjReqList[i];
+                    if (i == 0) {
+                        var dateStr =format(obj.reqDate, "yyyy-MM-dd");
+                        $("#jcReqReqDate").text(dateStr);
+                        $("#jyReqReqDate").text(dateStr);
+                    }
+                    if (i > 0) {
+                        LODOP.NewPageA();
+                    }
+                    if (obj.reqType == "3") {
+                        $("#reqNoJcReq").text(obj.reqNo);
+                        $("#jcReqItem").text(obj.groupName);
+                        $("#jcReqRemark").text(obj.jyRemark);
+                        LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("jc_card_table").innerHTML);
+                    } else if (obj.reqType == "2") {
+                        $("#reqNoJyReq").text(obj.reqNo);
+                        $("#jyReqItem").text(obj.groupName);
+                        $("#jyReqInspectStuff").text(obj.inspectStuff);
+                        //检验
+                        LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("jy_card_table").innerHTML);
+                    }
+                }
+                LODOP.PREVIEW();
+            } else {
+                errorMesage(res);
+            }
+        }
+    });
+}

+ 228 - 67
src/main/resources/templates/mz/clinic.html

@@ -272,7 +272,7 @@
                 </div>
             </div>
             <div class="col-md-12 col-sm-12 col-xs-12">
-                <div  class="x_panel_mine" style="background: #EBEBE4;">
+                <div class="x_panel_mine" style="background: #EBEBE4;">
                     <div class="x_title">
                         <!--<h2>候诊患者 <small>2</small></h2>-->
                         <h2>接诊中 (</h2>
@@ -290,7 +290,7 @@
                 </div>
             </div>
             <div class="col-md-12 col-sm-12 col-xs-12">
-                <div  class="x_panel_mine" style="background: #EBEBE4;">
+                <div class="x_panel_mine" style="background: #EBEBE4;">
                     <div class="x_title">
                         <!--<h2>候诊患者 <small>2</small></h2>-->
                         <h2>已诊患者 (</h2>
@@ -431,7 +431,8 @@
                     </div>
                     <div class="item form-group" id="tentativeDiagnosisFlag">
                         <label class="my_label">初步诊断:</label>
-                        <textarea id="tentativeDiagnosis" class="form-control my_label_input" placeholder="请输入"></textarea>
+                        <textarea id="tentativeDiagnosis" class="form-control my_label_input"
+                                  placeholder="请输入"></textarea>
                     </div>
                     <div class="item form-group">
                         <div class="btn-group" id="bill_item_group" style="float: left">
@@ -555,7 +556,8 @@
                                 <div class="item form-group">
                                     <div style="width: 130px;float: left;">
                                         <label class="my_label_2">总量:</label>
-                                        <input type="text" class="form-control my_label_input_2" id="gross" onkeyup ="calculateSimple()"
+                                        <input type="text" class="form-control my_label_input_2" id="gross"
+                                               onkeyup="calculateSimple()"
                                                style="padding-left: 10px;" readonly>
                                     </div>
                                     <div style="width: 256px;float: left;">
@@ -596,7 +598,9 @@
                                             style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
                                             class="fa fa-trash">&nbsp;&nbsp;清空</i></a></div>
 
-                                    <div style="float: right;display: inline-block;"><a style="cursor: pointer;font-size: 14px;color: #333333;"  onclick="saveMedicine(0)">&nbsp;&nbsp;保存到右侧<i
+                                    <div style="float: right;display: inline-block;"><a
+                                            style="cursor: pointer;font-size: 14px;color: #333333;"
+                                            onclick="saveMedicine(0)">&nbsp;&nbsp;保存到右侧<i
                                             class="fa fa-long-arrow-right"
                                             style="font-size: 20px;vertical-align: middle;width: 30px;height: 20px;text-align: center;background-color: #337AB7;color: white;margin-left: 10px"></i></a>
                                     </div>
@@ -1107,7 +1111,7 @@
                              style="font-size: 16px;border: 1px solid #ddd;    margin-top: 0px !important;padding: 10px 0px 10px 20px !important;">
                             患者: <span id="visitingDetailPatientName"></span> (<span
                                 id="visitingDetailPatientAge"></span>岁) <span id="visitingDetailPatientGender"
-                                                                                style="margin-right: 15px;"></span>就诊时间:<span
+                                                                              style="margin-right: 15px;"></span>就诊时间:<span
                                 id="visitingDetailDate" style="margin-right: 15px;"></span>科室医生:
                             <span id="visitingDetailDoctor"></span> <span id="visitingDetailDept"></span>
                         </div>
@@ -1139,7 +1143,7 @@
                          style="border-bottom: 1px solid rgb(221, 221, 221);padding-bottom: 10px;">
                         <div class="col-md-12 col-sm-12 col-xs-12 item" id="prescriptionDetail_zd">
                             <!--<div class="tagZdy tagZdy-back">-->
-                                <!--肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸-->
+                            <!--肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸-->
                             <!--</div>-->
                         </div>
                     </div>
@@ -1176,11 +1180,11 @@
                             <!--<span style="margin-left: 10px;">僵蚕</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                             <!--<span style="margin-left: 10px;">蜜麻黄</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                             <!--<div>-->
-                                <!--<div style="text-indent: 2em;">-->
-                                    <!--<div>-->
-                                        <!--x<span>5</span> 付-->
-                                    <!--</div>-->
-                                <!--</div>-->
+                            <!--<div style="text-indent: 2em;">-->
+                            <!--<div>-->
+                            <!--x<span>5</span> 付-->
+                            <!--</div>-->
+                            <!--</div>-->
                             <!--</div>-->
                         </div>
                     </div>
@@ -1199,7 +1203,9 @@
                 </form>
             </div>
             <div class="modal-footer">
-                <button type="button" class="btn btn-primary hide" id="printPrescription">打印</button>
+                <!--<button type="button" class="btn btn-primary hide" id="printPrescription">打印门诊病历</button>-->
+                <button type="button" class="btn btn-primary hide" id="printYjReq">医技申请单打印</button>
+                <button type="button" class="btn btn-primary hide" id="printPrescription">处方、门诊指引单打印</button>
                 <button type="button" class="btn btn-primary hide" id="callPrescription">调用</button>
                 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
             </div>
@@ -1271,10 +1277,10 @@
                          style="border-bottom: 1px solid rgb(221, 221, 221);padding-bottom: 10px;">
                         <div class="col-md-12 col-sm-12 col-xs-12 item" id="zdTemplate">
                             <!--<div class="tagZdy tagZdy-back">-->
-                                <!--肺嗜酸性粒细胞增多肺-->
+                            <!--肺嗜酸性粒细胞增多肺-->
                             <!--</div>-->
                             <!--<div class="tagZdy tagZdy-back-green">-->
-                                <!--肺嗜酸性粒细胞增-->
+                            <!--肺嗜酸性粒细胞增-->
                             <!--</div>-->
                         </div>
                     </div>
@@ -1291,34 +1297,34 @@
                         </div>
                         <div id="xyzlContent">
                             <!--<div>-->
-                                <!--<span>1.</span>-->
-                                <!--<span>抗骨增生片</span>-->
-                                <!--<span>(1)</span>-->
-                                <!--<span>4片</span>-->
-                                <!--<span>共8片</span>-->
-                                <!--<span>用法:口服</span>-->
-                                <!--<span>每日两次(bid)</span>-->
-                                <!--<span>1天</span>-->
+                            <!--<span>1.</span>-->
+                            <!--<span>抗骨增生片</span>-->
+                            <!--<span>(1)</span>-->
+                            <!--<span>4片</span>-->
+                            <!--<span>共8片</span>-->
+                            <!--<span>用法:口服</span>-->
+                            <!--<span>每日两次(bid)</span>-->
+                            <!--<span>1天</span>-->
                             <!--</div>-->
                             <!--<div>-->
-                                <!--<span>1.</span>-->
-                                <!--<span>兰索拉唑肠溶片</span>-->
-                                <!--<span>(15mg)</span>-->
-                                <!--<span>15mg</span>-->
-                                <!--<span>共2片</span>-->
-                                <!--<span>用法:口服</span>-->
-                                <!--<span>每日两次(bid)</span>-->
-                                <!--<span>1天</span>-->
+                            <!--<span>1.</span>-->
+                            <!--<span>兰索拉唑肠溶片</span>-->
+                            <!--<span>(15mg)</span>-->
+                            <!--<span>15mg</span>-->
+                            <!--<span>共2片</span>-->
+                            <!--<span>用法:口服</span>-->
+                            <!--<span>每日两次(bid)</span>-->
+                            <!--<span>1天</span>-->
                             <!--</div>-->
                             <!--<div>-->
-                                <!--<span>1.</span>-->
-                                <!--<span>复方氯唑沙宗胶囊</span>-->
-                                <!--<span>(1)</span>-->
-                                <!--<span>2粒</span>-->
-                                <!--<span>共4粒</span>-->
-                                <!--<span>用法:口服</span>-->
-                                <!--<span>每日两次(bid)</span>-->
-                                <!--<span>1天</span>-->
+                            <!--<span>1.</span>-->
+                            <!--<span>复方氯唑沙宗胶囊</span>-->
+                            <!--<span>(1)</span>-->
+                            <!--<span>2粒</span>-->
+                            <!--<span>共4粒</span>-->
+                            <!--<span>用法:口服</span>-->
+                            <!--<span>每日两次(bid)</span>-->
+                            <!--<span>1天</span>-->
                             <!--</div>-->
                         </div>
                     </div>
@@ -1331,11 +1337,11 @@
                             <!--<span style="margin-left: 10px;">僵蚕</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                             <!--<span style="margin-left: 10px;">蜜麻黄</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                             <!--<div>-->
-                                <!--<div style="text-indent: 2em;">-->
-                                    <!--<div>-->
-                                        <!--x<span>5</span> 付-->
-                                    <!--</div>-->
-                                <!--</div>-->
+                            <!--<div style="text-indent: 2em;">-->
+                            <!--<div>-->
+                            <!--x<span>5</span> 付-->
+                            <!--</div>-->
+                            <!--</div>-->
                             <!--</div>-->
                         </div>
                     </div>
@@ -1344,10 +1350,10 @@
                             诊疗与医技:
                         </div>
                         <div id="zlyjContent">
-                           <!-- <span>14×17吋干式胶片</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>片</span>
-                            <span>2.7锁定螺钉</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>枚</span>
-                            <span>β2微球蛋白测定(免疫学法等)</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>项</span>
-                            <span>经纤维喉镜咽喉异物取出术</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>次</span>-->
+                            <!-- <span>14×17吋干式胶片</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>片</span>
+                             <span>2.7锁定螺钉</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>枚</span>
+                             <span>β2微球蛋白测定(免疫学法等)</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>项</span>
+                             <span>经纤维喉镜咽喉异物取出术</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>次</span>-->
                         </div>
                     </div>
 
@@ -1475,9 +1481,6 @@
 <!--诊疗与医技明细弹窗结尾-->
 
 
-
-
-
 <!--保存医疗范文弹窗开始-->
 <div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="saveapidAcceptsModal"
      style="top:20%;">
@@ -1535,10 +1538,9 @@
 <!--保存医疗范文弹窗结尾-->
 
 
-
-
 <!--切换接诊提示弹窗开始-->
-<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="messagePrescriptionModal"
+<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true"
+     id="messagePrescriptionModal"
      style="top:20%;">
     <div class="modal-dialog modal-sm">
         <div class="modal-content" style="width: 480px;">
@@ -1553,14 +1555,16 @@
                         <i class="fa fa-info-circle blue fa-3x"></i>
                     </div>
                     <div class="col-md-10 col-sm-10 col-xs-12"
-                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;" id="messagePrescriptionContent">
+                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;"
+                         id="messagePrescriptionContent">
                         当前有病人正在接诊,是否保存?
                     </div>
                 </form>
             </div>
             <div class="modal-footer">
                 <button type="button" class="btn btn-primary" id="confirmPrescriptionButton">保存</button>
-                <button type="button" class="btn btn-default" data-dismiss="modal" id="cancelPrescriptionButton">不保存</button>
+                <button type="button" class="btn btn-default" data-dismiss="modal" id="cancelPrescriptionButton">不保存
+                </button>
             </div>
         </div>
     </div>
@@ -1572,8 +1576,11 @@
 <div id="prescription_table" class="hide"
      style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
     <div id="report_table_1">
-        <div style="position: relative;"><div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
-            <div style="float: right;color: red;margin-right: 30px;border: 1px solid red;width: 60px;text-align: center;position: absolute;top: 0px;right: 0px;" id="cfTitle"></div></div>
+        <div style="position: relative;">
+            <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
+            <div style="float: right;color: red;margin-right: 30px;border: 1px solid red;width: 60px;text-align: center;position: absolute;top: 0px;right: 0px;"
+                 id="cfTitle"></div>
+        </div>
         <div style="text-align:center;font-weight: 700;">处方笺</div>
         <!--<h3 style="text-align:center;font-weight: 700;">湖南泰和医院</h3>-->
         <!--<h3 style="text-align:center;font-weight: 700;">处方笺</h3>-->
@@ -1627,12 +1634,17 @@
         <table class="table table-striped table-bordered">
             <tbody>
             <tr>
-                <td style="font-size: 13px;">处方金额:<span style="text-decoration: underline" id="cfAmountPrint"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
-                <td style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;医师:<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
+                <td style="font-size: 13px;">处方金额:<span style="text-decoration: underline" id="cfAmountPrint"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                </td>
+                <td style="font-size: 13px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;医师:<span
+                        style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+                </td>
             </tr>
             <tr>
-                <td style="font-size: 13px;">审核药师:<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
-                <td style="font-size: 13px;">调配药师:<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
+                <td style="font-size: 13px;">审核药师:<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+                </td>
+                <td style="font-size: 13px;">调配药师:<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+                </td>
             </tr>
             </tbody>
         </table>
@@ -1645,11 +1657,13 @@
 <div id="guide_card_table" class="hide"
      style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
     <div>
-       <div>
-           <div style="float: left"><img src="/thmz/images/taihe-logo.png" style="height: 60px;"></div>
-           <div style="text-align:left;font-weight: 700;float: left;height: 60px;line-height: 60px;margin-left: 20px;">门诊指引单</div>
-           <div style="float: right;padding-right: 20px;"><img id="imgcode" style="height: 60px;"/></div>
-       </div>
+        <div>
+            <div style="float: left"><img src="/thmz/images/taihe-logo.png" style="height: 60px;"></div>
+            <div style="text-align:left;font-weight: 700;float: left;height: 60px;line-height: 60px;margin-left: 20px;">
+                门诊指引单
+            </div>
+            <div style="float: right;padding-right: 20px;"><img id="imgcode" style="height: 60px;"/></div>
+        </div>
 
         <table class="table table-striped table-bordered" style="border-bottom: 1px solid black;font-size: 13px;">
             <tbody>
@@ -1685,6 +1699,153 @@
 </div>
 <!--打印门诊指引单结束-->
 
+
+<!--打印检查申请单开始-->
+<div id="jc_card_table" class="hide"
+     style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
+    <div>
+        <div>
+            <div style="position: relative;">
+                <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
+                <div style="text-align:center;font-weight: 700;">检查申请单</div>
+            </div>
+            <table class="table table-striped table-bordered" style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>门诊ID: <span id="patientIdJcReq"></span></td>
+                    <td>姓名:<span id="patientNameJcReq"></span></td>
+                    <td>性别: <span id="patientGenderJcReq"></span></td>
+                    <td>年龄:<span id="patientAgeJcReq"></span></td>
+                </tr>
+                <tr>
+                    <td>诊疗卡:<span id="patientCardNoJcReq"></span></td>
+                    <td>费别:<span id="responseTypeJcReq"></span></td>
+                    <td>单号:<span id="reqNoJcReq"></span></td>
+                </tr>
+                <tr>
+                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJcReq" ></span></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered" style="border: 1px solid black;font-size: 13px;border-collapse: collapse;">
+                <tbody style="padding-bottom: 10px;font-size: 13px;">
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-width: 30px;height: 50px;">症状</td>
+                    <td colspan="7" id="jcReqEmrChiefComplaint" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">病史</td>
+                    <td colspan="7" id="jcReqHis" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">体征</td>
+                    <td colspan="7" id="jcReqTz" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;font-weight: bold">项目</td>
+                    <td colspan="7" id="jcReqItem" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;font-weight: bold"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">备注</td>
+                    <td colspan="7" id="jcReqRemark" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered" style="border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>申请科室: <span id="jcReqReqDept"></span></td>
+                    <td>申请医生:<span id="jcReqReqDoctor"></span></td>
+                </tr>
+                <tr>
+                    <td>申请日期:<span id="jcReqReqDate"></span></td>
+                    <td>医师签名:<span style="text-decoration: underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
+                </tr>
+                </tbody>
+            </table>
+        </div>
+    </div>
+</div>
+<!--打印检查申请单结束-->
+
+
+<!--打印检验申请单开始-->
+<div id="jy_card_table" class="hide"
+     style="width:920px;height: calc(100% - 160px);margin:0 auto;border: 1px solid #337ab7;font-size: 13px;padding: 40px 20px 40px 20px;overflow-y: auto; overflow-x:hidden;">
+    <div>
+        <div>
+            <div style="position: relative;">
+                <div style="text-align:center;font-weight: 700;">湖南泰和医院</div>
+                <div style="text-align:center;font-weight: 700;">检验申请单</div>
+            </div>
+            <table class="table table-striped table-bordered" style="margin-top: 10px;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>门诊ID: <span id="patientIdJyReq"></span></td>
+                    <td>姓名:<span id="patientNameJyReq"></span></td>
+                    <td>性别: <span id="patientGenderJyReq"></span></td>
+                    <td>年龄:<span id="patientAgeJyReq"></span></td>
+                </tr>
+                <tr>
+                    <td>诊疗卡:<span id="patientCardNoJyReq"></span></td>
+                    <td>费别:<span id="responseTypeJyReq"></span></td>
+                    <td>单号:<span id="reqNoJyReq"></span></td>
+                </tr>
+                <tr>
+                    <td colspan="4">诊&nbsp;&nbsp;&nbsp;&nbsp;断:<span id="icdTextJyReq" ></span></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered" style="border: 1px solid black;font-size: 13px;border-collapse: collapse;">
+                <tbody style="padding-bottom: 10px;font-size: 13px;">
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;min-width: 30px;height: 50px;">症状</td>
+                    <td colspan="7" id="jyReqEmrChiefComplaint" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">病史</td>
+                    <td colspan="7" id="jyReqHis" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+                <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">体征</td>
+                    <td colspan="7" id="jyReqTz" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>
+       <!--         <tr>
+                    <td style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;height: 50px;">临床印象</td>
+                    <td colspan="7" id="jyReqRemark" style="border:solid black; border-width:0px 1px 1px 0px; padding-left:10px;"></td>
+                </tr>-->
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered" style="border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;border-collapse: collapse;">
+                <tbody style="font-size: 13px;font-weight: bold;text-align: center;">
+                <tr>
+                    <th style="height: 30px;border-bottom: 1px solid black;">检验项目</th>
+                    <th style="height: 30px;border-bottom: 1px solid black;">标本</th>
+                </tr>
+                <tr>
+                    <td id="jyReqItem" style="height: 30px;"></td>
+                    <td id="jyReqInspectStuff"></td>
+                </tr>
+                </tbody>
+            </table>
+            <table class="table table-striped table-bordered" style="border-bottom: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
+                <tbody style="font-size: 13px;">
+                <tr>
+                    <td>申请科室: <span id="jyReqReqDept"></span></td>
+                    <td>申请医生:<span id="jyReqReqDoctor"></span></td>
+                </tr>
+                <tr>
+                    <td>申请日期:<span id="jyReqReqDate"></span></td>
+                    <td>医师签名:<span style="text-decoration: underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
+                </tr>
+                </tbody>
+            </table>
+        </div>
+    </div>
+</div>
+    <!--打印检验申请单结束-->
+
+
 <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
     <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
 </object>