chen.lin
昨天 a45b751080a50d94d3ed2d9f1d801e14a7046b6d
src/main/webapp/views/pda/index.html
@@ -132,9 +132,14 @@
        <td>
            <div id="combLToP" onclick="nav(this.id)" class="nav-font-size">立库移库组托</div>
        </td>
<!--        <td>-->
<!--            <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">平仓成品出库</div>-->
<!--        </td>-->
        <td>
            <div id="materialReceiveOut" onclick="nav(this.id)" class="nav-font-size">生成领料出库</div>
        </td>
    </tr>
    <tr>
        <td>
            <div id="materialWwOut" onclick="nav(this.id)" class="nav-font-size">委外加工出库</div>
        </td>
    </tr>
</table>
@@ -150,21 +155,21 @@
            headers: {'token': localStorage.getItem('token')},
            method: 'GET',
            success: function (res) {
                if (res.code === 200){
                if (res && res.code === 200){
                    console.log(res)
                    if (res.data.code === 'a') {
                    if (res.data && res.data.code === 'a') {
                        $("#combAgv").parent().hide();
                        $("#combProAgv").parent().hide();
                        $("#comb").parent().hide();
                        $("#combPro").parent().hide();
                        $("#locNormalIn").parent().hide();
                        $("#locNormalOut").parent().hide();
                    } else if (res.data.code === 'b') {
                    } else if (res.data && res.data.code === 'b') {
                        $("#locNormalIn1").parent().hide();
                        $("#locNormalOut1").parent().hide();
                        // $("#locNormalIn").parent().hide();
                        // $("#locNormalOut").parent().hide();
                    } else if (res.data.code === 'c') {
                    } else if (res.data && res.data.code === 'c') {
                        $("#combAgv").parent().hide();
                        $("#combProAgv").parent().hide();
                        $("#comb").parent().hide();
@@ -172,11 +177,17 @@
                        $("#locNormalIn1").parent().hide();
                        $("#locNormalOut1").parent().hide();
                    }
                } else if (res.code === 403){
                } else if (res && res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                } else if (res && res.msg) {
                    layer.msg(res.msg, {icon: 2});
                } else {
                    layer.msg("请求失败,请稍后重试", {icon: 2});
                }
            },
            error: function(xhr, status, error) {
                console.error("请求失败:", status, error);
                layer.msg("请求失败,请稍后重试", {icon: 2});
            }
        })
    });