Ei kuvausta

detailcreate.blade.php 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/custreport/detailstore" method="post" class="form form-horizontal" enctype="multipart/form-data">
  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. <input type="text" class="input-text" value="{{old('fan_add')}}" placeholder="请输入加粉数" name="fan_add">
  19. </div>
  20. </div>
  21. <div class="row cl">
  22. <label class="form-label col-xs-4 col-sm-2">
  23. 新粉回复数:</label>
  24. <div class="formControls col-xs-6 col-sm-6">
  25. <input type="text" class="input-text" value="{{old('new_reply')}}" placeholder="" name="new_reply">
  26. </div>
  27. </div>
  28. <div class="row cl">
  29. <label class="form-label col-xs-4 col-sm-2">
  30. 老粉询价数:</label>
  31. <div class="formControls col-xs-6 col-sm-6">
  32. <input type="text" class="input-text" value="{{old('old_consult')}}" placeholder="" name="old_consult">
  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 type="text" class="input-text" value="{{old('new_consult')}}" placeholder="" name="new_consult">
  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 id="dtime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" style="width:22%;text-align:center;" name="dtime" value="">
  47. </div>
  48. </div>
  49. @if(0)
  50. @if($self_role !='销售' && $self_role != '分销销售')
  51. <div class="row cl">
  52. <label class="form-label col-xs-4 col-sm-2">
  53. 选择销售员(不选默认当前用户):</label>
  54. <div class="formControls col-xs-6 col-sm-6">
  55. <span class="select-box">
  56. <select size="1" name="team" id='team'>
  57. <option value="0" @if(old('team')=='') selected @endif>选择团队</option>
  58. @foreach($teamlist as $v)
  59. <option value="{{$v['id']}}" @if(old('team')==$v['id']) selected @endif>{{$v['name']}}</option>
  60. @endforeach
  61. </select>
  62. <select id='admins' size="1" name="admin_id">
  63. <option value="0" @if(old('admin_id')=='') selected @endif>-- 选择销售 --</option>
  64. @foreach($adminlist as $v)
  65. <option value="{{$v['id']}}" @if(old('admin_id')==$v['id']) selected @endif>{{$v['realname']}}</option>
  66. @endforeach
  67. </select>
  68. &nbsp;&nbsp;
  69. </span>
  70. </div>
  71. </div>
  72. @endif
  73. @endif
  74. <div class="row cl">
  75. <div class="col-9 col-offset-2">
  76. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>&nbsp;
  77. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  78. </div>
  79. </div>
  80. </form>
  81. </div>
  82. <!--_footer 作为公共模版分离出去-->
  83. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  84. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  85. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  86. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  87. <!--/_footer 作为公共模版分离出去-->
  88. <!--请在下方写此页面业务相关的脚本-->
  89. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  90. <script type="text/javascript">
  91. $(function(){
  92. setTimeout("$('#error').hide()",3000);
  93. $('#team').change(function(){
  94. team = $('#team').val();
  95. if(team==''){
  96. return false;
  97. }
  98. $.ajax({
  99. 'url':'/admin/order/teamAdmins/'+team,
  100. 'type': 'get',
  101. 'dataType':'json',
  102. 'success' : function(data){
  103. str = '<option value=\'0\'>-- 选择销售 --<\/option>';
  104. $.each(data, function(i, va){
  105. str += '<option value="'+va.id+'">' + va.realname +'<\/option>';
  106. })
  107. $('#admins').html(str);
  108. }
  109. });
  110. })
  111. });
  112. /*返回*/
  113. function return_index(){
  114. location.href='/admin/custreport/detailindex';
  115. }
  116. </script>
  117. </body>
  118. @endsection