vatModule.directive('taxControlDisk', ['$log',
    function ($log) {
        return {
            restrict: 'E',
            templateUrl: '/app/vat/output-invoice/taxControlDisk/tax-control-disk.html' + '?_=' + Math.random(),
            replace: true,
            scope: {

            },
            controller: 'taxControlDiskController',
            link: function (scope, element, attr) {
                //计算datagrid的高度
                scope.setInvoiceGridHeight = function () {
                    var containerHeight = $('.content-container').outerHeight();
                    scope.gridTable = containerHeight - 30;
                };

                $(window).on('resize', function () {
                    scope.setInvoiceGridHeight();
                });
            }
        }
    }
]);