|
|
@@ -11595,7 +11595,7 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
});
|
|
|
//普药处方
|
|
|
var pyPrescription = prescriptionDetailJson.xyPrescription.pyPrescription;
|
|
|
- if (pyPrescription != null && pyPrescription.length > 0) {
|
|
|
+ if (pyPrescription != null && pyPrescription.length > 0 && res.ypCfPrint != null && res.ypCfPrint.py_print =="1") {
|
|
|
for (var i = 0; i < pyPrescription.length; i++) {
|
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
|
@@ -11636,7 +11636,7 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
}
|
|
|
//医材处方
|
|
|
var ycPrescription = prescriptionDetailJson.xyPrescription.ycPrescription;
|
|
|
- if (ycPrescription != null && ycPrescription.length > 0) {
|
|
|
+ if (ycPrescription != null && ycPrescription.length > 0 && res.ypCfPrint != null && res.ypCfPrint.yc_print =="1") {
|
|
|
for (var i = 0; i < ycPrescription.length; i++) {
|
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
|
@@ -11665,7 +11665,7 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
}
|
|
|
//麻精处方
|
|
|
var mjPrescription = prescriptionDetailJson.xyPrescription.mjPrescription;
|
|
|
- if (mjPrescription != null && mjPrescription.length > 0) {
|
|
|
+ if (mjPrescription != null && mjPrescription.length > 0 && res.ypCfPrint != null && res.ypCfPrint.mj_print =="1") {
|
|
|
for (var i = 0; i < mjPrescription.length; i++) {
|
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
|
@@ -11685,7 +11685,7 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
}
|
|
|
//精二处方
|
|
|
var jePrescription = prescriptionDetailJson.xyPrescription.jePrescription;
|
|
|
- if (jePrescription != null && jePrescription.length > 0) {
|
|
|
+ if (jePrescription != null && jePrescription.length > 0 && res.ypCfPrint != null && res.ypCfPrint.mj_print =="1") {
|
|
|
for (var i = 0; i < jePrescription.length; i++) {
|
|
|
if (index > 0) {
|
|
|
LODOP.NewPageA();
|
|
|
@@ -11705,7 +11705,7 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
}
|
|
|
$("#cfOrderNumTitle").text(null)
|
|
|
//中药处方
|
|
|
- if (prescriptionDetailJson.zyPrescription != null && prescriptionDetailJson.zyPrescription.length > 0) {
|
|
|
+ if (prescriptionDetailJson.zyPrescription != null && prescriptionDetailJson.zyPrescription.length > 0 && res.ypCfPrint != null && res.ypCfPrint.zy_print =="1") {
|
|
|
var zyPrescription = prescriptionDetailJson.zyPrescription[0].detail;zyPrescription
|
|
|
var zyGroupNo = prescriptionDetailJson.zyPrescription[0].groupNo;
|
|
|
if (zyPrescription != null && zyPrescription.length > 0) {
|
|
|
@@ -12050,13 +12050,14 @@ function printPrescription(patientId, times, clnicId, payMark, printType) {
|
|
|
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.healthEducationUrl)){
|
|
|
+ new QRCode(document.getElementById("healthEducationCard"), res.healthEducationUrl); // 设置要生成二维码的链接
|
|
|
+ $("canvas").attr("id", "erw");
|
|
|
+ let canvas = document.getElementById('erw');
|
|
|
+ let src = canvas.toDataURL("image/png");
|
|
|
+ let wxPayQrCardHtml =`<img src="${src}" style="width: 100px;height: 100px"/><div style="width: 120px;margin-top: 2px;">健康宣教</div>`;
|
|
|
+ $("#healthEducationCard").html(wxPayQrCardHtml);
|
|
|
+ }
|
|
|
if(!stringIsBlank(res.wxPayQrUrl)){
|
|
|
new QRCode(document.getElementById("wxPayQrCard"), res.wxPayQrUrl); // 设置要生成二维码的链接
|
|
|
$("canvas").attr("id", "erw");
|