123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- {extend name="default/base/base_seller" /}
- {block name="seller_main"}
- <form method="get" action="" target="_self">
- <table class="search-form">
- {if condition="$Request.param.state_type"}
- <input type="hidden" name="state_type" value="{$Request.param.state_type}" />
- {/if}
- <tr>
- <td> </td>
- <th>{$Think.lang.store_order_add_time}</th>
- <td class="w240">
- <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="{$Request.param.query_start_date}" />
- <label class="add-on"><i class="iconfont"></i></label> –
- <input id="query_end_date" class="text w70" type="text" name="query_end_date" value="{$Request.param.query_end_date}" />
- <label class="add-on"><i class="iconfont"></i></label>
- </td>
- <th>{$Think.lang.store_order_buyer}</th>
- <td class="w100"><input type="text" class="text w80" name="buyer_name" value="{$Request.param.buyer_name}" /></td>
- <th>{$Think.lang.store_order_order_sn}</th>
- <td class="w160"><input type="text" class="text w150" name="order_sn" value="{$Request.param.order_sn}" /></td>
- <td class="w70 tc">
- <input type="submit" class="submit" value="{$Think.lang.store_order_search}" />
- </td>
- </tr>
- </table>
- </form>
- <table class="dssc-default-table order">
- <thead>
- <tr>
- <th class="w40 tc"></th>
- <th colspan="2">{$Think.lang.store_order_goods_detail}</th>
- <th class="w200">{$Think.lang.store_order_goods_single_price}</th>
- <th class="w100">{$Think.lang.store_show_order_amount}</th>
- <th class="w200">{$Think.lang.store_order_buyer}</th>
- <th class="w200">{$Think.lang.store_order_sum}</th>
- <th class="w200">{$Think.lang.store_trading_status}</th>
- <th class="w200">{$Think.lang.store_trading_operations}</th>
- </tr>
- {notempty name="order_list"}
- <tr>
- <td class="w40 tc"><input type="checkbox" id="all" class="checkall"/></td>
- <td colspan="8"><label for="all" class="ml10">{$Think.lang.ds_select_all}</label>
- <a href="javascript:void(0);" class="dssc-btn-mini" dstype="batch" data-param="{urls:'{:url('Sellerdeliver/batch_send')}', sign:'send'}"><i></i>{$Think.lang.store_order_send}</a>
- <a href="javascript:void(0);" class="dssc-btn-mini" dstype="batch" data-param="{urls:'{:url('Sellerorder/print_order')}', sign:'print'}"><i></i>{$Think.lang.store_show_order_printorder}</a>
- {if $expresscf_kdn_if_open}
- <a href="javascript:void(0);" class="dssc-btn-mini" dstype="batch" data-param="{urls:'{:url('Sellerorder/print_eorder')}', sign:'eorder'}"><i></i>打印电子面单</a>
- {/if}
- </td>
- </tr>
- {/notempty}
- </thead>
- <?php if (is_array($order_list) and !empty($order_list)) { ?>
- <?php foreach($order_list as $order_id => $order) { ?>
- <tbody>
- <tr>
- <td colspan="20" class="sep-row"></td>
- </tr>
- <tr>
- <th class="tc"><input type="checkbox" class="checkitem tc" value="{$order_id}"/></th>
- <th colspan="20"><span class="ml10">{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}<em>{$order.order_sn}</em>
- {if $order.order_from == 2}
- <i class="iconfont"></i>
- {/if}
- </span> <span>{$Think.lang.store_order_add_time}{$Think.lang.ds_colon}<em class="goods-time">{$order.add_time|date="Y-m-d H:i:s"}</em></span>
- <span class="fr mr5"> <a href="{:url('Sellerorder/print_order',['order_id'=>$order_id])}" class="dssc-btn-mini" target="_blank" title="{$Think.lang.store_show_order_printorder}"/><i class="iconfont"></i>{$Think.lang.store_show_order_printorder}</a></span>
- {if $expresscf_kdn_if_open}
- <span class="fr mr5"> <a href="{:url('Sellerorder/print_eorder',['order_id'=>$order_id])}" class="dssc-btn-mini" target="_blank" title="打印电子面单"/><i class="iconfont"></i>打印电子面单</a></span>
- {/if}
- </th>
- </tr>
- <?php $i = 0;?>
- <?php foreach($order['goods_list'] as $k => $goods) { ?>
- <?php $i++;?>
- <tr>
- <td class="bdl"></td>
- <td class="w70"><div class="dssc-goods-thumb"><a href="{$goods.goods_url}" target="_blank"><img src="{:goods_thumb($goods,240)}"/></a></div></td>
- <td class="tl"><dl class="goods-name">
- <dt><a target="_blank" href="{$goods.goods_url}">{$goods.goods_name}</a></dt>
- <dd>
- {notempty name="$goods.goods_type_cn"}
- <span class="sale-type">{$goods.goods_type_cn}</span>
- {/notempty}
- </dd>
- </dl></td>
- <td>{$goods.goods_price}</td>
- <td>{$goods.goods_num}</td>
- <!-- S 合并TD -->
- {if ($order['goods_count'] > 1 && $k ==0) || ($order['goods_count']) == 1}
- <td class="bdl" rowspan="{$order.goods_count}"><div class="buyer">{$order.buyer_name}
- <p member_id="{$order.buyer_id}">
- {if !empty($order.extend_member.member_qq)}
- <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$order.extend_member.member_qq}&site=qq&menu=yes" title="QQ: {$order.extend_member.member_qq}"><img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$order.extend_member.member_qq}:52" style=" vertical-align: middle;"/></a>
- {/if}
- {if !empty($order.extend_member.member_ww)}
- <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={$order.extend_member.member_ww}&site=cntaobao&s=2&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$order.extend_member.member_ww}&site=cntaobao&s=2&charset=utf-8" alt="Wang Wang" style=" vertical-align: middle;" /></a>
- {/if}
- </p>
- <div class="buyer-info"> <em></em>
- <div class="con">
- <h3><i></i><span>{$Think.lang.store_order_buyer_info}</span></h3>
- <dl>
- <dt>{$Think.lang.store_order_receiver}{$Think.lang.ds_colon}</dt>
- <dd>{$order['extend_order_common']['reciver_name']}</dd>
- </dl>
- <dl>
- <dt>{$Think.lang.store_order_phone}{$Think.lang.ds_colon}</dt>
- <dd>{$order['extend_order_common']['reciver_info']['phone']}</dd>
- </dl>
- <dl>
- <dt>{$Think.lang.store_order_address}{$Think.lang.ds_colon}</dt>
- <dd>{$order['extend_order_common']['reciver_info']['address']}</dd>
- </dl>
- </div>
- </div>
- </div></td>
- <td class="bdl" rowspan="{$order.goods_count}"><p class="dssc-order-amount">{$order.order_amount}</p>
- <p class="goods-freight">
- {if $order.shipping_fee > 0}
- ({$Think.lang.store_show_order_shipping_han}{$Think.lang.store_show_order_tp_fee}{$order.shipping_fee})
- {else /}
- {$Think.lang.ds_common_shipping_free}
- {/if}
- </p>
- <p class="goods-pay" title="{$Think.lang.store_order_pay_method}{$Think.lang.ds_colon}{$order.payment_name}">{$order.payment_name}</p></td>
- <td class="bdl bdr" rowspan="{$order.goods_count}"><p>{$order.state_desc|raw}
- {if isset($order['evaluation_time'])}
- <br/>
- {$Think.lang.store_order_evaluated}
- {/if}
- </p>
- <!-- 订单查看 -->
- <p><a href="{:url('Sellerorder/show_order',['order_id'=>$order_id])}" target="_blank">{$Think.lang.store_order_view_order}</a></p>
- <!-- 物流跟踪 -->
- <p>
- {if $order.if_deliver}
- <a href="{:url('Sellerdeliver/search_deliver',['order_sn'=>$order.order_sn])}">{$Think.lang.store_order_show_deliver}</a>
- {/if}
- </p>
- </td>
- <!-- 取消订单 -->
- <td class="bdl bdr" rowspan="{$order.goods_count}">
- {if $order.if_cancel}
- <p><a href="javascript:void(0)" class="dssc-btn dssc-btn-red mt5" ds_type="dialog" uri="{:url('Sellerorder/change_state',['state_type'=>'order_cancel','order_id'=>$order.order_id,'order_sn'=>$order.order_sn])}" dialog_title="{$Think.lang.store_order_cancel_order}" dialog_id="seller_order_cancel_order" dialog_width="400" id="order{$order.order_id}_action_cancel" /><i class="iconfont"></i>{$Think.lang.store_order_cancel_order}</a></p>
- {/if}
- <!-- 修改运费 -->
- {if $order.if_modify_price}
- <p><a href="javascript:void(0)" class="dssc-btn-mini dssc-btn-orange mt10" uri="{:url('Sellerorder/change_state',['state_type'=>'modify_price','order_sn'=>$order.order_sn,'order_id'=>$order.order_id])}" dialog_width="480" dialog_title="{$Think.lang.store_order_modify_price}" ds_type="dialog" dialog_id="seller_order_adjust_fee" id="order{$order.order_id}_action_adjust_fee" /><i class="iconfont"></i>{$Think.lang.modify_freight}</a></p>
- {/if}
- <!-- 修改价格 -->
- {if $order.if_spay_price}
- <p><a href="javascript:void(0)" class="dssc-btn-mini dssc-btn-green mt10" uri="{:url('Sellerorder/change_state',['state_type'=>'spay_price','order_sn'=>$order.order_sn,'order_id'=>$order.order_id])}" dialog_width="480" dialog_title="{$Think.lang.store_order_modify_price}" ds_type="dialog" dialog_id="seller_order_adjust_fee" id="order{$order.order_id}_action_adjust_fee" /><i class="iconfont"></i>{$Think.lang.store_order_modify_price}</a></p>
- {/if}
- <!-- 发货 -->
- {if $order.if_send}
- {if !isset($order.pintuanorder_state) || $order.pintuanorder_state==2}
- <p><a class="dssc-btn dssc-btn-green mt10" href="{:url('Sellerdeliver/send',['order_id'=>$order.order_id])}"/><i class="iconfont"></i>{$Think.lang.store_order_send}</a></p>
- {/if}
- {/if}
- {if isset($order.pintuanorder_state)}
- <p>{$order.pintuanorder_state_text}</p>
- {/if}
- <!-- 锁定 -->
- {if $order.if_lock}
- <p>{$Think.lang.refund_return_goods}</p>
- {/if}
- </td>
- {/if}
- <!-- E 合并TD -->
- </tr>
- <!-- S 赠品列表 -->
- {if !empty($order['zengpin_list']) && $i == count($order['goods_list'])}
- <tr>
- <td class="bdl"></td>
- <td colspan="4" class="tl"><div class="dssc-goods-gift">{$Think.lang.store_order_gifts}:
- <ul>
- {foreach name="$order.zengpin_list" item="zengpin_info" }
- <li>
- <a title="{$Think.lang.store_order_gifts}:{$zengpin_info.goods_name} * {$zengpin_info.goods_num}" href="{$zengpin_info.goods_url}" target="_blank"><img src="{:goods_thumb($zengpin_info,240)}" /></a>
- </li>
- </ul>
- {/foreach}
- </div></td>
- </tr>
- {/if}
- <!-- E 赠品列表 -->
-
- <?php }?>
- <?php } } else { ?>
- <tr>
- <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont"></i><span>{$Think.lang.no_record}</span></div></td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- {notempty name="order_list"}
- <tr>
- <td colspan="20">{$show_page|raw}</td>
- </tr>
- {/notempty}
- </tfoot>
- </table>
- <script type="text/javascript">
- $(function () {
- $('a[dstype="batch"]').click(function () {
- if ($('.checkitem:checked').length == 0) { //没有选择
- layer.alert('{$Think.lang.select_record_want_operate}');
- return false;
- }
- var _items = '';
- $('.checkitem:checked').each(function () {
- _items += $(this).val() + ',';
- });
- _items = _items.substr(0, (_items.length - 1));
- var data_str = '';
- eval('data_str = ' + $(this).attr('data-param'));
- if (data_str.sign == 'send') {
- ajax_form('ajax_send', '{$Think.lang.store_order_send}', data_str.urls + '?order_id=' + _items + '&inajax=1', '480');
- } else if (data_str.sign == 'print') {
- window.open(data_str.urls + '?order_id=' + _items);
- } else if (data_str.sign == 'eorder') {
- window.open(data_str.urls + '?order_id=' + _items);
- }
- });
-
- $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
- $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
- $('.checkall_s').click(function () {
- var if_check = $(this).prop('checked');
- $('.checkitem').each(function () {
- if (!this.disabled)
- {
- $(this).prop('checked', if_check);
- }
- });
- $('.checkall_s').prop('checked', if_check);
- });
- $('#skip_off').click(function () {
- url = location.href.replace(/&skip_off=\d*/g, '');
- window.location.href = url + '&skip_off=' + ($('#skip_off').prop('checked') ? '1' : '0');
- });
- });
- </script>
- {/block}
|