dispatch-list.blade.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('配送模板列表'))
  4. <div class="w1200 m0a">
  5. <div class="rightlist">
  6. <!-- 新增加右侧顶部三级菜单 -->
  7. <div class="right-titpos">
  8. <ul class="add-snav">
  9. <li class="active"><a href="#">配送方式</a></li>
  10. </ul>
  11. </div>
  12. <!-- 新增加右侧顶部三级菜单结束 -->
  13. <div class="main panel panel-default">
  14. <div class="panel-body table-responsive">
  15. <table class="table table-hover">
  16. <thead class="navbar-inner">
  17. <tr>
  18. <th style="width:50px;">ID</th>
  19. <th style="width:80px;">显示顺序</th>
  20. <th>配送方式名称</th>
  21. <th>计费方式</th>
  22. <th>首重(首件)价格</th>
  23. <th>续重(续件)价格</th>
  24. <th>默认快递</th>
  25. <th>状态</th>
  26. <th>操作</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach ( $list as $dispatch )
  31. <tr>
  32. <td>{{ $dispatch['id'] }}</td>
  33. <td>{{ $dispatch['sort'] }}</td>
  34. <td>{{ $dispatch['name'] }}</td>
  35. @if ( $dispatch['charge_type'] == 1 )
  36. <td>按重量计费</td>
  37. <td>{{ number_format($dispatch['dispatching'][0]['fp']/100,2) }}</td>
  38. <td>{{ number_format($dispatch['dispatching'][0]['np'] /100,2)}}</td>
  39. @else
  40. <td>按件计费</td>
  41. <td>{{ number_format($dispatch['dispatching'][0]['fp'] /100,2)}}</td>
  42. <td>{{ number_format($dispatch['dispatching'][0]['np'] /100,2) }}</td>
  43. @endif
  44. <td><label class='label label-default @if ( $dispatch["is_default"] == 1 ) label-info @endif' >@if ( $dispatch['is_default'] == 1 ) 是 @else 否 @endif</label></td>
  45. <td><label class='label label-default @if ( $dispatch["publish"] == 1 ) label-info @endif' >@if ( $dispatch['publish'] == 1 ) 启用 @else 禁用 @endif</label></td>
  46. <td style="text-align:left;">
  47. <a href="{{ yzWebUrl('plugin.jd-supply.admin.cloud-dispatch.edit', ['id'=>$dispatch['id']]) }}" class="btn btn-default btn-sm" title="修改"><i class="fa fa-pencil"></i></a>
  48. <a href="{{ yzWebUrl('plugin.jd-supply.admin.cloud-dispatch.delete', ['id'=>$dispatch['id']]) }}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此配送方式?')" title="删除"><i class="fa fa-times"></i></a>
  49. </td>
  50. </tr>
  51. @endforeach
  52. </tbody>
  53. </table>
  54. {!! $pager !!}
  55. </div>
  56. <div class="panel-footer">
  57. <a class="btn btn-info " href="{{ yzWebUrl('plugin.jd-supply.admin.cloud-dispatch.add') }}"><i class="fa fa-plus"></i> 添加配送方式</a>
  58. <input name="submit" type="submit" class="btn btn-default back" value="提交排序">
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <script>
  64. require(['bootstrap'], function ($) {
  65. $('.btn').hover(function () {
  66. $(this).tooltip('show');
  67. }, function () {
  68. $(this).tooltip('hide');
  69. });
  70. });
  71. </script>
  72. @endsection