|
@@ -4207,7 +4207,7 @@ function saveJyJcItemReal(calculateTotalAmountFlag) {
|
|
|
if (updateFlag == "true" || updateFlag == true) {
|
|
|
var formGroups = $(tableId).find("div.cf_content").find("div.form-group");
|
|
|
if (formGroups != null && formGroups.length > 0) {
|
|
|
- var updateOriCode=$("#update_ori_code").val();
|
|
|
+ var updateOriCode = $("#update_ori_code").val();
|
|
|
for (var i = 0; i < formGroups.length; i++) {
|
|
|
var temporaryItemsCode = $(formGroups[i]).find("input.temporary_items_code").val();
|
|
|
if (temporaryItemsCode === updateOriCode) {
|
|
@@ -4374,7 +4374,7 @@ function saveZlItemReal(calculateTotalAmountFlag) {
|
|
|
if (updateFlag == "true" || updateFlag == true) {
|
|
|
var formGroups = $(tableId).find("div.cf_content").find("div.form-group");
|
|
|
if (formGroups != null && formGroups.length > 0) {
|
|
|
- var updateOriCode=$("#update_ori_code").val();
|
|
|
+ var updateOriCode = $("#update_ori_code").val();
|
|
|
for (var i = 0; i < formGroups.length; i++) {
|
|
|
var temporaryItemsCode = $(formGroups[i]).find("input.temporary_items_code").val();
|
|
|
if (temporaryItemsCode === updateOriCode) {
|
|
@@ -9053,6 +9053,38 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
index++;
|
|
|
}
|
|
|
}
|
|
|
+ //住院证打印
|
|
|
+ var mzZyReq = res.data.mzZyReq;
|
|
|
+ if (mzZyReq != null) {
|
|
|
+ $("#patientIdZyReq").text(mzPatientMi.patientId);
|
|
|
+ $("#patientNameZyReq").text(mzPatientMi.name);
|
|
|
+ $("#patientGenderZyReq").text(mzPatientMi.gender);
|
|
|
+ $("#patientAgeZyReq").text(mzPatientMi.ageString);
|
|
|
+ $("#sfzZyReq").text(mzPatientMi.socialNo);
|
|
|
+ $("#birthDateZyReq").text(format(mzPatientMi.birthDay, "yyyy-MM-dd"));
|
|
|
+ $("#phoneZyReq").text(mzPatientMi.phoneNo);
|
|
|
+ $("#responseTypeZyReq").text(mzPatientMi.responseTypeName);
|
|
|
+ $("#addressZyReq").text(mzPatientMi.address);
|
|
|
+ if (mzZyReq.icdCode == null || mzZyReq.icdCode == "" || mzZyReq.icdCode.length == 0) {
|
|
|
+ $("#icsCodeZyReq").html(" ");
|
|
|
+ $("#icsTextZyReq").text(mzZyReq.icdText);
|
|
|
+ } else {
|
|
|
+ $("#icsCodeZyReq").text(mzZyReq.icdCode);
|
|
|
+ $("#icsTextZyReq").text(mzZyReq.icdText);
|
|
|
+ }
|
|
|
+ $("#reqDeptZyReq").text(mzZyReq.reqWardName);
|
|
|
+ $("#smallDeptZyReq").text(mzZyReq.smallDeptName);
|
|
|
+ //$("#admissStatusZyReq").text(mzZyReq.admissStatus);
|
|
|
+ $("input:checkbox[value='" + mzZyReq.admissStatus + "']").attr('checked', 'true');
|
|
|
+ $("#visitDateZyReq").text(format(mzZyReq.visitDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#deptCodeZyReq").text(mzZyReq.deptName);
|
|
|
+ $("#doctorCodeZyReq").text(mzZyReq.doctorName);
|
|
|
+ if (index > 0) {
|
|
|
+ LODOP.NewPageA();
|
|
|
+ }
|
|
|
+ LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("mz_zy_req_table").innerHTML);
|
|
|
+ index++;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getChargeDetailForGuideCard?patientId=' + patientId + '×=' + times,
|
|
@@ -9452,24 +9484,6 @@ function printBlRecord(patientId, times, printType) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 将内容拼接空格,这样才会有下划线
|
|
|
- * @param mzPatientMi
|
|
|
- * @param maxLength 最大长度
|
|
|
- * @returns {*}
|
|
|
- */
|
|
|
-function formatUnderline(params, maxLength) {
|
|
|
- var length = 0;
|
|
|
- if (params == null || params.length == 0) {
|
|
|
- length = maxLength;
|
|
|
- } else {
|
|
|
- length = maxLength - params.length;
|
|
|
- }
|
|
|
- for (var i = 0; i < length; i++) {
|
|
|
- params += " ";
|
|
|
- }
|
|
|
- return params;
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* 打印入院通知单
|
|
@@ -9513,44 +9527,29 @@ function printZyReq(patientId, printType) {
|
|
|
var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
|
|
|
var mzPatientMi = res.mzPatientMi;
|
|
|
var mzZyReq = res.mzZyReq;
|
|
|
- var mzPatientId = formatUnderline(mzPatientMi.patientId, 15);
|
|
|
- $("#patientIdZyReq").text(mzPatientId);
|
|
|
- var mzPatientMiName = formatUnderline(mzPatientMi.name, 22);
|
|
|
- $("#patientNameZyReq").text(mzPatientMiName);
|
|
|
- var mzPatientGender = formatUnderline(mzPatientMi.gender, 10);
|
|
|
- $("#patientGenderZyReq").text(mzPatientGender);
|
|
|
- var mzPatientAge = formatUnderline(mzPatientMi.ageString, 6);
|
|
|
- $("#patientAgeZyReq").text(mzPatientAge);
|
|
|
- var mzPatientSocialNo = formatUnderline(mzPatientMi.socialNo, 48);
|
|
|
- $("#sfzZyReq").text(mzPatientSocialNo);
|
|
|
+ $("#patientIdZyReq").text(mzPatientMi.patientId);
|
|
|
+ $("#patientNameZyReq").text(mzPatientMi.name);
|
|
|
+ $("#patientGenderZyReq").text(mzPatientMi.gender);
|
|
|
+ $("#patientAgeZyReq").text(mzPatientMi.ageString);
|
|
|
+ $("#sfzZyReq").text(mzPatientMi.socialNo);
|
|
|
$("#birthDateZyReq").text(format(mzPatientMi.birthDay, "yyyy-MM-dd"));
|
|
|
- var mzPatientPhoneNo = formatUnderline(mzPatientMi.phoneNo, 55);
|
|
|
- $("#phoneZyReq").text(mzPatientPhoneNo);
|
|
|
+ $("#phoneZyReq").text(mzPatientMi.phoneNo);
|
|
|
$("#responseTypeZyReq").text(mzPatientMi.responseTypeName);
|
|
|
- var mzPatientMiAddress = formatUnderline(mzPatientMi.address, 31);
|
|
|
- $("#addressZyReq").text(mzPatientMiAddress);
|
|
|
+ $("#addressZyReq").text(mzPatientMi.address);
|
|
|
if (mzZyReq.icdCode == null || mzZyReq.icdCode == "" || mzZyReq.icdCode.length == 0) {
|
|
|
$("#icsCodeZyReq").html(" ");
|
|
|
- var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText, 29);
|
|
|
- $("#icsTextZyReq").text(" " + mzPatientMiIcdText);
|
|
|
+ $("#icsTextZyReq").text(mzZyReq.icdText);
|
|
|
} else {
|
|
|
- var mzPatientMiIcdCode = formatUnderline(mzZyReq.icdCode, 12);
|
|
|
- $("#icsCodeZyReq").text(mzPatientMiIcdCode);
|
|
|
- var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText, 29);
|
|
|
- $("#icsTextZyReq").text(mzPatientMiIcdText);
|
|
|
- }
|
|
|
- var mzZyReqReqWard = formatUnderline(mzZyReq.reqWard, 6);
|
|
|
- $("#reqDeptZyReq").text(mzZyReqReqWard);
|
|
|
- var mzZyReqSmallDept = formatUnderline(mzZyReq.smallDept, 27);
|
|
|
- $("#smallDeptZyReq").text(mzZyReqSmallDept);
|
|
|
+ $("#icsCodeZyReq").text(mzZyReq.icdCode);
|
|
|
+ $("#icsTextZyReq").text(mzZyReq.icdText);
|
|
|
+ }
|
|
|
+ $("#reqDeptZyReq").text(mzZyReq.reqWardName);
|
|
|
+ $("#smallDeptZyReq").text(mzZyReq.smallDeptName);
|
|
|
//$("#admissStatusZyReq").text(mzZyReq.admissStatus);
|
|
|
$("input:checkbox[value='" + mzZyReq.admissStatus + "']").attr('checked', 'true');
|
|
|
- var mzZyReqVisitDate = formatUnderline(format(mzZyReq.visitDate, "yyyy-MM-dd HH:mm:ss"), 37);
|
|
|
- $("#visitDateZyReq").text(mzZyReqVisitDate);
|
|
|
- var mzZyReqDeptCode = formatUnderline(mzZyReq.deptCode, 15);
|
|
|
- $("#deptCodeZyReq").text(mzZyReqDeptCode);
|
|
|
- var mzZyReqDoctorCode = formatUnderline(mzZyReq.doctorCode, 16);
|
|
|
- $("#doctorCodeZyReq").text(mzZyReqDoctorCode);
|
|
|
+ $("#visitDateZyReq").text(format(mzZyReq.visitDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#deptCodeZyReq").text(mzZyReq.deptName);
|
|
|
+ $("#doctorCodeZyReq").text(mzZyReq.doctorName);
|
|
|
LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("mz_zy_req_table").innerHTML);
|
|
|
if (printType == 1) {
|
|
|
LODOP.PREVIEW();
|