edit
This commit is contained in:
@ -34,6 +34,19 @@
|
||||
<!-- 数据列表 -->
|
||||
<st #st multiSort [data]="service.$api_get_freight_list" [columns]="tabType===1?enterColumns:adminColumns"
|
||||
[req]="{ process: beforeReq }" [page]=" {}" [loading]="service.http.loading" [scroll]="{ x: '1200px' }">
|
||||
<ng-template st-row="approvalStatus" let-item let-index="index">
|
||||
<ng-container [ngSwitch]="item.approvalStatus">
|
||||
<nz-badge *ngSwitchCase="10" nzColor="#108ee9" nzText="待审核"></nz-badge>
|
||||
<nz-badge *ngSwitchCase="15" nzColor="gold" nzText="已撤销"></nz-badge>
|
||||
<nz-badge *ngSwitchCase="20" nzColor="#87d068" nzText="已成功"></nz-badge>
|
||||
<ng-container *ngSwitchCase="30">
|
||||
<nz-badge nzColor="volcano" nzText="已驳回"></nz-badge><br>
|
||||
<label style="color: #ff4d4f;">(驳回原因:{{item.approvalOpinion}})</label>
|
||||
</ng-container>
|
||||
|
||||
<p *ngSwitchDefault></p>
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
<ng-template #content>
|
||||
|
||||
@ -175,7 +175,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
type: 'enum',
|
||||
enum: { 1: '物流企业', 2: '货运代理', 3: '生产型企业', 4: '贸易类企业', 5: '科技型企业', 6: '化学化工企业', 7: '其他' }
|
||||
},
|
||||
{ title: '管理员', className: 'text-center', index: 'contacter', width: 150, format: item => `${item.contacter}/${item.mobile}` },
|
||||
{ title: '管理员', className: 'text-center', index: 'contacter', width: 150, format: item => `${item.contacter}<br>/${item.mobile}` },
|
||||
{
|
||||
title: '常用服务',
|
||||
className: 'text-center',
|
||||
@ -185,19 +185,22 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
width: 140
|
||||
},
|
||||
{ title: '业务员', className: 'text-center', index: 'promotersTelephone', width: 150 },
|
||||
{ title: '注册时间', className: 'text-center', index: 'createTime', width: 170 },
|
||||
{
|
||||
title: '注册渠道',
|
||||
className: 'text-center',
|
||||
index: 'source',
|
||||
type: 'enum',
|
||||
enum: { 1: '货主注册', 2: '平台添加', 3: '运营添加' },
|
||||
width: 130
|
||||
},
|
||||
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 180, type: 'date' },
|
||||
{ title: '审核时间', className: 'text-center', index: 'approvalTime', width: 180, type: 'date' },
|
||||
{ title: '审核人', className: 'text-center', index: 'approvalUserName', width: 130 },
|
||||
{
|
||||
title: '审核状态',
|
||||
className: 'text-center',
|
||||
index: 'approvalStatus',
|
||||
type: 'badge',
|
||||
badge: {
|
||||
10: { text: '待审核', color: 'processing' },
|
||||
15: { text: '已撤销', color: 'processing' },
|
||||
20: { text: '已成功', color: 'success' },
|
||||
30: { text: '审核失败', color: 'warning' }
|
||||
},
|
||||
width: 130
|
||||
render: 'approvalStatus',
|
||||
width: 160
|
||||
},
|
||||
{
|
||||
title: '常用服务',
|
||||
|
||||
@ -52,10 +52,6 @@
|
||||
<a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone
|
||||
|| '添加' }}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="stateCol" let-item let-index="index">
|
||||
<nz-tag *ngIf="item.stateLocked" nzColor="error">冻结</nz-tag>
|
||||
<nz-tag *elseBlock nzColor="success">正常</nz-tag>
|
||||
</ng-template>
|
||||
</st>
|
||||
</nz-card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user