自动化立体仓库 - WMS系统
#
luxiaotao1123
2021-08-27 9468f9216cb9a72af52d5a51e658b5a0b5dc92d4
src/main/webapp/static/js/waitMatin/waitMatin.js
@@ -133,11 +133,15 @@
            content: $('#editDialog').html(),
            area: '700px',
            success: function (layero, dIndex) {
                $(layero).children('.layui-layer-content').css('overflow', 'visible');
                var url = expTpe ? '../../json/ok.json' : '../../json/ok.json';
                var isExpAdd = !expTpe;
                // 回显数据
                form.val('editForm', expTpe);
                if (expTpe) {
                    $('#billNo').attr("disabled", "disabled");
                }
                // 表单提交事件
                form.on('submit(waitMatinEditSubmit)', function (data) {
                    // 组装数据
@@ -183,6 +187,27 @@
                                }
                            }
                        })
                    } else {
                        layer.load(2);
                        $.ajax({
                            url: baseUrl+"/waitMatin/modify/auth",
                            headers: {'token': localStorage.getItem('token')},
                            data: JSON.stringify(param),
                            contentType:'application/json;charset=UTF-8',
                            method: 'POST',
                            success: function (res) {
                                layer.closeAll('loading');
                                if (res.code === 200){
                                    layer.close(dIndex);
                                    insTb.reload({page: {curr: 1}});
                                    layer.msg(res.msg, {icon: 1});
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                }else {
                                    layer.msg(res.msg, {icon: 2});
                                }
                            }
                        })
                    }
                    return false;
                });