|
@@ -0,0 +1,302 @@
|
|
|
+{Template header}
|
|
|
+<body>
|
|
|
+<div class="warp">
|
|
|
+<div class="fixed">
|
|
|
+<ul class="search">
|
|
|
+<li>订单号:<input value="" name="orderinfo" type="text" ></li>
|
|
|
+<li>编号:<input value="" name="number" type="text" ></li>
|
|
|
+<li>运单号:<input value="" name="waybill" type="text" ></li>
|
|
|
+<li>出库状态:<select name="library" class="select">
|
|
|
+<option value="1">未出库</option>
|
|
|
+<option value="2">已出库</option>
|
|
|
+</select></li>
|
|
|
+<li>快递公司:<select name="express" class="select">
|
|
|
+<option value="">请选择</option>
|
|
|
+{loop express(100) as $val}
|
|
|
+<option value="{$val['id']}">{$val['servicename']}</option>
|
|
|
+{/loop}</select>
|
|
|
+</li>
|
|
|
+<li>
|
|
|
+店铺名称:<select name="shop" class="select">
|
|
|
+<option value="">请选择</option>
|
|
|
+{loop usershop() as $val}
|
|
|
+<option value="{$val['id']}">{$val['shopname']}</option>
|
|
|
+{/loop}</select>
|
|
|
+</li>
|
|
|
+<li>
|
|
|
+仓库名称:<select name="type" class="select">
|
|
|
+<option value="">请选择</option>
|
|
|
+{loop $warehouse as $val}
|
|
|
+<option value="{$val['id']}">{$val['title']}</option>
|
|
|
+{/loop}</select>
|
|
|
+</li>
|
|
|
+<li>
|
|
|
+ 是否加急:<select name="is_jiaji" class="select">
|
|
|
+ <option value="-1">请选择</option>
|
|
|
+ <option value="1">是</option>
|
|
|
+ <option value="0">否</option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+<li>
|
|
|
+<li>搜索品名:<input value="" name="so" type="text" style="width:250px"></li>
|
|
|
+<li>出库时间:<input id="timetk" value="{date('Y-m-d',time()-30*24*3600)} 19:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly>
|
|
|
+至 <input id="timetj" value="{date('Y-m-d',time())} 19:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly></li>
|
|
|
+<li>
|
|
|
+称重端口:<select name="com" class="select">
|
|
|
+<option value="COM3">COM3</option>
|
|
|
+<option value="COM4">COM4</option>
|
|
|
+<option value="COM1">COM1</option>
|
|
|
+<option value="COM2">COM2</option>
|
|
|
+<option value="COM5">COM5</option>
|
|
|
+<option value="COM6">COM6</option>
|
|
|
+<option value="COM7">COM7</option>
|
|
|
+<option value="COM8">COM8</option>
|
|
|
+<option value="COM9">COM9</option>
|
|
|
+<option value="COM10">COM10</option>
|
|
|
+<option value="COM11">COM11</option>
|
|
|
+</select>
|
|
|
+</li>
|
|
|
+<li><span>确 定</span></li>
|
|
|
+</ul>
|
|
|
+<div class="control">
|
|
|
+<b>扫描运单号:<input value="" name="orderinfo" id="orderinfo" type="text" ></b>
|
|
|
+<b>重量:
|
|
|
+<input name="weight" id="weight" type="text" value="" readonly>
|
|
|
+</b>
|
|
|
+
|
|
|
+<input name="hidden" value="" id="hidden" type="hidden">
|
|
|
+<a href="javascript:void(0);" class="excel">导出Excel</a>
|
|
|
+<a href="javascript:void(0);" class="exceltwo">导出Excel(料品多行)</a>
|
|
|
+<a href="javascript:void(0);" class="cpexcel">导出产品详情</a>
|
|
|
+</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>
|
|
|
+<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="tyrows tyrowsout"><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>
|
|
|
+<span id="job" class="none"></span>
|
|
|
+<span id="site" class="none"></span>
|
|
|
+<script>
|
|
|
+var sysprint = 1;var systemfout = 1;
|
|
|
+var dataurl = "/systemfout/";var fdataurl = "/systemfout/";
|
|
|
+var customon = 1;
|
|
|
+function custom(){
|
|
|
+$(".data tr").each(function() {
|
|
|
+$(this).find('td:eq(0)').css("width","1%");
|
|
|
+$(this).find('td:eq(1)').css("width","9%");
|
|
|
+$(this).find('td:eq(2)').css("width","9%");
|
|
|
+$(this).find('td:eq(3)').css("width","9%");
|
|
|
+$(this).find('td:eq(4)').css("width","12%");
|
|
|
+$(this).find('td:eq(5)').css("width","9%");
|
|
|
+$(this).find('td:eq(6)').css("width","9%");
|
|
|
+$(this).find('td:eq(7)').css("width","6.5%");
|
|
|
+$(this).find('td:eq(8)').css("width","6.5%");
|
|
|
+$(this).find('td:eq(9)').css("width","9%");
|
|
|
+$(this).find('td:eq(10)').css("width","20%");
|
|
|
+$(this).find('td:eq(10)').css("font-size","12px");
|
|
|
+});}
|
|
|
+$(document).ready(function() {
|
|
|
+ $("#orderinfo").focus();
|
|
|
+// window.parent.parent.com();
|
|
|
+// });
|
|
|
+// $("select[name='com']").change(function() {
|
|
|
+// window.parent.parent.com();
|
|
|
+
|
|
|
+
|
|
|
+});
|
|
|
+window.onload = function() {
|
|
|
+// if(typeof $("select[name='printer']").length < 1) return;
|
|
|
+// setTimeout(function(){ wprinter.printer()},1000);
|
|
|
+};
|
|
|
+$(document).keyup(function(event) {
|
|
|
+ if (event.keyCode == 13) {
|
|
|
+ $("#orderinfo").blur();
|
|
|
+ $(".systemwindow div p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> 处理中,请稍后...");
|
|
|
+ $(".systemwindow div p:eq(1)").html("");
|
|
|
+ $(".systemwindow").show();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url: "/systemfout/fout/",
|
|
|
+ data: "order=" + $("#orderinfo").val() + "&weight=" + $("#weight").val(),
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ success: function(a) {
|
|
|
+ $(".systemwindow").hide();
|
|
|
+ if (a && a.success) {
|
|
|
+ if (typeof a.yd != "undefined") {
|
|
|
+ $("#orderinfo").blur();
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ $("#music_print")[0].play();
|
|
|
+ $(".tyrowsout p:eq(0)").html(
|
|
|
+ "<i class='fa fa-2x fa-cog fa-spin'></i> 此运单已过期,系统打印处理中,请勿关闭!"
|
|
|
+ );
|
|
|
+ $(".tyrowsout p:eq(1)").html("");
|
|
|
+ $(".tyrowsout").show();
|
|
|
+ $.ajax({
|
|
|
+ url: "/systemfout/fedexhz/",
|
|
|
+ data: "id=" + a.id + "&name=" + a.name + "&express=" + a
|
|
|
+ .express,
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ success: function(b) {
|
|
|
+ $(".systemwindow").hide();
|
|
|
+ if (b && b.success) {
|
|
|
+ wprinter.pdf(b.rows)
|
|
|
+ site(1, 1, b.rows['text']['number'], 2, 0);
|
|
|
+ } else {
|
|
|
+ $(".tyrows").hide();
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ wprinter.sound(b.msg);
|
|
|
+ $(".systemwindow div p:eq(0)").html(b.msg);
|
|
|
+ $(".systemwindow div p:eq(1)").html(
|
|
|
+ "<font class='wcsj'>确 定</font>");
|
|
|
+ $(".systemwindow").show();
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ $("#orderinfo").focus();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $("#music_d")[0].play();
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ $("#weight").val("");
|
|
|
+ $(".search span").click();
|
|
|
+ $("#orderinfo").focus();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (typeof a.outnumber != "undefined") {
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ layx.confirm('警告', a.msg, null, {
|
|
|
+ buttons: [{
|
|
|
+ label: '确认出库',
|
|
|
+ callback: function(id, button, event) {
|
|
|
+ $.ajax({
|
|
|
+ url: "/systemfout/outnumber/",
|
|
|
+ data: "outnumber=" + a
|
|
|
+ .outnumber + "&post=" +
|
|
|
+ a.post +
|
|
|
+ "&fullorder_name=" + a
|
|
|
+ .fullorder_name,
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ success: function(a) {
|
|
|
+ $(".systemwindow")
|
|
|
+ .hide();
|
|
|
+ $("#orderinfo")
|
|
|
+ .focus();
|
|
|
+ if (a && a
|
|
|
+ .success) {}
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '取消出库',
|
|
|
+ callback: function(id, button, event) {
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+
|
|
|
+ } else {
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ wprinter.sound(a.msg);
|
|
|
+ $(".systemwindow div p:eq(0)").html(a.msg);
|
|
|
+ $(".systemwindow div p:eq(1)").html("<font class='wcsj'>确 定</font>");
|
|
|
+ $(".systemwindow").prepend(
|
|
|
+ "<p class='gth' style='font-size: 200px;color: #F00;font-weight: bolder;text-align: center;'>X</p>"
|
|
|
+ );
|
|
|
+ $(".systemwindow").show();
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ //$("#orderinfo").focus();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+})
|
|
|
+
|
|
|
+$(".exceltwo").click(function() {
|
|
|
+ var f = "";
|
|
|
+ $(".select").each(function() {
|
|
|
+ f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
|
|
|
+ });
|
|
|
+ $("input:text").each(function() {
|
|
|
+ var text = $(this).val().replace(/&/g,"%26");
|
|
|
+ text = text.replace(/#/g,"%23");
|
|
|
+ text = text.replace(/\+/g,"%2B");
|
|
|
+ f = f + $(this).attr("name") + "=" + text + "&";
|
|
|
+ });
|
|
|
+ $("input:hidden").each(function() {
|
|
|
+ f = f + $(this).attr("name") + "=" + $(this).val() + "&";
|
|
|
+ });
|
|
|
+ var t = "";
|
|
|
+ var i = 0;
|
|
|
+ $(".datatitle td").each(function() {
|
|
|
+ if (i > 0) {
|
|
|
+ t = t + "<td>" + $(this).text() + "</td>";
|
|
|
+ }
|
|
|
+ i++;
|
|
|
+ });
|
|
|
+ var a = "";
|
|
|
+ $(".datatext input[name='check']:checked").each(function() {
|
|
|
+ a = a + $(this).val() + ",";
|
|
|
+ });
|
|
|
+ f = f + "excel=1&a=" + a + "&t=" + t;
|
|
|
+ window.location.href = "/systemfoutfz/exceltwo?fexcel=" + $("select[name=fexcel]").find("option:selected").val() + "&" + f;
|
|
|
+ $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
|
|
|
+});
|
|
|
+
|
|
|
+</script>
|
|
|
+<script type="text/javascript" src="{$theme}js/laydate.js"></script>
|
|
|
+
|
|
|
+{Template footer}
|