车辆UI优化
This commit is contained in:
@ -22,7 +22,7 @@ import { fromEvent, Subscription } from 'rxjs';
|
||||
templateUrl: './detail.component.html',
|
||||
styleUrls: ['./detail.component.less']
|
||||
})
|
||||
export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy {
|
||||
export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ViewChild('redectModal', { static: false }) redectModal!: any;
|
||||
columns!: STColumn[];
|
||||
@ -36,8 +36,16 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
|
||||
approvalOpinion = '';
|
||||
uploadURl = apiConf.waterFileUpload;
|
||||
disabledUpload = false;
|
||||
carStatus: any = {
|
||||
1: '未上传',
|
||||
0: '草稿',
|
||||
10: '待审核',
|
||||
20: '已审核',
|
||||
30: '已驳回',
|
||||
40: '证件过期',
|
||||
}
|
||||
|
||||
|
||||
|
||||
scrollTop = 0;
|
||||
subscribeScoll!: Subscription;
|
||||
constructor(
|
||||
@ -46,7 +54,7 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
|
||||
private nzModalService: NzModalService,
|
||||
private modal: ModalHelper,
|
||||
private nzImageService: NzImageService
|
||||
) {}
|
||||
) { }
|
||||
ngOnDestroy(): void {
|
||||
this.subscribeScoll.unsubscribe();
|
||||
}
|
||||
@ -63,9 +71,9 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
|
||||
initST() {
|
||||
this.columns = [
|
||||
{ title: '司机姓名', index: 'name', width: 150, className: 'text-center' },
|
||||
{ title: '司机手机号', index: 'mobile', width: 200,className: 'text-center' },
|
||||
{ title: '司机手机号', index: 'mobile', width: 200, className: 'text-center' },
|
||||
{ title: '身份证号', index: 'idCardNo', width: 200, className: 'text-center' },
|
||||
{ title: '挂靠协议', render: 'auditStatusEnum', width: 100,className: 'text-center' },
|
||||
{ title: '挂靠协议', render: 'auditStatusEnum', width: 100, className: 'text-center' },
|
||||
{
|
||||
title: '车主申明/挂靠协议',
|
||||
fixed: 'right',
|
||||
@ -152,14 +160,14 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
|
||||
|
||||
this.detailData.roadTransportEndTime = EADateUtil.yearToDate(this.detailData?.roadTransportEndTime);
|
||||
console.log(this.detailData.roadTransportStartTime)
|
||||
if((this.detailData.roadTransportStartTime > this.detailData.roadTransportEndTime) || (this.detailData.driverLicenseRegisterTime > this.detailData.driverLicenseEndTime)) {
|
||||
if ((this.detailData.roadTransportStartTime > this.detailData.roadTransportEndTime) || (this.detailData.driverLicenseRegisterTime > this.detailData.driverLicenseEndTime)) {
|
||||
this.service.msgSrv.error('发证日期起始不能大于结束日期!')
|
||||
return;
|
||||
return;
|
||||
}
|
||||
this.service.request(this.service.$api_get_update_audit, this.detailData).subscribe(res => {
|
||||
if (res) {
|
||||
this.getDetailList();
|
||||
this.isEdit = false;
|
||||
this.isEdit = false;
|
||||
this.service.msgSrv.success('修改成功!');
|
||||
}
|
||||
});
|
||||
@ -271,14 +279,14 @@ export class VehicleComponentsAuditDetailComponent implements OnInit, OnDestroy
|
||||
// this.getDetailList();
|
||||
// });
|
||||
console.log(item);
|
||||
|
||||
const params = {
|
||||
imgList: [item.carProtocal],
|
||||
index: 0
|
||||
};
|
||||
this.nzImageService.preview([{ src: item.carProtocal}]);
|
||||
this.st.reload();
|
||||
this.getDetailList();
|
||||
|
||||
const params = {
|
||||
imgList: [item.carProtocal],
|
||||
index: 0
|
||||
};
|
||||
this.nzImageService.preview([{ src: item.carProtocal }]);
|
||||
this.st.reload();
|
||||
this.getDetailList();
|
||||
}
|
||||
updateEvaluate(item: any) {
|
||||
this.modal.createStatic(VehicleComponentsListEditComponent, { i: item }).subscribe(i => {
|
||||
|
||||
Reference in New Issue
Block a user