|
@@ -255,7 +255,7 @@ $(function () {
|
|
|
//回车时,光标不在任何区域
|
|
//回车时,光标不在任何区域
|
|
|
if (id == null || id == "") {
|
|
if (id == null || id == "") {
|
|
|
//当前页面是西药保存页面,且有药品选中
|
|
//当前页面是西药保存页面,且有药品选中
|
|
|
- if(currentCode!=null && currentCode!=""){
|
|
|
|
|
|
|
+ if (currentCode != null && currentCode != "") {
|
|
|
$("#supplyType").next().click();
|
|
$("#supplyType").next().click();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -272,13 +272,13 @@ $(function () {
|
|
|
if (id == 'zy_drugWin') {
|
|
if (id == 'zy_drugWin') {
|
|
|
$("#zyInstruction").next().click();
|
|
$("#zyInstruction").next().click();
|
|
|
} else if (id == 'zyInstruction') {
|
|
} else if (id == 'zyInstruction') {
|
|
|
- var ariaExpanded=$("#zyInstruction").next().attr("aria-expanded");
|
|
|
|
|
- if(ariaExpanded==true || ariaExpanded=="true"){
|
|
|
|
|
|
|
+ var ariaExpanded = $("#zyInstruction").next().attr("aria-expanded");
|
|
|
|
|
+ if (ariaExpanded == true || ariaExpanded == "true") {
|
|
|
$("#zyInstruction").next().click();
|
|
$("#zyInstruction").next().click();
|
|
|
}
|
|
}
|
|
|
$("#saveChineseMedicine").click();
|
|
$("#saveChineseMedicine").click();
|
|
|
$("#zyfs").focus();
|
|
$("#zyfs").focus();
|
|
|
- // saveMedicine(1);
|
|
|
|
|
|
|
+ // saveMedicine(1);
|
|
|
}
|
|
}
|
|
|
// else if (id == 'saveChineseMedicine') {
|
|
// else if (id == 'saveChineseMedicine') {
|
|
|
// $("input.zyfs").focus();
|
|
// $("input.zyfs").focus();
|
|
@@ -309,8 +309,8 @@ $(function () {
|
|
|
} else if (id == 'packUnit') {
|
|
} else if (id == 'packUnit') {
|
|
|
$("#medicalAdvice").next().click();
|
|
$("#medicalAdvice").next().click();
|
|
|
} else if (id == 'medicalAdvice') {
|
|
} else if (id == 'medicalAdvice') {
|
|
|
- var ariaExpanded=$("#medicalAdvice").next().attr("aria-expanded");
|
|
|
|
|
- if(ariaExpanded==true || ariaExpanded=="true"){
|
|
|
|
|
|
|
+ var ariaExpanded = $("#medicalAdvice").next().attr("aria-expanded");
|
|
|
|
|
+ if (ariaExpanded == true || ariaExpanded == "true") {
|
|
|
$("#medicalAdvice").next().click();
|
|
$("#medicalAdvice").next().click();
|
|
|
}
|
|
}
|
|
|
saveMedicine(0);
|
|
saveMedicine(0);
|
|
@@ -330,7 +330,7 @@ $(function () {
|
|
|
} else if (id == 'saveJyJcItem') {
|
|
} else if (id == 'saveJyJcItem') {
|
|
|
$("#jcJyItem").focus();
|
|
$("#jcJyItem").focus();
|
|
|
$("#jcJyItem").click();
|
|
$("#jcJyItem").click();
|
|
|
- }else if (id == 'freeBedNum') {
|
|
|
|
|
|
|
+ } else if (id == 'freeBedNum') {
|
|
|
$("#inpatientWardBeHospitalized").next().click();
|
|
$("#inpatientWardBeHospitalized").next().click();
|
|
|
} else if (id == 'inpatientWardBeHospitalized') {
|
|
} else if (id == 'inpatientWardBeHospitalized') {
|
|
|
$("#smallWardBeHospitalized").next().click();
|
|
$("#smallWardBeHospitalized").next().click();
|
|
@@ -338,11 +338,11 @@ $(function () {
|
|
|
$("#admissStatus").next().click();
|
|
$("#admissStatus").next().click();
|
|
|
} else if (id == 'admissStatus') {
|
|
} else if (id == 'admissStatus') {
|
|
|
saveZyReq(true);
|
|
saveZyReq(true);
|
|
|
- }else if (id == 'western_medicine_name') {
|
|
|
|
|
|
|
+ } else if (id == 'western_medicine_name') {
|
|
|
$("#western_medicine_name").click();
|
|
$("#western_medicine_name").click();
|
|
|
- }else if (id == 'chinese_medicine_name') {
|
|
|
|
|
|
|
+ } else if (id == 'chinese_medicine_name') {
|
|
|
$("#chinese_medicine_name").click();
|
|
$("#chinese_medicine_name").click();
|
|
|
- }else if (id == 'jcJyItem') {
|
|
|
|
|
|
|
+ } else if (id == 'jcJyItem') {
|
|
|
$("#jcJyItem").click();
|
|
$("#jcJyItem").click();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -350,7 +350,6 @@ $(function () {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 打开配置页面
|
|
* 打开配置页面
|
|
|
*/
|
|
*/
|
|
@@ -1266,7 +1265,7 @@ function setTmResponseType(patientId) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- if (res.data != null && res.data.length>0) {
|
|
|
|
|
|
|
+ if (res.data != null && res.data.length > 0) {
|
|
|
$("#patientResponseType").html("特殊门诊");
|
|
$("#patientResponseType").html("特殊门诊");
|
|
|
$("#fetchSpcSlwinfo").css("display", "inline-block");
|
|
$("#fetchSpcSlwinfo").css("display", "inline-block");
|
|
|
}
|
|
}
|
|
@@ -1276,13 +1275,12 @@ function setTmResponseType(patientId) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 特门详情
|
|
* 特门详情
|
|
|
* @param patientId
|
|
* @param patientId
|
|
|
*/
|
|
*/
|
|
|
function fetchSpcSlwinfo() {
|
|
function fetchSpcSlwinfo() {
|
|
|
- var patientId=$("#patientId").text();
|
|
|
|
|
|
|
+ var patientId = $("#patientId").text();
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "GET",
|
|
type: "GET",
|
|
|
url: '/thmz/fetchSpcSlwinfo?patientId=' + patientId,
|
|
url: '/thmz/fetchSpcSlwinfo?patientId=' + patientId,
|
|
@@ -1614,44 +1612,44 @@ function editPrescription(jsonData, type) {
|
|
|
$("#personalHistory").val(jsonData.mzBlRecord.personalHistory);
|
|
$("#personalHistory").val(jsonData.mzBlRecord.personalHistory);
|
|
|
$("#familyHistory").val(jsonData.mzBlRecord.familyHistory);
|
|
$("#familyHistory").val(jsonData.mzBlRecord.familyHistory);
|
|
|
$("#obstericalHistory").val(jsonData.mzBlRecord.obstericalHistory);
|
|
$("#obstericalHistory").val(jsonData.mzBlRecord.obstericalHistory);
|
|
|
- if(jsonData.mzBlRecord.weight!=null && jsonData.mzBlRecord.weight!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.weight != null && jsonData.mzBlRecord.weight != 0) {
|
|
|
$("#weight").val(jsonData.mzBlRecord.weight);
|
|
$("#weight").val(jsonData.mzBlRecord.weight);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#weight").val("");
|
|
$("#weight").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.temperature!=null && jsonData.mzBlRecord.temperature!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.temperature != null && jsonData.mzBlRecord.temperature != 0) {
|
|
|
$("#temperature").val(jsonData.mzBlRecord.temperature);
|
|
$("#temperature").val(jsonData.mzBlRecord.temperature);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#temperature").val("");
|
|
$("#temperature").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.sphygmus!=null && jsonData.mzBlRecord.sphygmus!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.sphygmus != null && jsonData.mzBlRecord.sphygmus != 0) {
|
|
|
$("#sphygmus").val(jsonData.mzBlRecord.sphygmus);
|
|
$("#sphygmus").val(jsonData.mzBlRecord.sphygmus);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#sphygmus").val("");
|
|
$("#sphygmus").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.breathe!=null && jsonData.mzBlRecord.breathe!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.breathe != null && jsonData.mzBlRecord.breathe != 0) {
|
|
|
$("#breathe").val(jsonData.mzBlRecord.breathe);
|
|
$("#breathe").val(jsonData.mzBlRecord.breathe);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#breathe").val("");
|
|
$("#breathe").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.pressureHigh!=null && jsonData.mzBlRecord.pressureHigh!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.pressureHigh != null && jsonData.mzBlRecord.pressureHigh != 0) {
|
|
|
$("#pressure_high").val(jsonData.mzBlRecord.pressureHigh);
|
|
$("#pressure_high").val(jsonData.mzBlRecord.pressureHigh);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#pressure_high").val("");
|
|
$("#pressure_high").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.pressureFloor!=null && jsonData.mzBlRecord.pressureFloor!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.pressureFloor != null && jsonData.mzBlRecord.pressureFloor != 0) {
|
|
|
$("#pressure_floor").val(jsonData.mzBlRecord.pressureFloor);
|
|
$("#pressure_floor").val(jsonData.mzBlRecord.pressureFloor);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#pressure_floor").val("");
|
|
$("#pressure_floor").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.pressureHighLeft!=null && jsonData.mzBlRecord.pressureHighLeft!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.pressureHighLeft != null && jsonData.mzBlRecord.pressureHighLeft != 0) {
|
|
|
$("#pressure_high_left").val(jsonData.mzBlRecord.pressureHighLeft);
|
|
$("#pressure_high_left").val(jsonData.mzBlRecord.pressureHighLeft);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#pressure_high_left").val("");
|
|
$("#pressure_high_left").val("");
|
|
|
}
|
|
}
|
|
|
- if(jsonData.mzBlRecord.pressureFloorLeft!=null && jsonData.mzBlRecord.pressureFloorLeft!=0){
|
|
|
|
|
|
|
+ if (jsonData.mzBlRecord.pressureFloorLeft != null && jsonData.mzBlRecord.pressureFloorLeft != 0) {
|
|
|
$("#pressure_floor_left").val(jsonData.mzBlRecord.pressureFloorLeft);
|
|
$("#pressure_floor_left").val(jsonData.mzBlRecord.pressureFloorLeft);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
$("#pressure_floor_left").val("");
|
|
$("#pressure_floor_left").val("");
|
|
|
}
|
|
}
|
|
|
$("#tentativeDiagnosis").val(jsonData.mzBlRecord.tentativeDiagnosis);
|
|
$("#tentativeDiagnosis").val(jsonData.mzBlRecord.tentativeDiagnosis);
|
|
@@ -1683,9 +1681,9 @@ function editPrescription(jsonData, type) {
|
|
|
callBackZlDetail(code, mzChargeDetail);
|
|
callBackZlDetail(code, mzChargeDetail);
|
|
|
} else if (groupNo == "71" || groupNo == "91" || groupNo == "111" || groupNo == "131") {
|
|
} else if (groupNo == "71" || groupNo == "91" || groupNo == "111" || groupNo == "131") {
|
|
|
// 71 西成药 91 医材 111 精一 131 精二
|
|
// 71 西成药 91 医材 111 精一 131 精二
|
|
|
- var groupOrder=mzChargeDetail.groupOrder;
|
|
|
|
|
- if(groupOrder==null || groupOrder=='null' || groupOrder==""){
|
|
|
|
|
- groupOrder=1;
|
|
|
|
|
|
|
+ var groupOrder = mzChargeDetail.groupOrder;
|
|
|
|
|
+ if (groupOrder == null || groupOrder == 'null' || groupOrder == "") {
|
|
|
|
|
+ groupOrder = 1;
|
|
|
}
|
|
}
|
|
|
$("#groupId").selectpicker('val', groupOrder);
|
|
$("#groupId").selectpicker('val', groupOrder);
|
|
|
$('#groupId').selectpicker('refresh');
|
|
$('#groupId').selectpicker('refresh');
|
|
@@ -2494,7 +2492,7 @@ function saveWesternMedicine(calculateTotalAmountFlag) {
|
|
|
//html += drugWin + drugWinUnit + ' 共';
|
|
//html += drugWin + drugWinUnit + ' 共';
|
|
|
html += gross + packUnit + " " + '<br/><span style="margin-left: 15px"></span>';
|
|
html += gross + packUnit + " " + '<br/><span style="margin-left: 15px"></span>';
|
|
|
html += '用法:' + supplyTypeText + ' ';
|
|
html += '用法:' + supplyTypeText + ' ';
|
|
|
- html += drugWin + drugWinUnit+ ' ';
|
|
|
|
|
|
|
+ html += drugWin + drugWinUnit + ' ';
|
|
|
html += '频次:' + orderFrequencyText + ' ';
|
|
html += '频次:' + orderFrequencyText + ' ';
|
|
|
html += dayNum + '天 ';
|
|
html += dayNum + '天 ';
|
|
|
if (tryFlag == "true" || tryFlag == true) {
|
|
if (tryFlag == "true" || tryFlag == true) {
|
|
@@ -3498,15 +3496,15 @@ function billItemButtonChange(object, objectIndex) {
|
|
|
$("#jcJyItem").webuiPopover('hide');
|
|
$("#jcJyItem").webuiPopover('hide');
|
|
|
if (objectIndex == 0) {
|
|
if (objectIndex == 0) {
|
|
|
$("#western_medicine_name").focus();
|
|
$("#western_medicine_name").focus();
|
|
|
- // $("#western_medicine_name").click();
|
|
|
|
|
|
|
+ // $("#western_medicine_name").click();
|
|
|
// currentEleId = 'western_medicine_name';
|
|
// currentEleId = 'western_medicine_name';
|
|
|
} else if (objectIndex == 1) {
|
|
} else if (objectIndex == 1) {
|
|
|
$("#chinese_medicine_name").focus();
|
|
$("#chinese_medicine_name").focus();
|
|
|
- // $("#chinese_medicine_name").click();
|
|
|
|
|
|
|
+ // $("#chinese_medicine_name").click();
|
|
|
// currentEleId = 'chinese_medicine_name';
|
|
// currentEleId = 'chinese_medicine_name';
|
|
|
} else if (objectIndex == 2) {
|
|
} else if (objectIndex == 2) {
|
|
|
$("#jcJyItem").focus();
|
|
$("#jcJyItem").focus();
|
|
|
- // $("#jcJyItem").click();
|
|
|
|
|
|
|
+ // $("#jcJyItem").click();
|
|
|
// currentEleId = 'jcJyItem';
|
|
// currentEleId = 'jcJyItem';
|
|
|
} else if (objectIndex == 3) {
|
|
} else if (objectIndex == 3) {
|
|
|
// currentEleId = 'freeBedNum';
|
|
// currentEleId = 'freeBedNum';
|
|
@@ -5912,6 +5910,7 @@ function getParamsForpPrescription() {
|
|
|
var itemsType = $(zlTabContents[i]).find("input.temporary_items_type").val();
|
|
var itemsType = $(zlTabContents[i]).find("input.temporary_items_type").val();
|
|
|
//执行科室
|
|
//执行科室
|
|
|
var execUnit = $(zlTabContents[i]).find("input.temporary_items_execUnit").val();
|
|
var execUnit = $(zlTabContents[i]).find("input.temporary_items_execUnit").val();
|
|
|
|
|
+ res.deptName
|
|
|
if (itemsType == "3" || itemsType == 3) {
|
|
if (itemsType == "3" || itemsType == 3) {
|
|
|
//诊疗,放入药品类型中入库,因为诊疗是与药品一样直接入明细库,但是是与医技在同一处方开立页面开立
|
|
//诊疗,放入药品类型中入库,因为诊疗是与药品一样直接入明细库,但是是与医技在同一处方开立页面开立
|
|
|
tempJson = JSON.parse('{"chargeItemCode": "","serial": "","quantity": "1","drugQuan": "1","drugUnit": "","frequency": "","orderDays": "1","paySelf": "0","drugWin": "1","instructionCode":"","instructionText":"","orderNo":"","groupOrder":"","supplyCode":"","cyJssm":"","cyDj":"","cyFysm":"","tryFlag":"0","groupNo":"00","execDept":""}');
|
|
tempJson = JSON.parse('{"chargeItemCode": "","serial": "","quantity": "1","drugQuan": "1","drugUnit": "","frequency": "","orderDays": "1","paySelf": "0","drugWin": "1","instructionCode":"","instructionText":"","orderNo":"","groupOrder":"","supplyCode":"","cyJssm":"","cyDj":"","cyFysm":"","tryFlag":"0","groupNo":"00","execDept":""}');
|
|
@@ -6828,15 +6827,17 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
var __ret = setTableHtml(prescriptionDetail);
|
|
var __ret = setTableHtml(prescriptionDetail);
|
|
|
var html = __ret.html;
|
|
var html = __ret.html;
|
|
|
var j = __ret.j;
|
|
var j = __ret.j;
|
|
|
- if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
- $("#typePrescription").text("儿科");
|
|
|
|
|
- $("#cfTitle").text("儿科");
|
|
|
|
|
- } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
- $("#typePrescription").text("急诊");
|
|
|
|
|
- $("#cfTitle").text("急诊");
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#typePrescription").text("普通处方");
|
|
|
|
|
- $("#cfTitle").text("普通");
|
|
|
|
|
|
|
+ if (res.deptName != undefined && res.deptName != null) {
|
|
|
|
|
+ if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("儿科");
|
|
|
|
|
+ $("#cfTitle").text("儿科");
|
|
|
|
|
+ } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("急诊");
|
|
|
|
|
+ $("#cfTitle").text("急诊");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#typePrescription").text("普通处方");
|
|
|
|
|
+ $("#cfTitle").text("普通");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
$("#prescriptionDetail").html(html);
|
|
$("#prescriptionDetail").html(html);
|
|
|
$("#cfAmountPrint").text(pyPrescription[i].amount + "元 (不含注射费)");
|
|
$("#cfAmountPrint").text(pyPrescription[i].amount + "元 (不含注射费)");
|
|
@@ -6856,15 +6857,17 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
var __ret = setTableHtml(prescriptionDetail);
|
|
var __ret = setTableHtml(prescriptionDetail);
|
|
|
var html = __ret.html;
|
|
var html = __ret.html;
|
|
|
var j = __ret.j;
|
|
var j = __ret.j;
|
|
|
- if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
- $("#typePrescription").text("儿科");
|
|
|
|
|
- $("#cfTitle").text("儿科");
|
|
|
|
|
- } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
- $("#typePrescription").text("急诊");
|
|
|
|
|
- $("#cfTitle").text("急诊");
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#typePrescription").text("医材处方");
|
|
|
|
|
- $("#cfTitle").text("普通");
|
|
|
|
|
|
|
+ if (res.deptName != undefined && res.deptName != null) {
|
|
|
|
|
+ if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("儿科");
|
|
|
|
|
+ $("#cfTitle").text("儿科");
|
|
|
|
|
+ } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("急诊");
|
|
|
|
|
+ $("#cfTitle").text("急诊");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#typePrescription").text("医材处方");
|
|
|
|
|
+ $("#cfTitle").text("普通");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
$("#prescriptionDetail").html(html);
|
|
$("#prescriptionDetail").html(html);
|
|
|
$("#cfAmountPrint").text(ycPrescription[i].amount + "元 ");
|
|
$("#cfAmountPrint").text(ycPrescription[i].amount + "元 ");
|
|
@@ -6970,15 +6973,17 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
if (index > 0) {
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
LODOP.NewPageA();
|
|
|
}
|
|
}
|
|
|
- if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
- $("#typePrescription").text("儿科");
|
|
|
|
|
- $("#cfTitle").text("儿科");
|
|
|
|
|
- } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
- $("#typePrescription").text("急诊");
|
|
|
|
|
- $("#cfTitle").text("急诊");
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#typePrescription").text("中药处方");
|
|
|
|
|
- $("#cfTitle").text("普通");
|
|
|
|
|
|
|
+ if (res.deptName != undefined && res.deptName != null) {
|
|
|
|
|
+ if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("儿科");
|
|
|
|
|
+ $("#cfTitle").text("儿科");
|
|
|
|
|
+ } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("急诊");
|
|
|
|
|
+ $("#cfTitle").text("急诊");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#typePrescription").text("中药处方");
|
|
|
|
|
+ $("#cfTitle").text("普通");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
$("#prescriptionDetail").html(html);
|
|
$("#prescriptionDetail").html(html);
|
|
|
$("#cfAmountPrint").text(prescriptionDetailJson.zyPrescription[0].amount + "元 (不含代煎费)");
|
|
$("#cfAmountPrint").text(prescriptionDetailJson.zyPrescription[0].amount + "元 (不含代煎费)");
|
|
@@ -6999,15 +7004,17 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
if (index > 0) {
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
LODOP.NewPageA();
|
|
|
}
|
|
}
|
|
|
- if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
- $("#typePrescription").text("儿科");
|
|
|
|
|
- $("#cfTitle").text("儿科");
|
|
|
|
|
- } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
- $("#typePrescription").text("急诊");
|
|
|
|
|
- $("#cfTitle").text("急诊");
|
|
|
|
|
- } else {
|
|
|
|
|
- $("#typePrescription").text("诊疗处方");
|
|
|
|
|
- $("#cfTitle").text("普通");
|
|
|
|
|
|
|
+ if (res.deptName != undefined && res.deptName != null) {
|
|
|
|
|
+ if (res.deptName.indexOf("儿") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("儿科");
|
|
|
|
|
+ $("#cfTitle").text("儿科");
|
|
|
|
|
+ } else if (res.deptName.indexOf("急诊科") > 0) {
|
|
|
|
|
+ $("#typePrescription").text("急诊");
|
|
|
|
|
+ $("#cfTitle").text("急诊");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("#typePrescription").text("诊疗处方");
|
|
|
|
|
+ $("#cfTitle").text("普通");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
$("#prescriptionDetail").html(html);
|
|
$("#prescriptionDetail").html(html);
|
|
|
$("#cfAmountPrint").text(prescriptionDetailJson.zlPrescription[0].amount + "元 ");
|
|
$("#cfAmountPrint").text(prescriptionDetailJson.zlPrescription[0].amount + "元 ");
|
|
@@ -7392,7 +7399,7 @@ function printBlRecord(patientId, times, printType) {
|
|
|
* @param maxLength 最大长度
|
|
* @param maxLength 最大长度
|
|
|
* @returns {*}
|
|
* @returns {*}
|
|
|
*/
|
|
*/
|
|
|
-function formatUnderline(params,maxLength) {
|
|
|
|
|
|
|
+function formatUnderline(params, maxLength) {
|
|
|
var length = 0;
|
|
var length = 0;
|
|
|
if (params == null || params.length == 0) {
|
|
if (params == null || params.length == 0) {
|
|
|
length = maxLength;
|
|
length = maxLength;
|
|
@@ -7447,43 +7454,43 @@ function printZyReq(patientId, printType) {
|
|
|
var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
|
|
var strStyle = "<style>table{width: 96%;} table,td,th {}</style>";
|
|
|
var mzPatientMi = res.mzPatientMi;
|
|
var mzPatientMi = res.mzPatientMi;
|
|
|
var mzZyReq = res.mzZyReq;
|
|
var mzZyReq = res.mzZyReq;
|
|
|
- var mzPatientId = formatUnderline(mzPatientMi.patientId,15 );
|
|
|
|
|
|
|
+ var mzPatientId = formatUnderline(mzPatientMi.patientId, 15);
|
|
|
$("#patientIdZyReq").text(mzPatientId);
|
|
$("#patientIdZyReq").text(mzPatientId);
|
|
|
- var mzPatientMiName = formatUnderline(mzPatientMi.name,22);
|
|
|
|
|
|
|
+ var mzPatientMiName = formatUnderline(mzPatientMi.name, 22);
|
|
|
$("#patientNameZyReq").text(mzPatientMiName);
|
|
$("#patientNameZyReq").text(mzPatientMiName);
|
|
|
- var mzPatientGender = formatUnderline(mzPatientMi.gender,10);
|
|
|
|
|
|
|
+ var mzPatientGender = formatUnderline(mzPatientMi.gender, 10);
|
|
|
$("#patientGenderZyReq").text(mzPatientGender);
|
|
$("#patientGenderZyReq").text(mzPatientGender);
|
|
|
- var mzPatientAge = formatUnderline(mzPatientMi.age+ "岁",6);
|
|
|
|
|
|
|
+ var mzPatientAge = formatUnderline(mzPatientMi.age + "岁", 6);
|
|
|
$("#patientAgeZyReq").text(mzPatientAge);
|
|
$("#patientAgeZyReq").text(mzPatientAge);
|
|
|
- var mzPatientSocialNo = formatUnderline(mzPatientMi.socialNo,48);
|
|
|
|
|
|
|
+ var mzPatientSocialNo = formatUnderline(mzPatientMi.socialNo, 48);
|
|
|
$("#sfzZyReq").text(mzPatientSocialNo);
|
|
$("#sfzZyReq").text(mzPatientSocialNo);
|
|
|
$("#birthDateZyReq").text(format(mzPatientMi.birthDay, "yyyy-MM-dd"));
|
|
$("#birthDateZyReq").text(format(mzPatientMi.birthDay, "yyyy-MM-dd"));
|
|
|
- var mzPatientPhoneNo = formatUnderline(mzPatientMi.phoneNo,55);
|
|
|
|
|
|
|
+ var mzPatientPhoneNo = formatUnderline(mzPatientMi.phoneNo, 55);
|
|
|
$("#phoneZyReq").text(mzPatientPhoneNo);
|
|
$("#phoneZyReq").text(mzPatientPhoneNo);
|
|
|
$("#responseTypeZyReq").text(mzPatientMi.responseTypeName);
|
|
$("#responseTypeZyReq").text(mzPatientMi.responseTypeName);
|
|
|
- var mzPatientMiAddress = formatUnderline(mzPatientMi.address,31);
|
|
|
|
|
|
|
+ var mzPatientMiAddress = formatUnderline(mzPatientMi.address, 31);
|
|
|
$("#addressZyReq").text(mzPatientMiAddress);
|
|
$("#addressZyReq").text(mzPatientMiAddress);
|
|
|
- if(mzZyReq.icdCode==null || mzZyReq.icdCode=="" || mzZyReq.icdCode.length==0){
|
|
|
|
|
|
|
+ if (mzZyReq.icdCode == null || mzZyReq.icdCode == "" || mzZyReq.icdCode.length == 0) {
|
|
|
$("#icsCodeZyReq").html(" ");
|
|
$("#icsCodeZyReq").html(" ");
|
|
|
- var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText,29);
|
|
|
|
|
- $("#icsTextZyReq").text(" "+mzPatientMiIcdText);
|
|
|
|
|
- }else {
|
|
|
|
|
- var mzPatientMiIcdCode = formatUnderline(mzZyReq.icdCode,12);
|
|
|
|
|
|
|
+ var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText, 29);
|
|
|
|
|
+ $("#icsTextZyReq").text(" " + mzPatientMiIcdText);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ var mzPatientMiIcdCode = formatUnderline(mzZyReq.icdCode, 12);
|
|
|
$("#icsCodeZyReq").text(mzPatientMiIcdCode);
|
|
$("#icsCodeZyReq").text(mzPatientMiIcdCode);
|
|
|
- var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText,29);
|
|
|
|
|
|
|
+ var mzPatientMiIcdText = formatUnderline(mzZyReq.icdText, 29);
|
|
|
$("#icsTextZyReq").text(mzPatientMiIcdText);
|
|
$("#icsTextZyReq").text(mzPatientMiIcdText);
|
|
|
}
|
|
}
|
|
|
- var mzZyReqReqWard = formatUnderline(mzZyReq.reqWard,6);
|
|
|
|
|
|
|
+ var mzZyReqReqWard = formatUnderline(mzZyReq.reqWard, 6);
|
|
|
$("#reqDeptZyReq").text(mzZyReqReqWard);
|
|
$("#reqDeptZyReq").text(mzZyReqReqWard);
|
|
|
- var mzZyReqSmallDept = formatUnderline(mzZyReq.smallDept,27);
|
|
|
|
|
|
|
+ var mzZyReqSmallDept = formatUnderline(mzZyReq.smallDept, 27);
|
|
|
$("#smallDeptZyReq").text(mzZyReqSmallDept);
|
|
$("#smallDeptZyReq").text(mzZyReqSmallDept);
|
|
|
//$("#admissStatusZyReq").text(mzZyReq.admissStatus);
|
|
//$("#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);
|
|
|
|
|
|
|
+ $("input:checkbox[value='" + mzZyReq.admissStatus + "']").attr('checked', 'true');
|
|
|
|
|
+ var mzZyReqVisitDate = formatUnderline(format(mzZyReq.visitDate, "yyyy-MM-dd HH:mm:ss"), 37);
|
|
|
$("#visitDateZyReq").text(mzZyReqVisitDate);
|
|
$("#visitDateZyReq").text(mzZyReqVisitDate);
|
|
|
- var mzZyReqDeptCode = formatUnderline(mzZyReq.deptCode,15);
|
|
|
|
|
|
|
+ var mzZyReqDeptCode = formatUnderline(mzZyReq.deptCode, 15);
|
|
|
$("#deptCodeZyReq").text(mzZyReqDeptCode);
|
|
$("#deptCodeZyReq").text(mzZyReqDeptCode);
|
|
|
- var mzZyReqDoctorCode = formatUnderline(mzZyReq.doctorCode,16);
|
|
|
|
|
|
|
+ var mzZyReqDoctorCode = formatUnderline(mzZyReq.doctorCode, 16);
|
|
|
$("#doctorCodeZyReq").text(mzZyReqDoctorCode);
|
|
$("#doctorCodeZyReq").text(mzZyReqDoctorCode);
|
|
|
LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("mz_zy_req_table").innerHTML);
|
|
LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("mz_zy_req_table").innerHTML);
|
|
|
if (printType == 1) {
|
|
if (printType == 1) {
|