自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-07-10 e7ab1520d0e7f368e5d3b9b986aa2e68e8bc952b
src/main/webapp/views/pdaCe/index.html
@@ -5,6 +5,7 @@
    <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/>
    <title>中扬物流</title>
    <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
    <style>
        * {
@@ -225,18 +226,17 @@
            tips("请提取物料", true);
            return;
        }
        console.log(JSON.stringify({
            barcode: barcode,
            combMats: matData
        }))
        httpRequest({
            httpUrl: baseUrl+"/mobile/comb/form",
            httpUrl: baseUrl+"/mobile/comb/auth",
            type: 'post',
            headers: [{token: getCookie('token')}],
            data: {
            headers: [
                {token: getCookie('token')}
                ,{'Content-type':'application/json;charset=UTF-8',}
                ],
            data: JSON.stringify({
                barcode: barcode,
                combMats: matData
            },
            }) ,
        }, function (res) {
            if (res.code === 200) {
                reset();
@@ -411,7 +411,7 @@
            requestData += name + '='+ paramData[name] + '&';
        }
        requestData = requestData === '' ? '' : requestData.substring(0,requestData.length - 1);
        console.log(requestData)
        /*请求接收*/
        xmlhttp.onreadystatechange = function() {
            if(xmlhttp.readyState === 4 && xmlhttp.status === 200) {
@@ -442,7 +442,16 @@
            if (defaultContentType) {
                xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
            }
            xmlhttp.send(requestData);
            xmlhttp.send(defaultContentType?requestData:paramData);
        }
    }
    document.onkeyup = function (e) {
        if (window.event)//如果window.event对象存在,就以此事件对象为准
            e = window.event;
        var code = e.charCode || e.keyCode;
        if (code === 13) {
            comb()
        }
    }