#
18516761980
2022-07-22 b743b62c7d57c84d16422841b0b51e85fe53a891
src/main/webapp/jsFiles/waitPakOut.js
@@ -19,14 +19,21 @@
        showRefresh: false, //显示刷新按钮
        showExport: false,
        toolbar: "#toolbar",
        singleSelect : true,
        clickToSelect: true, // 单击行即可以选中
        // singleSelect : true,
        // clickToSelect: true, // 单击行即可以选中
        search: false,//显示搜素表单
        silent: true, //刷新事件必须设置
        sidePagination: "server", //表示服务端请求
        columns: //myColumns,
            [{
                checkbox: true
                checkbox: true,
                formatter:function (value, row, index) {
                    if(row.ems_status === 1){//如果已经操作禁止选择
                        return { disabled : true,}
                    }else{
                        return { disabled : false,}
                    }
                }
            }, {
                field: "lgnum",
                title: "仓库号",
@@ -201,19 +208,25 @@
            oInit.InitSubTable(index, row, $detail);
        },
        onCheck: function (row) {
            getNetACount();
            // getNetACount();
//         alert(row.menu_name);
        }, onUncheck: function (row) {
            getNetACount();
            // getNetACount();
//          alert('取消选中');       
        }, onCheckAll: function () {
            getNetACount();
            // getNetACount();
        }, onUncheckAll: function () {
            getNetACount();
            // getNetACount();
        },
        onClickRow: function (row, $element) {
            $('.info').removeClass('info');
            $($element).addClass('info');
            // 联动勾选
            if (row[0]) {
                $("#test-table").bootstrapTable('uncheckBy',  {field:"vlpla", values:[row.vlpla]});
            } else {
                $("#test-table").bootstrapTable('checkBy',  {field:"vlpla", values:[row.vlpla]});
            }
        }
    });
});
@@ -743,12 +756,14 @@
    // 获取当前行
    var row = $("#test-table").bootstrapTable('getSelections');
    var paramList = [];
    if (row.length > 0) {
        row.map(function (item) {
           paramList.push({
               lgnum: item.lgnum,
               tanum: item.tanum,
               tapos: item.tapos,
               vlpla: item.vlpla,
           })
        });
    }
@@ -770,4 +785,17 @@
            }
        });
    }
}
//导出
function ExportExcel(){
    if(confirm("确认导出excel?")){
        var url = "work/exportWaitPakOut.action?";
        url += "matnr=" + $("#search_sheet_no").val();
        url += "&maktx=" + $("#search_mat_no").val();
        url += "&loc_no=" + $("#loc_no").val();
        location.href=url;
    }else{
        return false;
    }
}