|  | @@ -632,7 +632,7 @@ function initFeeTable() {
 | 
	
		
			
				|  |  |                          if(fpVsesionNo == 1){
 | 
	
		
			
				|  |  |                              str += '<button type="button" class="registration-no-color-foot-button" title="上传电子发票" onclick="printDzfp(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo +',1'+ ');" style="color: #35D082;"><i class="fa fa-upload"></i></button>';
 | 
	
		
			
				|  |  |  //                            str += '<button type="button" class="registration-no-color-foot-button" title="开具电子发票" onclick="issueEBill(\'' + row.realNo + '\',' + row.amount + ',\'' + row.name + '\',\'' + row.doctorCode +'\'' + ');" style="color: #35D082;"><i class="fa fa-sign-in"></i></button>';
 | 
	
		
			
				|  |  | -                            str += '<button type="button" class="registration-no-color-foot-button"title="下载电子发票" onclick="openDzfpDownModal(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ',1'+')"><i class="fa fa-download"></i></button>';
 | 
	
		
			
				|  |  | +                            str += '<button type="button" class="registration-no-color-foot-button"title="下载电子发票" onclick="onclick="openDzfpDownModal(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times +',\'' + row.mzyReqrec.serialNo + '\'' + ')"><i class="fa fa-download"></i></button>';
 | 
	
		
			
				|  |  |                              str += '<button type="button" class="registration-no-color-foot-button"title="查询电子发票" onclick="getEBill(\'' + row.serialNo+ '\',)"><i class="fa fa-search"></i></button>';
 | 
	
		
			
				|  |  |                              str += '<button type="button" class="registration-no-color-foot-button"title="下载电子发票" onclick="downloadEBill(\'' + row.serialNo+ '\',)"><i class="fa fa-download"></i></button>';
 | 
	
		
			
				|  |  |                          }
 | 
	
	
		
			
				|  | @@ -661,7 +661,7 @@ function initFeeTable() {
 | 
	
		
			
				|  |  |                          str += '<button type="button" class="registration-no-color-foot-button"title="支付明细" onclick="depositFileList(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo + ')"><i class="fa fa-th-list"></i></button>';
 | 
	
		
			
				|  |  |                          if(fpVsesionNo == 1){
 | 
	
		
			
				|  |  |                              str += '<button type="button" class="registration-no-color-foot-button"title="电子发票作废" onclick="uploadMzInvoice(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo +',2'+ ')"><i class="fa fa-mail-reply-all"></i></button>';
 | 
	
		
			
				|  |  | -                            str += '<button type="button" class="registration-no-color-foot-button"title="下载已作废的电子发票" onclick="openDzfpDownModal(\'' + row.patientId + '\',' + row.times + ',' + row.receiptNo +',2'+ ')" style="color: red;"><i class="fa fa-download"></i></button>';
 | 
	
		
			
				|  |  | +                            str += '<button type="button" class="registration-no-color-foot-button"title="下载已作废的电子发票" onclick="onclick="openDzfpDownModal(\'' + row.mzyReqrec.patientId + '\',' + row.mzyReqrec.times +',\'' + row.mzyReqrec.serialNo + '\'' + ')"><i class="fa fa-download"></i></button>';
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                          // str += '<button type="button" class="registration-no-color-foot-button" title="修改收款方式" onclick="showChequType(\'' + row.patientId + '\','+row.times+','+row.receiptNo+')"><i class="fa fa-credit-card"></i></button>' ;
 | 
	
		
			
				|  |  |                          return str;
 | 
	
	
		
			
				|  | @@ -1930,14 +1930,15 @@ function uploadMzInvoice(patientId,times,receiptNo,typeFlag) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  var dzfp_patientId ;
 | 
	
		
			
				|  |  |  var dzfp_times ;
 | 
	
		
			
				|  |  | -var dzfp_receiptNo;
 | 
	
		
			
				|  |  | -var dzfp_typeFlag;
 | 
	
		
			
				|  |  | +var dzfp_serialNo;
 | 
	
		
			
				|  |  | +//var dzfp_typeFlag;
 | 
	
		
			
				|  |  |  //打开电子发票弹窗
 | 
	
		
			
				|  |  | -function openDzfpDownModal(patientId,times,receiptNo,typeFlag) {
 | 
	
		
			
				|  |  | +function openDzfpDownModal(patientId,times,serialNo) {
 | 
	
		
			
				|  |  | +console.log("dfds",patientId,times,serialNo)
 | 
	
		
			
				|  |  |      dzfp_patientId = patientId;
 | 
	
		
			
				|  |  |      dzfp_times = times;
 | 
	
		
			
				|  |  | -    dzfp_receiptNo = receiptNo;
 | 
	
		
			
				|  |  | -    dzfp_typeFlag = typeFlag;
 | 
	
		
			
				|  |  | +    dzfp_serialNo = serialNo;
 | 
	
		
			
				|  |  | +//    dzfp_typeFlag = typeFlag;
 | 
	
		
			
				|  |  |      $("#dzfpDownModal").modal();
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1945,36 +1946,43 @@ function openDzfpDownModal(patientId,times,receiptNo,typeFlag) {
 | 
	
		
			
				|  |  |   * @param type 1 打印二维码  2 下载pdf
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  function downOrPrintDzfp(type) {
 | 
	
		
			
				|  |  | -    downloadDzfp(dzfp_patientId,dzfp_times,dzfp_receiptNo,dzfp_typeFlag,type)
 | 
	
		
			
				|  |  | +console.log("11111111111111111111111111111")
 | 
	
		
			
				|  |  | +console.log("dfds",dzfp_patientId,dzfp_times,dzfp_serialNo)
 | 
	
		
			
				|  |  | +    downloadDzfp(dzfp_patientId,dzfp_times,dzfp_serialNo)
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  //下载电子发票
 | 
	
		
			
				|  |  | -function downloadDzfp(patientId,times,receiptNo,typeFlag,type) {
 | 
	
		
			
				|  |  | +function downloadDzfp(patientId,times,serialNo) {
 | 
	
		
			
				|  |  |      setPrint();
 | 
	
		
			
				|  |  | -    postAjaxJsonHttpRequst("/thmz/queryInvoiceFile",{patientId:patientId,times:times,typeFlag:typeFlag,receiptNo:receiptNo},true,function (res) {
 | 
	
		
			
				|  |  | +    postAjaxJsonHttpRequst("/thmz/selectDzfpUploadAboutSerialNo",{patientId:patientId,times:times,serialNo:serialNo},true,function (res) {
 | 
	
		
			
				|  |  |          if(res.code == 0){
 | 
	
		
			
				|  |  |              $("#dzfpDownModal").modal("hide");
 | 
	
		
			
				|  |  | -            if(type == 2 || !stringNotBlank(type)){
 | 
	
		
			
				|  |  | -                base64toPDF(res.data.pdfFileStr)
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | -            //打印二维码
 | 
	
		
			
				|  |  | -               let height = "70mm"
 | 
	
		
			
				|  |  | -               let  bkimgWidth = "110mm"
 | 
	
		
			
				|  |  | -                LODOP = getLodop();
 | 
	
		
			
				|  |  | -                LODOP.PRINT_INITA(6, 0, bkimgWidth, height, hospitalName+"门诊电子发票二维码打印");
 | 
	
		
			
				|  |  | -                //设置默认打印机
 | 
	
		
			
				|  |  | -                LODOP.SET_PRINTER_INDEX(printIndex);
 | 
	
		
			
				|  |  | -                LODOP.SET_SHOW_MODE("BKIMG_WIDTH", bkimgWidth);
 | 
	
		
			
				|  |  | -                LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", height);
 | 
	
		
			
				|  |  | -                LODOP.SET_PRINT_PAGESIZE(1,bkimgWidth, height, "CreateCustomPage");
 | 
	
		
			
				|  |  | -                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊电子发票二维码");//对新建的纸张重命名
 | 
	
		
			
				|  |  | -                LODOP.SET_PRINT_STYLE("FontSize", 11); //字体大小
 | 
	
		
			
				|  |  | -                LODOP.ADD_PRINT_TEXT("6mm", "3mm", "60mm", "3mm", hospitalName+"发票二维码");
 | 
	
		
			
				|  |  | -                LODOP.ADD_PRINT_IMAGE("10mm", "3mm", "50mm", "50mm", "data:image/png;base64,"+res.data.qrcode);
 | 
	
		
			
				|  |  | -                LODOP.PRINT();
 | 
	
		
			
				|  |  | -                // LODOP.PREVIEW();
 | 
	
		
			
				|  |  | +            if(res.data.resUrl){
 | 
	
		
			
				|  |  | +                window.open(res.data.resUrl)
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                errorMesage("未获取到电子发票,请重新上传发票!");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +//            if(type == 2 || !stringNotBlank(type)){
 | 
	
		
			
				|  |  | +//                base64toPDF(res.data.pdfFileStr)
 | 
	
		
			
				|  |  | +//            }else {
 | 
	
		
			
				|  |  | +//            //打印二维码
 | 
	
		
			
				|  |  | +//               let height = "70mm"
 | 
	
		
			
				|  |  | +//               let  bkimgWidth = "110mm"
 | 
	
		
			
				|  |  | +//                LODOP = getLodop();
 | 
	
		
			
				|  |  | +//                LODOP.PRINT_INITA(6, 0, bkimgWidth, height, hospitalName+"门诊电子发票二维码打印");
 | 
	
		
			
				|  |  | +//                //设置默认打印机
 | 
	
		
			
				|  |  | +//                LODOP.SET_PRINTER_INDEX(printIndex);
 | 
	
		
			
				|  |  | +//                LODOP.SET_SHOW_MODE("BKIMG_WIDTH", bkimgWidth);
 | 
	
		
			
				|  |  | +//                LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", height);
 | 
	
		
			
				|  |  | +//                LODOP.SET_PRINT_PAGESIZE(1,bkimgWidth, height, "CreateCustomPage");
 | 
	
		
			
				|  |  | +//                LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊电子发票二维码");//对新建的纸张重命名
 | 
	
		
			
				|  |  | +//                LODOP.SET_PRINT_STYLE("FontSize", 11); //字体大小
 | 
	
		
			
				|  |  | +//                LODOP.ADD_PRINT_TEXT("6mm", "3mm", "60mm", "3mm", hospitalName+"发票二维码");
 | 
	
		
			
				|  |  | +//                LODOP.ADD_PRINT_IMAGE("10mm", "3mm", "50mm", "50mm", "data:image/png;base64,"+res.data.qrcode);
 | 
	
		
			
				|  |  | +//                LODOP.PRINT();
 | 
	
		
			
				|  |  | +//                // LODOP.PREVIEW();
 | 
	
		
			
				|  |  | +//            }
 | 
	
		
			
				|  |  |          }else {
 | 
	
		
			
				|  |  |              errorMesage(res)
 | 
	
		
			
				|  |  |          }
 |