1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="ibox">
- <div class="ibox-content">
- <div class="jqGrid_wrapper">
- <table id="table" style="border-collapse: collapse"></table>
- <div id="pager"></div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/layDate-v5.0.9/laydate.js"></script>
- <script>
- $(function () {
- laydate.render({
- elem: '#start',
- trigger: 'click' ,
- theme: '#148d8f'
- });
- laydate.render({
- elem: '#end',
- trigger: 'click' ,
- theme: '#148d8f'
- });
- $(window).bind("resize",function(){
- var width=$(".jqGrid_wrapper").width();
- $("#table").setGridWidth(width);
- });
- $.jgrid.defaults.styleUI="Bootstrap";
- $("#table").jqGrid({
- url:"{:url('rejectTodoList',[],'')}?orderId={$orderId}",
- datatype: "json",
- colModel:[
- {label:'编号',name:'id',index:'id', width:30,sortable: false},
- {label:'订单编号',name:'order_id',index:'order_id',width:30,editable: false,sortable: false},
- // {label:'发起人',name:'real_name',index:'real_name',width:30,editable: false,sortable: false},
- {label:'执行人',name:'to_user_name',index:'to_real_name',width:50,sortable: true},
- {label:'工单类型',name:'work_type_mode_text',index:'work_type_mode_text',width:50,sortable: true},
- {label:'内容',name:'content',index:'content',width:50,sortable: true},
- // {label:'调度分派时间',name:'to_create_time',index:'to_create_time',width:50,sortable: true},
- {label:'接单时间',name:'confirm_time',index:'confirm_time',width:50,sortable: true},
- {label:'完成时间',name:'done_time',index:'done_time',width:50,sortable: true},
- {label:'状态',name:'todo_mode_in_content',index:'todo_mode_in_content',width:60,sortable: true,formatter:function (a, b, c) {
- return '<span style="color: '+c.todo_mode_color+'">'+a+'</span>'
- }},
- {label:'操作',width:100,sortable: false,formatter: function (a, b, c) {
- var send_url = "{:url('Todo/send',[],'')}/id/"+c.id+'/mode/'+c.work_type_mode;
- var cancel_url = "{:url('Todo/disCancel',[],'')}/id/"+c.id;
- var btn = '';
- btn += '<a url="'+send_url+'" href="javascript:;" data-title="重新派单" onclick="layer_open(this,1)"><span class="label label-primary" title="重新派单">重新派单</span></a> ';
- btn += '<a url="'+cancel_url+'" href="javascript:;" data-title="取消" onclick="layer_open(this,1)"><span class="label label-danger" title="取消">取消</span></a>';
- return btn;
- }},
- ],
- rowNum:10,
- rowList:[10,20,30,50,100],
- pager: '#pager',
- sortname: 'id',
- viewrecords: true,
- autowidth:true,
- mtype: 'post',
- height: 'auto',
- emptyrecords: "暂无数据",
- sortorder: "desc",
- caption:"驳回工单列表",
- loadComplete: function (xhr) {
- if(xhr.code==0){
- layer.msg(xhr.msg);
- return false;
- }
- },
- });
- });
- </script>
- {/block}
|