|
@@ -55,6 +55,7 @@ function initFeeTable() {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 获取日结报表
|
|
|
*/
|
|
@@ -125,149 +126,149 @@ function getRjbb() {
|
|
|
//现金收款
|
|
|
$("#xjbs").html(res.chargeCountVo.xjbs);
|
|
|
$("#xjbs_p").html(res.chargeCountVo.xjbs);
|
|
|
- if(res.chargeCountVo.xjsk!=null){
|
|
|
+ if (res.chargeCountVo.xjsk != null) {
|
|
|
$("#xjsk").html(res.chargeCountVo.xjsk.toFixed(2));
|
|
|
$("#xjsk_p").html(res.chargeCountVo.xjsk.toFixed(2));
|
|
|
}
|
|
|
$("#xjtfbs").html(res.chargeCountVo.xjtfbs);
|
|
|
$("#xjtfbs_p").html(res.chargeCountVo.xjtfbs);
|
|
|
- if(res.chargeCountVo.xjtf!=null){
|
|
|
+ if (res.chargeCountVo.xjtf != null) {
|
|
|
$("#xjtf").html(res.chargeCountVo.xjtf.toFixed(2));
|
|
|
$("#xjtf_p").html(res.chargeCountVo.xjtf.toFixed(2));
|
|
|
}
|
|
|
$("#xjssbs").html(res.chargeCountVo.xjssbs);
|
|
|
$("#xjssbs_p").html(res.chargeCountVo.xjssbs);
|
|
|
- if(res.chargeCountVo.xjss!=null){
|
|
|
+ if (res.chargeCountVo.xjss != null) {
|
|
|
$("#xjss").html(res.chargeCountVo.xjss.toFixed(2));
|
|
|
$("#xjss_p").html(res.chargeCountVo.xjss.toFixed(2));
|
|
|
}
|
|
|
//银行卡收款
|
|
|
$("#yhsbs").html(res.chargeCountVo.yhsbs);
|
|
|
$("#yhsbs_p").html(res.chargeCountVo.yhsbs);
|
|
|
- if(res.chargeCountVo.yhksk!=null){
|
|
|
+ if (res.chargeCountVo.yhksk != null) {
|
|
|
$("#yhksk").html(res.chargeCountVo.yhksk.toFixed(2));
|
|
|
$("#yhksk_p").html(res.chargeCountVo.yhksk.toFixed(2));
|
|
|
}
|
|
|
$("#yhktfbs").html(res.chargeCountVo.yhktfbs);
|
|
|
$("#yhktfbs_p").html(res.chargeCountVo.yhktfbs);
|
|
|
- if(res.chargeCountVo.yhktf!=null){
|
|
|
+ if (res.chargeCountVo.yhktf != null) {
|
|
|
$("#yhktf").html(res.chargeCountVo.yhktf.toFixed(2));
|
|
|
$("#yhktf_p").html(res.chargeCountVo.yhktf.toFixed(2));
|
|
|
}
|
|
|
$("#yhkssbs").html(res.chargeCountVo.yhkssbs);
|
|
|
$("#yhkssbs_p").html(res.chargeCountVo.yhkssbs);
|
|
|
- if(res.chargeCountVo.yhkss!=null){
|
|
|
+ if (res.chargeCountVo.yhkss != null) {
|
|
|
$("#yhkss").html(res.chargeCountVo.yhkss.toFixed(2));
|
|
|
$("#yhkss_p").html(res.chargeCountVo.yhkss.toFixed(2));
|
|
|
}
|
|
|
//支付宝收款
|
|
|
$("#zfbbs").html(res.chargeCountVo.zfbbs);
|
|
|
$("#zfbbs_p").html(res.chargeCountVo.zfbbs);
|
|
|
- if(res.chargeCountVo.zfbsk!=null){
|
|
|
+ if (res.chargeCountVo.zfbsk != null) {
|
|
|
$("#zfbsk").html(res.chargeCountVo.zfbsk.toFixed(2));
|
|
|
$("#zfbsk_p").html(res.chargeCountVo.zfbsk.toFixed(2));
|
|
|
}
|
|
|
$("#zfbtfbs").html(res.chargeCountVo.zfbtfbs);
|
|
|
$("#zfbtfbs_p").html(res.chargeCountVo.zfbtfbs);
|
|
|
- if(res.chargeCountVo.zfbtf!=null){
|
|
|
+ if (res.chargeCountVo.zfbtf != null) {
|
|
|
$("#zfbtf").html(res.chargeCountVo.zfbtf.toFixed(2));
|
|
|
$("#zfbtf_p").html(res.chargeCountVo.zfbtf.toFixed(2));
|
|
|
}
|
|
|
$("#zfbssbs").html(res.chargeCountVo.zfbssbs);
|
|
|
$("#zfbssbs_p").html(res.chargeCountVo.zfbssbs);
|
|
|
- if(res.chargeCountVo.zfbss!=null){
|
|
|
+ if (res.chargeCountVo.zfbss != null) {
|
|
|
$("#zfbss").html(res.chargeCountVo.zfbss.toFixed(2));
|
|
|
$("#zfbss_p").html(res.chargeCountVo.zfbss.toFixed(2));
|
|
|
}
|
|
|
//微信收款
|
|
|
$("#wxbs").html(res.chargeCountVo.wxbs);
|
|
|
$("#wxbs_p").html(res.chargeCountVo.wxbs);
|
|
|
- if(res.chargeCountVo.wxsk!=null){
|
|
|
+ if (res.chargeCountVo.wxsk != null) {
|
|
|
$("#wxsk").html(res.chargeCountVo.wxsk.toFixed(2));
|
|
|
$("#wxsk_p").html(res.chargeCountVo.wxsk.toFixed(2));
|
|
|
}
|
|
|
$("#wxtfbs").html(res.chargeCountVo.wxtfbs);
|
|
|
$("#wxtfbs_p").html(res.chargeCountVo.wxtfbs);
|
|
|
- if(res.chargeCountVo.wxtf!=null){
|
|
|
+ if (res.chargeCountVo.wxtf != null) {
|
|
|
$("#wxtf").html(res.chargeCountVo.wxtf.toFixed(2));
|
|
|
}
|
|
|
$("#wxssbs").html(res.chargeCountVo.wxssbs);
|
|
|
$("#wxssbs_p").html(res.chargeCountVo.wxssbs);
|
|
|
- if(res.chargeCountVo.wxss!=null){
|
|
|
+ if (res.chargeCountVo.wxss != null) {
|
|
|
$("#wxss").html(res.chargeCountVo.wxss.toFixed(2));
|
|
|
$("#wxss_p").html(res.chargeCountVo.wxss.toFixed(2));
|
|
|
}
|
|
|
//记账绿色通道收款
|
|
|
$("#zfbs").html(res.chargeCountVo.zfbs);
|
|
|
$("#zfbs_p").html(res.chargeCountVo.zfbs);
|
|
|
- if(res.chargeCountVo.zfsk!=null){
|
|
|
+ if (res.chargeCountVo.zfsk != null) {
|
|
|
$("#zfsk").html(res.chargeCountVo.zfsk.toFixed(2));
|
|
|
$("#zfsk_p").html(res.chargeCountVo.zfsk.toFixed(2));
|
|
|
}
|
|
|
$("#zftfbs").html(res.chargeCountVo.zftfbs);
|
|
|
$("#zftfbs_p").html(res.chargeCountVo.zftfbs);
|
|
|
- if(res.chargeCountVo.zftf!=null){
|
|
|
+ if (res.chargeCountVo.zftf != null) {
|
|
|
$("#zftf").html(res.chargeCountVo.zftf.toFixed(2));
|
|
|
$("#zftf_p").html(res.chargeCountVo.zftf.toFixed(2));
|
|
|
}
|
|
|
$("#zfssbs").html(res.chargeCountVo.zfssbs);
|
|
|
$("#zfssbs_p").html(res.chargeCountVo.zfssbs);
|
|
|
- if(res.chargeCountVo.zfss!=null){
|
|
|
+ if (res.chargeCountVo.zfss != null) {
|
|
|
$("#zfss").html(res.chargeCountVo.zfss.toFixed(2));
|
|
|
$("#zfss_p").html(res.chargeCountVo.zfss.toFixed(2));
|
|
|
}
|
|
|
//医保卡收款
|
|
|
$("#sybbs").html(res.chargeCountVo.sybbs);
|
|
|
$("#sybbs_p").html(res.chargeCountVo.sybbs);
|
|
|
- if(res.chargeCountVo.sybksk!=null){
|
|
|
+ if (res.chargeCountVo.sybksk != null) {
|
|
|
$("#sybksk").html(res.chargeCountVo.sybksk.toFixed(2));
|
|
|
$("#sybksk_p").html(res.chargeCountVo.sybksk.toFixed(2));
|
|
|
}
|
|
|
$("#sybtfbs").html(res.chargeCountVo.sybtfbs);
|
|
|
$("#sybtfbs_p").html(res.chargeCountVo.sybtfbs);
|
|
|
- if(res.chargeCountVo.sybtf!=null){
|
|
|
+ if (res.chargeCountVo.sybtf != null) {
|
|
|
$("#sybtf").html(res.chargeCountVo.sybtf.toFixed(2));
|
|
|
$("#sybtf_p").html(res.chargeCountVo.sybtf.toFixed(2));
|
|
|
}
|
|
|
$("#sybssbs").html(res.chargeCountVo.sybssbs);
|
|
|
$("#sybssbs_p").html(res.chargeCountVo.sybssbs);
|
|
|
- if(res.chargeCountVo.sybkss!=null){
|
|
|
+ if (res.chargeCountVo.sybkss != null) {
|
|
|
$("#sybkss").html(res.chargeCountVo.sybkss.toFixed(2));
|
|
|
$("#sybkss_p").html(res.chargeCountVo.sybkss.toFixed(2));
|
|
|
}
|
|
|
//总计收款
|
|
|
$("#zjbs").html(res.chargeCountVo.zjbs);
|
|
|
$("#zjbs_p").html(res.chargeCountVo.zjbs);
|
|
|
- if(res.chargeCountVo.zjsk!=null){
|
|
|
+ if (res.chargeCountVo.zjsk != null) {
|
|
|
$("#zjsk").html(res.chargeCountVo.zjsk.toFixed(2));
|
|
|
$("#zjsk_p").html(res.chargeCountVo.zjsk.toFixed(2));
|
|
|
}
|
|
|
$("#ztfbs").html(res.chargeCountVo.ztfbs);
|
|
|
$("#ztfbs_p").html(res.chargeCountVo.ztfbs);
|
|
|
- if(res.chargeCountVo.zjtk!=null){
|
|
|
+ if (res.chargeCountVo.zjtk != null) {
|
|
|
$("#zjtk").html(res.chargeCountVo.zjtk.toFixed(2));
|
|
|
$("#zjtk_p").html(res.chargeCountVo.zjtk.toFixed(2));
|
|
|
}
|
|
|
$("#zjssbs").html(res.chargeCountVo.zjssbs);
|
|
|
$("#zjssbs_p").html(res.chargeCountVo.zjssbs);
|
|
|
- if(res.chargeCountVo.zjss!=null){
|
|
|
+ if (res.chargeCountVo.zjss != null) {
|
|
|
$("#zjss").html(res.chargeCountVo.zjss.toFixed(2));
|
|
|
$("#zjss_p").html(res.chargeCountVo.zjss.toFixed(2));
|
|
|
}
|
|
|
|
|
|
- if(res.chargeCountVo.sjhj!=null){
|
|
|
+ if (res.chargeCountVo.sjhj != null) {
|
|
|
$("#sjhj").html(res.chargeCountVo.sjhj.toFixed(2));
|
|
|
$("#sjhj_p").html(res.chargeCountVo.sjhj.toFixed(2));
|
|
|
}
|
|
|
$("#sjhjdx").html(res.chargeCountVo.sjhjdx);
|
|
|
$("#sjhjdx_p").html(res.chargeCountVo.sjhjdx);
|
|
|
- if(res.chargeCountVo.zfss!=null){
|
|
|
+ if (res.chargeCountVo.zfss != null) {
|
|
|
$("#zfsshj").html(res.chargeCountVo.zfss.toFixed(2));
|
|
|
$("#zfsshj_p").html(res.chargeCountVo.zfss.toFixed(2));
|
|
|
}
|
|
|
$("#zfdx").html(res.chargeCountVo.zfdx);
|
|
|
$("#zfdx_p").html(res.chargeCountVo.zfdx);
|
|
|
- if(res.chargeCountVo.zj!=null){
|
|
|
+ if (res.chargeCountVo.zj != null) {
|
|
|
$("#zj").html(res.chargeCountVo.zj.toFixed(2));
|
|
|
$("#zj_p").html(res.chargeCountVo.zj.toFixed(2));
|
|
|
}
|
|
@@ -278,15 +279,15 @@ function getRjbb() {
|
|
|
$("#sfReceiptBills_p_table").html(null);
|
|
|
if (res.sfReceiptBills != null && res.sfReceiptBills.length > 0) {
|
|
|
var html = '<div class="col-md-12 col-sm-12 col-xs-12">所用票号:</div>';
|
|
|
- var html_p='';
|
|
|
+ var html_p = '';
|
|
|
for (var i = 0; i < res.sfReceiptBills.length; i++) {
|
|
|
html += '<div class="col-md-3 col-sm-3 col-xs-12">' + res.sfReceiptBills[i] + '</div>';
|
|
|
|
|
|
- if(i%4==0){
|
|
|
+ if (i % 4 == 0) {
|
|
|
html_p += '<tr>';
|
|
|
}
|
|
|
- html_p += '<td>'+res.sfReceiptBills[i]+'</td>';
|
|
|
- if(i%4==3 || i==res.sfReceiptBills.length-1){
|
|
|
+ html_p += '<td>' + res.sfReceiptBills[i] + '</td>';
|
|
|
+ if (i % 4 == 3 || i == res.sfReceiptBills.length - 1) {
|
|
|
html_p += '</tr>';
|
|
|
}
|
|
|
}
|
|
@@ -301,25 +302,25 @@ function getRjbb() {
|
|
|
$("#zffps_p").html(res.zffps);
|
|
|
if (res.sfzffpmx.length == 0) {
|
|
|
$(".sfzffpmx").removeClass("in").addClass("hide");
|
|
|
- $("#sfzffpmx_p_table").css("display","none");
|
|
|
- $("#sfzffpmx_table").css("display","none");
|
|
|
+ $("#sfzffpmx_p_table").css("display", "none");
|
|
|
+ $("#sfzffpmx_table").css("display", "none");
|
|
|
} else if (res.sfzffpmx.length > 0) {
|
|
|
$(".sfzffpmx").removeClass("hide").addClass("in");
|
|
|
- $("#sfzffpmx_p_table").css("display","block");
|
|
|
- $("#sfzffpmx_table").css("display","block");
|
|
|
+ $("#sfzffpmx_p_table").css("display", "block");
|
|
|
+ $("#sfzffpmx_table").css("display", "block");
|
|
|
var html = '';
|
|
|
for (var i = 0; i < res.sfzffpmx.length; i++) {
|
|
|
- var receiptBill=res.sfzffpmx[i].receiptBill;
|
|
|
- if(res.sfzffpmx[i].receiptBill!=null && res.sfzffpmx[i].receiptBill.length>8){
|
|
|
- receiptBill=receiptBill.substring(0,7);
|
|
|
+ var receiptBill = res.sfzffpmx[i].receiptBill;
|
|
|
+ if (res.sfzffpmx[i].receiptBill != null && res.sfzffpmx[i].receiptBill.length > 8) {
|
|
|
+ receiptBill = receiptBill.substring(0, 7);
|
|
|
}
|
|
|
- if(i%3==0){
|
|
|
+ if (i % 3 == 0) {
|
|
|
html += '<tr>';
|
|
|
}
|
|
|
- html += '<td>'+receiptBill+'</td>';
|
|
|
- html += '<td>'+res.sfzffpmx[i].name+'</td>';
|
|
|
- html += '<td>'+res.sfzffpmx[i].totalCharge.toFixed(2)+'</td>';
|
|
|
- if(i%3==2 || i==res.sfzffpmx.length-1){
|
|
|
+ html += '<td>' + receiptBill + '</td>';
|
|
|
+ html += '<td>' + res.sfzffpmx[i].name + '</td>';
|
|
|
+ html += '<td>' + res.sfzffpmx[i].totalCharge.toFixed(2) + '</td>';
|
|
|
+ if (i % 3 == 2 || i == res.sfzffpmx.length - 1) {
|
|
|
html += '</tr>';
|
|
|
}
|
|
|
}
|
|
@@ -332,7 +333,7 @@ function getRjbb() {
|
|
|
$("#userIdCode_gh_p").html(res.user.userCode);
|
|
|
$("#username_gh_p").html(res.user.userName);
|
|
|
$("#dcountDate_gh_p").html(format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
- if(res.ghsrgcmx.ghje!=null){
|
|
|
+ if (res.ghsrgcmx.ghje != null) {
|
|
|
$("#ghje").html(res.ghsrgcmx.ghje.toFixed(2));
|
|
|
$("#ghje_p").html(res.ghsrgcmx.ghje.toFixed(2));
|
|
|
}
|
|
@@ -340,37 +341,37 @@ function getRjbb() {
|
|
|
$("#qmhs").html("全免号数:" + res.ghsrgcmx.qmhs);
|
|
|
$("#ghfps_p").html("所用票数:" + res.ghfps);
|
|
|
$("#qmhs_p").html("全免号数:" + res.ghsrgcmx.qmhs);
|
|
|
- if(res.ghsrgcmx.jzhs!=null){
|
|
|
+ if (res.ghsrgcmx.jzhs != null) {
|
|
|
$("#jzhs").html("记账号数:" + res.ghsrgcmx.jzhs);
|
|
|
$("#jzhs_p").html("记账号数:" + res.ghsrgcmx.jzhs);
|
|
|
}
|
|
|
- if(res.ghsrgcmx.jzje!=null){
|
|
|
+ if (res.ghsrgcmx.jzje != null) {
|
|
|
$("#jzje").html("记账金额:" + res.ghsrgcmx.jzje);
|
|
|
$("#jzje_p").html("记账金额:" + res.ghsrgcmx.jzje);
|
|
|
}
|
|
|
- if(res.ghsrgcmx.zcsr!=null){
|
|
|
+ if (res.ghsrgcmx.zcsr != null) {
|
|
|
$("#zcsr").html("诊察收入:" + res.ghsrgcmx.zcsr.toFixed(2));
|
|
|
$("#zcsr_p").html("诊察收入:" + res.ghsrgcmx.zcsr.toFixed(2));
|
|
|
}
|
|
|
- if(res.ghsrgcmx.jcsr!=null){
|
|
|
+ if (res.ghsrgcmx.jcsr != null) {
|
|
|
$("#jcsr").html("检查收入:" + res.ghsrgcmx.jcsr.toFixed(2));
|
|
|
$("#jcsr_p").html("检查收入:" + res.ghsrgcmx.jcsr.toFixed(2));
|
|
|
}
|
|
|
- if(res.ghsrgcmx.ghsr!=null){
|
|
|
+ if (res.ghsrgcmx.ghsr != null) {
|
|
|
$("#ghsr").html("挂号费(门诊):" + res.ghsrgcmx.ghsr.toFixed(2));
|
|
|
$("#ghsr_p").html("挂号费(门诊):" + res.ghsrgcmx.ghsr.toFixed(2));
|
|
|
}
|
|
|
- if(res.ghsrgcmx.thje!=null){
|
|
|
+ if (res.ghsrgcmx.thje != null) {
|
|
|
$("#thje").html(res.ghsrgcmx.thje.toFixed(2));
|
|
|
$("#thje_p").html(res.ghsrgcmx.thje.toFixed(2));
|
|
|
}
|
|
|
$("#ghtpzs").html("退票数:" + res.ghtpzs);
|
|
|
$("#ghtpzs_p").html("退票数:" + res.ghtpzs);
|
|
|
- if(res.ghsrgcmx.ghhj!=null){
|
|
|
+ if (res.ghsrgcmx.ghhj != null) {
|
|
|
$("#ghhj").html(res.ghsrgcmx.ghhj.toFixed(2));
|
|
|
$("#ghhj_p").html(res.ghsrgcmx.ghhj.toFixed(2));
|
|
|
}
|
|
|
- if(res.ghsrgcmx.ghjebhjz!=null){
|
|
|
+ if (res.ghsrgcmx.ghjebhjz != null) {
|
|
|
$("#ghjebhjz").html("合计(不含记账) " + res.ghsrgcmx.ghjebhjz.toFixed(2));
|
|
|
$("#ghjebhjz_p").html("合计(不含记账) " + res.ghsrgcmx.ghjebhjz.toFixed(2));
|
|
|
}
|
|
@@ -382,15 +383,15 @@ function getRjbb() {
|
|
|
$("#ghReceiptBills_p_table").html(null);
|
|
|
if (res.ghReceiptBills != null && res.ghReceiptBills.length > 0) {
|
|
|
var html = '<div class="col-md-12 col-sm-12 col-xs-12">所用票号:</div>';
|
|
|
- var html_p='';
|
|
|
+ var html_p = '';
|
|
|
for (var i = 0; i < res.ghReceiptBills.length; i++) {
|
|
|
html += '<div class="col-md-3 col-sm-3 col-xs-12">' + res.ghReceiptBills[i] + '</div>';
|
|
|
|
|
|
- if(i%4==0){
|
|
|
+ if (i % 4 == 0) {
|
|
|
html_p += '<tr>';
|
|
|
}
|
|
|
- html_p += '<td>'+res.ghReceiptBills[i]+'</td>';
|
|
|
- if(i%4==3 || i==res.ghReceiptBills.length-1){
|
|
|
+ html_p += '<td>' + res.ghReceiptBills[i] + '</td>';
|
|
|
+ if (i % 4 == 3 || i == res.ghReceiptBills.length - 1) {
|
|
|
html_p += '</tr>';
|
|
|
}
|
|
|
}
|
|
@@ -400,24 +401,24 @@ function getRjbb() {
|
|
|
$("#username_zbr").html(res.user.userName);
|
|
|
$("#username_zbr_p").html(res.user.userName);
|
|
|
if (res.thzffpmx.length == 0) {
|
|
|
- $("#thzffpmx_table").css("display","none");
|
|
|
- $("#thzffpmx_table_p").css("display","none");
|
|
|
+ $("#thzffpmx_table").css("display", "none");
|
|
|
+ $("#thzffpmx_table_p").css("display", "none");
|
|
|
} else if (res.sfzffpmx.length > 0) {
|
|
|
- $("#thzffpmx_table").css("display","block");
|
|
|
- $("#thzffpmx_table_p").css("display","block");
|
|
|
+ $("#thzffpmx_table").css("display", "block");
|
|
|
+ $("#thzffpmx_table_p").css("display", "block");
|
|
|
var html = '';
|
|
|
for (var i = 0; i < res.thzffpmx.length; i++) {
|
|
|
- var receiptBill=res.thzffpmx[i].receiptBill;
|
|
|
- if(res.thzffpmx[i].receiptBill!=null && res.thzffpmx[i].receiptBill.length>8){
|
|
|
- receiptBill=receiptBill.substring(0,7);
|
|
|
+ var receiptBill = res.thzffpmx[i].receiptBill;
|
|
|
+ if (res.thzffpmx[i].receiptBill != null && res.thzffpmx[i].receiptBill.length > 8) {
|
|
|
+ receiptBill = receiptBill.substring(0, 7);
|
|
|
}
|
|
|
- if(i%3==0){
|
|
|
+ if (i % 3 == 0) {
|
|
|
html += '<tr>';
|
|
|
}
|
|
|
- html += '<td>'+receiptBill+'</td>';
|
|
|
- html += '<td>'+res.thzffpmx[i].name+'</td>';
|
|
|
- html += '<td>'+res.thzffpmx[i].totalCharge.toFixed(2)+'</td>';
|
|
|
- if(i%3==2 || i==res.thzffpmx.length-1){
|
|
|
+ html += '<td>' + receiptBill + '</td>';
|
|
|
+ html += '<td>' + res.thzffpmx[i].name + '</td>';
|
|
|
+ html += '<td>' + res.thzffpmx[i].totalCharge.toFixed(2) + '</td>';
|
|
|
+ if (i % 3 == 2 || i == res.thzffpmx.length - 1) {
|
|
|
html += '</tr>';
|
|
|
}
|
|
|
}
|
|
@@ -756,17 +757,8 @@ function setPrint() {
|
|
|
* 清空查询条件
|
|
|
*/
|
|
|
function cleanParams() {
|
|
|
- $("#deptNoParam").selectpicker('val', null);//默认选中
|
|
|
- $("#deptNoParam").selectpicker('refresh');
|
|
|
- $("#doctorParam").selectpicker('val', null);//默认选中
|
|
|
- $("#doctorParam").selectpicker('refresh');
|
|
|
- $("#cardNo").val(null);
|
|
|
- $("#name").val(null);
|
|
|
- $('#reportrange span').html(moment().format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
|
|
|
- $("#patientId").val(null);
|
|
|
- //默认光标在卡号输入框
|
|
|
- $("#cardNo").focus();
|
|
|
- $("#serialNo").val(null);
|
|
|
+ $("#printNum").val(null);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -785,22 +777,28 @@ function dcountCharge() {
|
|
|
return;
|
|
|
}
|
|
|
if (res.code == 0) {
|
|
|
- $("#dcountDate").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
- $("#dcountDate_p").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
- $("#dcountDate_gh").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
- $("#dcountDate_gh_p").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
- setPrint();
|
|
|
- LODOP = getLodop();
|
|
|
- LODOP.PRINT_INITA(6, 0, "210mm", "297mm", "门诊收费收入日报表");
|
|
|
- //设置默认打印机
|
|
|
- LODOP.SET_PRINTER_INDEX(printIndex);
|
|
|
- LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "297mm");
|
|
|
- LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
|
|
|
- LODOP.ADD_PRINT_HTM("0mm","0mm","210mm", "297mm",document.getElementById("printDiv").innerHTML);
|
|
|
- LODOP.PRINT();
|
|
|
- //LODOP.PREVIEW();
|
|
|
+ var printNum = $("#printNum").val();
|
|
|
+ if (printNum == null || printNum == undefined || printNum == '') {
|
|
|
+ printNum = 1;
|
|
|
+ }
|
|
|
+ for (var i = 0; i < printNum; i++) {
|
|
|
+ $("#dcountDate").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#dcountDate_p").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#dcountDate_gh").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ $("#dcountDate_gh_p").html(format(res.dcountDate, "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ setPrint();
|
|
|
+ LODOP = getLodop();
|
|
|
+ LODOP.PRINT_INITA(6, 0, "210mm", "297mm", "门诊收费收入日报表");
|
|
|
+ //设置默认打印机
|
|
|
+ LODOP.SET_PRINTER_INDEX(printIndex);
|
|
|
+ LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "297mm");
|
|
|
+ LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "210mm");
|
|
|
+ LODOP.ADD_PRINT_HTM("0mm", "0mm", "210mm", "297mm", document.getElementById("printDiv").innerHTML);
|
|
|
+ LODOP.PRINT();
|
|
|
+ //LODOP.PREVIEW();
|
|
|
+ }
|
|
|
successMesage(res);
|
|
|
- } else{
|
|
|
+ } else {
|
|
|
errorMesage(res);
|
|
|
}
|
|
|
}
|