123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- {Template header}
- <body>
- <div class="warp">
- <div class="fixed">
- <div class="numberprint">
- <ul class="searchtop" style="text-align: center;padding: 10px 0;">
- <li><select name="cz" class="select" style="font-size: 18px;">
- <option value="1">入库</option>
- <!--<option value="2">出库</option> -->
- </select></li>
- <li><input value="" name="transferout" id="transferout" placeholder="点此处扫码" type="text"></li>
- </ul>
- </div>
- <ul class="search">
- <li>
- 操作部门:<select name="transfer" class="select">
- {if $vip == 1}
- <option value="">查看所有</option>
- {/if}
- {loop $transfer as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li>颜色:<select name="color" class="select">
- <option value="">请选择</option>{loop typeclassyc(8) as $val}
- <option value="{$val['id']}">{$val['title']}</option>{/loop}</select>
- </li>
- <li>编号:<input value="" name="number" type="text"></li>
- <li>品名:<input value="" name="pm" type="text" style="width:200px"></li>
- <li>扫描时间:<input id="timetk" value="{date('Y-m-d',time()-30*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><span>确 定</span></li>
- <li class="none">
- {if $vip == 1}
- <font class="cona obdel">删除</font>
- {/if}
- </li>
- <!--<li>
- <font class="cona dowot">下载Excel</font>
- </li>
- -->
- <li>
- <font class="cona xz">下载Excel</font>
- </li>
- <li style="padding-left:25px">
- <select name="printer" class="select">
- <option value="">选择打印机</option>
- </select>
- </li>
- <li><font class="bdbbprint" style="height: 30px;line-height: 30px;padding: 0 16px;color: #fff;background-color: #2084db;margin-left: 20px;border-radius: 5px;display: block;cursor: pointer;">补打布标</font></li>
- </ul>
- <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>
- <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 = "/whlabel_bh/operate/";var fdataurl = "/whlabel_bh/operate/";
- var customon = 1;
- function custom(){
- $(".data tr").each(function() {
- $(this).find('td:eq(0)').css("width","1%");
- $(this).find('td:eq(1)').css("width","18%");
- $(this).find('td:eq(2)').css("width","25%");
- $(this).find('td:eq(3)').css("width","15%");
- $(this).find('td:eq(4)').css("width","8%");
- $(this).find('td:eq(5)').css("width","13%");
- $(this).find('td:eq(6)').css("width","19%");
- });}
- 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 = "/whlabel_bh/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: "/whlabel_bh/out",
- data: "label=" + $("input[name='transferout']").val() + "&"+f,
- type: "POST",
- dataType: "json",
- success: function(b) {
- searchspan(1);
- $(".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();
- }
- }
- });
- }
- }
- })
- $(".obdel").click(function() {
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- if (a) {
- $(".systemwindow p:eq(0)").html("确定删除已勾选的信息?");
- $(".systemwindow").show();
- }
- else
- {
- $(".ts p").html("请勾选需要删除的内容");
- $(".ts").show();
- setTimeout('$(".ts").fadeOut()', 1000);
- }
- });
-
-
- $(".systemwindow .button").click(function() {
- $(".systemwindow").hide();
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- $.ajax({
- url: "/whlabel_bh/deltransfer",
- data: "s=" + a,
- type: "POST",
- dataType: "json",
- success: function(c) {
- if (c && c.success) {
- $(".ts p").html(c.msg);
- $(".ts").fadeIn();
- setTimeout('$(".ts").fadeOut()', 900);
- $.each(c.del,function(f,b){ $("#"+b).hide()});
- return false;
- } else {
- $(".ts p").html(c.msg);
- $(".ts").fadeIn();
- setTimeout(' $(".ts").fadeOut()', 900);
- return false;
- }
- }
- });
- });
- $(".bdbbprint").click(function() {
- if ($("select[name='printer']").children("option:selected").val() == "") {
- $(".ts p").html("请选择打印机!");
- $(".ts").show();
- setTimeout('$(".ts").fadeOut()', 1000);
- } else {
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- if (!a)
- {
- $(".ts p").html("请勾选需要补打的内容!");
- $(".ts").show();
- setTimeout('$(".ts").fadeOut()', 1000);
- return;
- }
- $(".systemwindow div p:eq(0)").text("是否确定打印布标?");
- $(".systemwindow div p:eq(1)").html("<p><font id='bdbbprintks'>确 定</font><font class='esc'>取 消</font></p>");
- $(".systemwindow").show();
- }
- });
- $(".systemwindow").on('click', ".esc", function() {
- $(".systemwindow").hide();
- });
- $(".systemwindow").on('click', "#bdbbprintks", function() {
- $(".systemwindow").hide();
- layx.load('loadId','正在处理打印信息,请稍后');
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
-
- $.ajax({
- url: "/whlabel_bh/bdbb/",
- data: "s=" + a,
- type: "POST",
- dataType: "json",
- success: function(a) {
- layx.destroy('loadId');
- if (a && a.success) {
- wprinter.bhbubiao(a['rows']);
- $(".systemwindow div p:eq(0)").html("打印完成!");
- $(".systemwindow div p:eq(1)").html("<font class='printok'>确 定</font>");
- return;
- } else {
- $(".ts").hide();
- $(".systemwindow div p:eq(0)").text(a.msg);
- $(".systemwindow div p:eq(1)").html("<p><font class='esc'>确 定</font></p>");
- $(".systemwindow").show();
- }
- }
- });
- });
- </script>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- {Template footer}
|