finances_overdue.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-content">
  9. <form class="form-inline" id="searchForm" onsubmit="units.search();return false;">
  10. <div class="form-group" style="margin-top: 5px;">
  11. <select class="form-control" style="width: 150px;margin-top: -5px" id="type_status" name="type_status" onchange="tips.selectPage();">
  12. <option value="">请选择类型</option>
  13. <option value="1">首付</option>
  14. <option value="2">建站</option>
  15. <option value="3">达标尾款</option>
  16. <option value="4">服务期尾款</option>
  17. <option value="5">续费</option>
  18. </select>
  19. <div class="input-group">
  20. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  21. name="keyword"
  22. id="keyword">
  23. <span class="input-group-btn">
  24. <button type="button" class="btn btn-md btn-primary"
  25. onclick="units.search()"> 搜索</button>
  26. <button type="reset" class="btn btn-md btn-primary" style="margin-left: 10px"
  27. name="resetBtn"> 重置</button>
  28. </span>
  29. </div>
  30. </div>
  31. </form>
  32. <hr>
  33. <div class="table-responsive">
  34. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </body>
  42. @endsection
  43. @section('footer')
  44. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  45. <script>
  46. var units = {
  47. getIdsBySelections: function () {
  48. var selections = $("#table").bootstrapTable('getSelections');
  49. var ids = [];
  50. $.each(selections, function (inx, val) {
  51. ids.push(val.id);
  52. });
  53. return ids;
  54. },
  55. save: function (id,type_status) {
  56. layer.open({
  57. type: 2,
  58. content: ['/admin/finance/' + id + '/save'],
  59. area: ['90%', '80%'],
  60. title: '信息详情'
  61. });
  62. },
  63. search: function () {
  64. tips.selectPage();
  65. },
  66. };
  67. var config = {};
  68. config.url = '/admin/finances/finances_receivables';
  69. config.columns = [ //字段
  70. {
  71. title: '序号', align: 'center', formatter: function (value, item, index) {
  72. return index + 1;
  73. }
  74. },
  75. {title: '项目ID', field: 'site_id', align: 'center'},
  76. {title: '项目名称', field: 'cn_title', align: 'center'},
  77. {title: '合同总金额', field: 'contract_total_fee', align: 'center'},
  78. {title: '维基百科费用', field: 'wiki_fee', align: 'center'},
  79. {title: '其他费用', field: 'other_fee', align: 'center'},
  80. {title: '项目状态', field: 'status_title', align: 'center'},
  81. {title: '创建时间', field: 'created_at', align: 'center'},
  82. {
  83. title: '操作', field: 'id', align: 'center',
  84. formatter: function (value, row) {
  85. var str = '';
  86. // if (row.status === 1) {
  87. str += '<button onclick="units.save(' + value + ')" class="btn btn-xs"><span class="glyphicon glyphicon-edit"></span>查看详情</button>';
  88. // }
  89. return str;
  90. }
  91. },
  92. ];
  93. tips.bootstrapTable(config);
  94. config.onLoadSuccess = function (data) {
  95. console.log(data);
  96. $("#sum_total").text(data.sum_total);
  97. };
  98. laydate.render({
  99. elem: '#start_at', //指定元素
  100. type: 'datetime'
  101. });
  102. laydate.render({
  103. elem: '#end_at', //指定元素
  104. type: 'datetime'
  105. });
  106. </script>
  107. @endsection