Demo
2024-07-17 cee9fb315dfcf89956fecee9ed2031ad9357e228
Pda/View/HouseDataSetting/agvTransport.html
@@ -101,13 +101,16 @@
                </ul>
            </div>
            <ul>
            <!-- <ul>
                <li id="option1">小车</li>
                <li id="option2">叫货</li>
            </ul>
            </ul> -->
            <br />
            <button id="option1" class="layout-btn" type="button">小车</button>
            <button id="option2" class="layout-btn" type="button">叫货</button>
            <br /><br />
            <!-- 有码 -->
            <div id="content1">
                <div id="zongDiv" class="layout-bill-info" style="height: 170px;">
@@ -236,7 +239,7 @@
                                <td style="width: 23%;"></td>
                                <td>
                                    <button class="layout-btn layout-btn-red" lang type="button" lay-submit
                                        lay-filter="formCall2">叫小车</button>
                                        lay-filter="formCall">叫小车</button>
                                </td>
                                <td style="width: 33%;"></td>
@@ -298,28 +301,28 @@
            var xianshiyemian = 0;
            $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //选中后颜色
            $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //默认颜色
            $('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //选中后颜色
            $('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //默认颜色
            $('#content2').hide();
            $(document).ready(function () {
                $('#option1').click(function () {
                    // qingkong();
                    xianshiyemian = 0;
                    $('#content1').show();
                    $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //选中后颜色
                    $('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //选中后颜色
                    $('#content2').hide();
                    $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //默认颜色
                    $('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //默认颜色
                });
                $('#option2').click(function () {
                    // qingkong();
                    xianshiyemian = 1;
                    $('#content1').hide();
                    $('#option1').attr("style", "background-color: #999;width: 45.77%;float: left;text-align: center;"); //默认颜色
                    $('#option1').attr("style", "background-color: #999;width: 50%;float: left;text-align: center;"); //默认颜色
                    $('#content2').show();
                    $('#option2').attr("style", "background-color: aqua;width: 45.77%;float: right;text-align: center;"); //选中后颜色
                    $('#option2').attr("style", "background-color: red;width: 50%;float: right;text-align: center;"); //选中后颜色
                });
            });
@@ -572,13 +575,13 @@
            //点击目标区域下拉框事件
            $("#selectQuyu2").click(function () {
                if ($("#PalletNo").val() == "") {
                    layer.msg('请先选择托盘条码', {
                        icon: 2,
                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                    });
                    return
                }
                // if ($("#PalletNo").val() == "") {
                //     layer.msg('请先选择托盘条码', {
                //         icon: 2,
                //         time: 2000 //2秒关闭(如果不配置,默认是3秒)
                //     });
                //     return
                // }
                var input = $('select[id="Quyu2"]').next().find('.layui-select-title input')
                var val = input.val()
                //先更新一下目标区域
@@ -681,13 +684,13 @@
                        });
                        return;
                    }                    
                    if ($("#PalletNo").val() == "") {
                        layer.msg('请扫描托盘条码', {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        return;
                    }
                    // if ($("#PalletNo").val() == "") {
                    //     layer.msg('请扫描托盘条码', {
                    //         icon: 2,
                    //         time: 2000 //2秒关闭(如果不配置,默认是3秒)
                    //     });
                    //     return;
                    // }
                    if ($("#Quyu2").val() == "") {
                        layer.msg('请选择目标区域', {
                            icon: 2,