You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
5.1 KiB
119 lines
5.1 KiB
2 years ago
|
<!-- start 面包屑 -->
|
||
|
<app-breadcrumb></app-breadcrumb>
|
||
|
<!-- end 面包屑 -->
|
||
|
<!--条件搜索-->
|
||
|
|
||
|
<nz-spin [nzSpinning]="loadingObject.spinning" nzTip="{{loadingObject.msg}}">
|
||
|
<div class="inner-content">
|
||
|
<form nz-form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)">
|
||
|
<div nz-row>
|
||
|
|
||
|
<div nz-col nzSpan="8">
|
||
|
<nz-form-item>
|
||
|
<nz-form-label [nzSpan]="8">联系人</nz-form-label>
|
||
|
<nz-form-control [nzSpan]="14">
|
||
|
<input nz-input formControlName="contactName" />
|
||
|
</nz-form-control>
|
||
|
</nz-form-item>
|
||
|
</div>
|
||
|
|
||
|
<div nz-col nzSpan="8">
|
||
|
<nz-form-item>
|
||
|
<nz-form-label [nzSpan]="8">联系电话</nz-form-label>
|
||
|
<nz-form-control [nzSpan]="14">
|
||
|
<input nz-input formControlName="contactPhone" />
|
||
|
</nz-form-control>
|
||
|
</nz-form-item>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div nz-row>
|
||
|
<div nz-col nzSpan="24" class="search-button">
|
||
|
<button nz-button nzType="primary"><i nz-icon nzType="search" nzTheme="outline"></i>搜索</button>
|
||
|
<button nz-button nzType="default" (click)="resetForm()"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div class="inner-content">
|
||
|
<span>共计 {{dataObject.total?dataObject.total:0}} 条数据</span>
|
||
|
<div class="operating-button">
|
||
|
<button nz-button nzType="primary" class="right-btn" (click)="downloadTemplate()"><i nz-icon nzType="vertical-align-bottom" nzTheme="outline"></i>下载导入模板</button>
|
||
|
|
||
|
<nz-upload
|
||
|
[nzAccept]="'.xls,.xlsx'"
|
||
|
nzAction="{{WEB_SERVE_URL}}fleetOilCardCar/importData?cardNo={{fleetCardNo}}"
|
||
|
[nzHeaders]="{ authorization: 'authorization-text' }"
|
||
|
(nzChange)="handleChange($event)"
|
||
|
[nzShowUploadList]="false"
|
||
|
>
|
||
|
<button nz-button nzType="primary" class="right-btn"><i nz-icon nzType="import" nzTheme="outline"></i>导入车辆</button>
|
||
|
</nz-upload>
|
||
|
</div>
|
||
|
|
||
|
<!--数组表格 -->
|
||
|
<nz-table #basicTable
|
||
|
[nzData]="dataObject.list"
|
||
|
[nzTotal]="dataObject.total"
|
||
|
[nzFrontPagination]="false"
|
||
|
[nzLoading]="tableLoading"
|
||
|
[nzPageIndex]="whereObject.pageNum"
|
||
|
(nzPageIndexChange)="requestData($event)"
|
||
|
[nzScroll]="{ x: '1100px'}">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th nzWidth="60px">序号</th>
|
||
|
<th nzWidth="110px">车辆车牌</th>
|
||
|
<th nzWidth="110px">车主姓名</th>
|
||
|
<th nzWidth="110px">车主电话</th>
|
||
|
<th nzWidth="120px">创建时间</th>
|
||
|
<th nzWidth="110px">创建人</th>
|
||
|
<th nzWidth="110px" nzRight="0px">操作</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr *ngFor="let data of basicTable.data;let i = index">
|
||
|
<td>{{i+1}}</td>
|
||
|
<td>{{data.carLicensePlate}}</td>
|
||
|
<td>{{data.contactName}}</td>
|
||
|
<td>{{data.contactPhone}}</td>
|
||
|
<td>{{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
|
||
|
<td>{{data.opUserName}}</td>
|
||
|
<td nzRight="0px" class="table-td-operation">
|
||
|
<a nz-dropdown [nzDropdownMenu]="menu"> 操作列表 <i nz-icon nzType="down"></i> </a>
|
||
|
<nz-dropdown-menu #menu="nzDropdownMenu">
|
||
|
<ul nz-menu nzSelectable>
|
||
|
<li nz-menu-item (click)="showDelConfirm(data.id)"><a>删除</a></li>
|
||
|
<li nz-menu-item [routerLink]="['/admin/fleet-oil-card/order-list']" [queryParams]="{ cardNo: data.fleetOilCardNo, carLicensePlate: data.carLicensePlate }"><a>消费订单</a></li>
|
||
|
</ul>
|
||
|
</nz-dropdown-menu>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</nz-table>
|
||
|
</div>
|
||
|
</nz-spin>
|
||
|
|
||
|
|
||
|
<nz-modal [(nzVisible)]="importErrorDataModal" nzTitle="导入失败数据" (nzOnCancel)="closeImportErrorDataModal()" nzWidth="900px" [nzFooter]="null">
|
||
|
<nz-table #errorStudentTable [nzData]="errorDataArray">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th nzWidth="80px">序号</th>
|
||
|
<th nzWidth="150px">客户姓名</th>
|
||
|
<th nzWidth="150px">客户电话</th>
|
||
|
<th nzWidth="300px">失败原因</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr *ngFor="let data of errorStudentTable.data;let i = index">
|
||
|
<td>{{ i + 1}}</td>
|
||
|
<td>{{data.contactName}}</td>
|
||
|
<td>{{data.contactPhone}}</td>
|
||
|
<td>{{data.errMsg}}</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</nz-table>
|
||
|
</nz-modal>
|