|  |  |  | 
|---|
|  |  |  | {field: 'id', align: 'center',title: 'ID',hide : true} | 
|---|
|  |  |  | ,{field: 'startTime$', align: 'center',title: '开始日期',hide : true} | 
|---|
|  |  |  | ,{field: 'endTime$', align: 'center',title: '结束日期',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyDayMonth', align: 'center',title: '周',hide : false} | 
|---|
|  |  |  | ,{field: 'userId$', align: 'center',title: '所属人员',hide : true} | 
|---|
|  |  |  | ,{field: 'hostId$', align: 'center',title: '所属商户',hide : true} | 
|---|
|  |  |  | ,{field: 'deptId$', align: 'center',title: '所属部门',hide : true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'status$', align: 'center',title: '状态',hide : false} | 
|---|
|  |  |  | ,{field: 'settle$', align: 'center',title: '进度',hide : false} | 
|---|
|  |  |  | ,{field: 'settleMsg', align: 'center',title: '审核进度',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyDailyPlan', align: 'center',title: '日计划',hide : false, toolbar: '#tbLookPlan'} | 
|---|
|  |  |  | ,{field: 'weeklyDailyReality', align: 'center',title: '日行程',hide : false, toolbar: '#tbLookReality'} | 
|---|
|  |  |  | ,{field: 'comment', align: 'center',title: '评论',hide : false} | 
|---|
|  |  |  | ,{field: 'createBy$', align: 'center',title: '添加人员',hide : true} | 
|---|
|  |  |  | ,{field: 'createTime$', align: 'center',title: '添加时间',hide : true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'settleSize', align: 'center',title: '流程长度',hide : true} | 
|---|
|  |  |  | ,{field: 'settleCurrent', align: 'center',title: '当前进度',hide : true} | 
|---|
|  |  |  | ,{field: 'cstmrIdsPlan', align: 'center',title: '计划甲方单位ID集合',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyAll', align: 'center',title: '周数',hide : false} | 
|---|
|  |  |  | ,{field: 'weeklyAll', align: 'center',title: '周数',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyNowMonth', align: 'center',title: '当月第几周',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyYear', align: 'center',title: '年',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyMonth', align: 'center',title: '月',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyDay', align: 'center',title: '日',hide : true} | 
|---|
|  |  |  | ,{field: 'weeklyDayMonth', align: 'center',title: '周',hide : true} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:240} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | 
|---|
|  |  |  | case "edit": | 
|---|
|  |  |  | showEditModel(data); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case "look": | 
|---|
|  |  |  | var $a = $(obj.tr).find('a[lay-event="look"]'); | 
|---|
|  |  |  | case "lookPlan": | 
|---|
|  |  |  | var $a = $(obj.tr).find('a[lay-event="lookPlan"]'); | 
|---|
|  |  |  | var offset = $a.offset(); | 
|---|
|  |  |  | var top2 = offset.top; | 
|---|
|  |  |  | var left = offset.left; | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | title: false, | 
|---|
|  |  |  | area: '2100px', | 
|---|
|  |  |  | offset: [top2 + 'px', (left - 1430 + $a.outerWidth()) + 'px'], | 
|---|
|  |  |  | area: '1100px', | 
|---|
|  |  |  | offset: [top2 + 'px', (left - 430 + $a.outerWidth()) + 'px'], | 
|---|
|  |  |  | shade: .01, | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | fixed: false, | 
|---|
|  |  |  | 
|---|
|  |  |  | table.render({ | 
|---|
|  |  |  | elem: '#lookSSXMTable', | 
|---|
|  |  |  | headers: {token: localStorage.getItem('token')}, | 
|---|
|  |  |  | url: baseUrl+'/weeklyDetl/list/auth', | 
|---|
|  |  |  | url: baseUrl+'/weeklyDailyPlan/list/auth', | 
|---|
|  |  |  | where: { | 
|---|
|  |  |  | order_id: data.id | 
|---|
|  |  |  | weekly_id: data.id | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | page: true, | 
|---|
|  |  |  | cellMinWidth: 100, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | ,{field: 'id', align: 'center',title: 'ID'} | 
|---|
|  |  |  | ,{field: 'dailyTime$', align: 'center',title: '日报日期'} | 
|---|
|  |  |  | ,{field: 'userId$', align: 'center',title: '所属人员'} | 
|---|
|  |  |  | ,{field: 'hostId$', align: 'center',title: '所属商户'} | 
|---|
|  |  |  | ,{field: 'deptId$', align: 'center',title: '所属部门'} | 
|---|
|  |  |  | ,{field: 'status$', align: 'center',title: '状态'} | 
|---|
|  |  |  | ,{field: 'settle$', align: 'center',title: '进度'} | 
|---|
|  |  |  | ,{field: 'settleMsg', align: 'center',title: '审核进度'} | 
|---|
|  |  |  | ,{field: 'comment', align: 'center',title: '评论'} | 
|---|
|  |  |  | ,{field: 'createBy$', align: 'center',title: '添加人员'} | 
|---|
|  |  |  | ,{field: 'createTime$', align: 'center',title: '添加时间'} | 
|---|
|  |  |  | ,{field: 'updateBy$', align: 'center',title: '修改人员'} | 
|---|
|  |  |  | ,{field: 'updateTime$', align: 'center',title: 'update_time'} | 
|---|
|  |  |  | ,{field: 'weeklyMatter', align: 'center',title: '需协助事项'} | 
|---|
|  |  |  | ,{field: 'director$', align: 'center',title: '负责人'} | 
|---|
|  |  |  | ,{field: 'settleSize', align: 'center',title: '流程长度'} | 
|---|
|  |  |  | ,{field: 'settleCurrent', align: 'center',title: '当前进度'} | 
|---|
|  |  |  | ,{field: 'weeklyId', align: 'center',title: '周报ID'} | 
|---|
|  |  |  | ,{field: 'cstmrId', align: 'center',title: '甲方单位ID'} | 
|---|
|  |  |  | ,{field: 'weeklyDay', align: 'center',title: '星期'} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注'} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} | 
|---|
|  |  |  | {type: 'numbers'} | 
|---|
|  |  |  | ,{field: 'weeklyDay$', align: 'center',title: '星期'} | 
|---|
|  |  |  | ,{field: 'workContent', title: '工作内容', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'workPurpose', title: '工作目的', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'comment', title: '评论', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'weeklyMatter', title: '需协助事项', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} | 
|---|
|  |  |  | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} | 
|---|
|  |  |  | // ,{field: 'director', align: 'center',title: '负责人'} | 
|---|
|  |  |  | // ,{field: 'settleSize', align: 'center',title: '流程长度'} | 
|---|
|  |  |  | // ,{field: 'settleCurrent', align: 'center',title: '当前进度'} | 
|---|
|  |  |  | ,{field: 'cstmrId', align: 'center',title: '甲方单位ID',  style: 'color: blue;font-weight: bold', templet: '#cstmrId'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注',  style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | pageSize: 'limit' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | parseData: function (res) { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | 'code': res.code, | 
|---|
|  |  |  | 'msg': res.msg, | 
|---|
|  |  |  | 'count': res.data.total, | 
|---|
|  |  |  | 'data': res.data.records | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | response: { | 
|---|
|  |  |  | statusCode: 200 | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | done: function () { | 
|---|
|  |  |  | $(layero).find('.layui-table-view').css('margin', '0'); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | size: '' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case "lookReality": | 
|---|
|  |  |  | var $a = $(obj.tr).find('a[lay-event="lookReality"]'); | 
|---|
|  |  |  | var offset = $a.offset(); | 
|---|
|  |  |  | var top2 = offset.top; | 
|---|
|  |  |  | var left = offset.left; | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | title: false, | 
|---|
|  |  |  | area: '1100px', | 
|---|
|  |  |  | offset: [top2 + 'px', (left - 830 + $a.outerWidth()) + 'px'], | 
|---|
|  |  |  | shade: .01, | 
|---|
|  |  |  | shadeClose: true, | 
|---|
|  |  |  | fixed: false, | 
|---|
|  |  |  | content: '<table id="lookSSXMTable" lay-filter="lookSSXMTable"></table>', | 
|---|
|  |  |  | success: function (layero) { | 
|---|
|  |  |  | table.render({ | 
|---|
|  |  |  | elem: '#lookSSXMTable', | 
|---|
|  |  |  | headers: {token: localStorage.getItem('token')}, | 
|---|
|  |  |  | url: baseUrl+'/weeklyDailyReality/list/auth', | 
|---|
|  |  |  | where: { | 
|---|
|  |  |  | weekly_id: data.id | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | page: true, | 
|---|
|  |  |  | cellMinWidth: 100, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'numbers'} | 
|---|
|  |  |  | ,{field: 'weeklyDay$', align: 'center',title: '星期'} | 
|---|
|  |  |  | ,{field: 'workContent', title: '工作内容', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'workPurpose', title: '工作目的', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'comment', title: '评论', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{field: 'weeklyMatter', title: '需协助事项', style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} | 
|---|
|  |  |  | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} | 
|---|
|  |  |  | // ,{field: 'director', align: 'center',title: '负责人'} | 
|---|
|  |  |  | // ,{field: 'settleSize', align: 'center',title: '流程长度'} | 
|---|
|  |  |  | // ,{field: 'settleCurrent', align: 'center',title: '当前进度'} | 
|---|
|  |  |  | ,{field: 'cstmrId', align: 'center',title: '甲方单位ID', style: 'color: blue;font-weight: bold', templet: '#cstmrId'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注', width: 100, style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | 
|---|
|  |  |  | function showEditModel(expTpe) { | 
|---|
|  |  |  | admin.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | title: (expTpe ? '修改' : '添加') + '报销审批', | 
|---|
|  |  |  | title: (expTpe ? '修改' : '创建') + '周计划', | 
|---|
|  |  |  | content: $('#editDialog').html(), | 
|---|
|  |  |  | area: '2200px', | 
|---|
|  |  |  | success: function (layero, dIndex) { | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 表格操作列 --> | 
|---|
|  |  |  | <script type="text/html" id="tbLook"> | 
|---|
|  |  |  | <script type="text/html" id="tbLookPlan"> | 
|---|
|  |  |  | <span class="layui-text"> | 
|---|
|  |  |  | <a href="javascript:;" lay-event="look"> | 
|---|
|  |  |  | <i class="layui-icon" style="font-size: 12px;"></i> 查看周计划 | 
|---|
|  |  |  | <a href="javascript:;" lay-event="lookPlan"> | 
|---|
|  |  |  | <i class="layui-icon" style="font-size: 12px;"></i> 查看日计划 | 
|---|
|  |  |  | </a> | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 表格操作列 --> | 
|---|
|  |  |  | <script type="text/html" id="tbLookReality"> | 
|---|
|  |  |  | <span class="layui-text"> | 
|---|
|  |  |  | <a href="javascript:;" lay-event="lookReality"> | 
|---|
|  |  |  | <i class="layui-icon" style="font-size: 12px;"></i> 查看日行程 | 
|---|
|  |  |  | </a> | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | 
|---|
|  |  |  | <a class="layui-btn layui-btn-xs btn-edit" lay-event="approval2">审批</a> | 
|---|
|  |  |  | {{# } }} | 
|---|
|  |  |  | {{# if (d.settle == 0) { }} | 
|---|
|  |  |  | <a class="layui-btn layui-btn-xs btn-edit" lay-event="approval2">提交</a> | 
|---|
|  |  |  | <!--    <a class="layui-btn layui-btn-xs btn-edit" lay-event="approval2">提交</a>--> | 
|---|
|  |  |  | {{# } }} | 
|---|
|  |  |  | <!--  <a class="layui-btn layui-btn-xs btn-edit" lay-event="approval">提交</a>--> | 
|---|
|  |  |  | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">编辑</a> | 
|---|
|  |  |  | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> | 
|---|
|  |  |  | <!--    <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a>--> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> | 
|---|