lxp 1 year ago
parent
commit
e44ceaa84d

+ 1 - 1
yinet-admin/src/main/java/com/yinet/web/controller/rlzy/RlzyApplyPrintController.java

@@ -110,7 +110,7 @@ public class RlzyApplyPrintController extends BaseController {
         RlzyApply build = null;
         RlzyApply build = null;
         if("zhengben".equals(type)){
         if("zhengben".equals(type)){
             build = RlzyApply.builder().iszprint("1").id(applyId).build();
             build = RlzyApply.builder().iszprint("1").id(applyId).build();
-        }else if("fubeng".equals(type)){
+        }else if("fuben".equals(type)){
             build = RlzyApply.builder().isfprint("1").id(applyId).build();
             build = RlzyApply.builder().isfprint("1").id(applyId).build();
         }
         }
         return  AjaxResult.success(rlzyApplyService.updateById(build));
         return  AjaxResult.success(rlzyApplyService.updateById(build));

+ 2 - 6
yinet-admin/src/main/resources/templates/rlzy/print/dylist.html

@@ -216,12 +216,6 @@
 								'content': '开始打印...',
 								'content': '开始打印...',
 								'closeTime': 2000,
 								'closeTime': 2000,
 							})
 							})
-							if(type=="zhengben"){
-								$('#printz'+pid).attr("disabled", true).removeAttr("onclick");
-							}
-							if(type=="fuben"){
-								$('#printf'+pid).attr("disabled", true).removeAttr("onclick");
-							}
 							$.ajax({
 							$.ajax({
 								url: "/rlzy/print/updateApply",
 								url: "/rlzy/print/updateApply",
 								type: "post",
 								type: "post",
@@ -286,6 +280,7 @@
             });
             });
         }
         }
         function printZPapers (id){
         function printZPapers (id){
+			$('#printz'+id).attr("disabled", true).removeAttr("onclick");
         	var filepath="";
         	var filepath="";
 			$.ajax({
 			$.ajax({
 				url: "/rlzy/print/getSapplyData",
 				url: "/rlzy/print/getSapplyData",
@@ -355,6 +350,7 @@
 
 
         }
         }
 		function printFPapers (id){
 		function printFPapers (id){
+			$('#printf'+id).attr("disabled", true).removeAttr("onclick");
 			var filepath="";
 			var filepath="";
 			$.ajax({
 			$.ajax({
 				url: "/rlzy/print/getSapplyData",
 				url: "/rlzy/print/getSapplyData",