diff --git a/resources/views/admin/statistics/income.blade.php b/resources/views/admin/statistics/income.blade.php index 385f4c4..376ca94 100755 --- a/resources/views/admin/statistics/income.blade.php +++ b/resources/views/admin/statistics/income.blade.php @@ -78,7 +78,7 @@ -
@@ -111,12 +111,12 @@ var eprnstr = ""; //设置打印结束区域 var prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); - console.log(prnhtml) window.document.body.innerHTML = prnhtml; - setTimeout(() => { + + $(".print-yz").onload = function () { window.print(); window.document.body.innerHTML = bdhtml; - },500) + } } @endsection