Parcourir la source

打印js 扫描cs

xiao-xx il y a 1 an
Parent
commit
2ba30e53ef

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
yinet-admin/src/main/resources/static/YtjCommon/css/public.css


Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
yinet-admin/src/main/resources/static/print/css/index.css


Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
yinet-admin/src/main/resources/static/print/shua/css/index.css


+ 6 - 0
yinet-admin/src/main/resources/static/rlzy/css/saomiao.css

@@ -197,6 +197,12 @@ footer {
 	font-size:24px !important;
 	height:60px;
 	}
+.btn-success,.btn-info,.btn-warning{
+	margin-top:30px;
+	width:150px;
+	font-size:24px !important;
+	height:60px;
+	}
 	.content2{
 		width:1400px;
 		margin:0 auto;

+ 25 - 9
yinet-admin/src/main/resources/templates/rlzy/print/apply.html

@@ -403,7 +403,7 @@
 
                 <div class="row mt-sm-4">
                     <div class="col-md-12 col-lg-12 col-lg-12 col-sm-12 text-center">
-                        <button class="btn btn-primary btn-lg" type="button" onclick="toSaomiao()">
+                        <button class="btn btn-success btn-lg" type="button" onclick="toSaomiao()">
                             下 一 步
                         </button>
                         <button
@@ -464,11 +464,12 @@
                             <div class="gaopaiyi" id="CameraCtl" style="width:100%;height:80%;background-color:#fff">
 
                             </div>
-                            <div class="gaopai" style="position:absolute;bottom:0 ; margin-left: 33%;">
+                            <div class="gaopai" style="position:absolute;bottom:0 ; margin-left: 5%;">
 <!--                                <button class="btn btn-lg btn-success" onclick = "cl_openidA4photos(1,1)">打开高拍仪</button>-->
 <!--                                <button class="btn btn-lg btn-warning" onclick = "cl_closeidA4photos()">关闭高拍仪</button>-->
-                                <button class="btn btn-lg btn-info" onclick="cl_takePhotos()">拍照</button>
-                                <button class="btn btn-lg btn-warning" onclick="submit()">提交</button>
+                                <button style="margin-left: 30px;" class="btn btn-lg btn-success" onclick = "goBackStep()">上一步</button>
+                                <button style="margin-left: 30px;"  class="btn btn-lg btn-info" onclick="cl_takePhotos()">拍照</button>
+                                <button style="margin-left: 30px;"  class="btn btn-lg btn-warning" onclick="submit()">提交</button>
                                 <!--<button class="btn btn-lg btn-info">拍照</button>
                                 <button class="btn btn-lg btn-success">上传</button>
                                 <button class="btn btn-lg btn-warning">重置</button><button class="btn btn-lg btn-info">拍照</button>
@@ -539,13 +540,25 @@
 
         }
     }
+
+    function goBackStep() {
+        $("#content1").show()
+        $("#content2").hide()
+        cl_closeidA4photos();
+    }
     function submit() {
         if ($.validate.form()) {
             var creditCode = $('#creditCode').val()
             console.log(creditCode)
             $.operate.save( prefix+"/add", $('#form-file-add').serialize(),function(){
                 cl_closeidA4photos();
+                alert("提交成功")
                 window.location.href="/zhuxiao/index"
+                // confirm("提交成功",function(){
+                //
+                // })
+
+
             });
         }
 
@@ -795,18 +808,21 @@
 
     function addImage(base64) {
         var base64 = "data:image/jpeg;base64," + base64;
-        if(nowfile=="yyzz"){
-            if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
+        if(nowfile==""){
+            nowfile="yyzz"
+        }
+        if(nowfile=="sqcn"){
+            if($("#chengnuoshu").val()!=""&&$("#chengnuoshu").val()!=undefined){
                 alert("请勿重复拍照")
                 return ;
             }
-            $("#baseFile").val(base64);
+            $("#chengnuoshu").val(base64);
         }else{
-            if($("#chengnuoshu").val()!=""&&$("#chengnuoshu").val()!=undefined){
+            if($("#baseFile").val()!=""&&$("#baseFile").val()!=undefined){
                 alert("请勿重复拍照")
                 return ;
             }
-            $("#chengnuoshu").val(base64);
+            $("#baseFile").val(base64);
         }
 
         var imghtml='<li ><i class="iconfont icon-guanbi" onClick="delImage(this)"></i><img src="'+base64+'" style="width:100%;height:200px;z-index:100;"/></li>'

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

@@ -333,7 +333,7 @@
 								0,     //打印纸盒选择(0:使用默认纸盒,1:使用纸盒1,2:使用纸盒2,5:使用手动纸盒)
 								0,       //打印纸张选择(0:A4,1:A3,2:A5)
 								1,      //是否彩色打印(0:黑白打印,1:彩色打印)
-								0,  //是否横向打印(0:纵向,1:横向)
+								1,  //是否横向打印(0:纵向,1:横向)
 								0     //是否需要返回实际打印结果(0:不需要,1:需要
 						);
 
@@ -406,7 +406,7 @@
 								0,     //打印纸盒选择(0:使用默认纸盒,1:使用纸盒1,2:使用纸盒2,5:使用手动纸盒)
 								0,       //打印纸张选择(0:A4,1:A3,2:A5)
 								1,      //是否彩色打印(0:黑白打印,1:彩色打印)
-								0,  //是否横向打印(0:纵向,1:横向)
+								1,  //是否横向打印(0:纵向,1:横向)
 								0     //是否需要返回实际打印结果(0:不需要,1:需要
 						);
 					}else  {