|
|
|
<!-- <p>下级任务申请</p> -->
|
|
|
|
<div class="box">
|
|
|
|
<div class="timebox">
|
|
|
|
<nz-select [(ngModel)]="selectedYear" (ngModelChange)="selectYear($event)">
|
|
|
|
<nz-option [nzValue]="2022" nzLabel="2022年"></nz-option>
|
|
|
|
<nz-option [nzValue]="2023" nzLabel="2023年"></nz-option>
|
|
|
|
<nz-option [nzValue]="2024" nzLabel="2024年"></nz-option>
|
|
|
|
<nz-option [nzValue]="2025" nzLabel="2025年"></nz-option>
|
|
|
|
</nz-select>
|
|
|
|
<div *ngFor="let item of months" class="monthbtn" (click)="selectMonth(item)"
|
|
|
|
[ngClass]="{'selectedMonth': item.id == selectedMonth}">
|
|
|
|
{{item.name}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div class="spin" *ngIf="isloading">
|
|
|
|
<nz-spin nzSimple></nz-spin>
|
|
|
|
</div>
|
|
|
|
<div class="tabheader">
|
|
|
|
<div *ngFor="let item of data" class="tabtitle" [ngClass]="{'selectedTab': selectedTab == item.id}"
|
|
|
|
(click)="selectTab(item)">
|
|
|
|
<div [ngClass]="{'blue': selectedTab == item.id}">
|
|
|
|
<span>{{item.name}}</span>
|
|
|
|
<span style="margin: 0 8px;"></span>
|
|
|
|
<span>已审批: {{item.finished}}/{{item.totalCount}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tabbody">
|
|
|
|
<div class="card greencard" [ngClass]="{'redcard': item.approvalStatus == 'reject'}"
|
|
|
|
*ngFor="let item of atPresentData.list">
|
|
|
|
<div class="unitname">
|
|
|
|
<img src="../../../../assets/images/icon/unit.png" alt="">
|
|
|
|
<span>{{item.company.companyName}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="info">
|
|
|
|
<span>
|
|
|
|
<img src="../../../../assets/images/icon/main.png" alt="">
|
|
|
|
{{item.mainSupervisor ? item.mainSupervisor.name : '未分配'}}
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<img src="../../../../assets/images/icon/assist.png" alt="">
|
|
|
|
{{item.assitantSupervisor ? item.assitantSupervisor.name : '未分配'}}
|
|
|
|
</span>
|
|
|
|
<span class="blue" (click)="allot(item)">分配</span>
|
|
|
|
<span>|</span>
|
|
|
|
<span>申请人: {{item.assistantOrganization.name}}</span>
|
|
|
|
<!-- <span class="blue">修改</span> -->
|
|
|
|
</div>
|
|
|
|
<div class="btn">
|
|
|
|
<button [ngClass]="{'forbidbtn': item.approvalStatus}" [disabled]="item.approvalStatus" nz-button
|
|
|
|
(click)="agree(item)">同意</button>
|
|
|
|
<button [ngClass]="{'forbidbtn': item.approvalStatus}" [disabled]="item.approvalStatus" nz-button
|
|
|
|
(click)="reject(item)">驳回</button>
|
|
|
|
</div>
|
|
|
|
<img *ngIf="item.approvalStatus == 'reject'" class="auditimg"
|
|
|
|
src="../../../../assets/images/icon/reject.png" alt="">
|
|
|
|
<img *ngIf="item.approvalStatus == 'approved'" class="auditimg"
|
|
|
|
src="../../../../assets/images/icon/agree.png" alt="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|