123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(count($errors) > 0)
- <div class="Huialert Huialert-info" id="error">
- @foreach($errors->all() as $error)
- <li>{{$error}}</li>
- @endforeach
- </div>
- @endif
- <div class="page-container">
- <form action="/admin/custreport/detailupdate" method="post" class="form form-horizontal" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- @if($custreport)
- <input type="hidden" name="id" value="{{$custreport['id']}}" />
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 加粉数:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$custreport['fan_add']}}" placeholder="请输入加粉数" name="fan_add">
- </div>
- </div>
-
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 新粉回复数:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$custreport['new_reply']}}" placeholder="" name="new_reply">
- </div>
- </div>
-
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 老粉询价数:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$custreport['old_consult']}}" placeholder="" name="old_consult">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 新粉询价数:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="{{$custreport['new_consult']}}" placeholder="" name="new_consult">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 日期:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <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']}}">
- </div>
- </div>
- @if(0)
- @if($self_role !='销售' && $self_role != '分销销售')
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 选择销售员(不选默认当前用户):</label>
- <div class="formControls col-xs-6 col-sm-6">
- <span class="select-box">
- <select size="1" name="team" id='team'>
- <option value="0" @if($custreport['team_id']=='') selected @endif>选择团队</option>
- @foreach($teamlist as $v)
- <option value="{{$v['id']}}" @if($custreport['team_id']==$v['id']) selected @endif>{{$v['name']}}</option>
- @endforeach
- </select>
- <select id='admins' size="1" name="admin_id">
- <option value="0" @if($custreport['admin_id']=='') selected @endif>-- 选择销售 --</option>
- @foreach($adminlist as $v)
- <option value="{{$v['id']}}" @if($custreport['admin_id']==$v['id']) selected @endif>{{$v['realname']}}</option>
- @endforeach
- </select>
-
- </span>
- </div>
- </div>
- @endif
- @endif
-
- @endif
- <div class="row cl">
- <div class="col-9 col-offset-2">
- <button class="btn btn-primary radius" type="submit" value=" 提交 "> 提交 </button>
- <button class="btn btn-default" type="reset" onclick="return_index();"> 返回 </button>
- </div>
- </div>
- </form>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--请在下方写此页面业务相关的脚本-->
- <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#error').hide()",3000);
- $('#team').change(function(){
- team = $('#team').val();
- if(team==''){
- return false;
- }
- $.ajax({
- 'url':'/admin/order/teamAdmins/'+team,
- 'type': 'get',
- 'dataType':'json',
- 'success' : function(data){
- str = '<option value=\'0\'>-- 选择销售 --<\/option>';
- $.each(data, function(i, va){
- str += '<option value="'+va.id+'">' + va.realname +'<\/option>';
- })
-
- $('#admins').html(str);
- }
- });
- })
- });
- /*返回*/
- function return_index(){
- location.href='/admin/custreport/detailindex';
- }
- </script>
- </body>
- @endsection
|