自动化立体仓库 - WMS系统
luxiaotao1123
2022-03-24 5ad8b0705e74a6a6268bc0353847e7dce30f8bdd
src/main/webapp/static/js/order/order.js
@@ -75,7 +75,7 @@
            layer.open({
                type: 1,
                title: false,
                area: '700px',
                area: '750px',
                offset: [top + 'px', (left - 530 + $a.outerWidth()) + 'px'],
                shade: .01,
                shadeClose: true,
@@ -144,7 +144,6 @@
            success: function (layero, dIndex) {
                $(layero).children('.layui-layer-content').css('overflow', 'visible');
                var isExpAdd = !expTpe;
                console.log(expTpe)
                // 回显数据
                form.val('editForm', expTpe);
                if (expTpe) {
@@ -152,8 +151,6 @@
                }
                // 表单提交事件
                form.on('submit(orderEditSubmit)', function (data) {
                    console.log(data);
                    return false;
                    // 组装数据
                    if (xxDataList.length <= 0) {
                        layer.tips('请添加单据明细', '#matAddBtnComment', {tips: [1, '#ff4c4c']});
@@ -189,10 +186,12 @@
                    }
                    layer.load(2);
                    $.ajax({
                        url: baseUrl+"/order/" + (isExpAdd?"add":"modify") + "/auth",
                        url: baseUrl+"/order/form/" + (isExpAdd?"add":"modify") + "/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify({
                            docType: Number(data.field.docType),
                            orderNo: data.field.orderNo,
                            orderDetlList: nList
                        }),
                        contentType:'application/json;charset=UTF-8',
                        method: 'POST',