ajaxzslist.html 5.14 KB

<link type="text/css" rel="stylesheet" href="__PUBLIC__/js/layer/laydate/need/laydate.css">
<link type="text/css" rel="stylesheet" href="__PUBLIC__/js/layer/laydate/skins/molv/laydate.css" id="LayDateSkin">
<table class="ncsc-default-table order">
  <thead>
    <tr>
      <th class="w10"></th>
      <th colspan="2">商品</th>
      <th class="w90">单价(元)</th>
      <th class="w40">数量</th>
	  <th class="w90">商品操作</th>
	  <th class="w90">交易状态</th>
      <th class="w90">买家</th>
      <th class="w90">订单金额</th>
      <th class="w100">交易操作</th>
    </tr>
  </thead>
  <if condition="empty($orderList) eq true">
  	<tbody>
    	<tr data-id="0">
	        <td class="no-data" align="center" axis="col0" colspan="50">
	        	<i class="fa fa-exclamation-circle"></i>没有符合条件的记录
	        </td>
	     </tr>
      </tbody>
  <else/> 
  <volist name="orderList" id="list">  
  <tbody>
    <tr>
      <td colspan="20" class="sep-row"></td>
    </tr>
    <tr  >
      <th colspan="20">
      		<span class="ml10">礼包编号:<em>{$list.order_sn}</em></span> <span>下单时间:<em class="goods-time">{$list.add_time|date='Y-m-d H:i',###}</em></span>
		  <if condition="$list.erp_givetime neq 0">
		  <span>POS调单时间:<em class="goods-time">{$list.erp_givetime|date='Y-m-d H:i',###}</em></span>
		  </if>

		  <span>门店:<em class="goods-time">{$list.pickup_name}({$list.pickup_no})</em></span>
      		<span class="fr mr10"><a href="{:U('Order/order_print',array('order_id'=>$list['order_id'],'template'=>'picking'))}" target="_blank" class="ncbtn-mini" title="打印配货单"><i class="icon-print"></i>打印配货单</a></span>
       </th>
    </tr>


    <volist name="$goodsArr[$list['order_id']]" id="good" key='k'>
    <if condition="$k eq 1">
     	<!--  第一行 -->
     	<tr>
	      <td class="bdl"></td>
	      <td class="w40">
	      <div class="ncsc-goods-thumb"><a href="{:U('mobile/Goods/goodsInfo',array('stoid'=>$good['store_id'],'id'=>$good['goods_id']))}" target="_blank"><img src="{:getImg($good.original_img,'__PUBLIC__/images/not_adv.jpg',0,1)}"  ></a></div></td>
	      <td class="tl">
	      	<dl class="goods-name">
	          <dt><a target="_blank" href="{:U('mobile/Goods/goodsInfo',array('stoid'=>$good['store_id'],'id'=>$good['goods_id']))}">名称:{$good['goods_name']}<br>编号:{$good['goods_sn']}</a></dt>
	        </dl>
	      </td>
	      <td><p>{$good['goods_price']}</p></td>
	      <td>{$good['goods_num']}</td>
		  <td>


		  </td>
	      <!-- S 合并TD -->
			<td class="bdl" rowspan="{$goodsArr[$list['order_id']]|count}"><p>{$list['order_status_desc']} </p>
				<!-- 物流跟踪 -->
				<p></p>
			</td>

	      <td class="bdl" rowspan="{$goodsArr[$list['order_id']]|count}">
	      	<div class="buyer">{$list.consignee} <p member_id="5"></p>
	          <div class="buyer-info"> <em></em>
	            <div class="con">
	              <h3><i></i><span>联系信息 </span></h3>
	              <dl>
	                <dt>姓名:</dt>
	                <dd>{$list.consignee}</dd>
	              </dl>
	              <dl>
	                <dt>电话:</dt>
	                <dd>{$list.mobile}</dd>
	              </dl>
	              <dl>
	                <dt>地址:</dt>
	                <dd>{$list.address}</dd>
	              </dl>
	            </div>
	          </div>
	        </div>
	      </td>
	      <td class="bdl bdr" rowspan="{$goodsArr[$list['order_id']]|count}">
	      	<p class="ncsc-order-amount">{$list.total_amount}</p>
	        <p class="goods-freight"><if condition="($list.shipping_price lt 0.01)">(免运费)<else />邮费:{$list.shipping_price}</if></p>
	      
	      </td>

	      <!-- 取消订单 -->
	      <td class="nscs-table-handle" rowspan="{$goodsArr[$list['order_id']]|count}">
	      	<span><a href="{:U('giftuser/detail',array('order_id'=>$list['order_id'],'oldurl'=>$oldurl))}" class="ncbtn-mint"><i class="icon-search"></i><p>详情</p></a></span>

	        </td>
	    </tr>
    <else />
    	<!--  非第一行 -->
    	<tr>
	      <td class="bdl"></td>
	      <td class="w70">
	      	<div class="ncsc-goods-thumb"><a href="{:U('mobile/Goods/goodsInfo',array('stoid'=>$good['store_id'],'id'=>$good['goods_id']))}" target="_blank"><img src="{:getimg($good.original_img,NOIMG,0,1)}" ></a></div>
	      </td>
	      <td class="tl">
	      	<dl class="goods-name">
	          <dt><a target="_blank" href="{:U('mobile/Goods/goodsInfo',array('stoid'=>$good['store_id'],'id'=>$good['goods_id']))}">{$good['goods_name']}<br>编号:{$good['goods_sn']}</a></dt>
	        </dl>
	      </td>
	      <td><p>{$good['goods_price']}</p></td>
	      <td>{$good['goods_num']}</td>
			<td>


			</td>
	     </tr>
    </if>
    </volist>
   </tbody> 
   </volist>

  </if>
</table>
{$page}

 <script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function(){
            $(this).toggleClass('trSelected');
        });
        $('#order_count').empty().html("{$pager->totalRows}");
    });




</script>