|
|
@@ -11584,8 +11584,9 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
$("#sfTypeId").text(mzPatientMi.responseTypeName);
|
|
|
$("#zdPrescription").text(res.data.icdText);
|
|
|
$("#patientIdGuideCard").text(mzPatientMi.patientId);
|
|
|
+ $("#doctorGuideCard").text(res.data.mzBlRecord.doctorName);
|
|
|
$("#patientNameGuideCard").text(mzPatientMi.name);
|
|
|
- $("#patientDateGuideCard").text(format(new Date(), "yyyy-MM-dd"));
|
|
|
+ $("#patientDateGuideCard").text(format(new Date(), "yyyy/MM/dd/HH:mm"));
|
|
|
JsBarcode("#cfBarcode", patientId, {
|
|
|
lineColor: '#333', //线条颜色
|
|
|
width: 1, //线宽
|
|
|
@@ -12034,46 +12035,37 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
// LODOP.ADD_PRINT_HTM("0mm", "5mm", "140mm", "200mm", strStyle + document.getElementById("self_pay_table").innerHTML);
|
|
|
index++;
|
|
|
}
|
|
|
- if (res.data != null && res.data.length > 0) {
|
|
|
- var html = "";
|
|
|
- for (var i = 0; i < res.data.length; i++) {
|
|
|
- html += "<tr><td>" + res.data[i].itemType + "</td><td>" + Division(res.data[i].itemTotalFee, 1) + "</td><td>" + res.data[i].execDeptName + "</td><td>" + res.data[i].execDeptAddress + "</td></tr>"
|
|
|
+ if (res.guideCardData != null && res.guideCardData.length > 0) {
|
|
|
+ let html = `<tr style="font-weight: 700"><td>类别</td> <td>名称/科室</td><td>地址</td></tr>`;
|
|
|
+ for (var i = 0; i < res.guideCardData.length; i++) {
|
|
|
+ html += "<tr><td>" + res.guideCardData[i].type + "</td><td>" + res.guideCardData[i].name + "</td><td>" + res.guideCardData[i].address + "</td></tr>"
|
|
|
}
|
|
|
$("#guideCardDetail").html(html);
|
|
|
}
|
|
|
if (res.payQrcode != null && res.payQrcode != "") {
|
|
|
new QRCode(document.getElementById("payQrcodeGuideCard"), res.payQrcode); // 设置要生成二维码的链接
|
|
|
$("canvas").attr("id", "erw");
|
|
|
- var canvas = document.getElementById('erw');
|
|
|
- var src = canvas.toDataURL("image/png");
|
|
|
- //var strDataURI =canvas.toDataURL("image/png");
|
|
|
- $("#payQrcodeGuideCard").html("<img src='" + src + "' style='width:100px;height:100px;'/><div style='width: 300px;margin-top: 10px;text-align: center;'>微信支付(全自费请扫此码)</div>");
|
|
|
- }
|
|
|
- if(!stringIsBlank(res.healthEducationUrl)){
|
|
|
- new QRCode(document.getElementById("healthEducationCard"), res.healthEducationUrl); // 设置要生成二维码的链接
|
|
|
- $("canvas").attr("id", "erw");
|
|
|
let canvas = document.getElementById('erw');
|
|
|
let src = canvas.toDataURL("image/png");
|
|
|
- $("#healthEducationCard").html("<img src='" + src + "' style='width:100px;height:100px;'/><div style='width: 100px;margin-top: 10px;text-align: center;'>健康宣教</div>");
|
|
|
+ let payQrcodeGuideCardHtml = `<img src="${src}" style="width: 100px;height: 100px"/><div style="width: 140px;margin-top: 2px;">微信支付(自费)</div>`;
|
|
|
+ $("#payQrcodeGuideCard").html(payQrcodeGuideCardHtml)
|
|
|
}
|
|
|
+ // if(!stringIsBlank(res.healthEducationUrl)){
|
|
|
+ // new QRCode(document.getElementById("healthEducationCard"), res.healthEducationUrl); // 设置要生成二维码的链接
|
|
|
+ // $("canvas").attr("id", "erw");
|
|
|
+ // let canvas = document.getElementById('erw');
|
|
|
+ // let src = canvas.toDataURL("image/png");
|
|
|
+ // $("#healthEducationCard").html("<img src='" + src + "' style='width:100px;height:100px;'/><div style='width: 100px;margin-top: 10px;text-align: center;'>健康宣教</div>");
|
|
|
+ // }
|
|
|
if(!stringIsBlank(res.wxPayQrUrl)){
|
|
|
new QRCode(document.getElementById("wxPayQrCard"), res.wxPayQrUrl); // 设置要生成二维码的链接
|
|
|
$("canvas").attr("id", "erw");
|
|
|
let canvas = document.getElementById('erw');
|
|
|
let src = canvas.toDataURL("image/png");
|
|
|
- $("#wxPayQrCard").html("<img src='" + src + "' style='width:100px;height:100px;'/><div style='width: 500px;margin-top: 5px'>微信支付(含医保统筹请扫此码)</div>");
|
|
|
+ let wxPayQrCardHtml =`<img src="${src}" style="width: 100px;height: 100px"/><div style="width: 140px;margin-top: 2px;">微信支付(医保统筹)</div>`;
|
|
|
+ $("#wxPayQrCard").html(wxPayQrCardHtml);
|
|
|
}
|
|
|
-
|
|
|
- // if (res.fundPay != undefined && res.fundPay != null) {
|
|
|
- // $("#fundPayGuideCard").text("¥" + res.fundPay);
|
|
|
- // }
|
|
|
- // if (res.acctPay != undefined && res.acctPay != null) {
|
|
|
- // $("#acctPayGuideCard").text("¥" + res.acctPay);
|
|
|
- // }
|
|
|
- // $("#selfAmountGuideCard").text("¥" + res.selfAmount);
|
|
|
- $("#totalAmountGuideCard").text("¥" + res.totalAmount);
|
|
|
- // $("#imgcode").JsBarcode(patientId);
|
|
|
- console.log(patientId);
|
|
|
+ $("#totalAmountGuideCard").text("¥" + res.totalAmount+"元");
|
|
|
JsBarcode('#imgcode', patientId, {
|
|
|
lineColor: '#333', //线条颜色
|
|
|
width: 2, //线宽
|