<style>
    #rt-report-header>thead>tr>th {
        text-align: center;
        vertical-align: inherit;
        border: 1px solid #f0f0f0;
        color: #555;
        font-weight: 500;
        white-space: nowrap;
    }

    #rt-report-header>tbody>tr>td {
        text-align: center;
        vertical-align: inherit;
        border: 1px solid #f0f0f0;
        color: #555;
        font-weight: 500;
        white-space: nowrap;
    }
</style>
<div class="row">
    <form class="form-horizontal">
        <div class="form-group">
            <rt-datetime ng-if="vm.isShow=='promotion'" ng-model="vm.Ym" rt-type="month" rt-title="年月" rt-required="true" rt-col="3"
                rt-label-col="2"></rt-datetime>
            <rt-datetime ng-if="vm.isShow!=='promotion'" ng-model="vm.sDate" rt-type="date" rt-title="开始时间" rt-required="true" rt-col="3"
                rt-label-col="2"></rt-datetime>
            <rt-datetime ng-if="vm.isShow!=='promotion'" ng-model="vm.eDate" rt-type="date" rt-title="结束时间" rt-required="true" rt-col="3"
                rt-label-col="2"></rt-datetime>
            <!--<div class="col-sm-5">
            </div>-->
            <div class="col-sm-1">
                <button class="btn btn-primary" ng-click="vm.showReportButton()">查询</button>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">事业部</label>

            <div class="col-sm-3">
                <ui-select allow-clear ng-model="vm.buidSelected" theme="bootstrap">
                    <ui-select-match>{{ $select.selected.name }}</ui-select-match>
                    <ui-select-choices repeat="item in vm.buidList|filter:$select.search">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </div>
            <label class="col-sm-2 control-label">业务线/大区</label>

            <div class="col-sm-3">
                <ui-select allow-clear ng-model="vm.bigDepSelected" theme="bootstrap">
                    <ui-select-match>{{ $select.selected.name }}</ui-select-match>
                    <ui-select-choices repeat="item in vm.bigDepList |filter:$select.search">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </div>

        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">省区/地区</label>
            <div class="col-sm-8">
                <ui-select class="form" multiple allow-clear sortable="true" theme="bootstrap" close-on-select="false" ng-model="vm.businessUnitSelected">
                    <ui-select-match>{{$item.name}}</ui-select-match>
                    <ui-select-choices repeat="item in vm.businessUnitList | filter: {name: $select.search}">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </div>
        </div>

        <div class="form-group">
            <rt-lookup2 rt-title="门店" ng-model="vm.accountId" rt-get-data-name="Account.GetAllRetail" rt-order-by="accountnumber" rt-col-list="[{Code:'name',Name:'门店名称'},{Code:'accountnumber',Name:'门店编码'}]"
                rt-col="3"></rt-lookup2>
            <rt-lookup2 rt-title="代表" ng-model="vm.userId" rt-get-data-name="UserInfo.GetAllUser" rt-order-by="code" rt-col-list="[{Code:'name',Name:'业务代表名称'},{Code:'code',Name:'业务代表编码'}]"
                rt-col="3" rt-label-col="2"></rt-lookup2>
        </div>
        <div class="form-group">
            <rt-picklist rt-title="门店级别" rt-label-col="2" rt-col="3" ng-model="vm.accLevelSelected" rt-options="vm.account_level"></rt-picklist>
        </div>
    </form>
</div>

