Bez popisu

detailedit.blade.php 6.0KB

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