123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- {Template header}
- <body>
- <div class="warp">
- <div class="fixed">
- <ul class="search">
- <li>
- 店铺名称:<select name="shop" class="select" style="width:90px">
- <option value="">请选择</option>
- {loop usershop() as $val}
- <option value="{$val['id']}">{$val['shopname']}</option>
- {/loop}</select>
- </li>
- <li>
- 订单类型:<select name="source" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="1">线下订单</option>
- <option value="2d">店内订单</option>
- </select>
- </li>
- <li>订单状态:<select name="state" class="select" style="width:90px">
- <option value="">请选择</option>
- {loop typeclass(29,2) as $val}
- <option value="{$val['id']}">{$val['spare']}</option>
- {/loop}
- <option value="283">null</option>
- </select>
- </li>
- <li>
- 审核状态:<select name="review" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="1">未送审</option>
- <option value="2">待审核</option>
- <option value="3">不通过</option>
- <option value="4">取消重审</option>
- <option value="5">审核通过</option>
- <option value="6">自动通过</option>
- </select>
- </li>
- <li>
- 发货仓库:<select name="warehouse" class="select" style="width:90px">
- <option value="">请选择</option>
- {loop warehouse(100) as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}</select>
- </li>
- <li>
- 快递公司:<select name="express" class="select" style="width:90px">
- <option value="">请选择</option>
- {loop express(100) as $val}
- <option value="{$val['id']}">{$val['servicename']}</option>
- {/loop}</select>
- </li>
- <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>客户名称:<input value="" name="name" type="text" style="width:160px"></li>
- <li>邮箱:<input value="" name="email" type="text" style="width:200px"></li>
- <li>电话:<input value="" name="phone" type="text" style="width:100px"></li>
- <li>更新状态:<select name="dlz" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="0">未更新</option>
- <option value="1">更新成功</option>
- <option value="2">更新失败</option>
- <option value="3">不需要更新</option>
- </select>
- </li>
- <li>打印状态:<select name="print" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="1">不可打印</option>
- <option value="2">未打印</option>
- <option value="3">已打印</option>
- </select>
- </li>
- <li>发货状态:<select name="library" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="1">未出库</option>
- <option value="2">已出库</option>
- <option value="3">已退库</option>
- </select>
- </li>
- <li>出库确认:<select name="libraryconfirm" class="select" style="width:90px">
- <option value="">请选择</option>
- <option value="1">不允许出库</option>
- <option value="2">允许出库</option>
- </select>
- </li>
- <!--
- <li>
- 订单状态:<select name="state" class="select">
- <option value="">请选择</option>
- {loop typeclass(29) as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}</select>
- </li>
- -->
- <li>选择时间条件:<select name="xztime" class="select">
- <option value="dtime">订单时间</option>
- <option value="reviewtime">审核时间</option>
- <option value="printtime">打印时间</option>
- <option value="librarytime">出库时间</option>
- </select></li>
- <li><input id="timetk" value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" style="width:130px">
- 至 <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'})" style="width:130px"></li>
- <input type="hidden" name="pl" value="" />
- <li><span>确 定</span></li>
- </ul>
- <div class="control">
- {if $power ==1}<a href="/fullorderexcel/">设置导出模板</a>{/if}
- <a href="javascript:void(0);" class="plcx">批量查询</a>
- <select name="fexcel" class="dcmb">
- <option value="">选择导出模板</option>
- {loop $fullorderexcel as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}</select>
- {if $userkz != 1}
- <select name="khexcel" class="dcmb">
- <option value="">选择导出客户信息</option>
- <option value="1">新老客户数量统计</option>
- <option value="2">老客户清单</option>
- <option value="3">新客户清单</option>
- <option value="4">老客户订单</option>
- <option value="5">新客户订单</option>
- </select>
- {/if}
- <select name="wlshop" class="dcmb dryd">
- <option value="">选择导入运单店铺</option>
- {loop usershop() as $val}
- <option value="{$val['id']}">{$val['shopname']}</option>
- {/loop}</select>
- <a href="javascript:void(0);" class="skuzh">SKU转换</a>
- <!-- <a href="/fullordertt/dqpm/">地区销售统计</a>-->
- <a href="javascript:void(0);" class="window" data-h="/customertt/newold" data-t="新老客户走势">新老客户走势</a>
- {if $error > 0}
- <a href="/fullordertt/error/" style="background-color:#F00">打印错误订单({$error})</a>
- {/if}
- {if $yc > 0}
- <a href="/fullordertt/yc/" style="background-color:#F00">异常取消订单({$yc})</a>
- {/if}
- <a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
- <a href="javascript:void(0);" class="thxz">导出退货订单</a>
- <a href="javascript:void(0);" class="pljzzd">批量禁止占单</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>
- <!--<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="lbwlxq"></div>
- <div class="bomf"></div>
- </div>
- <div style="display:none;">
- <input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
- </div>
- <script>
- var dataurl = "/fullordertt"; var operate = "/fullordertt";var excel = "/fullorderexcel/excel/";var khexcel = "/fullordertt/khdd/";
- var customon = 1;
- function custom(){
- $(".data tr").each(function() {
- $(this).find('td:eq(0)').css("width","1%");
- $(this).find('td:eq(1)').css("width","5.5%");
- $(this).find('td:eq(2)').css("width","5%");
- $(this).find('td:eq(3)').css("width","5.5%");
- $(this).find('td:eq(4)').css("width","7%");
- $(this).find('td:eq(5)').css("width","7%");
- $(this).find('td:eq(6)').css("width","9%");
- $(this).find('td:eq(7)').css("width","4.5%");
- $(this).find('td:eq(8)').css("width","5%");
- $(this).find('td:eq(9)').css("width","4%");
- $(this).find('td:eq(10)').css("width","5%");
- $(this).find('td:eq(11)').css("width","6%");
- $(this).find('td:eq(12)').css("width","11%");
- $(this).find('td:eq(13)').css("width","5.5%");
- $(this).find('td:eq(14)').css("width","6%");
- $(this).find('td:eq(15)').css("width","6%");
- });}
- $(".datatext").on('mouseover mouseout',".method",function(event) {
- if (event.type === "mouseover") {
- $(this).parent().parent("td").append('<font style="position: absolute;z-index: 1;border-radius:3px;border: 1px solid #39F;padding:0 10px;background-color: #FFF;box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 24px;">'+$(this).data("t")+'</font>');
- }else if(event.type == "mouseout"){
- $(this).parent().siblings("font").remove();
- }
- });
- $(".data").on('mouseover',".lbwlxx",function() {
- var offset = $(this).offset();
- ///得到位置
- var left1 = offset.left + 20;
- ///得到位置
- var top1 = offset.top + 20;
- $(".lbwlxq").css({'top': top1, 'left': left1});
- $(".lbwlxx").mouseover(function(){
- $(".lbwlxq").html($(this).find('font').html());
- $(".lbwlxq").show();
- });
- $(".data").on('mouseout',".lbwlxx",function() {
- $(".lbwlxq").html("");
- $(".lbwlxq").hide();
- });
- });
- $(".dcdxyz").click(function() {
- window.location.href = dataurl+"/dcdxyz?timetk="+$("input[name='timetk']").val()+"&timetj="+$("input[name='timetj']").val();
- });
- $(".thxz").click(function() {
- window.location.href = dataurl+"/thxz?timetk="+$("input[name='timetk']").val()+"&timetj="+$("input[name='timetj']").val();
- });
- $(".skuzh").click(function() {
- if($(this).find("option:selected").val() != "")
- {
- var me = $(this);
- $("#upload-file").click();
- $("#upload-file").unbind("change");
- $("#upload-file").bind("change",function(){
- uploadFileskuzh(me);
- layx.load('loadId','导入中,请稍后',{shadable:0.6});
- });
- }
- });
- function uploadFileskuzh(me){
- var file = document.getElementById("upload-file").files[0];
- var data = new FormData();
- data.append("userfile",file);
- $.ajax({
- data : data,
- type : "POST",
- url : "/fullorderexcel/skuzh",
- timeout: 1200000,
- cache : false,
- contentType : false,
- processData : false,
- dataType:"json",
- success: function(a) {
- layx.destroy('loadId');
- if (a && a.success) {
- if(a.error == 1)
- {
- layx.confirm('完成',a.msg,null,{
- buttons:[
- {
- label:'下载信息',
- callback:function(id, button, event){
- window.location.href = a.error;
- layx.destroy(id);
- }
- }
- ],dialogIcon:'success',shadable:0.6
- });
- }
- else
- {
- layx.confirm('完成',a.msg,null,{
- buttons:[
- {
- label:'下载信息',
- callback:function(id, button, event){
- window.location.href = a.error;
- layx.destroy(id);
- }
- }
- ],dialogIcon:'success',shadable:0.6
- });
- }
- } else {
- layx.confirm('完成',a.msg,null,{
- buttons:[
- {
- label:'下载信息',
- callback:function(id, button, event){
- window.location.href = a.error;
- layx.destroy(id);
- }
- }
- ],dialogIcon:'success',shadable:0.6
- });
- }
- },
- error: function (XMLHttpRequest,textStatus) {
- console.log(XMLHttpRequest); //XMLHttpRequest.responseText XMLHttpRequest.status XMLHttpRequest.readyState
- console.log(textStatus);
- $(".express").hide();
- layx.alert('错误','请求超时!请查看是否成功!',function(id,button){
- $(".search span").click();
- },{dialogIcon:'error'});
- },
- });
- }
- $(".pljzzd").click(function() {
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- if (a) {
- layx.confirm('确认','是否确认禁止占单操作?',function(id)
- {
- pljzzddata()
- layx.destroy(id);
- });
- }
- else
- {
- layx.alert('提示','请勾选需要禁止占单的内容!',null,{ dialogIcon:'warn' } );
-
- }
- });
- //批量删除
- function pljzzddata() {
- $(".express").hide();
- layx.load('loadId','处理中');
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- $.ajax({
- url: dataurl+"/pljzzd",
- data: "s=" + a,
- type: "POST",
- dataType: "json",
- success: function(c) {
- layx.destroy('loadId');
- if (c && c.success) {
- layx.alert('提示',c.msg,null,{dialogIcon:'success'});
- $.each(c.del,function(f,b){ $("#"+b).hide()});
- return false;
- } else {
- $(".ts p").html(c.msg);
- $(".ts").fadeIn();
- setTimeout('$(".ts").fadeOut()', 900);
- return false;
- }
- }
- });
- };
- </script>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- {Template footer}
|