<div class="content-heading  justify-content-between" *ngIf="curStep == 'summery'">
  <div>初审进度</div>
  <div class="float-right">
    <div class="row">
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="schoolArray" [(ngModel)]="query.school_id" (ngModelChange)="queryBatchArray()" placeholder="学校"
            [autoClearSearch]="true" optionValueField="school_id" optionTextField="code_name">
        </ngx-select>
      </div>
      <div class="wd-xl wd-sm mr-1">
          <ngx-select [items]="batchArray" [(ngModel)]="query.batch_id" (ngModelChange)="requestData()" placeholder="批次"
              [autoClearSearch]="true" optionValueField="batch_id" optionTextField="batch_name">
          </ngx-select>
      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full" *ngIf="curStep == 'summery'">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th width="5%">序号</th>
      <th width="15%">账号</th>
      <th width="10%">总人数</th>
      <th width="10%">待审核</th>
      <th>重新提交待审核</th>
      <th>已通过</th>
      <th>已退回</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of summeryPager.getRecords(); let i = index">
      <td>{{i+1}}</td>
      <td>{{v.login_name}}</td>
      <td><span class="table-button" (click)="goMain(v,'')"><font style="font-size: 18px;font-weight: bold;">{{v.total_cnt}}</font></span></td>
      <td><span class="table-button" (click)="goMain(v,'Apply')"><font style="color:red;font-size: 18px;font-weight: bold;">{{v.apply_cnt}}</font></span></td>
      <td><span class="table-button" (click)="goMain(v,'SecondApply')"><font style="color: red;font-size: 18px;font-weight: bold;">{{v.second_apply_cnt}}</font></span></td>
      <td><span class="table-button" (click)="goMain(v,'InitialAppr')"><font style="color: green;font-size: 18px;font-weight: bold;">{{v.pass_cnt}}</font></span></td>
      <td><span class="table-button" (click)="goMain(v,'Reject')"><font style="color: red;font-size: 18px;font-weight: bold;">{{v.reject_cnt}}</font></span></td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./review/review/progress/page.htm'" 
    [pagerParams]="{school_id: this.query.school_id,batch_id: this.query.batch_id}"  [loopRequestTicket]="2" #summeryPager></frame-pager>
</div>
<div class="modal-footer" *ngIf="curStep == 'summery'">
  <button class="btn btn-primary" type="button" (click)="endTimeFailNotice()">审核不通过</button>
</div>
<!--*********************** 指定初审老师的审核列表 ***********************-->
<div class="content-heading  justify-content-between" *ngIf="curStep == 'main'">
  <div>审核列表</div>
  <div class="float-right">
    <div class="row">
      <button class="btn btn-primary" type="button" (click)="goBack('summery')">返回</button>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full" *ngIf="curStep == 'main'">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>姓名</th>
      <th>报名号</th>
      <th>联系电话</th>
      <th>考生类型</th>
      <th>专业方向</th>
      <th>导师名称</th>
      <th>状态</th>
      <th>初审备注</th>
      <th>初审老师</th>
      <th class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of mainPager.getRecords(); let i = index">
      <td><span class="table-button text-green" (click)="goStdDetail(v)">{{v.std_name}}</span></td>
      <td>{{v.exam_id}}</td>
      <td>{{v.std_mobile}}</td>
      <td [innerHTML]="v.std_edu | frameDict:'StdEduType'"></td>
      <td>{{v.aspect_name}}</td>
      <td>{{v.enr_doct_name}}</td>
      <td [innerHTML]="v.status | frameDict:'ApplyStatus'" class="{{v.status == 'InitialAppr' ? 'pass' : (v.status == 'Reject' ? 'reject' : '')}}"></td>
      <td title="{{v.initial_remark}}">{{v.initial_remark | subStr: 30}}</td>
      <td>{{v.optr_name}}</td>
      <td>
          <span class="table-button" (click)="goStdDetail(v)"><em class="fa-lg fas fa-edit"></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./review/initial/page.htm'" 
    [pagerParams]="{school_id: this.query.school_id,batch_id: this.query.batch_id, optr_id: this.query.optr_id,status: this.query.status}"  #mainPager></frame-pager>
</div>

<!--***********************考生审核详情界面************************************************-->
<div class="modal-header" *ngIf="curStep == 'std'">
  <h4 class="modal-title pull-left">考生详情</h4>
</div>
<!-- 考生详情 -->
<div class="card card-default" *ngIf="curStep == 'std'">
  <div class="card-body">
    <div class="form-group row">
      <div style="width: 10%;margin-left: 3px;">
        <img class="img-fluid rounded id_card" [src]="stdMain.std_image" style="height: 160px;width: 120px;" alt=""/>
      </div>
      <div  style="width: 20%;">
        <span style="font-size: 20px;font-weight: bold;" class="{{stdMain.showSpecialColor ? 'special' : ''}}">{{stdMain.std_name}}</span>&nbsp;<br>
        <span style="font-size: 20px;font-weight: bold;">{{stdMain.exam_id}}</span>&nbsp;<br>
        <span style="font-size: 20px;">{{stdMain.major_name}}</span><br>
        <span style="font-size: 20px;">{{stdMain.aspect_name}}</span><br>
        <span style="font-size: 20px;" [innerHTML]="stdMain.std_edu | frameDict:'StdEduType'"></span>
      </div>
      <div style="width: 30%;">
        <span style="font-size: 20px;" >身份证人脸对比：<span class="{{(stdMain.face_cmp_ret && stdMain.face_cmp_ret.indexOf('对比一致') >=0) ? 'compare' : ''}}">{{stdMain.face_cmp_ret}}</span></span><br>
        <span style="font-size: 20px;" >学籍学历校验结果：<span class="{{(stdMain.study_verify_ret && stdMain.study_verify_ret.indexOf('校验通过') >= 0) ? 'compare' : ''}}">{{stdMain.study_verify_ret}}</span></span>
      </div>
      <div style="width: 40%;">

      </div>
    </div>

  </div>
</div>
<div class="table-responsive bg-white table-full" *ngIf="curStep == 'std'">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>材料大类</th>
      <th>材料名称</th>
      <th>查看材料</th>
      <th>备注</th>
      <th>状态</th>
      <th class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of stdPager.getRecords(); let i = index">
      <td>{{v.category_name}}</td>
      <td>{{v.material_name}}</td>
      <td><span class="table-button text-green" (click)="showMaterilModal(v)">查看</span></td>
      <td title="{{v.remark}}">{{v.remark | subStr: 30}}</td>
      <td [innerHTML]="v.back_status | frameDict:'ApplyStatus'"></td>
      <td>
          <span class="table-button" (click)="showMaterilModal(v)"><em class="fa-lg fas fa-edit"></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./std/apply/detail/page.htm'" 
    [pagerParams]="{main_id: this.query.main_id, school_id: this.query.school_id, batch_id: this.query.batch_id}" #stdPager></frame-pager>
</div>
<div class="modal-footer" *ngIf="curStep == 'std'">
  <button class="btn btn-primary" type="button" (click)="doFeedBack()">审核通过</button>
  <button class="btn btn-primary danger" type="button" (click)="doReject()">审核退回</button>
  <button class="btn btn-secondary" type="button" (click)="goBack('main')">返回</button>
</div>