123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- {Template header}
- <body>
- <div class="warp">
- <div class="fixed">
- <ul class="search">
- <li>店铺名称:<select name="shop" class="select">
- <option value="">请选择</option>
- {loop usershop() as $val}
- <option value="{$val['id']}">{$val['shopname']}</option>
- {/loop}</select></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'})" 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>
- <li><span>确 定</span></li><li><a href="javascript:void(0);" class="repeat" style="color: #fff;background-color: #2084db;">合并订单</a></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>
- <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>
- <script>
- $(document).ready(function() {
- $("#timetk").calendar();$("#timetj").calendar();
- });
- var dataurl = "/fullordertt/repeat/";var fdataurl = "/fullordertt/";
- var editurl = "/fullordertt/edit/";var operate = "/fullordertt/";
- var editdj = 3;
- var editt = "筛选订单";
- 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%");
- $(this).find('td:eq(2)').css("width","6%");
- $(this).find('td:eq(3)').css("width","6%");
- $(this).find('td:eq(4)').css("width","6%");
- $(this).find('td:eq(5)').css("width","9%");
- $(this).find('td:eq(6)').css("width","9%");
- $(this).find('td:eq(7)').css("width","4%");
- $(this).find('td:eq(8)').css("width","4%");
- $(this).find('td:eq(9)').css("width","12%");
- $(this).find('td:eq(10)').css("width","11%");
- $(this).find('td:eq(11)').css("width","4%");
- });}
- $(".repeat").click(function() {
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- if (a) {
- layx.confirm('注意','是否确定合并选择的订单?',function(id){
- layx.load('loadId','数据加载中');
- merge();
- layx.destroy(id);
- });
- }
- else
- {
- $(".ts p").html("请勾选需要合并的内容");
- $(".ts").show();
- setTimeout('$(".ts").fadeOut()', 1000);
- }
- });
- //批量删除
- function merge() {
- $(".express").hide();
- var a = "";
- $(".datatext input[name='check']:checked").each(function() {
- a = a + $(this).val()+",";
- });
- $.ajax({
- url: operate+"merge",
- data: "s=" + a,
- type: "POST",
- dataType: "json",
- success: function(c) {
- if (c && c.success) {
- layx.destroy('loadId');
- if(c.d)
- {
- for (i = 0; i < c.d.length; i++)
- {
- $(".datatext #"+c.d[i]).find("td:eq(11)").text("被合并");
- }
- $(".datatext #"+c.b).find("td:eq(11)").text("已合并");
- }
- $(".ts p").html(c.msg);
- $(".ts").fadeIn();
- setTimeout('$(".ts").fadeOut()', 800);
- } 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}
|