detail.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {extend name="app/shop/view/base.html"/}
  2. {block name="resources"}
  3. <style>
  4. #detail_list {
  5. margin-top: 15px;
  6. }
  7. </style>
  8. {/block}
  9. {block name='main'}
  10. <div class="layui-collapse tips-wrap">
  11. <div class="layui-colla-item">
  12. <ul class="layui-colla-content layui-show">
  13. <li>账期时间:{if $info.start_time > 0}{:date('Y-m-d H:i:s', $info.start_time)} {else/} {:date('Y-m-d H:i:s', $store_info['create_time'])} {/if} 至 {:date('Y-m-d H:i:s', $info.end_time)}</li>
  14. <li>线上结算金额 = 线上付款金额(<span style="color: red">¥{$info.order_money}</span>)</li>
  15. <li>线下付款金额<span style="color: red">¥{$info.offline_order_money}</span></li>
  16. <li>线下退款金额<span style="color: red">¥{$info.offline_refund_money}</span></li>
  17. <li>门店抽成金额<span style="color: red">¥{$info.store_commission}</span></li>
  18. </ul>
  19. </div>
  20. </div>
  21. <table id="detail_list" lay-filter="detail_list"></table>
  22. {/block}
  23. {block name="script"}
  24. <script>
  25. layui.use(['laydate','form'], function () {
  26. var form = layui.form;
  27. form.render();
  28. var table = new Table({
  29. elem: '#detail_list',
  30. url: ns.url("store://shop/settlement/detail", {'settlement_id': {$info.id}}),
  31. where:{id:"{$info.id}"},
  32. cols: [
  33. [{
  34. field: 'order_no',
  35. title: '订单编号',
  36. unresize: 'false',
  37. width: '18%'
  38. }, {
  39. field: 'pay_type_name',
  40. title: '支付方式',
  41. unresize: 'false',
  42. width: '12%'
  43. }, {
  44. field:'order_money',
  45. title: '订单销售额(元)',
  46. unresize: 'false',
  47. align: 'right',
  48. templet: function (res){
  49. return '¥'+res.order_money;
  50. },
  51. width: '12%'
  52. }, {
  53. field:'refund_money',
  54. title: '订单退款(元)',
  55. unresize: 'false',
  56. align: 'right',
  57. templet: function (res){
  58. return '¥'+res.refund_money;
  59. },
  60. width: '14%'
  61. }, {
  62. title: '门店抽成(元)',
  63. unresize: 'false',
  64. align: 'right',
  65. templet: function (res){
  66. return '¥'+res.store_commission;
  67. },
  68. width: '12%'
  69. }, {
  70. unresize: 'false',
  71. width: '12%'
  72. }, {
  73. field: 'finish_time',
  74. title: '订单完成时间',
  75. unresize: 'false',
  76. templet: function (res){
  77. if(res.finish_time == 0){
  78. return '--';
  79. }else{
  80. return ns.time_to_date(res.finish_time)
  81. }
  82. },
  83. width: '20%'
  84. }]
  85. ]
  86. });
  87. });
  88. </script>
  89. {/block}