|  |  |  | 
|---|
|  |  |  | ,{field: 'status$', 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} | 
|---|
|  |  |  | 
|---|
|  |  |  | pageSize: 'limit' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | parseData: function (res) { | 
|---|
|  |  |  | res.data.records.forEach((item,index) => { | 
|---|
|  |  |  | item.nowUserId = nowUserId2 | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | 'code': res.code, | 
|---|
|  |  |  | 'msg': res.msg, | 
|---|
|  |  |  | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'numbers'} | 
|---|
|  |  |  | ,{field: 'weeklyDay$', align: 'center',title: '星期'} | 
|---|
|  |  |  | ,{field: 'cstmrId$', align: 'center',title: '甲方单位ID'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{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: '审核进度'} | 
|---|
|  |  |  | // ,{field: 'director', align: 'center',title: '负责人'} | 
|---|
|  |  |  | // ,{field: 'settleSize', align: 'center',title: '流程长度'} | 
|---|
|  |  |  | // ,{field: 'settleCurrent', align: 'center',title: '当前进度'} | 
|---|
|  |  |  | ,{field: 'cstmrId$', align: 'center',title: '甲方单位ID'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注',   edit:false} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'numbers'} | 
|---|
|  |  |  | ,{field: 'weeklyDay$', align: 'center',title: '星期'} | 
|---|
|  |  |  | ,{field: 'cstmrId$', align: 'center',title: '甲方单位ID'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{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: '审核进度'} | 
|---|
|  |  |  | // ,{field: 'director', align: 'center',title: '负责人'} | 
|---|
|  |  |  | // ,{field: 'settleSize', align: 'center',title: '流程长度'} | 
|---|
|  |  |  | // ,{field: 'settleCurrent', align: 'center',title: '当前进度'} | 
|---|
|  |  |  | ,{field: 'cstmrId$', align: 'center',title: '甲方单位ID'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注',   edit:false} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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: 'cstmrId', align: 'center',title: '甲方单位ID', style: 'color: blue;font-weight: bold', templet: '#cstmrId'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{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: '审核进度'} | 
|---|
|  |  |  | // ,{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: 'cstmrId$', align: 'center',title: '甲方单位'} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注', width: 100, style: 'color: blue;font-weight: bold', edit:true} | 
|---|
|  |  |  | ,{align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | done: function (res, curr, count) { | 
|---|
|  |  |  | $(".layui-table-cell").css('overflow', 'visible');//解决layui数据表格中嵌套下拉框显示问题 | 
|---|
|  |  |  | $(".laytable-cell-2-0-7").css('color', 'rgba(0, 0, 0, 0)'); | 
|---|
|  |  |  | $(".laytable-cell-2-0-2").css('color', 'rgba(0, 0, 0, 0)'); | 
|---|
|  |  |  | $(".layui-layer-setwin").css('display', 'none'); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $(layero).find('.layui-table-view').css('margin', '0'); | 
|---|
|  |  |  | var options = this; | 
|---|
|  |  |  | 
|---|
|  |  |  | function showEditModel2(expTpe) { | 
|---|
|  |  |  | admin.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | title: (expTpe ? '创建' : '创建') + '日行程', | 
|---|
|  |  |  | title: (expTpe ? '创建' : '创建') + '日结果', | 
|---|
|  |  |  | content: $('#editDialog').html(), | 
|---|
|  |  |  | area: '2200px', | 
|---|
|  |  |  | success: function (layero, dIndex) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 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: 'cstmrId', align: 'center',title: '甲方单位ID', style: 'color: blue;font-weight: bold', templet: '#cstmrId'}//, templet: function () { return htmlCstme;} | 
|---|
|  |  |  | ,{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: 'weeklyMatter', 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: '审核进度'} | 
|---|
|  |  |  | // ,{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} | 
|---|
|  |  |  | ,{align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} | 
|---|
|  |  |  | ]], | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | done: function (res, curr, count) { | 
|---|
|  |  |  | $(".layui-table-cell").css('overflow', 'visible');//解决layui数据表格中嵌套下拉框显示问题 | 
|---|
|  |  |  | $(".laytable-cell-2-0-6").css('color', 'rgba(0, 0, 0, 0)'); | 
|---|
|  |  |  | $(".laytable-cell-2-0-2").css('color', 'rgba(0, 0, 0, 0)'); | 
|---|
|  |  |  | $(".layui-layer-setwin").css('display', 'none'); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $(layero).find('.layui-table-view').css('margin', '0'); | 
|---|
|  |  |  | var options = this; | 
|---|
|  |  |  | var indexSign = 0; | 
|---|
|  |  |  | var indexSignCstmr = 0; | 
|---|
|  |  |  | // 获取当前行数据 | 
|---|
|  |  |  | table.getRowData = function(elem){ | 
|---|
|  |  |  | var index = $(elem).closest('tr').data('index'); | 
|---|
|  |  |  | indexSignCstmr = index; | 
|---|
|  |  |  | var indexArray = indexS.split(","); // 将字符串拆分为数组 | 
|---|
|  |  |  | // 遍历数组中的每个元素 | 
|---|
|  |  |  | for (var i = 0; i < indexArray.length; i++) { | 
|---|
|  |  |  | 
|---|
|  |  |  | url: baseUrl+"/cstmr/all/get/kv", | 
|---|
|  |  |  | headers: {'token': localStorage.getItem('token')}, | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | limit: 9999 | 
|---|
|  |  |  | limit: 9999, | 
|---|
|  |  |  | weeklyId: expTpe.id, | 
|---|
|  |  |  | weeklyId2: indexSignCstmr | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | // async: false, // 设置为同步执行 | 
|---|
|  |  |  | 
|---|
|  |  |  | title: (exp ? '修改' : '添加') + '明细', | 
|---|
|  |  |  | content: $('#matEditDialog').html(), | 
|---|
|  |  |  | success: function (layero, dIndex) { | 
|---|
|  |  |  | if (!exp){ | 
|---|
|  |  |  | indexDelSign = 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 回显数据 | 
|---|
|  |  |  | form.val('matEditForm', exp); | 
|---|
|  |  |  | // 表单提交事件 | 
|---|