station_construction_overdue.blade.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  4. <style>
  5. .btn-danger, .btn-primary, .btn-info {
  6. background: #2a94e0 !important;
  7. border-color: #2a94e0 !important;
  8. }
  9. .table-striped > tbody > tr:nth-of-type(odd) {
  10. background: #f8f8f8 !important;
  11. }
  12. .table-striped > tbody > tr .btn {
  13. background: none !important;
  14. }
  15. .table-striped > tbody > tr td {
  16. font-size: 14px !important;
  17. }
  18. .table-striped > tbody > tr:hover {
  19. background: #ffebd8 !important;
  20. }
  21. .table-striped > tbody > tr:hover .btn {
  22. background: #2a94e0 !important;
  23. color: #fff !important;
  24. }
  25. .table-striped > tbody > tr:hover .btn .glyphicon {
  26. color: #fff !important;
  27. }
  28. </style>
  29. @endsection
  30. @section('content')
  31. @php $authUser=auth()->user() @endphp
  32. <body class="gray-bg">
  33. <div class="wrapper wrapper-content animated fadeInRight">
  34. <div class="row">
  35. <div class="col-sm-12">
  36. <div class="ibox float-e-margins">
  37. <div class="ibox-content">
  38. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  39. <div class="input-group">
  40. <select data-placeholder="请选择建站采编..." style="width:150px;float: right;" name="editingId"
  41. id="editingId"
  42. class="form-control">
  43. <option value="">请选择建站采编</option>
  44. @foreach ($userList as $key => $value)
  45. @if($value->role_id==2)
  46. <option value="{{$value->id}}">{{$value->nickname}}</option>
  47. @endif
  48. @endforeach
  49. </select>
  50. <select data-placeholder="请选择项目经理..." style="width:150px;float: right;"
  51. name="projectManagerId" id="projectManagerId"
  52. class="form-control">
  53. <option value="">请选择项目经理</option>
  54. @foreach ($userList as $key => $value)
  55. @if($value->role_id==25)
  56. <option value="{{$value->id}}">{{$value->nickname}}</option>
  57. @endif
  58. @endforeach
  59. </select>
  60. <select data-placeholder="请选择销售..." style="width:150px;float: right;" name="sellerId"
  61. id="sellerId"
  62. class="form-control">
  63. <option value="">请选择销售</option>
  64. @foreach ($userList as $key => $value)
  65. @if($value->role_id==1)
  66. <option value="{{$value->id}}">{{$value->nickname}}</option>
  67. @endif
  68. @endforeach
  69. </select>
  70. <select data-placeholder="请选择客服..." style="width:150px;float: right;" name="serverId"
  71. id="serverId"
  72. class="form-control">
  73. <option value="">请选择客服</option>
  74. @foreach ($userList as $key => $value)
  75. @if($value->role_id==7)
  76. <option value="{{$value->id}}">{{$value->nickname}}</option>
  77. @endif
  78. @endforeach
  79. </select>
  80. <input type="text" placeholder="请输入任务标题" class="input-md form-control"
  81. name="task" id="task" style="width: 200px;float: right">
  82. <span class="input-group-btn">
  83. <button type="button" class="btn btn-md btn-primary"
  84. onclick="units.search()"> 搜索</button>
  85. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  86. name="btnReset"> 重置</button>
  87. <button type="button" class="btn btn-md btn-primary" style="margin-left: 10px"
  88. onclick="units.export()"> 导出</button>
  89. </span>
  90. </div>
  91. </form>
  92. <hr>
  93. <div class="table-responsive">
  94. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </body>
  102. @endsection
  103. @section('footer')
  104. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  105. <script>
  106. laydate.render({
  107. elem: '#monthRange'
  108. });
  109. laydate.render({
  110. elem: '#monthRange2'
  111. });
  112. laydate.render({
  113. elem: '#date'
  114. , type: 'month'
  115. , format: 'yyyy-MM'
  116. });
  117. var units = {
  118. export: function () {
  119. var formValues = tips.getFormValues("#searchForm");
  120. var str = $.param(formValues);
  121. window.open('/admin/flow/stationConstructionOverdueExport?' + str)
  122. },
  123. selectPage: function () {
  124. tips.selectPage();
  125. },
  126. search: function () {
  127. tips.selectPage();
  128. },
  129. openDetail: function (id, title) {
  130. window.open('/admin/flow/siteConstructionProcess/' + id + '/type/0');
  131. }
  132. };
  133. var config = {};
  134. config.url = '/admin/flow/stationConstructionOverdue';
  135. config.pageSize = 20;
  136. config.showColumns = true;
  137. config.columns = [ //字段
  138. {
  139. title: '序号', align: 'center', formatter: function (value, item, index) {
  140. return index + 1;
  141. },
  142. width: '10px'
  143. },
  144. {title: '逾期事项', field: 'title', align: 'center'},
  145. {title: '阶段', field: 'rank', align: 'center'},
  146. {title: '任务截止时间', field: 'node_date', align: 'center'},
  147. {title: '逾期阶段负责人', field: 'user', align: 'center'},
  148. {title: '逾期天数', field: 'overdue_day', align: 'center'},
  149. /*{title: '逾期原因', field: 'reasons_for_overdue', align: 'center'},*/
  150. {title: '关联项目', field: 'cn_title', align: 'center'},
  151. {title: '下单时间', field: 'order_at', align: 'center'},
  152. {title: '备注', field: 'overdue_memo', align: 'center'},
  153. /*{title: '上线时间', field: 'online_at', align: 'center'},*/
  154. {
  155. title: '操作', field: 'id', align: 'center',
  156. formatter: function (value, row) {
  157. var str = '<button onclick="units.openDetail(' + row.site_id + ')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  158. return str;
  159. }
  160. }
  161. ];
  162. tips.bootstrapTable(config);
  163. </script>
  164. @endsection