中扬CRM客户关系管理系统
LSH
2023-08-24 848b345334707e702bdac0710323437ceadde619
src/main/webapp/static/js/reimburseOnline/reimburseOnline.js
@@ -298,7 +298,7 @@
                });
                break;
            case "edit":
                showEditForm(data);
                showEditModel(data);
                break;
            case "look":
                var $a = $(obj.tr).find('a[lay-event="look"]');
@@ -474,6 +474,7 @@
                        // {field: 'updateUserId', title: '更新人员ID', width: 160},
                        {field: 'updateUserName', title: '更新人员名字'},
                        // {field: 'creationTime', title: '创建日期', width: 160}
                        {align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'}
                    ]],
                    done: function (res) {
                        $(layero).find('.layui-table-view').css('margin', '0');
@@ -690,44 +691,44 @@
    //     });
    // }
    // 更新form
    function showEditForm(mData) {
        admin.open({
            type: 1,
            area: '800px',
            title: '核价信息编辑',
            content: $('#editStatus').html(),
            success: function (layero, dIndex) {
                form.val('editStatusDetail', mData);
                form.render('select')
                form.on('submit(editSubmit)', function (data) {
                    var loadIndex = layer.load(2);
                    $.ajax({
                        url: baseUrl+"/reimburseOnline/updateForm/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: data.field,
                        method: 'POST',
                        traditional:true,
                        success: function (res) {
                            if (res.code === 200){
                                layer.closeAll();
                                tableReload(false);
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg)
                            }
                        }
                    })
                    layer.close(loadIndex);
                    layer.close(dIndex);
                    return false;
                });
                $(layero).children('.layui-layer-content').css('overflow', 'visible');
                layui.form.render('select');
            }
        });
    }
    // // 更新form
    // function showEditForm(mData) {
    //     admin.open({
    //         type: 1,
    //         area: '800px',
    //         title: '核价信息编辑',
    //         content: $('#editStatus').html(),
    //         success: function (layero, dIndex) {
    //             form.val('editStatusDetail', mData);
    //             form.render('select')
    //             form.on('submit(editSubmit)', function (data) {
    //                 var loadIndex = layer.load(2);
    //                 $.ajax({
    //                     url: baseUrl+"/reimburseOnline/updateForm/auth",
    //                     headers: {'token': localStorage.getItem('token')},
    //                     data: data.field,
    //                     method: 'POST',
    //                     traditional:true,
    //                     success: function (res) {
    //                         if (res.code === 200){
    //                             layer.closeAll();
    //                             tableReload(false);
    //                         } else if (res.code === 403){
    //                             top.location.href = baseUrl+"/";
    //                         } else {
    //                             layer.msg(res.msg)
    //                         }
    //                     }
    //                 })
    //                 layer.close(loadIndex);
    //                 layer.close(dIndex);
    //                 return false;
    //             });
    //             $(layero).children('.layui-layer-content').css('overflow', 'visible');
    //             layui.form.render('select');
    //         }
    //     });
    // }
});