floworder.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '{$_W['siteroot']}',
  27. 'siteurl': '{$_W['siteurl']}',
  28. 'attachurl': '{$_W['attachurl']}',
  29. 'attachurl_local': '{$_W['attachurl_local']}',
  30. 'attachurl_remote': '{$_W['attachurl_remote']}',
  31. 'module': {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie': {'pre': ''},
  33. 'account': {:json_encode($_W['account'])},
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. </head>
  45. <body layadmin-themealias="default">
  46. <div class="layui-fluid">
  47. <div class="layui-card">
  48. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">资金流水列表</span></div>
  49. <div class="layui-card-body" style="padding:15px;">
  50. <div class="page-content">
  51. <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
  52. <input type="hidden" name="c" value="supply" />
  53. <input type="hidden" name="a" value="floworder" />
  54. <div class="layui-input-inline" style="width:100px;">
  55. <select name='searchtime' lay-ignore class='layui-input layui-unselect' style="width:100px;padding:0 5px;" id="searchtime">
  56. <option value=''>不按时间</option>
  57. <option value='create' <?php if( $searchtime=='create'){ ?>selected<?php } ?>>下单时间</option>
  58. </select>
  59. </div>
  60. <div class="layui-input-inline" style="width:280px;">
  61. {:tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);}
  62. </div>
  63. <div class="layui-input-inline" >
  64. <input type="text" class="layui-input" name="keyword" value="{$keyword}" placeholder="输入订单ID/商品名称"/>
  65. </div>
  66. <!--<div class="layui-form-item">-->
  67. <div class="layui-input-inline layui-btn-group">
  68. <button class="layui-btn layui-btn-sm unbtn_export" data-export="0" type="submit"> 搜索</button>
  69. <button type="submit" name="export" value="1" class="layui-btn layui-btn-sm layui-btn-warm">导出</button>
  70. </div>
  71. <!--</div>-->
  72. </form>
  73. <!--下单后,供应商流水加上了配送费和包装费;指定配送员后,供应商流水扣除配送员的配送费。-->
  74. <form action="" class="layui-form" lay-filter="example" method="post" >
  75. <div class="row">
  76. <div class="col-md-12">
  77. <div class="page-table-header">
  78. <?php $commiss_level = D('Home/Front')->get_config_by_name('commiss_level'); ?>
  79. </div>
  80. <table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
  81. <thead>
  82. <tr>
  83. <th style="width:25px;"></th>
  84. <!--<th style="width:60px;">ID</th>-->
  85. <th style="">订单id</th>
  86. <th style="">订单编号</th>
  87. <th style="">商品名称</th>
  88. <th style="">金额</th>
  89. <?php if( !empty($commiss_level) && $commiss_level >0){ ?>
  90. <th style="">会员佣金</th>
  91. <?php } ?>
  92. <th style="">团长佣金</th>
  93. <th style="">服务费</th>
  94. <th style="">实收金额</th>
  95. <th style='width:100px;'>状态</th>
  96. </tr>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <?php foreach( $list as $row ){ ?>
  101. <tr>
  102. <td style="position: relative; ">
  103. </td>
  104. <!--<td>-->
  105. <!--{$row['id']}-->
  106. <!--</td>-->
  107. <td>
  108. {$row['order_id']}
  109. </td>
  110. <td>
  111. <a class='op text-primary' href="{:U('order/detail', array('id' => $row['order_id'], 'ok' => 1))}" >{$row['order_num_alias']}</a>
  112. </td>
  113. <td>
  114. {$row['goods_name']} {$row['option_sku']}
  115. </td>
  116. <td>
  117. ¥{$row['total_money']}
  118. <?php if( !empty($row['shipping_fare']) && $row['shipping_fare'] > 0 ){ ?>
  119. <?php if($row['delivery'] == 'tuanz_send' ){ ?>
  120. (配送费:{$row['shipping_fare']}元)
  121. <?php }elseif($row['delivery'] == 'localtown_delivery'){ ?>
  122. (配送费:{$row['shipping_fare']}元,包装费:<?php echo number_format($row['packing_fare']*$row['quantity'],2); ?>
  123. <?php if($row['status'] == 1 ){ ?>,配送员佣金:-<?php echo number_format($row['shipping_money'],2); ?> <?php } ?>
  124. <?php if($row['goods_deduct_fee'] > 0 ){ ?>,第三方配送违约金:-<?php echo number_format($row['goods_deduct_fee'],2); ?> <?php } ?>)
  125. <?php }else if( $row['delivery'] == 'express' ){ ?>
  126. (快递费:{$row['shipping_fare']}元)
  127. <?php } ?>
  128. <?php } ?>
  129. </td>
  130. <?php if( !empty($commiss_level) && $commiss_level >0){ ?>
  131. <td>
  132. -¥{$row['member_commiss_money']}
  133. </td>
  134. <?php } ?>
  135. <td>
  136. -¥{$row['head_commiss_money']}
  137. </td>
  138. <td>
  139. 比例:{$row['comunity_blili']}%&nbsp;&nbsp;
  140. <br/>
  141. 服务费:-¥<?php echo round($row['total_money']*$row['comunity_blili']/100,2); ?>
  142. </td>
  143. <td>
  144. ¥{$row['money']}
  145. </td>
  146. <td>
  147. <?php if( $row[state] ==2 ){ ?>
  148. 订单取消
  149. <?php }else if($row[state] ==1){ ?>
  150. <text class='text-danger'>已结算</text>
  151. <?php }else{ ?>
  152. 待结算
  153. <?php } ?>
  154. <br/>
  155. </td>
  156. </tr>
  157. <?php } ?>
  158. </tbody>
  159. <tfoot>
  160. <tr>
  161. <td colspan="8" style="text-align: right">
  162. {$pager}
  163. </td>
  164. </tr>
  165. </tfoot>
  166. </table>
  167. </div>
  168. </div>
  169. </form>
  170. </div>
  171. </div>
  172. </div>