| | |
| | | ,{field: 'checkData', align: 'center',title: '是否冲账',hide: false} |
| | | ,{field: 'orderNum', align: 'center',title: '报销单号',width: 320, style: 'color: #1890ff;cursor:pointer', event: 'more',hide: false} |
| | | ,{field: 'planId$', align: 'center',title: '项目号',hide: false} |
| | | ,{field: 'settle', align: 'center',title: '进度',hide: false} |
| | | ,{field: 'createTime$', align: 'center',title: '创建时间',hide: false} |
| | | ,{field: 'updateTime$', align: 'center',title: '更新时间',hide: false} |
| | | ,{field: 'status$', align: 'center',title: '状态',hide: false} |
| | |
| | | table.on('tool(reimburseOnline)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | | case 'approval2': |
| | | layer.confirm('审批通过?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1, |
| | | offset: '200px', |
| | | title: data.name |
| | | }, function (i) { |
| | | layer.close(i); |
| | | approval2(data.id); |
| | | }); |
| | | break; |
| | | case 'more': |
| | | top.reimburseOnlineByMore=data.id; |
| | | console.log(top.reimburseOnlineByMore) |
| | |
| | | }); |
| | | } |
| | | |
| | | function approval(planId, plannerId, dIdx) { |
| | | function approval2(planId, plannerId, dIdx) { |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/reimburseOnline/approval/auth", |
| | | url: baseUrl+"/reimburseOnline/approval2/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | planId: planId, |