chen.lin
2026-01-29 48b2dc4df2c247d12e4dd52c3c5d290f1e026578
src/main/webapp/views/pda/index.html
@@ -128,6 +128,19 @@
            <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">平仓成品出库</div>
        </td>
    </tr>
    <tr>
        <td>
            <div id="combLToP" 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>
<!-- 主体内容 -->
@@ -142,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') {
                        // $("#locNormalIn").parent().hide();
                        // $("#locNormalOut").parent().hide();
                    } else if (res.data && res.data.code === 'c') {
                        $("#combAgv").parent().hide();
                        $("#combProAgv").parent().hide();
                        $("#comb").parent().hide();
@@ -164,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});
            }
        })
    });