|
|
|
@ -2,81 +2,108 @@ |
|
|
|
|
<div nz-row [nzGutter]="24"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>商户号</nz-form-label> |
|
|
|
|
<nz-form-label>所在省级</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nzSize="large" nz-input formControlName="merNo" placeholder="请输入" /> |
|
|
|
|
<nz-select formControlName="provinceCode" nzAllowClear [nzPlaceHolder]="'请选择'" nzShowSearch> |
|
|
|
|
<nz-option *ngFor="let item of regionData" nzValue="{{item.regionId}}" nzLabel="{{item.regionName}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>商户名称</nz-form-label> |
|
|
|
|
<nz-form-label>来源渠道</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nzSize="large" nz-input formControlName="merName" placeholder="请输入" /> |
|
|
|
|
<nz-select formControlName="sourceType" nzAllowClear [nzPlaceHolder]="'请选择'"> |
|
|
|
|
<nz-option *ngFor="let item of merSourceTypeArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>创建人</nz-form-label> |
|
|
|
|
<nz-form-label>油站编号</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<input nzSize="large" nz-input formControlName="opUserName" placeholder="请输入" /> |
|
|
|
|
<input nz-input formControlName="merNo" placeholder="请输入" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div nz-col [nzSpan]="6"> |
|
|
|
|
<div nz-col [nzSpan]="6"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>商户状态</nz-form-label> |
|
|
|
|
<nz-form-label>油站名称</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-select nzSize="large" formControlName="status" nzAllowClear [nzPlaceHolder]="'请选择'"> |
|
|
|
|
<nz-option *ngFor="let item of merStatus" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
<input nz-input formControlName="merName" placeholder="请输入" /> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="6" [hidden]="!isCollapse"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>油站状态</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-select formControlName="status" nzAllowClear [nzPlaceHolder]="'请选择'"> |
|
|
|
|
<nz-option *ngFor="let item of merchantStatusArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div>--> |
|
|
|
|
<div nz-col [nzSpan]="6" class="search-area"> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="6" [hidden]="!isCollapse"> |
|
|
|
|
<nz-form-item> |
|
|
|
|
<nz-form-label>来源渠道</nz-form-label> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-select formControlName="sourceType" nzAllowClear [nzPlaceHolder]="'请选择'"> |
|
|
|
|
<nz-option *ngFor="let item of merSourceTypeArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div nz-col [nzSpan]="24" class="search-area"> |
|
|
|
|
<button nz-button [nzType]="'primary'" (click)="searchFormSubmit()">查询</button> |
|
|
|
|
<button nz-button (click)="searchFormReset()">重置</button> |
|
|
|
|
<a class="collapse" (click)="isCollapse = !isCollapse"> |
|
|
|
|
更多查询条件 |
|
|
|
|
<i nz-icon [nzType]="!isCollapse ? 'down' : 'up'"></i> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<nz-table #basicTable |
|
|
|
|
[nzScroll]="{ x: '1100px' }" |
|
|
|
|
[nzScroll]="{ x: '1200px' }" |
|
|
|
|
[nzBordered]="true" |
|
|
|
|
[nzFrontPagination]="false" |
|
|
|
|
[nzShowQuickJumper]="true" |
|
|
|
|
[nzShowTotal]="totalTemplate" |
|
|
|
|
[(nzPageIndex)]="tablePageNum" |
|
|
|
|
(nzPageIndexChange)="queryData()" |
|
|
|
|
nzShowSizeChanger |
|
|
|
|
(nzPageSizeChange)="this.tablePageSize = $event;queryData()" |
|
|
|
|
[nzPageSizeOptions]="[ 10, 20, 30, 50, 100 ]" |
|
|
|
|
[nzTotal]="tableData.total" |
|
|
|
|
[nzData]="tableData.list" > |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th nzWidth="30px">商户号</th> |
|
|
|
|
<th nzWidth="50px">商户名称</th> |
|
|
|
|
<th nzWidth="30px">负责人</th> |
|
|
|
|
<th nzWidth="30px">联系电话</th> |
|
|
|
|
<th nzWidth="30px">创建人</th> |
|
|
|
|
<th nzWidth="30px">创建时间</th> |
|
|
|
|
<th nzWidth="30px">更新时间</th> |
|
|
|
|
<th nzRight nzWidth="50px">操作</th> |
|
|
|
|
<th nzWidth="80px">列表展示</th> |
|
|
|
|
<th nzWidth="120px">来源渠道</th> |
|
|
|
|
<th nzWidth="100px">连锁名称</th> |
|
|
|
|
<th nzWidth="110px">油站编号</th> |
|
|
|
|
<th nzWidth="230px">油站名称</th> |
|
|
|
|
<th nzWidth="180px">油站地区</th> |
|
|
|
|
<th nzWidth="80px">油站状态</th> |
|
|
|
|
<th nzRight nzWidth="110px">操作</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let data of basicTable.data"> |
|
|
|
|
<td><nz-switch [(ngModel)]="data.listShow" (ngModelChange)="listShowChange($event)"></nz-switch></td> |
|
|
|
|
<td>{{data.sourceType | dictionary: "MER_SOURCE_TYPE"}}</td> |
|
|
|
|
<td>{{data.chainBrandName?data.chainBrandName:'无'}}</td> |
|
|
|
|
<td>{{data.merNo}}</td> |
|
|
|
|
<td>{{data.merName}}</td> |
|
|
|
|
<td>{{data.directorName}}</td> |
|
|
|
|
<td>{{data.directorTel}}</td> |
|
|
|
|
<td>{{data.opUserName}}</td> |
|
|
|
|
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.updateTime | date: 'yyyy-MM-dd HH:mm'}}</td> |
|
|
|
|
<td>{{data.provinceName+"/"+data.cityName+"/"+data.areaName}}</td> |
|
|
|
|
<td>{{data.status | dictionary: "MERCHANT_STATUS"}}</td> |
|
|
|
|
<td nzRight> |
|
|
|
|
<a (click)="showMerDetail(data.merNo)">详情</a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a (click)="showUpdateMer(data.merNo)">修改资料</a> |
|
|
|
|
<nz-divider nzType="vertical"></nz-divider> |
|
|
|
|
<a nz-dropdown [nzDropdownMenu]="menu"> |
|
|
|
|
更多 |
|
|
|
|
<span nz-icon nzType="down"></span> |
|
|
|
|