|
@@ -686,7 +686,7 @@ function loadCommonClinicTableList(id, queryParams) {
|
|
|
if (row.clinicStatus == 5) {
|
|
|
return '<a title="修改" style="cursor: pointer" onclick="getMzPrescriptionVoUnPaid(\'' + row.patientId + '\',' + row.times + ',' + row.id + ')">修改</a> <a title="详情" style="cursor: pointer" onclick="prescriptionDetail(\'' + row.patientId + '\',' + row.times + ',' + row.id + ',5)">详情</a>';
|
|
|
// return '<a title="修改" style="cursor: pointer" onclick="getMzPrescriptionVoUnPaid(\'' + row.patientId + '\',' + row.times + ',' + row.id + ')">修改</a> <a title="接诊" style="cursor: pointer" onclick="repeatAccepts(\'' + row.patientId + '\',' + row.times + ',' + row.id + ',\'' + row.deptCode + '\')">接诊</a> <a title="详情" style="cursor: pointer" onclick="prescriptionDetail(\'' + row.patientId + '\',' + row.times + ',' + row.id + ',5)">详情</a>';
|
|
|
- } else if (row.clinicStatus == 6) {
|
|
|
+ } else if (row.clinicStatus == 6 || row.clinicStatus == 7) {
|
|
|
return '<a title="接诊" style="cursor: pointer" onclick="repeatAccepts(\'' + row.patientId + '\',' + row.times + ',' + row.id + ',\'' + row.deptCode + '\')">接诊</a> <a title="详情" style="cursor: pointer" onclick="prescriptionDetail(\'' + row.patientId + '\',' + row.times + ',' + row.id + ',0)">详情</a>';
|
|
|
}
|
|
|
}
|
|
@@ -3252,7 +3252,7 @@ function loadHealthCheckup() {
|
|
|
}
|
|
|
if (res.pressureList != null && res.pressureList.length > 0) {
|
|
|
html += '<div id="pressureDiv">';
|
|
|
- html += '<div style="width: 80px; line-height: 25px; float: left;font-size: 16px;">呼吸:</div>';
|
|
|
+ html += '<div style="width: 80px; line-height: 25px; float: left;font-size: 16px;">血压:</div>';
|
|
|
html += '<div style="width: calc(100% - 80px); float: left;">';
|
|
|
for (var i = 0; i < res.pressureList.length; i++) {
|
|
|
html += '<button type="button" class="button_color" style="background-color: rgb(255, 255, 255);border: none;" onclick="fitValue(\'' + res.pressureList[i].paramsName + '\',\'pressure_\')"><span style="padding: 0px 5px;">';
|
|
@@ -5762,107 +5762,110 @@ function printPrescription(patientId, times, clnicId, payMark) {
|
|
|
}
|
|
|
}
|
|
|
//中药处方
|
|
|
- var zyPrescription = prescriptionDetailJson.zyPrescription[0].detail;
|
|
|
- if (zyPrescription != null && zyPrescription.length > 0) {
|
|
|
- var html = "";
|
|
|
- for (var i = 0; i < zyPrescription.length; i++) {
|
|
|
- if (i % 3 == 0) {
|
|
|
- html += "<tr>";
|
|
|
- }
|
|
|
- html += "<td>";
|
|
|
- html += zyPrescription[i].trim();
|
|
|
- if (i % 3 == 2) {
|
|
|
- html += "</td></tr>";
|
|
|
- } else {
|
|
|
- html += "</td>";
|
|
|
+ if(prescriptionDetailJson.zyPrescription!=null && prescriptionDetailJson.zyPrescription.length>0){
|
|
|
+ var zyPrescription = prescriptionDetailJson.zyPrescription[0].detail;
|
|
|
+ if (zyPrescription != null && zyPrescription.length > 0) {
|
|
|
+ var html = "";
|
|
|
+ for (var i = 0; i < zyPrescription.length; i++) {
|
|
|
+ if (i % 3 == 0) {
|
|
|
+ html += "<tr>";
|
|
|
+ }
|
|
|
+ html += "<td>";
|
|
|
+ html += zyPrescription[i].trim();
|
|
|
+ if (i % 3 == 2) {
|
|
|
+ html += "</td></tr>";
|
|
|
+ } else {
|
|
|
+ html += "</td>";
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- if (zyPrescription.length % 3 != 0) {
|
|
|
- html += "</tr>";
|
|
|
- }
|
|
|
- html += "<tr><td>X " + prescriptionDetailJson.zyPrescription[0].zyfs + "付</td>";
|
|
|
- var colNum = 1;
|
|
|
- var frequency = prescriptionDetailJson.zyPrescription[0].frequency;
|
|
|
- if (frequency != null && frequency != "") {
|
|
|
- html += "<td>频率:" + frequency + "</td>";
|
|
|
- colNum++;
|
|
|
- }
|
|
|
- var cyJssm = prescriptionDetailJson.zyPrescription[0].cyJssm;
|
|
|
- if (cyJssm != null && cyJssm != "") {
|
|
|
- html += "<td>加水说明:" + cyJssm + "</td>";
|
|
|
- colNum++;
|
|
|
- if (colNum % 3 == 0) {
|
|
|
+ if (zyPrescription.length % 3 != 0) {
|
|
|
html += "</tr>";
|
|
|
}
|
|
|
- }
|
|
|
- var cyFysm = prescriptionDetailJson.zyPrescription[0].cyFysm;
|
|
|
- if (cyFysm != null && cyFysm != "") {
|
|
|
- colNum++;
|
|
|
- if (colNum % 3 == 1) {
|
|
|
- html += "<tr>";
|
|
|
+ html += "<tr><td>X " + prescriptionDetailJson.zyPrescription[0].zyfs + "付</td>";
|
|
|
+ var colNum = 1;
|
|
|
+ var frequency = prescriptionDetailJson.zyPrescription[0].frequency;
|
|
|
+ if (frequency != null && frequency != "") {
|
|
|
+ html += "<td>频率:" + frequency + "</td>";
|
|
|
+ colNum++;
|
|
|
}
|
|
|
- html += "<td>服用说明:" + cyFysm + "</td>";
|
|
|
- if (colNum % 3 == 0) {
|
|
|
- html += "</tr>";
|
|
|
+ var cyJssm = prescriptionDetailJson.zyPrescription[0].cyJssm;
|
|
|
+ if (cyJssm != null && cyJssm != "") {
|
|
|
+ html += "<td>加水说明:" + cyJssm + "</td>";
|
|
|
+ colNum++;
|
|
|
+ if (colNum % 3 == 0) {
|
|
|
+ html += "</tr>";
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- var cyDj = prescriptionDetailJson.zyPrescription[0].cyDj;
|
|
|
- if (cyDj != null && cyDj != "") {
|
|
|
- colNum++;
|
|
|
- if (colNum % 3 == 1) {
|
|
|
- html += "<tr>";
|
|
|
+ var cyFysm = prescriptionDetailJson.zyPrescription[0].cyFysm;
|
|
|
+ if (cyFysm != null && cyFysm != "") {
|
|
|
+ colNum++;
|
|
|
+ if (colNum % 3 == 1) {
|
|
|
+ html += "<tr>";
|
|
|
+ }
|
|
|
+ html += "<td>服用说明:" + cyFysm + "</td>";
|
|
|
+ if (colNum % 3 == 0) {
|
|
|
+ html += "</tr>";
|
|
|
+ }
|
|
|
}
|
|
|
- html += "<td>" + cyDj + "</td>";
|
|
|
- if (colNum % 3 == 0) {
|
|
|
- html += "</tr>";
|
|
|
+ var cyDj = prescriptionDetailJson.zyPrescription[0].cyDj;
|
|
|
+ if (cyDj != null && cyDj != "") {
|
|
|
+ colNum++;
|
|
|
+ if (colNum % 3 == 1) {
|
|
|
+ html += "<tr>";
|
|
|
+ }
|
|
|
+ html += "<td>" + cyDj + "</td>";
|
|
|
+ if (colNum % 3 == 0) {
|
|
|
+ html += "</tr>";
|
|
|
+ }
|
|
|
}
|
|
|
+ if (index > 0) {
|
|
|
+ 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("普通");
|
|
|
+ }
|
|
|
+ $("#prescriptionDetail").html(html);
|
|
|
+ $("#cfAmountPrint").text(prescriptionDetailJson.zyPrescription[0].amount + "元 ");
|
|
|
+ LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("prescription_table").innerHTML);
|
|
|
+ index++;
|
|
|
}
|
|
|
- if (index > 0) {
|
|
|
- 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("普通");
|
|
|
- }
|
|
|
- $("#prescriptionDetail").html(html);
|
|
|
- $("#cfAmountPrint").text(prescriptionDetailJson.zyPrescription[0].amount + "元 ");
|
|
|
- LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("prescription_table").innerHTML);
|
|
|
- index++;
|
|
|
}
|
|
|
- //诊疗处方
|
|
|
- var zlPrescription = prescriptionDetailJson.zlPrescription[0].detail;
|
|
|
- if (zlPrescription != null && zlPrescription.length > 0) {
|
|
|
- var html = "";
|
|
|
- for (var i = 0; i < zlPrescription.length; i++) {
|
|
|
- html += "<tr><td>";
|
|
|
- html += zlPrescription[i];
|
|
|
- html += "</td></tr>";
|
|
|
- }
|
|
|
- if (index > 0) {
|
|
|
- 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(prescriptionDetailJson.zlPrescription!=null && prescriptionDetailJson.zlPrescription.length>0 ){
|
|
|
+ //诊疗处方
|
|
|
+ var zlPrescription = prescriptionDetailJson.zlPrescription[0].detail;
|
|
|
+ if (zlPrescription != null && zlPrescription.length > 0) {
|
|
|
+ var html = "";
|
|
|
+ for (var i = 0; i < zlPrescription.length; i++) {
|
|
|
+ html += "<tr><td>";
|
|
|
+ html += zlPrescription[i];
|
|
|
+ html += "</td></tr>";
|
|
|
+ }
|
|
|
+ if (index > 0) {
|
|
|
+ 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("普通");
|
|
|
+ }
|
|
|
+ $("#prescriptionDetail").html(html);
|
|
|
+ $("#cfAmountPrint").text(prescriptionDetailJson.zlPrescription[0].amount + "元 ");
|
|
|
+ LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("prescription_table").innerHTML);
|
|
|
+ index++;
|
|
|
}
|
|
|
- $("#prescriptionDetail").html(html);
|
|
|
- $("#cfAmountPrint").text(prescriptionDetailJson.zlPrescription[0].amount + "元 ");
|
|
|
- LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("prescription_table").innerHTML);
|
|
|
- index++;
|
|
|
}
|
|
|
-
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getChargeDetailForGuideCard?patientId=' + patientId + '×=' + times,
|