Explorar o código

提交测试 弹出层方案B

lvhao hai 1 día
pai
achega
80bbb26020
Modificáronse 2 ficheiros con 7 adicións e 3 borrados
  1. 1 1
      template/erp/fullorder_edit.html
  2. 6 2
      template/erp/js/fullorder-addedit.js

+ 1 - 1
template/erp/fullorder_edit.html

@@ -1287,6 +1287,6 @@ $("#is_jiaji_id").on('change',function(){
 });
 
 </script>
-<script src="{$theme}js/fullorder-addedit.js?v=2025111009321"></script>
+<script src="{$theme}js/fullorder-addedit.js?v=202511100932"></script>
 <script type="text/javascript" src="{$theme}js/time.js"></script>
 {Template footer}

+ 6 - 2
template/erp/js/fullorder-addedit.js

@@ -12,7 +12,9 @@ iframe.height = height;
 $(".packing .exptj").click(function() {
 	$(".addful .addwp").html("<iframe id='abccc' allowtransparency='true' frameborder='0' scrolling='auto' allowfullscreen='' mozallowfullscreen='' webkitallowfullscreen='' src='/choice/1' data-focus='true'></iframe>");
 	$( ".addwp" ).draggable({revert: true,iframeFix:true});// revert: true,axis: "x"
-	 	window.setInterval("reinitIframe()", 200);
+	 	//window.setInterval("reinitIframe()", 200);
+		//2026年7月16日 先采用B方案 修改定时器泄露
+		parent.reinitIframeTimer = window.setInterval(reinitIframe, 200);
 	$(".addful").show();
 });
 
@@ -504,7 +506,9 @@ $("#currency").change(function(){
 	{
 	$(".addful .addwp").html("<iframe id='abccc' allowtransparency='true' frameborder='0' scrolling='auto' allowfullscreen='' mozallowfullscreen='' webkitallowfullscreen='' src='/choice/2' data-focus='true'></iframe>");
 	$( ".addwp" ).draggable({ revert: true,axis: "x" });
-	 	window.setInterval("reinitIframe()", 200);
+	 	//window.setInterval("reinitIframe()", 200);
+		//2026年7月16日 先采用B方案 修改定时器泄露
+		parent.reinitIframeTimer = window.setInterval(reinitIframe, 200);
 	$(".addful").show();
 	}
 	});