中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-28 5528e869fc25354fe62fbb228cfdd40e0df94dbc
src/main/webapp/static/js/plan/plan.js
@@ -141,7 +141,7 @@
            // ,{field: 'hostId$', align: 'center',title: '所属商户'}
            ,{field: 'userId$', align: 'left',title: '业务员'}
            ,{field: 'planType$', align: 'left',title: '业务类型', width: 150}
            ,{field: 'name', align: 'left',title: '售前规划申请单名称', width: 220, style: 'color: #1890ff;cursor:pointer', event: 'planMore',}
            ,{field: 'name', align: 'left',title: '售前规划申请单名称', width: 220, style: 'color: #1890ff;cursor:pointer', event: 'more'}
            ,{field: 'uuid', align: 'left',title: '规划单号', width: 100}
            ,{field: 'planNeed$', align: 'left',title: '所需', templet:function(d){return emptyShow(d.planNeed$)}}
            ,{field: 'deptId$', align: 'left',title: '所属部门'}
@@ -167,7 +167,7 @@
            ,{field: 'updateTime$', align: 'left',title: '修改时间', hide: true}
            ,{field: 'memo', align: 'left',title: '注释', hide: true}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 180}
        ]],
        request: {
            pageName: 'curr',
@@ -379,6 +379,34 @@
                    }
                })
                break;
            case 'approval':
                layer.confirm('审批通过?', {
                    skin: 'layui-layer-admin',
                    shade: .1,
                    offset: '200px',
                    title: data.name
                }, function (i) {
                    layer.close(i);
                    let loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/plan/approval/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: {planId: data.id},
                        method: 'POST',
                        success: function (res) {
                            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});
                            }
                        }
                    })
                });
                break;
            case 'edit':
                showEditModel(data);
                break;