|
@@ -532,13 +532,15 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div class="content4">
|
|
|
- <input id="printFilePath" value="" type="hidden">
|
|
|
- <a style=" font-size: 25px; font-weight: bolder;">请打印行政许可告知承诺书</a>
|
|
|
- <button class="btn btn-lg btn-success" type="button" onclick="printCns()" >
|
|
|
+ <div class="content4" id="content4" style="display:none">
|
|
|
+ <input id="printFilePath" value="" type="hidden">
|
|
|
+ <div> <a style=" font-size: 25px; font-weight: bolder; margin-left: 41%; margin-top: 5%;">请打印行政许可告知承诺书</a></div>
|
|
|
+ <div>
|
|
|
+ <button style="width:350px; margin-left: 40%; margin-top: 5%;" class="btn btn-lg btn-success" type="button" onclick="printCns()" >
|
|
|
打印行政许可告知承诺书
|
|
|
</button>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
</article>
|
|
@@ -598,7 +600,6 @@
|
|
|
var Url = getRootPath_web();
|
|
|
console.log(Url+$("#printFilePath").val())
|
|
|
Toast('', '打印指定网页文件');
|
|
|
- Toast('打印指定网页文件.....');
|
|
|
module_printer.print_webpage2(
|
|
|
Url+$("#printFilePath").val(),
|
|
|
1, //打印数量
|
|
@@ -611,6 +612,19 @@
|
|
|
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ function getRootPath_web() {
|
|
|
+ //获取当前网址
|
|
|
+ var curWwwPath = window.document.location.href;
|
|
|
+ //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp
|
|
|
+ var pathName = window.document.location.pathname;
|
|
|
+ var pos = curWwwPath.indexOf(pathName);
|
|
|
+ //获取主机地址,如: http://localhost:8083
|
|
|
+ var localhostPaht = curWwwPath.substring(0, pos);
|
|
|
+ //获取带"/"的项目名,如:/uimcardprj
|
|
|
+ // var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
|
|
|
+ return (localhostPaht);
|
|
|
+ }
|
|
|
function toQianming() {
|
|
|
$("#content1").hide()
|
|
|
$("#content3").show()
|
|
@@ -640,6 +654,7 @@
|
|
|
$.ajax({
|
|
|
url: prefix+"/getOcrJson",
|
|
|
type:"post",
|
|
|
+ // data: {"fileBase64":$("#baseFile").val()},
|
|
|
data: {"fileBase64":"/profile/upload/aaaa.jpg"},
|
|
|
beforeSend:function(){
|
|
|
cl_closeidA4photos();
|
|
@@ -686,24 +701,26 @@
|
|
|
dataType: 'json',
|
|
|
success: function (result) {
|
|
|
$('#qianming').val(result.fileName)
|
|
|
-
|
|
|
-
|
|
|
- var creditCode = $('#creditCode').val()
|
|
|
- console.log(creditCode)
|
|
|
- $.ajax({
|
|
|
- url: prefix + "/add",
|
|
|
- method: 'post',
|
|
|
- data: $('#form-file-add').serialize(),
|
|
|
- success: function (res) {
|
|
|
- if(res.code=="0"){
|
|
|
- $("#printFilePath").val(res.data)
|
|
|
- alert("提交成功")
|
|
|
-
|
|
|
- }else {
|
|
|
- alert(res.msg)
|
|
|
+ if($("#qianming").val().indexOf("/profile")!=-1){
|
|
|
+ var creditCode = $('#creditCode').val()
|
|
|
+ console.log(creditCode)
|
|
|
+ $.ajax({
|
|
|
+ url: prefix + "/add",
|
|
|
+ method: 'post',
|
|
|
+ data: $('#form-file-add').serialize(),
|
|
|
+ success: function (res) {
|
|
|
+ if(res.code=="0"){
|
|
|
+ $("#printFilePath").val(res.data)
|
|
|
+ alert("提交成功")
|
|
|
+ $("#content3").hide()
|
|
|
+ $("#content4").show()
|
|
|
+
|
|
|
+ }else {
|
|
|
+ alert(res.msg)
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|