index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <form method="get" action="" target="_self">
  4. <table class="search-form">
  5. {if condition="$Request.param.state_type"}
  6. <input type="hidden" name="state_type" value="{$Request.param.state_type}" />
  7. {/if}
  8. <tr>
  9. <td>&nbsp;</td>
  10. <th>{$Think.lang.store_order_add_time}</th>
  11. <td class="w240">
  12. <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="{$Request.param.query_start_date}" />
  13. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
  14. <input id="query_end_date" class="text w70" type="text" name="query_end_date" value="{$Request.param.query_end_date}" />
  15. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  16. </td>
  17. <th>{$Think.lang.store_order_buyer}</th>
  18. <td class="w100"><input type="text" class="text w80" name="buyer_name" value="{$Request.param.buyer_name}" /></td>
  19. <th>{$Think.lang.store_order_order_sn}</th>
  20. <td class="w160"><input type="text" class="text w150" name="order_sn" value="{$Request.param.order_sn}" /></td>
  21. <td class="w70 tc">
  22. <input type="submit" class="submit" value="{$Think.lang.store_order_search}" />
  23. </td>
  24. </tr>
  25. </table>
  26. </form>
  27. <table class="dssc-default-table order">
  28. <thead>
  29. <tr>
  30. <th class="w40 tc"></th>
  31. <th colspan="2">{$Think.lang.store_order_goods_detail}</th>
  32. <th class="w200">{$Think.lang.store_order_goods_single_price}</th>
  33. <th class="w100">{$Think.lang.store_show_order_amount}</th>
  34. <th class="w200">{$Think.lang.store_order_buyer}</th>
  35. <th class="w200">{$Think.lang.store_order_sum}</th>
  36. <th class="w200">{$Think.lang.store_trading_status}</th>
  37. <th class="w200">{$Think.lang.store_trading_operations}</th>
  38. </tr>
  39. {notempty name="order_list"}
  40. <tr>
  41. <td class="w40 tc"><input type="checkbox" id="all" class="checkall"/></td>
  42. <td colspan="8"><label for="all" class="ml10">{$Think.lang.ds_select_all}</label>
  43. <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>
  44. <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>
  45. {if $expresscf_kdn_if_open}
  46. <a href="javascript:void(0);" class="dssc-btn-mini" dstype="batch" data-param="{urls:'{:url('Sellerorder/print_eorder')}', sign:'eorder'}"><i></i>打印电子面单</a>
  47. {/if}
  48. </td>
  49. </tr>
  50. {/notempty}
  51. </thead>
  52. <?php if (is_array($order_list) and !empty($order_list)) { ?>
  53. <?php foreach($order_list as $order_id => $order) { ?>
  54. <tbody>
  55. <tr>
  56. <td colspan="20" class="sep-row"></td>
  57. </tr>
  58. <tr>
  59. <th class="tc"><input type="checkbox" class="checkitem tc" value="{$order_id}"/></th>
  60. <th colspan="20"><span class="ml10">{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}<em>{$order.order_sn}</em>
  61. {if $order.order_from == 2}
  62. <i class="iconfont">&#xe60e;</i>
  63. {/if}
  64. </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>
  65. <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">&#xe7ca;</i>{$Think.lang.store_show_order_printorder}</a></span>
  66. {if $expresscf_kdn_if_open}
  67. <span class="fr mr5"> <a href="{:url('Sellerorder/print_eorder',['order_id'=>$order_id])}" class="dssc-btn-mini" target="_blank" title="打印电子面单"/><i class="iconfont">&#xe7ca;</i>打印电子面单</a></span>
  68. {/if}
  69. </th>
  70. </tr>
  71. <?php $i = 0;?>
  72. <?php foreach($order['goods_list'] as $k => $goods) { ?>
  73. <?php $i++;?>
  74. <tr>
  75. <td class="bdl"></td>
  76. <td class="w70"><div class="dssc-goods-thumb"><a href="{$goods.goods_url}" target="_blank"><img src="{:goods_thumb($goods,240)}"/></a></div></td>
  77. <td class="tl"><dl class="goods-name">
  78. <dt><a target="_blank" href="{$goods.goods_url}">{$goods.goods_name}</a></dt>
  79. <dd>
  80. {notempty name="$goods.goods_type_cn"}
  81. <span class="sale-type">{$goods.goods_type_cn}</span>
  82. {/notempty}
  83. </dd>
  84. </dl></td>
  85. <td>{$goods.goods_price}</td>
  86. <td>{$goods.goods_num}</td>
  87. <!-- S 合并TD -->
  88. {if ($order['goods_count'] > 1 && $k ==0) || ($order['goods_count']) == 1}
  89. <td class="bdl" rowspan="{$order.goods_count}"><div class="buyer">{$order.buyer_name}
  90. <p member_id="{$order.buyer_id}">
  91. {if !empty($order.extend_member.member_qq)}
  92. <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>
  93. {/if}
  94. {if !empty($order.extend_member.member_ww)}
  95. <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>
  96. {/if}
  97. </p>
  98. <div class="buyer-info"> <em></em>
  99. <div class="con">
  100. <h3><i></i><span>{$Think.lang.store_order_buyer_info}</span></h3>
  101. <dl>
  102. <dt>{$Think.lang.store_order_receiver}{$Think.lang.ds_colon}</dt>
  103. <dd>{$order['extend_order_common']['reciver_name']}</dd>
  104. </dl>
  105. <dl>
  106. <dt>{$Think.lang.store_order_phone}{$Think.lang.ds_colon}</dt>
  107. <dd>{$order['extend_order_common']['reciver_info']['phone']}</dd>
  108. </dl>
  109. <dl>
  110. <dt>{$Think.lang.store_order_address}{$Think.lang.ds_colon}</dt>
  111. <dd>{$order['extend_order_common']['reciver_info']['address']}</dd>
  112. </dl>
  113. </div>
  114. </div>
  115. </div></td>
  116. <td class="bdl" rowspan="{$order.goods_count}"><p class="dssc-order-amount">{$order.order_amount}</p>
  117. <p class="goods-freight">
  118. {if $order.shipping_fee > 0}
  119. ({$Think.lang.store_show_order_shipping_han}{$Think.lang.store_show_order_tp_fee}{$order.shipping_fee})
  120. {else /}
  121. {$Think.lang.ds_common_shipping_free}
  122. {/if}
  123. </p>
  124. <p class="goods-pay" title="{$Think.lang.store_order_pay_method}{$Think.lang.ds_colon}{$order.payment_name}">{$order.payment_name}</p></td>
  125. <td class="bdl bdr" rowspan="{$order.goods_count}"><p>{$order.state_desc|raw}
  126. {if isset($order['evaluation_time'])}
  127. <br/>
  128. {$Think.lang.store_order_evaluated}
  129. {/if}
  130. </p>
  131. <!-- 订单查看 -->
  132. <p><a href="{:url('Sellerorder/show_order',['order_id'=>$order_id])}" target="_blank">{$Think.lang.store_order_view_order}</a></p>
  133. <!-- 物流跟踪 -->
  134. <p>
  135. {if $order.if_deliver}
  136. <a href="{:url('Sellerdeliver/search_deliver',['order_sn'=>$order.order_sn])}">{$Think.lang.store_order_show_deliver}</a>
  137. {/if}
  138. </p>
  139. </td>
  140. <!-- 取消订单 -->
  141. <td class="bdl bdr" rowspan="{$order.goods_count}">
  142. {if $order.if_cancel}
  143. <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">&#xe699;</i>{$Think.lang.store_order_cancel_order}</a></p>
  144. {/if}
  145. <!-- 修改运费 -->
  146. {if $order.if_modify_price}
  147. <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">&#xe731;</i>{$Think.lang.modify_freight}</a></p>
  148. {/if}
  149. <!-- 修改价格 -->
  150. {if $order.if_spay_price}
  151. <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">&#xe731;</i>{$Think.lang.store_order_modify_price}</a></p>
  152. {/if}
  153. <!-- 发货 -->
  154. {if $order.if_send}
  155. {if !isset($order.pintuanorder_state) || $order.pintuanorder_state==2}
  156. <p><a class="dssc-btn dssc-btn-green mt10" href="{:url('Sellerdeliver/send',['order_id'=>$order.order_id])}"/><i class="iconfont">&#xe6f1;</i>{$Think.lang.store_order_send}</a></p>
  157. {/if}
  158. {/if}
  159. {if isset($order.pintuanorder_state)}
  160. <p>{$order.pintuanorder_state_text}</p>
  161. {/if}
  162. <!-- 锁定 -->
  163. {if $order.if_lock}
  164. <p>{$Think.lang.refund_return_goods}</p>
  165. {/if}
  166. </td>
  167. {/if}
  168. <!-- E 合并TD -->
  169. </tr>
  170. <!-- S 赠品列表 -->
  171. {if !empty($order['zengpin_list']) && $i == count($order['goods_list'])}
  172. <tr>
  173. <td class="bdl"></td>
  174. <td colspan="4" class="tl"><div class="dssc-goods-gift">{$Think.lang.store_order_gifts}:
  175. <ul>
  176. {foreach name="$order.zengpin_list" item="zengpin_info" }
  177. <li>
  178. <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>
  179. </li>
  180. </ul>
  181. {/foreach}
  182. </div></td>
  183. </tr>
  184. {/if}
  185. <!-- E 赠品列表 -->
  186. <?php }?>
  187. <?php } } else { ?>
  188. <tr>
  189. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  190. </tr>
  191. <?php } ?>
  192. </tbody>
  193. <tfoot>
  194. {notempty name="order_list"}
  195. <tr>
  196. <td colspan="20">{$show_page|raw}</td>
  197. </tr>
  198. {/notempty}
  199. </tfoot>
  200. </table>
  201. <script type="text/javascript">
  202. $(function () {
  203. $('a[dstype="batch"]').click(function () {
  204. if ($('.checkitem:checked').length == 0) { //没有选择
  205. layer.alert('{$Think.lang.select_record_want_operate}');
  206. return false;
  207. }
  208. var _items = '';
  209. $('.checkitem:checked').each(function () {
  210. _items += $(this).val() + ',';
  211. });
  212. _items = _items.substr(0, (_items.length - 1));
  213. var data_str = '';
  214. eval('data_str = ' + $(this).attr('data-param'));
  215. if (data_str.sign == 'send') {
  216. ajax_form('ajax_send', '{$Think.lang.store_order_send}', data_str.urls + '?order_id=' + _items + '&inajax=1', '480');
  217. } else if (data_str.sign == 'print') {
  218. window.open(data_str.urls + '?order_id=' + _items);
  219. } else if (data_str.sign == 'eorder') {
  220. window.open(data_str.urls + '?order_id=' + _items);
  221. }
  222. });
  223. $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
  224. $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
  225. $('.checkall_s').click(function () {
  226. var if_check = $(this).prop('checked');
  227. $('.checkitem').each(function () {
  228. if (!this.disabled)
  229. {
  230. $(this).prop('checked', if_check);
  231. }
  232. });
  233. $('.checkall_s').prop('checked', if_check);
  234. });
  235. $('#skip_off').click(function () {
  236. url = location.href.replace(/&skip_off=\d*/g, '');
  237. window.location.href = url + '&skip_off=' + ($('#skip_off').prop('checked') ? '1' : '0');
  238. });
  239. });
  240. </script>
  241. {/block}