This commit is contained in:
wangshiming
2022-02-18 14:04:31 +08:00
parent 149742b163
commit d985c233b1
9 changed files with 109 additions and 46 deletions

View File

@ -1,10 +1,10 @@
<!--
* @Author: your name
* @Date: 2021-11-29 15:22:34
* @LastEditTime : 2022-02-16 09:58:52
* @LastEditTime : 2022-02-18 11:20:48
* @LastEditors : Shiming
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath : \\tms-obc-web\\src\\app\\routes\\usercenter\\components\\driver\\captain\\captain.component.html
* @FilePath : \\tms-obc-web\\src\\app\\routes\\usercenter\\components\\driver\\driver-config\\driver-config.component.html
-->
<!-- 页头 -->
<page-header-wrapper></page-header-wrapper>
@ -22,7 +22,7 @@
[nzLoading]="service.http.loading"
(click)="st?.load(1)"
acl
[acl-ability]="['USERCENTER-DRIVER-CAPTAIN-list']"
[acl-ability]="['USERCENTER-DRIVER-CONFIG-search']"
>查询</button
>
<button
@ -31,7 +31,7 @@
[disabled]="service.http.loading"
(click)="exportList()"
acl
[acl-ability]="['USERCENTER-DRIVER-CAPTAIN-export']"
[acl-ability]="['USERCENTER-DRIVER-CONFIG-export']"
>导出</button
>
<button nz-button (click)="resetSF()" [disabled]="service.http.loading">重置</button>
@ -47,16 +47,26 @@
<st
#st
[columns]="columns"
[data]="service.$api_get_user_expand"
[data]="service.$api_configPage"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading"
>
<ng-template st-row="promotersTelephone" let-item let-index="index">
<a (click)="addPromoter(item)" acl [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-promoter']">
{{ item.promotersTelephone || '添加' }}
</a>
<ng-template st-row="monthFreightAmount" let-item let-index="index">
<div>{{item?.monthFreightAmount | currency}}</div>
</ng-template>
<ng-template st-row="dayWithdrawalAmount" let-item let-index="index">
<div>{{item?.dayWithdrawalAmount | currency}}</div>
</ng-template>
<ng-template st-row="monthWithdrawalAmount" let-item let-index="index">
<div>{{item?.monthWithdrawalAmount | currency}}</div>
</ng-template>
<ng-template st-row="monthReceivableAmount" let-item let-index="index">
<div>{{item?.monthReceivableAmount | currency}}</div>
</ng-template>
<ng-template st-row="isCaptain" let-item let-index="index">
<div>{{item?.isCaptain == 1 ? '车队长' : '司机'}}</div>
</ng-template>
</st>
</nz-card>

View File

@ -194,38 +194,20 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
// { title: '', type: 'checkbox', className: 'text-center' },
{ title: '司机姓名', className: 'text-center', index: 'name' },
{ title: '手机号', className: 'text-center', index: 'mobile' },
{ title: '身份证号', className: 'text-center', index: 'identityNo' },
{
title: '实名认证状态',
className: 'text-center',
index: 'identityStatus',
type: 'badge',
badge: {
'-1': { text: '未提交', color: 'default' },
0: { text: '待审核', color: 'processing' },
1: { text: '审核通过', color: 'success' },
2: { text: '驳回', color: 'warning' }
}
},
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone' },
{ title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '用户注册', 2: '货主添加' , 3: '运营添加'} },
{ title: '注册时间', className: 'text-center', index: 'createTime' },
{ title: '类型', className: 'text-center', render: 'isCaptain' },
{ title: '月承运金额上限(元)', className: 'text-center', render: 'monthFreightAmount' },
{ title: '日提现金额上限(元)', className: 'text-center', render: 'dayWithdrawalAmount', },
{ title: '月提现金额上限(元)', className: 'text-center', render: 'monthWithdrawalAmount' },
{ title: '月收款金额上限(元)', className: 'text-center', render: 'monthReceivableAmount' },
{
title: '操作',
width: '170px',
className: 'text-center',
buttons: [
{
text: '查看',
click: item => {
this.router.navigate(['/usercenter/driver/captain/detail', item.appUserId]);
},
acl: { ability: ['USERCENTER-DRIVER-CAPTAIN-view'] }
},
{
text: '基础设置',
text: '配置',
click: item => this.settingAction(item),
acl: { ability: ['USERCENTER-DRIVER-CAPTAIN-basicSetting'] }
acl: { ability: ['USERCENTER-DRIVER-CONFIG-config'] }
}
]
}