<ul class="nav nav-tabs">
    <li class="active" ng-click="selectTab('tab1')">
        <a href="#c1" onclick="return false;" data-toggle="tab">进销存采集</a>
    </li>
    <li ng-click="selectTab('tab2')">
        <a href="#c2" onclick="return false;" data-toggle="tab">陈列检查</a>
    </li>
    <li ng-click="selectTab('tab9')">
        <a href="#c9" onclick="return false;" data-toggle="tab">生动化检查</a>
    </li>
    <li ng-click="selectTab('tab3')">
        <a href="#c3" onclick="return false;" data-toggle="tab">促销政策</a>
    </li>
    <li ng-click="selectTab('tab4')">
        <a href="#c4" onclick="return false;" data-toggle="tab">竞品采集</a>
    </li>
    <li ng-click="selectTab('tab5')">
        <a href="#c5" onclick="return false;" data-toggle="tab">临逾期上报</a>
    </li>
    <li ng-click="selectTab('tab6')">
        <a href="#c6" onclick="return false;" data-toggle="tab">缺货上报</a>
    </li>
    <li ng-click="selectTab('tab7')">
        <a href="#c7" onclick="return false;" data-toggle="tab">缺损上报</a>
    </li>
    <li ng-click="selectTab('tab8')">
        <a href="#c8" onclick="return false;" data-toggle="tab">促销执行</a>
    </li>
    <li ng-click="selectTab('tab10')">
        <a href="#c10" onclick="return false;" data-toggle="tab">扫码上报</a>
    </li>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='psi'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "productIdName":"药品品规",
                        "retail_price":"价格",
                        "purchase_count":"进货",
                        "sale_count":"销售",
                        "store_count":"库存"
                        },"drugstorePSIstatisticsExport","门店进销存统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='productdisplay'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "productIdName":"药品品规",
                        "display_placeName":"陈列位置",
                        "display_numberName":"陈列面数",
                        "display_depthName":"陈列纵深",
                        "is_first_promoteName":"是否首推",
                        },"DrugStoreDisplayStatisticsExport","门店陈列统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='visitvividcheck'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",    
                        "end_time":"日期",
                        "accountidName":"门店",
                        "photo1":"堆头照片",
                        "photo2":"货架照片",
                        "photo3":"POP照片",
                        "photo4":"门头照片",
                        "photo5":"橱窗照片",
                        "photo6":"其他照片",
                        },"visitVividCheckReportExport","门店生动化检查统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='salepolicy'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "policies":"促销情况",
                        },"drugSalePolicyExport","门店药品促销情况统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='competing'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"省区",
                        "OwnerIdName":"代表",
                        "accountidname":"门店",
                        "endTime":"拜访日期",
                        "band_name":"品牌",
                        "name":"竞品",
                        "price":"价格",
                        "count":"数量",
                        "produceDate":"生产日期",
                        "promote_type":"促销类型",
                        "startDate":"促销开始日期",
                        "endDate":"促销结束日期",
                        "buy_gift_rate":"买赠比例",
                        "promote_reason":"促销原因",
                        "promote_result":"促销效果",
                        },"VisitCompetingProductExport","门店竞品采集统计数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='expired'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "productIdName":"药品品规",
                        "batch":"批次",
                        "qty":"数量",
                        },"visitexpiredProductExportPlugin","门店临逾期药品统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='stockout'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "productIdName":"药品品规",
                        "qty":"数量",
                        "cause":"原因"
                        },"DrugStoreStockoutStatisticsExport","门店缺货统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='defect'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "productIdName":"药品品规",
                        "qty":"数量",
                        "cause":"原因"
                        },"DrugStoreDefectStatisticsExport","门店缺损统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='promotion'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",    
                        "accountidName":"门店",
                        "end_time":"拜访日期",
                        "name":"促销活动",
                        "remark":"备注",
                        "photo1":"堆头照片",
                        "photo2":"端架照片",
                        "photo3":"促销人员照片",
                        "photo4":"POP照片",
                        },"PromotionActionStatisticsExport","门店促销执行统计明细数据")'>
                   导出
        </button>
    <button style="margin-top: 5px; float: right;margin-right: 65px;" ng-show="vm.isShow=='barcode'" class="col-sm-1 btn btn-primary"
        ng-click='vm.actions.export({
                        "businessunitidname":"省区/地区",
                        "owneridname":"代表",  
                        "end_time":"日期",  
                        "accountidname":"门店",
                        "product_categoryidname":"品种",
                        "productsize":"规格",
                        "barcode":"条码",
                        "remark":"备注"
                        },"DrugstoreVisitBarCodeReportExport","门店扫码上报统计明细数据")'>
                   导出
        </button>
