| | |
| | | // ,{field: 'nowHeadman$', align: 'left',title: '规划组长',hide: true} |
| | | ,{field: 'orderId$', align: 'left',title: '跟踪项目', width: 220, style: 'color: #1890ff;cursor:pointer', event: 'orderMore',hide: false} |
| | | // ,{field: 'cstmrId$', align: 'left',title: '甲方单位', width: 220, style: 'color: #1890ff;cursor:pointer', event: 'cstmrMore',hide: true} |
| | | ,{field: 'appleTime$', align: 'left',title: '申请日期', hide: true} |
| | | ,{field: 'appleTime$', align: 'left',title: '申请日期', hide: false} |
| | | // ,{field: 'beItem$', align: 'center',title: '立项'} |
| | | // ,{field: 'planner', align: 'left',title: '规划员', templet:function(d){return emptyShow(d.planner)}} |
| | | // ,{field: 'finishTime$', align: 'center',title: '完成时间'} |
| | |
| | | ,{field: 'settle$', align: 'center',title: '进度', width: 150} |
| | | // ,{field: 'settleMsg', align: 'center',title: '审核进度'} |
| | | // ,{field: 'comment', align: 'center',title: '评论'} |
| | | // ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'createTime$', align: 'left',title: '添加日期', width: 160, hide: false} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'createTime$', align: 'left',title: '添加日期', width: 160, hide: true} |
| | | ,{field: 'updateBy$', align: 'left',title: '修改人', width: 100} |
| | | ,{field: 'updateTime$', align: 'left',title: '修改时间', hide: true} |
| | | ,{field: 'memo', align: 'left',title: '注释', hide: true} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 280} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 340} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | ]) |
| | | let planNeedSel = loadPlanNeedSel(); |
| | | form.val('detail', { |
| | | planTypeName: planType.name |
| | | planTypeName: planType.name, |
| | | userXmlSelPhone: res0.data.mobile |
| | | }); |
| | | layDateRender(); |
| | | form.on('submit(editSubmit)', function (data) { |
| | |
| | | }, function (i) { |
| | | layer.close(i); |
| | | // 指定规划员 |
| | | if (data.settle === 2) { |
| | | if (data.settle === 1) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '300px', |
| | |
| | | } else { |
| | | approval(data.id); |
| | | } |
| | | }); |
| | | break; |
| | | case 'approvalEnd': |
| | | layer.confirm('审批拒绝?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1, |
| | | offset: '200px', |
| | | title: data.name |
| | | }, function (i) { |
| | | layer.close(i); |
| | | approvalEnd(data.id); |
| | | }); |
| | | break; |
| | | case 'edit': |
| | |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/approval/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | planId: planId, |
| | | plannerId: plannerId |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (dIdx) { |
| | | layer.close(dIdx); |
| | | } |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function approvalEnd(planId, plannerId, dIdx) { |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/approvalEnd/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | planId: planId, |
| | |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | cb(res.data) |
| | | // cb(res.data) |
| | | cb([]); |
| | | } else { |
| | | cb([]); |
| | | layer.msg(res.msg, {icon: 2}); |