123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- {Template header}
- <body>
- <div class="warp">
- <div class="fixed">
- <div class="numberprint">
- <p><span style="padding-right:15px;font-size:22px;color:#000;">出库数量<input value="1" name="num" type="text" style="width:38px;margin-left:15px;vertical-align:middle;"> <!--出库类型<select name="cktype" class="select" style="width: 150px;height: 32px;line-height: 32px;color: #333;border: 1px #ccc solid;font-size: 16px;margin:0 15px;border-radius: 5px; vertical-align:middle;">
- <option value="">请选择</option>
- <option value="1">销售出库</option>
- <option value="2">销售美国出库</option>
- <option value="3">盘亏调整</option>
- <option value="4">其他调整出库</option>
- <option value="5">形态转换出库</option>
- </select>--><input style="vertical-align:middle;" value="" name="tmsku" id="tmsku" placeholder="点此处扫码出库" type="text"></span></p>
- </div>
- <ul class="search">
- <li>类目:<select name="category" class="select">
- <option value="">请选择</option>{loop typeclass(16) as $val}
- <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
- <li>长度:<select name="size" class="select">
- <option value="">请选择</option>{loop typeclass(14) as $val}
- <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
- <li>等级:<select name="grade" class="select">
- <option value="">请选择</option>{loop typeclass(13) 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>曲度:<select name="lowe" class="select">
- <option value="">请选择</option>{loop typeclassyc(15) as $val}
- <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
- <li>统计时间:<input id="ktime" value="{date('Y-m-d',time()-7*24*3600)}" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD'})" style="width:140px;">
- 至 <input id="jtime" value="{date('Y-m-d',time()+24*3600)}" name="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD'})" style="width:140px;"></li>
- <li>SKU:<input value="" name="sku" type="text" ></li>
- <li>仓库:<select name="warehouse" class="select">
- <option value="12">特殊仓</option>
- <option value="13">许昌现货仓</option></select></li>
- <li>供应商:<select name="purchase" class="select">
- <option value="">全部</option>
- {loop purchase(100) as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}
- </select></li>
- <li><span>确 定</span></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>sku</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>
- <input value="{date('Y-m-d h:i:s',time())}" name="tjtime" type="hidden">
- <script>
- var sysprint = 1;var systembound = 1;
- var dataurl = "/whlabel/printck/";var fdataurl = "/whlabel/printck/";
- var customon = 1;
- function custom(){
- $(".data tr").each(function() {
- $(this).find('td:eq(0)').css("width","1%");
- $(this).find('td:eq(1)').css("width","6%");
- $(this).find('td:eq(2)').css("width","10%");
- $(this).find('td:eq(3)').css("width","23%");
- $(this).find('td:eq(4)').css("width","25%");
- $(this).find('td:eq(5)').css("width","5%");
- $(this).find('td:eq(6)').css("width","12%");
- $(this).find('td:eq(7)').css("width","16%");
- });}
- $(document).ready(function() {
- $("#tmsku").focus();
- });
- $(document).keyup(function(event){
- if(event.keyCode ==13){
- layx.load('loadId','处理中');
- $(".search .number").val("");
- $(".search .waybill").val("");
- $.ajax({
- url: dataurl,
- data: "num=" + $("input[name='num']").val() + "&cktype=" + $("select[name='cktype']").children("option:selected").val() + "&tmsku=" + $("input[name='tmsku']").val(),
- type: "POST",
- dataType: "json",
- success: function(b) {
- layx.destroy('loadId');
- searchspan(1);
- $(".systemwindow").hide();
- if (b && b.success) {
- $("#music_d")[0].play();
- $("input[name='num']").val('1')
- $("#tmsku").val("");
- $("#tmsku").focus();
- } else {
- $("#tmsku").blur();
- $("#music_c")[0].play();
- $(".systemwindow div p:eq(0)").html(b.msg);
- $(".systemwindow div p:eq(1)").html("<font class='wcoutbound'>确 定</font>");
- $(".systemwindow").show();
- $("#tmsku").val("");
- }
- }
- });
- }});
- $(".systemwindow").on('click', ".wcoutbound", function() {
- $("#tmsku").focus();
- $(".systemwindow").hide();
- });
- </script>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- {Template footer}
|