yangle
2022-04-08 97f728b62a2b5e16644355749f7d0c45908a6189
WebTM/views/Éú²ú¹ÜÀí/Éú²úͶÁϵ¥/Sc_PPBomBillList.html
@@ -171,6 +171,10 @@
                    //反审核
                    case "btn-DeAudit": set_DeAuditBill();
                        break;
                    //打印
                    case 'btn-print':
                        get_PrintReport();
                        break;
                    default:
                        break;
                }
@@ -404,6 +408,34 @@
                    }
                }
            }
            //打印
            function get_PrintReport() {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 0) {
                    return layer.msg('请选择数据打印!');
                }
                else {
                    var hmainid = [];
                    for (var i = 0; i < checkStatus.data.length; i++) {
                        hmainid.push((data[i].hmainid * (10 ** 8)) + data[i].hsubid)
                    }
                    layer.open({
                        type: 2
                        , area: ['50%', '50%']
                        , title: '打印模版选择'
                        , shade: 0.6 //遮罩透明度
                        , maxmin: false //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hmainid.toString() + '&MyMsg=' + hmainid.toString() + '&Type=HPPBomBillList', 'yes']
                        , resize: false
                    })
                }
            }
            //#endregion
            //以上是layui模块
        });