|
@@ -38,8 +38,14 @@
|
|
|
display: flex !important;
|
|
|
}
|
|
|
</style>
|
|
|
+ <script>
|
|
|
+ function checkLeave() {
|
|
|
+ console.log("quit");
|
|
|
+ cl_closeidA4photos();
|
|
|
+ }
|
|
|
+ </script>
|
|
|
</head>
|
|
|
-<body>
|
|
|
+<body onbeforeunload="return checkLeave()">
|
|
|
<div class="wrap">
|
|
|
<!-- 头部 -->
|
|
|
<header>
|
|
@@ -277,7 +283,9 @@
|
|
|
name="legalName"
|
|
|
class="form-control"
|
|
|
type="text"
|
|
|
+ id="legalName"
|
|
|
placeholder="请输入法人代表"
|
|
|
+ readonly
|
|
|
/>
|
|
|
</div>
|
|
|
<div
|
|
@@ -296,6 +304,7 @@
|
|
|
type="text"
|
|
|
id="idcard"
|
|
|
placeholder="请输入身份证号"
|
|
|
+ readonly
|
|
|
/>
|
|
|
<span id="idcard1" style="color: red;font-size: 10px;display: none">请输入正确的身份证号</span>
|
|
|
</div>
|
|
@@ -472,12 +481,15 @@
|
|
|
</footer>
|
|
|
</div>
|
|
|
<th:block th:include="include :: footer" />
|
|
|
-
|
|
|
+<script src="/print/js/cookie.tool.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="/raio/newjs/qwebchannel.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="/raio/newjs/app.js" type="text/javascript" charset="utf-8"></script>
|
|
|
+
|
|
|
<script th:inline="javascript">
|
|
|
+
|
|
|
$(function () {
|
|
|
- $("#idcard").val([[${idcard}]])
|
|
|
+ $("#idcard").val(getCookie("cardno"))
|
|
|
+ $("#legalName").val(getCookie("cardname"))
|
|
|
})
|
|
|
var prefix = ctx + "rlzy/print"
|
|
|
$("#form-file-add").validate({
|
|
@@ -516,7 +528,8 @@
|
|
|
var creditCode = $('#creditCode').val()
|
|
|
console.log(creditCode)
|
|
|
$.operate.save( prefix+"/add", $('#form-file-add').serialize(),function(){
|
|
|
- window.location.href="/rlzy/print/secound/13"
|
|
|
+ cl_closeidA4photos();
|
|
|
+ window.location.href="/zhuxiao/index"
|
|
|
});
|
|
|
}
|
|
|
|