123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <div class="searchDataWrap">
- <div class="searchData">
- <div class="searchDataItem">
- <span class="label">建单时间</span>:
- <nz-range-picker [(ngModel)]="dateRange" [nzAllowClear]="false" (ngModelChange)="changeDate($event)" (nzOnCalendarChange)="onCalendarChangeDate($event)">
- </nz-range-picker>
- </div>
- <div class="searchDataItem">
- <span class="label">报修科室</span>:
- <nz-select class="selectItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeRepairDeptInp($event)" nzAllowClear nzPlaceHolder="请选择报修科室" [(ngModel)]="repairDeptId" (nzOpenChange)="openChangeRepairDept($event)">
- <ng-container *ngFor="let option of repairDeptList">
- <nz-option *ngIf="!isLoading" [nzLabel]="option.hospital.hosName + '-' + option.dept" [nzValue]="option.id"></nz-option>
- </ng-container>
- <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
- <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
- </nz-option>
- </nz-select>
- </div>
- </div>
- <div class="operation">
- <i class="icon_transport transport-gengduo" (click)="showMore()"></i>
- <button nz-button class="btn default" (click)="search()">查询</button>
- <button nz-button class="btn default ml8" (click)="reset()">重置</button>
- <button nz-button class="btn default ml8" (click)="excelExport()" [nzLoading]="excelExportLoading">导出</button>
- </div>
- </div>
- <div class="moreFilter" *ngIf="fieldConfig.fields.groupDTO || fieldConfig.fields.userDTO || fieldConfig.fields.category1DTO || fieldConfig.fields.category2DTO || fieldConfig.fields.category3DTO || fieldConfig.fields.buildingDTO || fieldConfig.fields.floorDTO || fieldConfig.fields.companyDTO">
- <span>{{fieldConfig.fields.groupDTO?.groupName}}</span>
- <span>{{fieldConfig.fields.userDTO?.name}}</span>
- <span>{{fieldConfig.fields.category1DTO?.category}}</span>
- <span>{{fieldConfig.fields.category2DTO?.category}}</span>
- <span>{{fieldConfig.fields.category3DTO?.category}}</span>
- <span>{{fieldConfig.fields.buildingDTO?.buildingName}}</span>
- <span>{{fieldConfig.fields.floorDTO?.floorName}}</span>
- <span>{{fieldConfig.fields.companyDTO?.name}}</span>
- </div>
- <nz-table class="table" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading1" [nzScroll]="{ y: tableHeight + 'px' }" [nzFooter]="footerTpl">
- <thead (nzSortChange)="sort($event)" nzSingleSort>
- <tr>
- <th nzWidth="25%">工时名称</th>
- <th nzWidth="25%" nzShowSort nzSortKey="sum" [(nzSort)]="sortCurrent.sum">含工时工单总数</th>
- <th nzWidth="25%" nzShowSort nzSortKey="workHourNum" [(nzSort)]="sortCurrent.workHourNum">使用数量</th>
- <th nzWidth="25%" nzShowSort nzSortKey="workHourPrice" [(nzSort)]="sortCurrent.workHourPrice">总费用(元)</th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let data of listOfData">
- <td>{{ data.workHourName }}</td>
- <td>{{ data.sum }}</td>
- <td>{{ data.workHourNum }}</td>
- <td>{{ data.workHourPrice }}</td>
- </tr>
- </tbody>
- <ng-template #footerTpl>
- <table class="footTable">
- <tr *ngFor="let data of listOfDataEnd">
- <td style="width: 25%">{{ data.workHourName }}</td>
- <td style="width: 25%">{{ data.sum }}</td>
- <td style="width: 25%">{{ data.workHourNum }}</td>
- <td style="width: 25%">{{ data.workHourPrice }}</td>
- </tr>
- </table>
- </ng-template>
- </nz-table>
- <div class="pagination">
- <ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
- <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)" nzShowSizeChanger [nzPageSizeOptions]="[30,50,100,200]" [nzShowTotal]="totalTemplate"></nz-pagination>
- </div>
- <!-- 详细搜索 -->
- <app-search-more [fieldConfig]="fieldConfig" *ngIf="showSearchMore" [hosId]="hosId" [queryType]="queryType" [dutyId]="dutyId" [parentDutyId]="parentDutyId" (cancelEvent)="cancelEvent()" (submitEvent)="submitEvent($event)"></app-search-more>
|