王佳豪
2021-06-19 0ae7027b39b0954fd462af601fdc2b5ed0f5832f
src/main/webapp/views/pda/locNormalIn.html
@@ -361,26 +361,50 @@
        });
        // 请求保存接口
        $.ajax({
            url: baseUrl + "/locNormal/pda/in",
            headers: {'token': localStorage.getItem('token')},
            data: JSON.stringify({
                normalList: data,
            }),
            contentType: 'application/json;charset=UTF-8',
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200) {
                    reset(true);
                    tips("组托成功")
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
                    tips(res.msg, true)
                }
            },
        });
        var areaType = getQueryVariable('areaType');
        if (areaType == 1) {
            $.ajax({
                url: baseUrl + "/locNormal/in/source",
                headers: {'token': localStorage.getItem('token')},
                data: JSON.stringify({
                    normalList: data,
                }),
                contentType: 'application/json;charset=UTF-8',
                method: 'POST',
                async: false,
                success: function (res) {
                    if (res.code === 200) {
                        reset(true);
                        tips("组托成功")
                    } else if (res.code === 403) {
                        top.location.href = baseUrl + "/pda";
                    } else {
                        tips(res.msg, true)
                    }
                },
            });
        } else {
            $.ajax({
                url: baseUrl + "/locNormal/pda/in",
                headers: {'token': localStorage.getItem('token')},
                data: JSON.stringify({
                    normalList: data,
                }),
                contentType: 'application/json;charset=UTF-8',
                method: 'POST',
                async: false,
                success: function (res) {
                    if (res.code === 200) {
                        reset(true);
                        tips("组托成功")
                    } else if (res.code === 403) {
                        top.location.href = baseUrl + "/pda";
                    } else {
                        tips(res.msg, true)
                    }
                },
            });
        }
    }
    /**