123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- {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('dispatchAdd',[],'')}/mode/{$mode}?id={$id}" class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-2 control-label">任务内容<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <textarea name="content" class="form-control" cols="30" rows="3" ></textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">所在科室/部门</label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'dep_id','lists'=>$dep_list,'value'=>$dep_id])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">图片</label>
- <div class="col-sm-6">
- {:widget('common/upimg',['name'=>'images','multi'=>1,'val'=>''])}
- </div>
- </div>
- {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 class="form-group" id="type2">
- <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>
- {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'=>''])}
- </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($address_id)?$address_id:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">报修紧急程度<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="repair_priority" class="form-control" >
- <option value="2">普通</option>
- <option value="1">可延缓</option>
- <option value="3">紧急</option>
- </select>
- </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" 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}
|