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.
 
 
 
 
 
 

277 rivejä
19 KiB

  1. <?php
  2. use backend\modules\zzcs\assets\ZzcsAsset;
  3. use yii\widgets\Pjax;
  4. ZzcsAsset::addCss($this, '/global/css/bootstrap.min.css?v001');
  5. ZzcsAsset::addCss($this, '/global/css/font-awesome.min.css?v001');
  6. //ZzcsAsset::addCss($this, '/global/css/ace.min.css');
  7. ZzcsAsset::addCss($this, '/global/css/main.css?v001');
  8. //ZzcsAsset::addCss($this, '/global/css/master.css');
  9. ZzcsAsset::addCss($this, '/global/css/sweetalert2.min.css?v001');
  10. ZzcsAsset::addCss($this, '/global/css/new_page.css?v001');
  11. ZzcsAsset::addCss($this, '/global/css/bootstrap-timepicker.css?v001');
  12. ZzcsAsset::addCss($this, '/global/css/datepicker.css?v001');
  13. ZzcsAsset::addCss($this, '/global/css/daterangepicker.css?v001');
  14. ZzcsAsset::addCss($this, '/run-bus/css/run_list.css?v2017');
  15. ZzcsAsset::addScript($this, '/global/js/jquery.page.js');
  16. ZzcsAsset::addScript($this, '/global/js/jquery.cookie.js');
  17. ZzcsAsset::addScript($this, '/global/js/jquery-2.2.4.min.js');
  18. ZzcsAsset::addScript($this, '/global/js/date-time/bootstrap-datepicker.min.js');
  19. ZzcsAsset::addScript($this, '/global/js/date-time/bootstrap-timepicker.min.js');
  20. ZzcsAsset::addScript($this, '/global/js/sweetalert2.min.js');
  21. //ZzcsAsset::addScript($this, '/global/js/common.js?v001');
  22. //ZzcsAsset::addScript($this, '/global/js/base_path.js?v001');
  23. ZzcsAsset::addScript($this, '/run-bus/js/run_list.js?v20180301');
  24. ZzcsAsset::addScript($this, '/plug/layer/layer.js');
  25. ZzcsAsset::addScript($this, '/plug/date-time/date-manage.js?v=001');
  26. ?>
  27. <body style="margin-right: auto;">
  28. <div class="iframe_box">
  29. <div class="carList">
  30. <div class="top" style="float: left;border: 2px solid #ccc;padding: 20px;width: 100%;">
  31. <div style="display: inline-block;margin-bottom: 5px;margin-top: 5px;width: 100%;">
  32. <span style="float: left;display: none;">
  33. <span style="float: left;line-height: 30px;">出发地:</span><input id="start_area" style="width: 70px;" type="text">
  34. </span>
  35. <span style="float: left;display: none;">
  36. <span style="float: left;line-height: 30px;">目的地:</span><input id="end_area" style="width: 70px;" type="text">
  37. </span>
  38. <span style="float: left;">
  39. <span style="float: left;line-height: 30px;">线路:</span><input id="prod" style="width: 150px;" type="text">
  40. </span>
  41. <span style="float: left;">
  42. <span style="float: left;line-height: 30px;">出发日期:</span>
  43. <div class="col-sm-1" style="float:left;width: 150px;padding-right: 3px;">
  44. <div class="input-group">
  45. <input id="id-date-picker-1" class="form-control date-picker" data-date-format="yyyy-mm-dd" type="text" placeholder="出发日期" value="<?php echo date("Y-m-d", strtotime('+1 day')) ?>" style="font-size: 12px;height: 30px;">
  46. <span class="input-group-addon">
  47. <i class="icon-calendar bigger-110"></i>
  48. </span>
  49. </div>
  50. </div>
  51. <span style="float: left;line-height:30px;margin-left: 8px;">-</span>
  52. <div class="col-sm-1" style="float:left;width: 150px;padding-right: 3px;">
  53. <div class="input-group">
  54. <input id="id-date-picker-2" class="form-control date-picker" data-date-format="yyyy-mm-dd" type="text" placeholder="结束日期" value="<?php echo date("Y-m-d", strtotime('+1 day')) ?>" style="font-size: 12px;height: 30px;" >
  55. <span class="input-group-addon">
  56. <i class="icon-calendar bigger-110"></i>
  57. </span>
  58. </div>
  59. </div>
  60. </span>
  61. <span style="float: left;margin-left:5px;">
  62. <span style="float: left;line-height: 30px;">运营状态:</span>
  63. <select id="select_status" style="margin-right: 5px;">
  64. <option selected="selected" value="-2">请选择</option>
  65. <option value="137">待审核</option>
  66. <option value="138" selected>售卖中</option>
  67. <option value="139">待出行</option>
  68. <!--<option value="140">已发车</option>-->
  69. <option value="141">已完成</option>
  70. <option value="142">已停运</option>
  71. </select>
  72. </span>
  73. <span style="float: left;line-height: 30px;">线路类型:
  74. <select id="bus_type" style="">
  75. <option selected="selected" value="0">全部</option>
  76. <option value="255">直通</option>
  77. <option value="256">穿梭</option>
  78. <option value="284">城际商务车</option>
  79. </select>
  80. </span>
  81. <span style="float: left;line-height: 30px;margin-left: 7px">班次时间:</span>
  82. <div class="col-sm-1" style="float:left;width: 150px;padding-right: 3px;">
  83. <select class="hour" onchange="resetToBegin(this)"><option selected="" value="-1">全部</option><option value="0">00</option><option value="1">01</option><option value="2">02</option><option value="3">03</option><option value="4">04</option><option value="5">05</option><option value="6">06</option><option value="7">07</option><option value="8">08</option><option value="9">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option></select>
  84. <select class="minute" onchange="resetToBegin(this)"><option selected="" value="-1">全部</option><option value="0">00</option><option value="1">01</option><option value="2">02</option><option value="3">03</option><option value="4">04</option><option value="5">05</option><option value="6">06</option><option value="7">07</option><option value="8">08</option><option value="9">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option><option value="32">32</option><option value="33">33</option><option value="34">34</option><option value="35">35</option><option value="36">36</option><option value="37">37</option><option value="38">38</option><option value="39">39</option><option value="40">40</option><option value="41">41</option><option value="42">42</option><option value="43">43</option><option value="44">44</option><option value="45">45</option><option value="46">46</option><option value="47">47</option><option value="48">48</option><option value="49">49</option><option value="50">50</option><option value="51">51</option><option value="52">52</option><option value="53">53</option><option value="54">54</option><option value="55">55</option><option value="56">56</option><option value="57">57</option><option value="58">58</option><option value="59">59</option></select>
  85. </div>
  86. <span style="float: left;">
  87. <span style="float: left;line-height: 30px;">排序:</span>
  88. <select id="order_rule" style="margin-right: 5px;">
  89. <option selected="selected" value="1">线路</option>
  90. <option value="2">出发时间</option>
  91. <option value="3" >已售人数</option>
  92. </select>
  93. </span>
  94. <span style="float: left;margin-left:5px;">
  95. <button id="btn_search" onclick="searchInfo()" class="btn btn-sm btn-primary">查询</button>
  96. </span>
  97. </div>
  98. </div>
  99. <div class="buttons" style="float:left; margin-top: 20px; margin-bottom:20px;">
  100. <button onclick="add_run()" value="1" class="btn btn-sm btn-primary">添加班次</button>
  101. <button onclick="click_five_btn(this.value)" value="1" class="btn btn-sm btn-primary">售卖审核</button>
  102. <!--<button onclick="click_five_btn(this.value)" value="0" class="btn btn-sm btn-primary">取消审核</button>-->
  103. <button onclick="click_five_btn(this.value)" value="3" class="btn btn-sm btn-primary">停售</button>
  104. <button onclick="click_five_btn(this.value)" value="0" class="btn btn-sm btn-primary">启运</button>
  105. <button onclick="click_five_btn(this.value)" value="2" class="btn btn-sm btn-primary">停运</button>
  106. <!--
  107. <label id="five_del" onclick="click_five_btn(4)" data-statu="false" value="4" class="del btn btn-sm btn-primary">删除</label>
  108. -->
  109. <label id="update_car_no" data-statu="false" class="update_car_no btn btn-sm btn-primary" onclick="click_five_btn('update_car_no')" value="update_car_no" >修改车次</label>
  110. <!-- <button onclick="click_five_btn(this.innerHTML)" class="btn btn-minier btn-yellow">售票延迟</button> -->
  111. </div>
  112. <?php Pjax::begin(['id' => 'main_table', 'timeout' => 30000000]) ?>
  113. <div id="pagination" class="row" style="margin-top: 30px;">
  114. <div class="col-xs-12">
  115. <div class="table-responsive">
  116. <table id="sample-table-1" class="table table-striped table-bordered table-hover">
  117. <thead>
  118. <tr>
  119. <th width="35px" class="center">
  120. <label>
  121. <input class="ace" onclick="select_checked('0')" type="checkbox">
  122. <span class="lbl"></span>
  123. </label>
  124. </th>
  125. <th width="200px">线路</th>
  126. <th width="110px">出发日期</th>
  127. <th width="140px">出发站点时间</th>
  128. <th width="60px">车次</th>
  129. <th width="80px">承运车队</th>
  130. <th width="95px">用车成本</th>
  131. <th width="80px">座位总数</th>
  132. <th style="display: none;" width="100px">已售座位</th>
  133. <th width="80px">已售人数</th>
  134. <th width="100px">行驶状态</th>
  135. <th width="80px">运营状态</th>
  136. <th width="120px">调度状态</th>
  137. <th width="180px">操作</th>
  138. </tr>
  139. </thead>
  140. <tbody id="carList">
  141. <?php foreach($list as $val){?>
  142. <tr class="one">
  143. <th class="center">
  144. <label>
  145. <input class="ace" onclick="select_checked('1')" data-json='[dict-json]' data-statu="<?php echo $val['run_status']?>" data-carno="<?php echo $val['car_number']?>" data-date="<?php echo $val['run_date']?>" data_QDH="<?php echo $val['prod_name']?>" name="<?php echo $val['run_id']?>" type="checkbox">
  146. <span class="lbl"></span>
  147. </label>
  148. </th>
  149. <td><?php echo $val['property'] . ' ' . $val['prod_name']?></td>
  150. <td><?php echo $val['run_date']?></td>
  151. <td><?php echo $val['start_time']. ' ' . $val['res_name']?></td>
  152. <td><?php echo $val['car_number']?></td>
  153. <td><?php echo $val['motorcade_name']?></td>
  154. <td><?php if($val['cost_type'] == 477){echo number_format($val['cost_price'],2) . '元/车';}else{echo number_format($val['cost_price'],2) . '元/座';} ?></td>
  155. <td><?php echo $val['seat_count']?></td>
  156. <td style="display: none;color: #428bca;">[已售座位]</td>
  157. <td style="color: #428bca;">
  158. <a date = "<?php echo $val['run_date']?>" pro="<?php echo $val['property']?>" num="<?php echo $val['car_number']?>" time="<?php echo $val['start_time']?>" onclick="get_to_order_list(this)" >
  159. <?php echo $val['saled_count']?>
  160. </a>
  161. <div data-toggle="modal" id="<?=$val['run_id'].'-'.$val['car_number'];?>" autocomplete="off" data-target=".bs-example-modal-lg" style="cursor:pointer;" onclick="showStationList(<?=$val['run_id']?>,<?=$val['car_number'];?>,'<?php echo $val['property'] . ' ' . $val['prod_name']?>');">[明细]</div>
  162. </td>
  163. <td>
  164. <?php if($val['delay_time'] == 0){?>
  165. <div style="color: #428bca;">正常行驶</div>
  166. <?php }else{ ?>
  167. <div style="color: #ff6771;font-weight: 600;">晚<?=$val['delay_time'];?>分钟</div>
  168. <?php if($val['is_send_message'] == 0){?>
  169. <div style="color: #ff6771;">未通知</div>
  170. <?php }else{ ?>
  171. <div style="color: #428bca;font-weight: 600;">已通知</div>
  172. <?php }?>
  173. <?php }?>
  174. </td>
  175. <td><?php echo $val['run_status']?></td>
  176. <td><?php if(!empty($val['send_bus_no'])||!empty($val['send_driver_name'])){?>
  177. <div style="text-align: left;">🚍:<?php echo $val['send_bus_no']?><br />👨:<?php echo $val['send_driver_name']?><br />📞:<?php echo $val['send_driver_mobile']?></div>
  178. <?php }else{echo $val['receiving'];}?></td>
  179. <td><a href="/zzcs/run-bus/run-detail?run_id=<?php echo $val['run_id']?>">查看</a>
  180. <a href="/zzcs/run-bus/run-bus-update?run_id=<?php echo $val['run_id']?>">修改</a>
  181. <?php if(!empty($val['send_bus_no'])||!empty($val['send_driver_name'])){?>
  182. <a target='_blank' href="http://api.zhizhuchuxing.com/api1.0/send_message_confirm.php?run_id=<?php echo $val['run_id']?>&bus_order_id=<?php echo $val['car_number']?>">出行短信</a>
  183. <?php }?>
  184. </td>
  185. </tr>
  186. <?php }?>
  187. </tbody>
  188. </table>
  189. </div>
  190. <!-- /.table-responsive -->
  191. </div>
  192. <!-- /span -->
  193. </div>
  194. <!--row end-->
  195. <!--页码信息-->
  196. <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
  197. <span class="page_size">每页条数</span>
  198. <select id="page_size" onchange="changePageSize(this)">
  199. <?php foreach ($page_size_arr as $key => $vel) {
  200. if ($vel == $page['page_size']) {
  201. echo '<option value="' . $vel . '" selected=selected>' . $vel . '</option>';
  202. } else {
  203. echo '<option value="' . $vel . '">' . $vel . '</option>';
  204. }
  205. } ?>
  206. </select>
  207. </div>
  208. <div id="page_list">
  209. <?php
  210. if (count($page_arr) > 0) {
  211. foreach ($page_arr as $key => $vel) {
  212. if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
  213. $class = 'not_click';
  214. } elseif ($page['current_page'] == $vel) {
  215. $class = 'click';
  216. } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
  217. $class = 'not_click';
  218. } elseif ($vel == '...') {
  219. $class = 'not_click';
  220. } else {
  221. $class = 'clickable';
  222. }
  223. if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
  224. $class = 'page_num ' . $class;
  225. }
  226. if ($class == 'clickable' || $class == 'page_num clickable') {
  227. echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
  228. } else {
  229. echo '<span class="' . $class . '">' . $vel . '</span>';
  230. }
  231. }
  232. }
  233. ?>
  234. <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
  235. </div>
  236. <?php Pjax::end() ?>
  237. <div id="test">
  238. </div>
  239. </div>
  240. <!--carList end-->
  241. <!--</div>-->
  242. </div>
  243. <!--弹层-->
  244. <div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  245. <div class="modal-dialog_1" >
  246. <div class="modal-content">
  247. <div class="modal-header">
  248. <button type="button" id="closes_shwo_staion" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  249. <h4 class="modal-title" id="myModalLabel" style="padding-top:5px;"></h4>
  250. </div>
  251. <div class="modal-body" style="padding:10px;">
  252. <table id="show_station_list_div" class="table table-striped table-bordered table-hover" style="max-height: 800px;overflow-y: scroll;">
  253. <tr style="background-color: #f9f9f9;">
  254. <th style="min-width: 50px;width: 50px;">序号</th>
  255. <th >名称</th>
  256. <th style="min-width: 50px;width: 50px;">上车</th>
  257. <th style="min-width: 50px;width: 50px;">下车</th>
  258. <th style="min-width: 100px;width: 100px;">晚点(分)</th>
  259. <th style="min-width: 120px;width: 50px;">操作</th>
  260. </tr>
  261. </table>
  262. </div>
  263. </div>
  264. </div>
  265. </body>