lvhao пре 1 дан
родитељ
комит
70f3fff1f4
1 измењених фајлова са 12 додато и 1 уклоњено
  1. 12 1
      template/erp/beihuogl_ckdcd.html

+ 12 - 1
template/erp/beihuogl_ckdcd.html

@@ -29,6 +29,10 @@
 <input type="text" id="lrdcd" placeholder="请输入手写单的调出单号" style="width: 250px;height: 30px;"></li>
 <input type="text" id="lrdcd" placeholder="请输入手写单的调出单号" style="width: 250px;height: 30px;"></li>
 <button style="border:0px solid #fff;padding:6px 10px;margin-left: 10px;border-radius: 5px;background-color: coral;color:#fff" onclick="dcdLuRu()">录入调出信息</button>
 <button style="border:0px solid #fff;padding:6px 10px;margin-left: 10px;border-radius: 5px;background-color: coral;color:#fff" onclick="dcdLuRu()">录入调出信息</button>
 
 
+<select name="printer" class="select" style="width:220px;margin-left: 50px;height: 30px;border-radius: 5px;border:1px solid #ccc">
+    <option value="">选择打印机</option>
+    </select>
+
 </div>
 </div>
 
 
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
@@ -102,7 +106,14 @@ function dcdLuRu(){
     },"json")
     },"json")
 }
 }
 
 
-
+window.onload = function() { 
+    if(typeof $("select[name='printer']").length < 1) return;
+    setTimeout(function(){ wprinter.printer()},1000);
+    setTimeout(function(){
+        let h = $("select[name='printer']").html()
+        $("select[name='fp_printer']").html(h)
+    },1100)
+};
     
     
 </script>
 </script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>