123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- {Template header}
- <body>
- <div class="warp">
- <div class="fixed">
- <div class="numberprint">
- <ul class="searchtop search" style="text-align: center;padding: 10px 0;margin-top:80px;">
- <li>
- <select name="transfer" class="select" style="height: 56px;font-size: 20px;text-align: center;">
- {if $vip == 1}
- <option value="">查看所有</option>
- {/if}
- {loop $transfer as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li style="display: none;"><select name="cz" class="select" style="font-size: 18px;">
- <option value="1">入库</option>
- </select></li>
- <li style="height: 56px;line-height: 56px;padding: 0 88px;font-size: 26px;color: #fff;background-color: #2084db;margin-right: 50px;border-radius: 5px; display: inline-block;;cursor: pointer;">请扫码入库</li>
- <li style="height: 56px;line-height: 56px;"><input value="" name="transferout" id="transferout" placeholder="点此处扫码" type="text" style="width:500px;height: 50px;line-height: 50px;"></li>
- <li style="display: none;">扫描时间:<input id="timetk" value="{date('Y-m-d',time()-1*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
- 至 <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
- <li style="display: none;"><span>确 定</span></li>
- </ul>
- </div>
- <table class="datatitle data" border="0" style="border-collapse:collapse;">
- <tr>
- <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
- <td>编号</td>
- <td>品名</td>
- <td>备注</td>
- <td>打印时间</td>
- <td>操作时间</td>
- </tr>
- </table>
- </div>
- <table class="datatext data" border="0" style="border-collapse:collapse;">
- </table>
- <div class="bomf"></div>
- </div>
- <div class="print none"></div>
- <div class="ts"><p class="tsn"></p></div>
- <div class="systemwindow">
- <div>
- <p></p>
- <p><font class="button">确 定</font><font class="esc">取 消</font></p>
- </div>
- </div>
- <div class="boundtj">
- <div>
- <p></p>
- <p><font class="button">确 定</font><font class="esc">取 消</font></p>
- </div>
- </div>
- <div class="tyrows"><div><p></p><p></p></div></div>
- <audio id="music_d">
- <source src="{$theme}music/d.mp3" type="audio/mpeg">
- </audio>
- <audio id="music_c">
- <source src="{$theme}music/c.mp3" type="audio/mpeg">
- </audio>
- <audio id="music_print">
- <source src="{$theme}music/print.mp3" type="audio/mpeg">
- </audio>
- <audio id="music_print_error">
- <source src="{$theme}music/print_error.mp3" type="audio/mpeg">
- </audio>
- <audio id="music_print_ok">
- <source src="{$theme}music/print_ok.mp3" type="audio/mpeg">
- </audio>
- <script>
- var sysprint = 1;var transfer = 1;
- var dataurl = "/transfer/rk/";var fdataurl = "/transfer/rk/";
- window.onload = function() {
- if(typeof $("select[name='printer']").length < 1) return;
- setTimeout(function(){ wprinter.printer()},1000);};
- $(document).ready(function() {
- $("#transferout").focus();
- });
- $(".xz").click(function() {
- var f = "";
- $(".select").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
- });
- $("input:text").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- $("input:hidden").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- window.location.href = "/transfer/excel/?fexcel=1&"+f;
- });
- $(document).keyup(function(event) {
- if (event.keyCode == 13) {
- if (typeof transfer != "undefined") {
- var f = "";
- $(".select").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
- });
- $("input:text").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- $("input:hidden").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- $(".search .number").val("");
- $(".search .waybill").val("");
- $.ajax({
- url: "/transfer/out",
- data: "label=" + $("input[name='transferout']").val() + "&"+f,
- type: "POST",
- dataType: "json",
- success: function(b) {
- $(".systemwindow").hide();
- if (b && b.success) {
- $("#music_d")[0].play();
-
- $("#transferout").val("");
- $("#transferout").focus();
- } else {
- $("#wigsout").blur();
- $("#music_c")[0].play();
- $(".express div p:eq(0)").html(b.msg);
- $(".express div p:eq(1)").html("<font class='esc'>确 定</font>");
- $(".express").show();
- $("#transferout").val("");
- $("#transferout").focus();
- }
- }
- });
- }
- }
- })
- </script>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- {Template footer}
|