Nessuna descrizione

salerTargetCreate.blade.php 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(count($errors) > 0)
  5. <div class="Huialert Huialert-info" id="error">
  6. @foreach($errors->all() as $error)
  7. <li>{{$error}}</li>
  8. @endforeach
  9. </div>
  10. @endif
  11. <div class="page-container">
  12. <form action="/admin/statistics/salerTargetStore" method="post" class="form form-horizontal">
  13. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  14. <div class="row cl">
  15. <label class="form-label col-xs-4 col-sm-2">
  16. 选择销售员(不选默认当前用户):</label>
  17. <div class="formControls col-xs-6 col-sm-6">
  18. <span class="select-box">
  19. <select size="1" name="team" id='team'>
  20. <option value="0" @if(old('team')=='') selected @endif>选择团队</option>
  21. @foreach($teamlist as $v)
  22. <option value="{{$v['id']}}" @if(old('team')==$v['id']) selected @endif>{{$v['name']}}</option>
  23. @endforeach
  24. </select>
  25. <select id='admins' size="1" name="admin_id">
  26. <option value="0" @if(old('admin_id')=='') selected @endif>-- 选择销售 --</option>
  27. @foreach($adminlist as $v)
  28. <option value="{{$v['id']}}" @if(old('admin_id')==$v['id']) selected @endif>{{$v['realname']}}</option>
  29. @endforeach
  30. </select>
  31. &nbsp;&nbsp;
  32. </span>
  33. </div>
  34. </div>
  35. <div class="row cl">
  36. <label class="form-label col-xs-4 col-sm-2">
  37. 月份:</label>
  38. <div class="formControls col-xs-6 col-sm-6">
  39. <input id="dtime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM' })" class="input-text Wdate" style="width:22%;text-align:center;" name="month" value="">
  40. </div>
  41. </div>
  42. <div class="row cl">
  43. <label class="form-label col-xs-4 col-sm-2">
  44. 目标销售额:</label>
  45. <div class="formControls col-xs-6 col-sm-6">
  46. <input type="text" class="input-text" value="{{old('amount')}}" placeholder="" name="amount">
  47. </div>
  48. </div>
  49. <div class="row cl">
  50. <div class="col-9 col-offset-2">
  51. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>&nbsp;
  52. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  53. {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <!--_footer 作为公共模版分离出去-->
  59. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  60. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  61. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  62. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  63. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  64. <!--/_footer 作为公共模版分离出去-->
  65. <!--请在下方写此页面业务相关的脚本-->
  66. <script type="text/javascript">
  67. $(function(){
  68. setTimeout("$('#error').hide()",3000);
  69. $('#team').change(function(){
  70. team = $('#team').val();
  71. if(team==''){
  72. return false;
  73. }
  74. $.ajax({
  75. 'url':'/admin/order/teamAdmins/'+team,
  76. 'type': 'get',
  77. 'dataType':'json',
  78. 'success' : function(data){
  79. str = '<option value=\'0\'>-- 选择销售 --<\/option>';
  80. $.each(data, function(i, va){
  81. str += '<option value="'+va.id+'">' + va.realname +'<\/option>';
  82. })
  83. $('#admins').html(str);
  84. }
  85. });
  86. })
  87. });
  88. /*返回*/
  89. function return_index(){
  90. location.href='/admin/statistics/salerTargetProgress';
  91. }
  92. </script>
  93. </body>
  94. @endsection