|
|
@ -43,49 +43,82 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<div class="operating-button"> |
|
|
|
<div class="operating-button"> |
|
|
|
<button nz-button nzType="primary" class="right-btn" [routerLink]="['/admin/merchantStore/store-edit']" ><i nz-icon nzType="plus" nzTheme="outline"></i>添加</button> |
|
|
|
<button nz-button nzType="primary" class="right-btn" [routerLink]="['/admin/merchantStore/store-edit']" ><i nz-icon nzType="plus" nzTheme="outline"></i>添加</button> |
|
|
|
|
|
|
|
<nz-upload |
|
|
|
|
|
|
|
[nzAccept]="'.xls,.xlsx'" |
|
|
|
|
|
|
|
nzAction="{{WEB_SERVE_URL}}highMerchantStore/importMerchantStore" |
|
|
|
|
|
|
|
[nzHeaders]="{ authorization: 'authorization-text' }" |
|
|
|
|
|
|
|
(nzChange)="handleChange($event)" |
|
|
|
|
|
|
|
[nzShowUploadList]="false" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<button nz-button nzType="primary" ><i nz-icon nzType="import" nzTheme="outline"></i>批量导入</button> |
|
|
|
|
|
|
|
</nz-upload> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<nz-table |
|
|
|
<nz-spin nzTip="批量导入中..." [nzSpinning]="isSpinning"> |
|
|
|
class="table" |
|
|
|
<nz-table |
|
|
|
#ajaxTable |
|
|
|
class="table" |
|
|
|
nzShowSizeChanger |
|
|
|
#ajaxTable |
|
|
|
[nzFrontPagination]="false" |
|
|
|
nzShowSizeChanger |
|
|
|
[nzData]="requestData" |
|
|
|
[nzFrontPagination]="false" |
|
|
|
[nzLoading]="loading" |
|
|
|
[nzData]="requestData" |
|
|
|
[nzTotal]="total" |
|
|
|
[nzLoading]="loading" |
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
[nzTotal]="total" |
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
[(nzPageIndex)]="pageNum" |
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
[(nzPageSize)]="pageSize" |
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
(nzPageIndexChange)="getRequest(false , searchForm.value)" |
|
|
|
<thead nzSingleSort> |
|
|
|
(nzPageSizeChange)="getRequest(false , searchForm.value)"> |
|
|
|
|
|
|
|
<thead nzSingleSort> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
|
|
|
|
<th nzWidth="80px">所属地区</th> |
|
|
|
|
|
|
|
<th nzWidth="80px">门店编号</th> |
|
|
|
|
|
|
|
<th nzWidth="80px">门店名称</th> |
|
|
|
|
|
|
|
<th nzWidth="100px">门店电话</th> |
|
|
|
|
|
|
|
<th nzWidth="100px">创建时间</th> |
|
|
|
|
|
|
|
<th nzWidth="80px" nzRight="0px">操作</th> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</thead> |
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
<tr *ngFor="let data of ajaxTable.data; let i = index"> |
|
|
|
|
|
|
|
<td>{{i+1}}</td> |
|
|
|
|
|
|
|
<td>{{data.regionName}}</td> |
|
|
|
|
|
|
|
<td>{{data.storeKey}}</td> |
|
|
|
|
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
|
|
|
|
<td>{{data.telephone}}</td> |
|
|
|
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
|
|
|
|
<a (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a> |
|
|
|
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
|
|
|
<a (click)="getDetail(data.id)"><i nz-icon [nzIconfont]="'icon-xiangqing'" nz-tooltip="门店详情"></i></a> |
|
|
|
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
|
|
|
<a (click)="getDelete(data.id)"><i nz-icon nzType="delete" nzTheme="outline" nz-tooltip="删除"></i></a> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</nz-table> |
|
|
|
|
|
|
|
</nz-spin> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<nz-modal [(nzVisible)]="errorStudentVisible" nzTitle="导入失败数据" (nzOnCancel)="handleCancelError()" nzWidth="900px" [nzFooter]="null"> |
|
|
|
|
|
|
|
<nz-table #errorStudentTable [nzData]="importErrorStudentArray"> |
|
|
|
|
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th nzWidth="50px">编号</th> |
|
|
|
<th nzWidth="80px">序号</th> |
|
|
|
<th nzWidth="80px">所属地区</th> |
|
|
|
<th nzWidth="150px">门店编号</th> |
|
|
|
<th nzWidth="80px">门店编号</th> |
|
|
|
<th nzWidth="150px">门店名称</th> |
|
|
|
<th nzWidth="80px">门店名称</th> |
|
|
|
<th nzWidth="150px">区域ID</th> |
|
|
|
<th nzWidth="100px">门店电话</th> |
|
|
|
<th nzWidth="300px">原因</th> |
|
|
|
<th nzWidth="100px">创建时间</th> |
|
|
|
|
|
|
|
<th nzWidth="80px" nzRight="0px">操作</th> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<tr *ngFor="let data of ajaxTable.data; let i = index"> |
|
|
|
<tr *ngFor="let data of errorStudentTable.data;let i = index"> |
|
|
|
<td>{{i+1}}</td> |
|
|
|
<td>{{ i + 1}}</td> |
|
|
|
<td>{{data.regionName}}</td> |
|
|
|
|
|
|
|
<td>{{data.storeKey}}</td> |
|
|
|
<td>{{data.storeKey}}</td> |
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
<td>{{data.storeName}}</td> |
|
|
|
<td>{{data.telephone}}</td> |
|
|
|
<td>{{data.regionId}}</td> |
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
<td>{{data.errorMessage}}</td> |
|
|
|
<td nzRight="0px" class="table-td-operation"> |
|
|
|
</tr> |
|
|
|
<a (click)="getEdit(data.id)"><i nz-icon nzType="form" nzTheme="outline" nz-tooltip="编辑"></i></a> |
|
|
|
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
|
|
|
<a (click)="getDetail(data.id)"><i nz-icon [nzIconfont]="'icon-xiangqing'" nz-tooltip="门店详情"></i></a> |
|
|
|
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
|
|
|
<a (click)="getDelete(data.id)"><i nz-icon nzType="delete" nzTheme="outline" nz-tooltip="删除"></i></a> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</nz-table> |
|
|
|
</nz-table> |
|
|
|
</div> |
|
|
|
</nz-modal> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|