</ul>

<div class="tab-content">
    <div class="row" ng-show="vm.isShow=='psi'">
        <rt-data-grid rt-page-record-count="vm.recordPsiCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportSumData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">药品品规</th>
                        <th class="rt-number-align">价格</th>
                        <th class="rt-number-align">进货</th>
                        <th class="rt-number-align">销售</th>
                        <th class="rt-number-align">库存</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportPsiData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.productIdName}}</td>
                        <td class="rt-number-align">{{row.retail_price}}</td>
                        <td class="rt-number-align">{{row.purchase_count}}</td>
                        <td class="rt-number-align">{{row.sale_count}}</td>
                        <td class="rt-number-align">{{row.store_count}}</td>
                    </tr>

                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='productdisplay'">
        <rt-data-grid rt-page-record-count="vm.recordProductDisplayCount" rt-get-data="vm.showReport()" rt-page-index="vm.index"
            rt-page-size="vm.pageSize" rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">药品品规</th>
                        <th class="rt-text-align">陈列位置</th>
                        <th class="rt-number-align">陈列面数</th>
                        <th class="rt-number-align">纵深</th>
                        <th rowspan="4">照片</th>
                        <th class="rt-text-align">是否首推</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportProductDisplayData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.productIdName}}</td>
                        <td class="rt-text-align">{{row.display_placeName}}</td>
                        <td class="rt-number-align">{{row.display_numberName}}</td>
                        <td class="rt-number-align">{{row.display_depthName}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                        <td class="rt-text-align">{{row.is_first_promoteName}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='salepolicy'">
        <rt-data-grid rt-page-record-count="vm.recordSalepolicyCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">促销情况</th>
                        <th rowspan="4">照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportSalepolicyData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.policies}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                    </tr>

                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='competing'">
        <rt-data-grid rt-page-record-count="vm.recordCompetingCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-datetime-align">拜访日期</th>
                        <th class="rt-text-align">品牌</th>
                        <th class="rt-text-align">竞品</th>
                        <th class="rt-number-align">价格</th>
                        <th class="rt-number-align">数量</th>
                        <th class="rt-datetime-align">生产日期</th>
                        <th class="rt-text-align">促销类型</th>
                        <th class="rt-datetime-align">促销开始日期</th>
                        <th class="rt-datetime-align">促销结束日期</th>
                        <th class="rt-number-align">买赠比例</th>
                        <th class="rt-text-align">促销原因</th>
                        <th class="rt-text-align">促销效果</th>
                        <th rowspan="4">照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportCompetingData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-text-align">{{row.accountidname}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.band_name}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-number-align">{{row.price}}</td>
                        <td class="rt-number-align">{{row.count}}</td>
                        <td class="rt-datetime-align">{{row.produce_date | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.promote_type}}</td>
                        <td class="rt-datetime-align">{{row.promote_start_date | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-datetime-align">{{row.promote_end_date | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-number-align">{{row.buy_gift_rate}}</td>
                        <td class="rt-text-align">{{row.promote_reason}}</td>
                        <td class="rt-text-align">{{row.promote_result}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='expired'">
        <rt-data-grid rt-page-record-count="vm.recordExpiredCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">药品品规</th>
                        <th class="rt-number-align">批次</th>
                        <th class="rt-number-align">数量</th>
                        <th rowspan="4">照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportExpiredData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.productIdName}}</td>
                        <td class="rt-number-align">{{row.batch}}</td>
                        <td class="rt-number-align">{{row.qty}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='stockout'">
        <rt-data-grid rt-page-record-count="vm.recordStockoutCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">药品品规</th>
                        <th class="rt-number-align">数量</th>
                        <th class="rt-text-align">原因</th>
                        <th rowspan="4">照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportStockoutData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.productIdName}}</td>
                        <td class="rt-number-align">{{row.qty}}</td>
                        <td class="rt-text-align">{{row.cause}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='defect'">
        <rt-data-grid rt-page-record-count="vm.recordDefectCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">省区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">药品品规</th>
                        <th class="rt-number-align">数量</th>
                        <th class="rt-text-align">原因</th>
                        <th rowspan="4">照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportDefectData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-datetime-align">{{row.end_time | date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.productIdName}}</td>
                        <td class="rt-number-align">{{row.qty}}</td>
                        <td class="rt-text-align">{{row.cause}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.id)">浏览</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='promotion'">
        <rt-data-grid rt-page-record-count="vm.recordPromotionCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">地区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-datetime-align">拜访日期</th>
                        <th class="rt-text-align">促销活动</th>
                        <th class="rt-text-align">备注</th>
                        <th rowspan="4">堆头照片</th>
                        <th rowspan="4"> 端架照片</th>
                        <th rowspan="4">促销人员照片</th>
                        <th rowspan="4">POP照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportPromotionData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-text-align">{{row.accountidName}}</td>
                        <td class="rt-datetime-align">{{row.end_time|date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.name}}</td>
                        <td class="rt-text-align">{{row.remark}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_01_objectid)">{{row.photo1==0?'-':row.photo1}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_02_objectid)">{{row.photo2==0?'-':row.photo2}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_03_objectid)">{{row.photo3==0?'-':row.photo3}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_04_objectid)">{{row.photo4==0?'-':row.photo4}}</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='visitvividcheck'">
        <rt-data-grid rt-page-record-count="vm.recordVividCheckCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">事业部</th>
                        <th class="rt-text-align">大区</th>
                        <th class="rt-text-align">地区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-datetime-align">日期</th>
                        <th rowspan="4">堆头照片</th>
                        <th rowspan="4"> 货架照片</th>
                        <th rowspan="4">POP照片</th>
                        <th rowspan="4">门头照片</th>
                        <th rowspan="4">橱窗照片</th>
                        <th rowspan="4">其他照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportVividCheckData ">
                        <td class="rt-text-align">{{row.buidName}}</td>
                        <td class="rt-text-align">{{row.bigDepIdName}}</td>
                        <td class="rt-text-align">{{row.BusinessUnitIdName}}</td>
                        <td class="rt-text-align">{{row.OwnerIdName}}</td>
                        <td class="rt-text-align">{{row.accountidName}}</td>
                        <td class="rt-datetime-align">{{row.end_time|date:'yyyy-MM-dd'}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_01_objectid)">{{row.photo1==0?'-':row.photo1}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_02_objectid)">{{row.photo2==0?'-':row.photo2}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_03_objectid)">{{row.photo3==0?'-':row.photo3}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_04_objectid)">{{row.photo4==0?'-':row.photo4}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_05_objectid)">{{row.photo5==0?'-':row.photo5}}</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.actions.showImage(row.photo_05_objectid)">{{row.photo6==0?'-':row.photo6}}</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
    <div class="row" ng-show="vm.isShow=='barcode'">
        <rt-data-grid rt-page-record-count="vm.recordBarCodeCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize"
            rt-rows="vm.reportDetailData">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th class="rt-text-align">省区/地区</th>
                        <th class="rt-text-align">代表</th>
                        <th class="rt-datetime-align">日期</th>
                        <th class="rt-text-align">门店</th>
                        <th class="rt-text-align">品种</th>
                        <th class="rt-text-align">规格</th>
                        <th class="rt-text-align">条码</th>
                        <th class="rt-text-align">备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.reportBarCodeData ">
                        <td class="rt-text-align">{{row.businessunitidname}}</td>
                        <td class="rt-text-align">{{row.owneridname}}</td>
                        <td class="rt-datetime-align">{{row.end_time|date:'yyyy-MM-dd'}}</td>
                        <td class="rt-text-align">{{row.accountidname}}</td>
                        <td class="rt-text-align">{{row.product_categoryidname}}</td>
                        <td class="rt-text-align">{{row.productsize}}</td>
                        <td class="rt-text-align">{{row.barcode}}</td>
                        <td class="rt-text-align">{{row.remark}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>