lxp 1 yıl önce
ebeveyn
işleme
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;
         if("zhengben".equals(type)){
             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();
         }
         return  AjaxResult.success(rlzyApplyService.updateById(build));

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

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