|
@@ -330,10 +330,10 @@ function initFeeTable() {
|
|
|
if (payMarkGroup == 1) {
|
|
|
str += '<button type="button" class="registration-no-color-foot-button" title="退费" onclick="refundFee(\'' + row.patientId + '\',' + row.times + ');"><i class="fa fa-reply"></i></button>';
|
|
|
if (row.printFlag == 0) {
|
|
|
- str += '<button type="button" class="registration-no-color-foot-button" title="发票打印" onclick="prn1Print(\'' + row.patientId + '\',' + row.times + ');" style="color: #35D082;"><i class="fa fa-print"></i></button>';
|
|
|
+ str += '<button type="button" class="registration-no-color-foot-button" title="发票打印" onclick="prn1Print(\'' + row.patientId + '\',' + row.times + ',\''+row.name+'\');" style="color: #35D082;"><i class="fa fa-print"></i></button>';
|
|
|
}else if (row.printFlag == 1) {
|
|
|
- str += '<button type="button" class="registration-no-color-foot-button" title="发票重打" onclick="repPrint(\'' + row.patientId + '\',' + row.times + ');" style="color: #F4BD00;"><i class="fa fa-print"></i></button>';
|
|
|
- str += '<button type="button" class="registration-no-color-foot-button" title="发票作废重打" onclick="obsoleteAndRepPrint(\'' + row.patientId + '\',' + row.times + ');" style="color: #E73E48;"><i class="fa fa-print"></i></button>';
|
|
|
+ str += '<button type="button" class="registration-no-color-foot-button" title="发票重打" onclick="repPrint(\'' + row.patientId + '\',' + row.times + ',\''+row.name+'\');" style="color: #F4BD00;"><i class="fa fa-print"></i></button>';
|
|
|
+ str += '<button type="button" class="registration-no-color-foot-button" title="发票作废重打" onclick="obsoleteAndRepPrint(\'' + row.patientId + '\',' + row.times + ',\''+row.name+'\');" style="color: #E73E48;"><i class="fa fa-print"></i></button>';
|
|
|
}
|
|
|
}
|
|
|
return str;
|
|
@@ -629,6 +629,9 @@ function queryUserInfoByCardNo() {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ }else if(cardNo.indexOf("-")>0){
|
|
|
+ $("#patientId").val(cardNo);
|
|
|
+ initFeeTable();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1024,7 +1027,7 @@ function saveConfirmFee() {
|
|
|
return;
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
- prn1Print(patientId, times);
|
|
|
+ prn1Print(patientId, times,null);
|
|
|
new PNotify({
|
|
|
title: '操作提示',
|
|
|
text: res.message,
|
|
@@ -1054,9 +1057,9 @@ function saveConfirmFee() {
|
|
|
* @param patientId
|
|
|
* @param times
|
|
|
*/
|
|
|
-function prn1Print(patientId, times) {
|
|
|
+function prn1Print(patientId, times,name) {
|
|
|
var url='/thmz/getAllSerialForThisTime?patientId=' + patientId + "×=" + times;
|
|
|
- printCommon(url,patientId, times);
|
|
|
+ printCommon(url,patientId, times,name);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1064,7 +1067,7 @@ function prn1Print(patientId, times) {
|
|
|
* @param patientId
|
|
|
* @param times
|
|
|
*/
|
|
|
-function repPrint(patientId, times) {
|
|
|
+function repPrint(patientId, times,name) {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getReceiptForThisTime?patientId=' + patientId + "×="+times,
|
|
@@ -1081,7 +1084,7 @@ function repPrint(patientId, times) {
|
|
|
return;
|
|
|
}
|
|
|
var url='/thmz/repPrintForThisTime?patientId=' + patientId + "×=" + times + "&obsolete=0";
|
|
|
- printCommon(url,patientId, times);
|
|
|
+ printCommon(url,patientId, times,name);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1092,7 +1095,7 @@ function repPrint(patientId, times) {
|
|
|
* @param patientId
|
|
|
* @param times
|
|
|
*/
|
|
|
-function obsoleteAndRepPrint(patientId, times) {
|
|
|
+function obsoleteAndRepPrint(patientId, times,name) {
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
url: '/thmz/getReceiptForThisTime?patientId=' + patientId + "×="+times,
|
|
@@ -1109,7 +1112,7 @@ function obsoleteAndRepPrint(patientId, times) {
|
|
|
return;
|
|
|
}
|
|
|
var url='/thmz/repPrintForThisTime?patientId=' + patientId + "×=" + times + "&obsolete=1";
|
|
|
- printCommon(url,patientId, times);
|
|
|
+ printCommon(url,patientId, times,name);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1122,7 +1125,7 @@ function obsoleteAndRepPrint(patientId, times) {
|
|
|
* @param patientId
|
|
|
* @param times
|
|
|
*/
|
|
|
-function printCommon(url,patientId, times) {
|
|
|
+function printCommon(url,patientId, times,name) {
|
|
|
setPrint();
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
@@ -1149,12 +1152,15 @@ function printCommon(url,patientId, times) {
|
|
|
LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "92mm");
|
|
|
LODOP.SET_PRINT_PAGESIZE(0, "120mm", "92mm", "CreateCustomPage");
|
|
|
LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊发票");//对新建的纸张重命名
|
|
|
- LODOP.SET_PRINT_STYLE("FontSize", 8); //字体大小
|
|
|
+ LODOP.SET_PRINT_STYLE("FontSize", 11); //字体大小
|
|
|
LODOP.ADD_PRINT_TEXT("5mm", "16mm", "45mm", "3mm", "湖南泰和医院管理有限公司");
|
|
|
LODOP.ADD_PRINT_TEXT("5mm", "78mm", "30mm", "3mm", "机制号:");
|
|
|
LODOP.ADD_PRINT_TEXT("5mm", "91mm", "20mm", "3mm", temp.serialNo);
|
|
|
LODOP.ADD_PRINT_TEXT("8mm", "78mm", "35mm", "3mm", temp.receiptBill);
|
|
|
- LODOP.ADD_PRINT_TEXT("24mm", "26mm", "40mm", "3mm", res.user.userName);
|
|
|
+ if(name==null){
|
|
|
+ name = $("#nameHaveTally").val();
|
|
|
+ }
|
|
|
+ LODOP.ADD_PRINT_TEXT("24mm", "26mm", "40mm", "3mm", name);
|
|
|
LODOP.ADD_PRINT_TEXT("24mm", "80mm", "27mm", "3mm", patientId);
|
|
|
var feeList = res.data[i].feeList;
|
|
|
if (feeList != null && feeList.length > 0) {
|
|
@@ -1764,7 +1770,7 @@ function saveRefundFee() {
|
|
|
});
|
|
|
$("#refundFeeModal").modal("hide");
|
|
|
if(res.times>0){
|
|
|
- prn1Print(res.patientId,res.times);
|
|
|
+ prn1Print(res.patientId,res.times,null);
|
|
|
}else {
|
|
|
initFeeTable();
|
|
|
}
|