#
luxiaotao1123
2020-07-02 2da79f8364653941c59c3a6f5aec261ab9ea22ac
src/main/webapp/static/js/trayCode/trayCode.js
@@ -18,10 +18,10 @@
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cols: [[
            {type: 'checkbox'}
            // {type: 'checkbox'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
//             ,{field: 'id', align: 'center',title: '编号'}
            ,{field: 'trayNo', align: 'center',title: '序列号'}
            {field: 'trayNo', align: 'center',title: '序列号', sort: true}
            ,{field: 'start', align: 'center',title: '起始', templet:function(row){
                    var html = "<input value='start' type='checkbox' disabled='disabled' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'";
                    if(row.start === 'Y'){html += " checked ";}
@@ -37,10 +37,10 @@
            ,{field: 'memo', align: 'center',title: '备注', hide:true}
            // ,{field: 'modiTime$', align: 'center',title: '修改时间'}
            // ,{field: 'modiUser$', align: 'center',title: '修改人员',event: 'modiUser', style: 'cursor:pointer'}
            ,{field: 'appeTime$', align: 'center',title: '添加时间'}
            ,{field: 'appeTime$', align: 'center',title: '添加时间', sort: true}
            ,{field: 'appeUser$', align: 'center',title: '添加人员'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150}
            // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150}
        ]],
        request: {
            pageName: 'curr',
@@ -106,10 +106,12 @@
                layer.open({
                    type: 2,
                    title: '生成托盘码',
                    area: ['500px'],
                    shadeClose: true,
                    offset: '100px',
                    area: ['360px'],
                    shade: 0.1,
                    content: 'tray.html',
                    success: function(layero, index){
                        layer.iframeAuto(index)
                    },
                    end: function () {
                    }
@@ -295,6 +297,17 @@
});
function printPreview(content) {
    var tpl = $('#trayCodeTemplate').html();
    var template = Handlebars.compile(tpl);
    var html = template(content);
    let box = $("#printBox");
    box.html(html);
    box.show();
    box.print();
    box.hide();
}
// 关闭动作
$(document).on('click','#data-detail-close', function () {
    parent.layer.closeAll();