1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('send',[],'')}/id/{$id}/mode/{$mode}" class="form-horizontal">
- {if $dispatch_type==0 && $two_dispatch_off==1}
- <div class="form-group">
- <label class="col-sm-2 control-label">执行人类型<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="userType" onchange="setType(this.value)" class="form-control">
- <option value="0">员工</option>
- <option value="1">二级调度</option>
- </select>
- </div>
- </div>
- {/if}
- <div id="type1" style="display:none">
- <div class="form-group">
- <label class="col-sm-2 control-label">二级调度<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/multiselect',['name'=>'to_roles_id','lists'=>$dispatch_roles,'val'=>[]])}
- </div>
- </div>
- </div>
- <div id="type2">
- <div class="form-group">
- <label class="col-sm-2 control-label">执行人<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/user-group-select',['name'=>'to_user_id','lists'=>$user_list,'multi'=>$send_user_num,'val'=>'','msg'=>''])}
- </div>
- </div>
- </div>
- {if $mode==1}
- <div class="form-group">
- <label class="col-sm-2 control-label">报修事项<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'type_id','lists'=>$order_type_list,'value'=>isset($order_repair) && !empty($order_repair)?$order_repair['type_id']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">报修地址</label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'address_id','lists'=>$address_list,'value'=>isset($order_repair) && !empty($order_repair)?$order_repair['address_id']:''])}
- </div>
- </div>
- {/if}
- <div class="form-group">
- <label class="col-sm-2 control-label">备注</label>
- <div class="col-sm-6">
- <textarea name="todo_content" class="form-control" cols="30" rows="3" ></textarea>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer="1" data-reload="1" target-form="form-horizontal" type="submit">确 定</button>
- <button class="btn cancel-btn btn-default" type="button">取 消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- function setType(val) {
- if(val==1){
- $("#type1").css('display','block')
- $("#type2").css('display','none')
- }else {
- $("#type2").css('display','block')
- $("#type1").css('display','none')
- }
- }
- </script>
- {/block}
|