截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

detail.html 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {layout name="layout1" /}
  2. <div class="wrapper">
  3. <div class="layui-card">
  4. <div class="layui-card-body layui-form">
  5. <div class="layui-form-item">
  6. <div class="layui-inline">
  7. <label class="layui-form-label">订单编号:</label>
  8. <div class="layui-inline" style="margin-right:0;">
  9. <div class="layui-input-inline" >
  10. <input type="text" id="order_sn" name="order_sn" autocomplete="off" class="layui-input">
  11. </div>
  12. </div>
  13. </div>
  14. <div class="layui-inline">
  15. <a class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="search">搜索</a>
  16. <a class="layui-btn layui-btn-sm layui-btn-primary" lay-submit lay-filter="clear-search">重置</a>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- 主体区域 -->
  21. <div class="layui-card-body">
  22. <table id="like-table-lists" lay-filter="like-table-lists"></table>
  23. </div>
  24. </div>
  25. </div>
  26. <script>
  27. layui.use(["table", "form"], function(){
  28. var table = layui.table;
  29. var form = layui.form;
  30. like.tableLists("#like-table-lists", "{:url()}?settle_id={$settle_id}", [
  31. {field:"id", width:60, title:"ID"}
  32. ,{field:"settle_sn", width:200, align:"center", title:"结算批次号"}
  33. ,{field:"order_sn", width:180, align:"center",title:"订单编号"}
  34. ,{field:"order_amount", width:160, align:"center", title:"订单金额"}
  35. ,{field:"refund_amount", width:160, align:"center", title:"退款订单金额"}
  36. ,{field:"after_sales_amount", width:160, align:"center", title:"售后退款金额"}
  37. ,{field:"distribution_amount", width:160, align:"center", title:"已结算分销佣金金额"}
  38. ,{field:"entry_account_amount", width:160, align:"center", title:"已结算入账金额"}
  39. ,{field:"order_complete_time", width:160, align:"center", title:"订单完成时间"}
  40. ]);
  41. /**
  42. * 立即搜索
  43. */
  44. form.on("submit(search)", function(data){
  45. data.field['settle_id'] = '{$settle_id}';
  46. table.reload("like-table-lists", {
  47. where: data.field,
  48. page: {
  49. curr: 1
  50. }
  51. });
  52. });
  53. /**
  54. * 重置搜索
  55. */
  56. form.on("submit(clear-search)", function(){
  57. $("#order_sn").val("");
  58. table.reload("like-table-lists", {
  59. where: {settle_id:'{$settle_id}'},
  60. page: {
  61. curr: 1
  62. }
  63. });
  64. });
  65. })
  66. </script>