Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -8,7 +8,7 @@ import { DataService } from '../../../services/data.service';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-datatable-partnertable',
|
selector: 'app-datatable-partnertable',
|
||||||
templateUrl: './partnertable.component.html',
|
templateUrl: './partnertable.component.html'
|
||||||
})
|
})
|
||||||
export class DatatablePartnertableComponent implements OnInit {
|
export class DatatablePartnertableComponent implements OnInit {
|
||||||
@ViewChild('st', { static: false }) st!: STComponent;
|
@ViewChild('st', { static: false }) st!: STComponent;
|
||||||
@ -24,7 +24,7 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
public service: DataService,
|
public service: DataService,
|
||||||
private modalSrv: NzModalService,
|
private modalSrv: NzModalService,
|
||||||
private modal: ModalHelper,
|
private modal: ModalHelper,
|
||||||
private envSrv: EAEnvironmentService,
|
private envSrv: EAEnvironmentService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,7 +47,7 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
* 选中行
|
* 选中行
|
||||||
*/
|
*/
|
||||||
get selectedRows() {
|
get selectedRows() {
|
||||||
return this.st?.list.filter((item) => item.checked) || [];
|
return this.st?.list.filter(item => item.checked) || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,17 +60,17 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
/**
|
/**
|
||||||
* 重置表单
|
* 重置表单
|
||||||
*/
|
*/
|
||||||
resetSF() {
|
resetSF() {
|
||||||
this.sf.reset();
|
this.sf.reset();
|
||||||
this._$expand = false;
|
this._$expand = false;
|
||||||
this.isLoading = true
|
this.isLoading = true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 程序初始化入口
|
* 程序初始化入口
|
||||||
*/
|
*/
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.initSF();
|
this.initSF();
|
||||||
this.initST()
|
this.initST();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,33 +84,37 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
title: '合伙人名称',
|
title: '合伙人名称',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: { placeholder: '请输入' },
|
ui: { placeholder: '请输入' },
|
||||||
readOnly: false,
|
readOnly: false
|
||||||
},
|
},
|
||||||
phone: {
|
phone: {
|
||||||
title: '合伙人类型',
|
title: '合伙人类型',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请输入' },
|
placeholder: '请输入'
|
||||||
readOnly: false,
|
},
|
||||||
|
readOnly: false
|
||||||
},
|
},
|
||||||
phone01: {
|
phone01: {
|
||||||
title: '合伙人状态',
|
title: '合伙人状态',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请输入' },
|
placeholder: '请输入'
|
||||||
readOnly: false,
|
},
|
||||||
|
readOnly: false
|
||||||
},
|
},
|
||||||
createTime: {
|
createTime: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd' } as SFDateWidgetSchema,
|
ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
||||||
},
|
_$expand: (value: boolean) => value,
|
||||||
|
}, } as SFDateWidgetSchema
|
||||||
|
}
|
||||||
},
|
},
|
||||||
type: 'object',
|
type: 'object'
|
||||||
};
|
};
|
||||||
this.ui = { '*': { spanLabelFixed: 80, grid: { span: 8, gutter: 4 }, enter: () => this.st?.load(1) } };
|
this.ui = { '*': { spanLabelFixed: 120, grid: { span: 8, gutter: 4 }, enter: () => this.st?.load(1) } };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -118,7 +122,7 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
initST() {
|
initST() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{ title: '合伙人名称', index: 'name', className: 'text-center' },
|
{ title: '合伙人名称', index: 'networkTransporterName', className: 'text-center' },
|
||||||
{ title: '注册时间', index: 'telephone', className: 'text-center' },
|
{ title: '注册时间', index: 'telephone', className: 'text-center' },
|
||||||
{ title: '注册时间', index: 'roleName', className: 'text-center' },
|
{ title: '注册时间', index: 'roleName', className: 'text-center' },
|
||||||
{ title: '业务员', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '业务员', index: 'lastLoginDate', className: 'text-center' },
|
||||||
@ -127,23 +131,21 @@ export class DatatablePartnertableComponent implements OnInit {
|
|||||||
index: 'stateLocked',
|
index: 'stateLocked',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
type: 'enum',
|
type: 'enum',
|
||||||
enum: { 0: '正常', 1: '冻结' },
|
enum: { 0: '正常', 1: '冻结' }
|
||||||
},
|
},
|
||||||
{ title: '客户数', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '客户数', index: 'lastLoginDate', className: 'text-center' },
|
||||||
{ title: '收益额', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '收益额', index: 'lastLoginDate', className: 'text-center' },
|
||||||
{ title: '已提现金额', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '已提现金额', index: 'lastLoginDate', className: 'text-center' },
|
||||||
{ title: '订单数', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '订单数', index: 'lastLoginDate', className: 'text-center' },
|
||||||
{ title: '订单金额', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '订单金额', index: 'lastLoginDate', className: 'text-center' },
|
||||||
{ title: '应收订单数', index: 'lastLoginDate', className: 'text-center' },
|
{ title: '应收订单数', index: 'lastLoginDate', className: 'text-center' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据列表状态变化事件
|
* 数据列表状态变化事件
|
||||||
*/
|
*/
|
||||||
change(change: STChange) {
|
change(change: STChange) {
|
||||||
// console.log(change);
|
// console.log(change);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -140,19 +140,7 @@ export class TaxManagementIndividualDeclareComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
declareResult: {
|
|
||||||
title: '申报结果',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请选择',
|
|
||||||
widget: 'dict-select',
|
|
||||||
params: { dictKey: 'service:type' },
|
|
||||||
containsAllLabel: true,
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
isOvertime: {
|
isOvertime: {
|
||||||
title: '是否逾期',
|
title: '是否逾期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
|||||||
@ -7,23 +7,16 @@
|
|||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\vehicle\\components\\audit\\audit.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\vehicle\\components\\audit\\audit.component.html
|
||||||
-->
|
-->
|
||||||
<!-- 页头 -->
|
<!-- 页头 -->
|
||||||
<page-header-wrapper ></page-header-wrapper>
|
<page-header-wrapper></page-header-wrapper>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<!-- 搜索区 -->
|
<!-- 搜索区 -->
|
||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
||||||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
||||||
<sf
|
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" (formSubmit)="st?.load(1)"
|
||||||
#sf
|
(formReset)="resetSF()"></sf>
|
||||||
[schema]="schema"
|
|
||||||
[ui]="ui"
|
|
||||||
[mode]="'search'"
|
|
||||||
[disabled]="!sf?.valid"
|
|
||||||
(formSubmit)="st?.load(1)"
|
|
||||||
(formReset)="resetSF()"
|
|
||||||
></sf>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- [loading]="false" -->
|
<!-- [loading]="false" -->
|
||||||
|
|
||||||
@ -33,9 +26,10 @@
|
|||||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||||
<button nz-button nzType="primary" acl [acl-ability]="['VEHICLE-AUDIT-search']" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
<button nz-button nzType="primary" acl [acl-ability]="['VEHICLE-AUDIT-search']"
|
||||||
|
[nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||||
<button nz-button nzType="primary" [disabled]="false" (click)="exportFire()">导出</button>
|
<button nz-button nzType="primary" [disabled]="false" (click)="exportFire()">导出</button>
|
||||||
<button nz-button [disabled]="false"(click)="resetSF()">重置</button>
|
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
{{ !_$expand ? '展开' : '收起' }}
|
{{ !_$expand ? '展开' : '收起' }}
|
||||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||||
@ -47,34 +41,27 @@
|
|||||||
<nz-card>
|
<nz-card>
|
||||||
<!-- 数据列表 -->
|
<!-- 数据列表 -->
|
||||||
<!-- [data]="service.$api_get_supplier_page" -->
|
<!-- [data]="service.$api_get_supplier_page" -->
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzSelectedIndex]='defaultTabs' [nzTabBarExtraContent]="extraTemplate">
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzSelectedIndex]='defaultTabs'
|
||||||
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
[nzTabBarExtraContent]="extraTemplate">
|
||||||
<nz-tab [nzTitle]="'待审核'"></nz-tab>
|
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'审核通过'"></nz-tab>
|
<nz-tab [nzTitle]="'待审核'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'驳回'"></nz-tab>
|
<nz-tab [nzTitle]="'审核通过'"></nz-tab>
|
||||||
</nz-tabset>
|
<nz-tab [nzTitle]="'驳回'"></nz-tab>
|
||||||
<st
|
</nz-tabset>
|
||||||
#st
|
<st #st [bordered]="true" [scroll]="{ x: '1200px' }" [columns]="columns" [data]='service.$api_get_userCarLicense_list'
|
||||||
[bordered]="true"
|
|
||||||
[scroll]="{ x: '1200px' }"
|
|
||||||
[columns]="columns"
|
|
||||||
[data]='service.$api_get_userCarLicense_list'
|
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
|
[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] }"
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false">
|
||||||
[loading]="false"
|
|
||||||
>
|
|
||||||
<ng-template st-row="carLength" let-item let-index="index">
|
<ng-template st-row="carLength" let-item let-index="index">
|
||||||
<div>{{item?.carModelLabel}}-{{item?.carLength? item?.carLength + '米' : ''}}-{{ item?.carLoad? item?.carLoad + '吨' : ''}}</div>
|
<div>{{item?.carModelLabel}}-{{item?.carLengthLabel? item?.carLengthLabel + '米' : ''}}-{{ item?.carLoad?
|
||||||
|
item?.carLoad + '吨' : ''}}</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="isSelf" let-item let-index="index">
|
<ng-template st-row="isSelf" let-item let-index="index">
|
||||||
<div >{{item?.isSelf ? '是' : '否'}}</div>
|
<div>{{item?.isSelf ? '是' : '否'}}</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="contactsPhone" let-item let-index="index">
|
<ng-template st-row="contactsPhone" let-item let-index="index">
|
||||||
<div
|
<div style="color: #52c41a;" (click)="daoyun(item)">
|
||||||
style="color: #52c41a;" (click)="daoyun(item)"
|
{{ item.contactsPhone }}
|
||||||
>
|
|
||||||
{{ item.contactsPhone }}
|
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="stateCol" let-item let-index="index">
|
<ng-template st-row="stateCol" let-item let-index="index">
|
||||||
@ -84,9 +71,9 @@
|
|||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<ng-template #extraTemplate>
|
<ng-template #extraTemplate>
|
||||||
<!-- 工具栏 -->
|
<!-- 工具栏 -->
|
||||||
<div class="toolbar" style="float: right;
|
<div class="toolbar" style="float: right;
|
||||||
padding-bottom: 15px;">
|
padding-bottom: 15px;">
|
||||||
<button nz-button nzType="primary" (click)="addModal()">添加车辆</button>
|
<button nz-button nzType="primary" (click)="addModal()">添加车辆</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
Reference in New Issue
Block a user