| | |
| | | var htmlCstmrData; |
| | | var indexS = "9999,8888"; |
| | | var indexDelSign = 0; |
| | | let nowUserId2 = 0; |
| | | fWeekly(); |
| | | function fWeekly() { |
| | | layui.jquery.ajax({ |
| | | url: baseUrl + "/dashboard/user/id/popup/auth", |
| | | data:{token : localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | nowUserId2 = res.data; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).extend({ |
| | |
| | | ,{field: 'deptId$', align: 'center',title: '所属部门',hide : true} |
| | | ,{field: 'cstmrIdsReality', align: 'center',title: '实际甲方单位ID集合',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: '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: 'updateBy$', align: 'center',title: '修改人员',hide : true} |
| | | ,{field: 'updateTime$', align: 'center',title: 'update_time',hide : true} |
| | | ,{field: 'memo', align: 'center',title: '备注(50字)',hide : false} |
| | | ,{field: 'director$', align: 'center',title: '审批人',hide : true} |
| | | ,{field: 'director$', align: 'center',title: '审核节点',hide : true} |
| | | ,{field: 'director', align: 'center',title: '审核节点',hide : true} |
| | | ,{field: 'settle', align: 'center',title: '进度',hide : true} |
| | | ,{field: 'settleSize', align: 'center',title: '流程长度',hide : true} |
| | | ,{field: 'settle$', align: 'center',title: '进度', style: 'color: #1890ff;cursor:pointer', event: 'more',hide: false} |
| | | ,{field: 'settleCurrent', align: 'center',title: '当前进度',hide : true} |
| | | ,{field: 'cstmrIdsPlan', align: 'center',title: '计划甲方单位ID集合',hide : true} |
| | | ,{field: 'weeklyAll', align: 'center',title: '周数',hide : true} |
| | | ,{field: 'weeklyNowMonth', align: 'center',title: '当月第几周',hide : true} |
| | | ,{field: 'nowUserId', align: 'center', title: 'nowUserId', hide: true, templet:function(){ return nowUserId2 }} |
| | | ,{field: 'weeklyYear', align: 'center',title: '年',hide : true} |
| | | ,{field: 'weeklyMonth', align: 'center',title: '月',hide : true} |
| | | ,{field: 'weeklyDay', align: 'center',title: '日',hide : true} |
| | |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | res.data.records.forEach((item,index) => { |
| | | item.nowUserId = nowUserId2 |
| | | }) |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | |
| | | url: baseUrl+"/weekly/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: data.id}, |
| | | method: 'POST', |
| | | traditional:true, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | |
| | | {type: 'numbers'} |
| | | ,{field: 'weeklyDay$', align: 'center',title: '星期'} |
| | | ,{field: 'dailyTime$',width : 120, align: 'center',title: '日期'} |
| | | ,{field: 'workContent', align: 'center', title: '工作内容', edit:false} |
| | | ,{field: 'workPurpose', title: '工作目的', edit:false} |
| | | ,{field: 'comment', title: '评论', edit:false} |
| | | ,{field: 'workContent', align: 'center', title: '工作内容及目的', edit:false} |
| | | // ,{field: 'workPurpose', title: '工作目的', edit:false} |
| | | // ,{field: 'comment', title: '评论', edit:false} |
| | | ,{field: 'weeklyMatter', title: '需协助事项', edit:false} |
| | | // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} |
| | | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} |
| | |
| | | {type: 'numbers'} |
| | | ,{field: 'weeklyDay$', align: 'center',title: '星期'} |
| | | ,{field: 'dailyTime$',width : 120, align: 'center',title: '日期'} |
| | | ,{field: 'workContent', align: 'center', title: '工作内容', edit:false} |
| | | ,{field: 'workPurpose', title: '工作目的', edit:false} |
| | | ,{field: 'comment', title: '评论', edit:false} |
| | | ,{field: 'workContent', align: 'center', title: '工作内容及目的', edit:false} |
| | | // ,{field: 'workPurpose', title: '工作目的', edit:false} |
| | | // ,{field: 'comment', title: '评论', edit:true} |
| | | ,{field: 'weeklyMatter', title: '需协助事项', edit:false} |
| | | // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} |
| | | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} |
| | |
| | | } |
| | | } |
| | | }) |
| | | location.reload(); |
| | | |
| | | return false; |
| | | }); |
| | | $('#cancelBtn').on('click', function () { |
| | | location.reload(); |
| | | }); |
| | | // 明细表格 |
| | | var xxDataList = []; |
| | |
| | | cols: [[ |
| | | {type: 'numbers', title: '#'} |
| | | ,{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: 'workContent', title: '工作内容及目的', style: 'color: blue;font-weight: bold', edit:true} |
| | | // ,{field: 'workPurpose', title: '工作目的', style: 'color: blue;font-weight: bold', edit:true} |
| | | ,{field: 'addr', title: '地址', style: 'color: blue;font-weight: bold', edit:true} |
| | | ,{field: 'comment', 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: '审核进度'} |
| | |
| | | function showEditModel2(expTpe) { |
| | | admin.open({ |
| | | type: 1, |
| | | title: (expTpe ? '创建' : '创建') + '日行程', |
| | | title: (expTpe ? '创建' : '创建') + '日结果', |
| | | content: $('#editDialog').html(), |
| | | area: '2200px', |
| | | success: function (layero, dIndex) { |
| | |
| | | } |
| | | } |
| | | }) |
| | | location.reload(); |
| | | return false; |
| | | }); |
| | | // 明细表格 |
| | |
| | | cols: [[ |
| | | {type: 'numbers', title: '#'} |
| | | ,{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: 'workContent', title: '工作内容及目的', style: 'color: blue;font-weight: bold', edit:true} |
| | | // ,{field: 'workPurpose', title: '工作目的', style: 'color: blue;font-weight: bold', edit:true} |
| | | ,{field: 'addr', title: '地址', style: 'color: blue;font-weight: bold', edit:true} |
| | | ,{field: 'comment', title: '评论', style: 'color: blue;font-weight: bold', edit:true} |
| | | // ,{field: 'comment', title: '评论', style: 'color: blue;font-weight: bold', edit:false} |
| | | ,{field: 'weeklyMatter', title: '需协助事项', style: 'color: blue;font-weight: bold', edit:true} |
| | | // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} |
| | | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} |
| | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |
| | | location.reload(); |
| | | }); |
| | | |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |