自动化立体仓库 - WMS系统
zhangc
2025-02-14 7bfa9060b502cb47a02b0ed830bc333141f9f50d
src/main/webapp/static/js/agvBasDevp/basDevp.js
@@ -20,8 +20,8 @@
        cols: [[
            {type: 'checkbox', fixed: 'left'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'devNo', align: 'center',sort:true,title: '工作位编号',width:150}
            // ,{field: 'decDesc', align: 'center',title: '设备描述'}
            ,{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){
                    var html = "<input value='inEnable' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
@@ -35,14 +35,19 @@
                    html += ">";
                    return html;
                }}
            ,{field: 'locSts$', align: 'center',title: '货位状态'}
            ,{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: '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: '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'}
@@ -249,6 +254,7 @@
                break;
            case 'exportData':
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    layer.load(2, {time: 600*1000});
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
@@ -349,7 +355,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')},
@@ -473,7 +479,7 @@
            devMk: $('#devMk').val(),
            inEnable: $('#inEnable').next().hasClass('layui-form-checked') ? "Y" : "N",
            outEnable: $('#outEnable').next().hasClass('layui-form-checked') ? "Y" : "N",
            autoing: $('#autoing').val(),
            autoing: $('#autoing').next().hasClass('layui-form-checked') ? "Y" : "N",
            loading: $('#loading').val(),
            canining: $('#canining').val(),
            canouting: $('#canouting').val(),
@@ -507,7 +513,6 @@
            locType2: $('#locType2').val(),
        };
        console.log(data);
        $.ajax({
            url: baseUrl+"/agv/basDevp/"+name+"/auth",
            headers: {'token': localStorage.getItem('token')},