自动化立体仓库 - WMS系统
#
whycq
2024-06-11 f0c73d72fe7f939be2d3fdf5fc90889971a67fe5
src/main/webapp/static/js/agvBasDevp/basDevp.js
@@ -20,8 +20,7 @@
        cols: [[
            {type: 'checkbox', fixed: 'left'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'stationCode', align: 'center',sort:true,title: '工作站编号'}
            ,{field: 'devNo', align: 'center',sort:true,title: '工作位编号',width:150}
            ,{field: 'devNo', align: 'center',sort:true,title: '接驳位号',width:150}
            // ,{field: 'decDesc', align: 'center',title: '设备描述'}
            // ,{field: 'devMk', align: 'center',title: '备注'}
            ,{field: 'inEnable', align: 'center',title: '可入', templet:function(row){
@@ -36,57 +35,19 @@
                    html += ">";
                    return html;
                }}
            ,{field: 'autoing', align: 'center',title: '自动', templet:function(row){
            ,{field: 'locSts$', align: 'center',title: '接驳位状态'}
            //,{field: 'wrkNo', align: 'center',title: '工作号', edit:true,  style:'color: blue;font-weight: bold'}
            ,{field: 'floor', align: 'center',title: '楼'}
            //,{field: 'locType1$', align: 'center',title: '高低'}
            ,{field: 'barcode', align: 'center',title: '条形码'}
            ,{field: 'locType1$', align: 'center',title: '接驳位类型'}
            ,{field: 'locType2', align: 'center',title: "货架类型"}
            ,{field: 'autoing', align: 'center',title: '自动调拨', templet:function(row){
                    var html = "<input value='autoing' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
                    if(row.autoing === 'Y'){html += " checked ";}
                    html += ">";
                    return html;
                }}
            // ,{field: 'loading', align: 'center',title: '有物', templet:function(row){
            //         var html = "<input value='loading' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
            //         if(row.loading === 'Y'){html += " checked ";}
            //         html += ">";
            //         return html;
            //     }}
            // ,{field: 'canining', align: 'center',title: '能入', templet:function(row){
            //         var html = "<input value='canining' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
            //         if(row.canining === 'Y'){html += " checked ";}
            //         html += ">";
            //         return html;
            //     }}
            // ,{field: 'canouting', align: 'center',title: '能出', templet:function(row){
            //         var html = "<input value='canouting' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
            //         if(row.canouting === 'Y'){html += " checked ";}
            //         html += ">";
            //         return html;
            //     }}
            // ,{field: 'fronting', align: 'center',title: ''}
            // ,{field: 'rearing', align: 'center',title: ''}
            // ,{field: 'uping', align: 'center',title: ''}
            // ,{field: 'downing', align: 'center',title: ''}
            // ,{field: 'inreq1', align: 'center',title: '需求1', templet:function(row){
            //         var html = "<input value='inreq1' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
            //         if(row.inreq1 === 'Y'){html += " checked ";}
            //         html += ">";
            //         return html;
            //     }}
            ,{field: 'cacheShelves', align: 'center',title: '是否缓存货架', templet:function(row){
                    var html = "<input value='cacheShelves' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
                    if(row.cacheShelves === 'Y'){html += " checked ";}
                    html += ">";
                    return html;
                }}
            ,{field: 'locSts$', align: 'center',title: '货位状态'}
            //,{field: 'wrkNo', align: 'center',title: '工作号', edit:true,  style:'color: blue;font-weight: bold'}
            ,{field: 'floor', align: 'center',title: '楼'}
            //,{field: 'locType1$', align: 'center',title: '高低'}
            ,{field: 'barcode', align: 'center',title: '条形码'}
            // ,{field: 'inQty', align: 'center',title: '入库暂存'}
            // ,{field: 'row1', align: 'center',title: ''}
            // ,{field: 'ioTime$', align: 'center',title: ''}
            // ,{field: 'area', align: 'center',title: ''}
            // ,{field: 'inOk', align: 'center',title: ''}
            // ,{field: 'outOk', align: 'center',title: ''}
            ,{field: 'modiUser$', align: 'center',title: '修改人员',event: 'modiUser', hide:true}
            ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true}
            // ,{field: 'appeUser$', align: 'center',title: '创建者',event: 'appeUser', style: 'text-decoration: underline;cursor:pointer'}
@@ -393,7 +354,7 @@
                    layer.msg("此站点暂未绑定任何条码");
                    return;
                }
                layer.confirm('确定解绑'+(data.devNo)+'站点的托盘码?', function(){
                layer.confirm('确定解绑'+(data.devNo)+'站点的货架码?', function(){
                    $.ajax({
                        url: baseUrl+"/agv/basDevp/unbind/auth",
                        headers: {'token': localStorage.getItem('token')},
@@ -515,9 +476,9 @@
            cacheShelves: $('#cacheShelves').val(),
            decDesc: $('#decDesc').val(),
            devMk: $('#devMk').val(),
            inEnable: $('#inEnable').val(),
            outEnable: $('#outEnable').val(),
            autoing: $('#autoing').val(),
            inEnable: $('#inEnable').next().hasClass('layui-form-checked') ? "Y" : "N",
            outEnable: $('#outEnable').next().hasClass('layui-form-checked') ? "Y" : "N",
            autoing: $('#autoing').next().hasClass('layui-form-checked') ? "Y" : "N",
            loading: $('#loading').val(),
            canining: $('#canining').val(),
            canouting: $('#canouting').val(),
@@ -546,9 +507,11 @@
            maxWt: $('#maxWt').val(),
            grossWt: $('#grossWt').val(),
            cartPos: $('#cartPos').val(),
            floor: $('#floor').val(),
            locType1: $('#locType1').val(),
            locType2: $('#locType2').val(),
        };
        console.log(data);
        $.ajax({
            url: baseUrl+"/agv/basDevp/"+name+"/auth",
            headers: {'token': localStorage.getItem('token')},