|
@@ -593,6 +593,8 @@ function clearUser() {
|
|
|
$("#patientAge").html("");
|
|
|
$("#patientGender").html("");
|
|
|
$("#patientId").val(null);
|
|
|
+ $("#editUser").css("display","none");
|
|
|
+ $("#clearUser").css("display","none");
|
|
|
$("#patientPhone").html("");
|
|
|
$("#patientPhoneLabel").hide();
|
|
|
$("#patientResponseType").html("");
|
|
@@ -1002,6 +1004,8 @@ function setMzPatientInfo(mzPatientMi) {
|
|
|
$("#patientAge").html(mzPatientMi.age);
|
|
|
$("#patientGender").html(mzPatientMi.gender);
|
|
|
$("#patientId").val(mzPatientMi.patientId);
|
|
|
+ $("#editUser").css("display","inline-block");
|
|
|
+ $("#clearUser").css("display","inline-block");
|
|
|
if (mzPatientMi.phoneNo != null && mzPatientMi.phoneNo != '') {
|
|
|
$("#patientPhone").html(mzPatientMi.phoneNo);
|
|
|
$("#patientPhoneLabel").show();
|
|
@@ -1313,7 +1317,7 @@ function editPrescription(jsonData) {
|
|
|
}
|
|
|
$("#healthEducation").val(jsonData.mzBlRecord.emrJkjy);
|
|
|
var mzChargeDetailList = jsonData.mzChargeDetailList;
|
|
|
- var mzZyReq=jsonData.mzZyReq;
|
|
|
+ var mzZyReq = jsonData.mzZyReq;
|
|
|
//中药的公共参数是否已经设置了
|
|
|
var hadSetZyFullParams = false;
|
|
|
//西药,成药,医材,麻精,中药,诊疗
|
|
@@ -1389,7 +1393,7 @@ function editPrescription(jsonData) {
|
|
|
}
|
|
|
}
|
|
|
//入院证
|
|
|
- if(mzZyReq!=null && mzZyReq.reqDept!=null){
|
|
|
+ if (mzZyReq != null && mzZyReq.reqDept != null) {
|
|
|
$("#inpatientWardBeHospitalized").selectpicker('val', mzZyReq.reqDept);
|
|
|
$('#inpatientWardBeHospitalized').selectpicker('refresh');
|
|
|
initSmallDeptByDept();
|
|
@@ -1399,7 +1403,7 @@ function editPrescription(jsonData) {
|
|
|
$("#smallWardBeHospitalized").selectpicker('val', mzZyReq.smallDept);
|
|
|
$('#smallWardBeHospitalized').selectpicker('refresh');
|
|
|
saveZyReq(false);
|
|
|
- },500);
|
|
|
+ }, 500);
|
|
|
}
|
|
|
//设置总金额
|
|
|
calculateTotalAmount();
|
|
@@ -1620,7 +1624,7 @@ function initResponceTypeSelect() {
|
|
|
var html = '<option value="' + item.code + '">' + item.name + '</option>';
|
|
|
$('#patientsNature').append(html);
|
|
|
$('#editUserPatientsNature').append(html);
|
|
|
- // $('#responeTypeBeHospitalized').append(html);
|
|
|
+ // $('#responeTypeBeHospitalized').append(html);
|
|
|
});
|
|
|
$('#patientsNature').selectpicker('refresh');
|
|
|
$('#editUserPatientsNature').selectpicker('refresh');
|
|
@@ -5998,11 +6002,15 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
|
|
|
}
|
|
|
}
|
|
|
if (type == 0) {
|
|
|
- $("#printPrescription").removeClass("hide").addClass("in");
|
|
|
$("#callPrescription").removeClass("in").addClass("hide");
|
|
|
- $("#printPrescription").off("click").on("click", function (t) {
|
|
|
- printPrescription(patientId, times, clnicId, payMark);
|
|
|
- });
|
|
|
+ if ((jsonData.mzChargeDetailList == null || jsonData.mzChargeDetailList.length == 0) && (jsonData.mzYjReqList == null || jsonData.mzYjReqList.length == 0)) {
|
|
|
+ $("#printPrescription").removeClass("in").addClass("hide");
|
|
|
+ } else {
|
|
|
+ $("#printPrescription").removeClass("hide").addClass("in");
|
|
|
+ $("#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");
|
|
@@ -6035,10 +6043,14 @@ function prescriptionDetailCommon(patientId, times, clnicId, payMark, type) {
|
|
|
if (oriPayMark == 1) {
|
|
|
$("#printPrescription").removeClass("in").addClass("hide");
|
|
|
} else {
|
|
|
- $("#printPrescription").removeClass("hide").addClass("in");
|
|
|
- $("#printPrescription").off("click").on("click", function (t) {
|
|
|
- printPrescription(patientId, times, clnicId, payMark);
|
|
|
- });
|
|
|
+ if ((jsonData.mzChargeDetailList == null || jsonData.mzChargeDetailList.length == 0) && (jsonData.mzYjReqList == null || jsonData.mzYjReqList.length == 0)) {
|
|
|
+ $("#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);
|
|
@@ -6706,8 +6718,6 @@ function printBlRecord(patientId, times) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 打印入院通知单
|
|
|
* @param patientId
|