Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2021-12-16 11:23:38 +08:00
7 changed files with 82 additions and 70 deletions

View File

@ -0,0 +1,22 @@
.expend-options {
margin-top: 0px;
}
@media (min-width: 1200px) {
.expend-options {
margin-top: -40px;
max-width : 400px;
position : absolute;
right : 0;
bottom : 30px;
}
}
:host::ng-deep {
nz-range-picker {
width: 100%;
}
}

View File

@ -1,31 +0,0 @@
/*
* @Author: your name
* @Date: 2021-11-30 16:56:15
* @LastEditTime: 2021-11-30 20:36:30
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\usercenter\components\driver\driver.component.spec.ts
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { UserCenterComponentsDriverCaptainComponent } from './captain.component';
describe('UserCenterComponentsDriverCaptainComponent', () => {
let component: UserCenterComponentsDriverCaptainComponent;
let fixture: ComponentFixture<UserCenterComponentsDriverCaptainComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [UserCenterComponentsDriverCaptainComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(UserCenterComponentsDriverCaptainComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -7,6 +7,7 @@ import { UsermanageService } from '../../../services/usercenter.service';
@Component({ @Component({
selector: 'app-usercenter-components-driver-captain', selector: 'app-usercenter-components-driver-captain',
templateUrl: './captain.component.html', templateUrl: './captain.component.html',
styleUrls: ['./captain.component.less']
}) })
export class UserCenterComponentsDriverCaptainComponent implements OnInit { export class UserCenterComponentsDriverCaptainComponent implements OnInit {
_$expand = false; _$expand = false;
@ -41,8 +42,8 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
unifiedSocialCreditCode3: '常用服务', unifiedSocialCreditCode3: '常用服务',
unifiedSocialCreditCode2: '正常', unifiedSocialCreditCode2: '正常',
tenantId: 2 tenantId: 2
}, }
] ];
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
@ -59,7 +60,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
*/ */
get reqParams() { get reqParams() {
const params: any = { const params: any = {
...(this.sf && this.sf.value), ...(this.sf && this.sf.value)
}; };
if (this.sf?.value.effectiveDate) { if (this.sf?.value.effectiveDate) {
params.effectiveDateStart = this.sf?.value.effectiveDate[0]; params.effectiveDateStart = this.sf?.value.effectiveDate[0];
@ -71,13 +72,13 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
} }
get selectedRows() { get selectedRows() {
return this.st?.list.filter((item) => item.checked) || []; return this.st?.list.filter(item => item.checked) || [];
} }
ngOnInit() { ngOnInit() {
this.initSF(); this.initSF();
this.initST(); this.initST();
this.ar.url.subscribe((params) => { this.ar.url.subscribe(params => {
this.st?.load(1); this.st?.load(1);
}); });
} }
@ -93,8 +94,8 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
expand: { expand: {
type: 'boolean', type: 'boolean',
ui: { ui: {
hidden: true, hidden: true
}, }
}, },
storeName: { title: '司机姓名', type: 'string', ui: { showRequired: false } }, storeName: { title: '司机姓名', type: 'string', ui: { showRequired: false } },
phone: { phone: {
@ -103,15 +104,15 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
format: 'mobile', format: 'mobile',
maxLength: 11, maxLength: 11,
ui: { ui: {
placeholder: '请输入手机号', placeholder: '请输入手机号'
}, }
}, },
phon747e: { phon747e: {
title: '银行卡号', title: '银行卡号',
type: 'string', type: 'string',
ui: { ui: {
placeholder: '请输入银行卡号', placeholder: '请输入银行卡号'
}, }
}, },
phone2: { phone2: {
@ -124,10 +125,9 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
visibleIf: { visibleIf: {
expand: (value: boolean) => value expand: (value: boolean) => value
} }
}, }
}, }
}
},
}; };
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } }; this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } };
} }
@ -149,13 +149,13 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
buttons: [ buttons: [
{ {
text: '查看', text: '查看',
click: (item) => { click: item => {
this.router.navigate(['/usercenter/driver/detail', item.tenantId], { relativeTo: this.ar }); this.router.navigate(['/usercenter/driver/detail', item.tenantId], { relativeTo: this.ar });
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
}, }
}, }
], ]
}, }
]; ];
} }
daoyun(item: any) { daoyun(item: any) {
@ -166,7 +166,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
this.sf?.setValue('/expand', this._$expand); this.sf?.setValue('/expand', this._$expand);
} }
creat() { creat() {
this.router.navigate(['./new',], { relativeTo: this.ar }); this.router.navigate(['./new'], { relativeTo: this.ar });
} }
/** /**
* 重置表单 * 重置表单

View File

@ -296,7 +296,7 @@
</ng-container> </ng-container>
<div *ngIf="data[key]" (mouseover)="data[hover]=true" (mouseleave)="data[hover]=false" <div *ngIf="data[key]" (mouseover)="data[hover]=true" (mouseleave)="data[hover]=false"
(click)="$event.cancelBubble=true" class="image-hover"> (click)="$event.cancelBubble=true" class="image-hover">
<img [src]="data[key]" style="width: 200px;height: 160px;" /> <img [src]="data[key]" style="width: 200px;height: 160px;" (click)="showImg(data[key])"/>
<div class="mask" *ngIf="data[hover] && status"></div> <div class="mask" *ngIf="data[hover] && status"></div>
<div class="mask-over" *ngIf="data[hover] && status"> <div class="mask-over" *ngIf="data[hover] && status">
<i nz-icon nzType="close-circle" nzTheme="fill" class="delete-icon" (click)="deleteImg(data,key,key2)"></i> <i nz-icon nzType="close-circle" nzTheme="fill" class="delete-icon" (click)="deleteImg(data,key,key2)"></i>

View File

@ -35,11 +35,11 @@
</div> </div>
<div nz-col [nzXl]="6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right mt-sm"> <div nz-col [nzXl]="6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right mt-sm">
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable" <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable"
(nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked === 1"> (nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked">
启用 启用
</button> </button>
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen" <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
(nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked === 0"> (nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="!detailData?.stateLocked">
冻结 冻结
</button> </button>
<button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="Payfrozen" <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="Payfrozen"
@ -86,16 +86,14 @@
{{ detailData?.adminUserInfo?.mobile }} {{ detailData?.adminUserInfo?.mobile }}
</sv> </sv>
<sv label="身份证号"> <sv label="身份证号">
{{ detailData?.contactadminUserInfo?.certificateNumber }} {{ detailData?.adminUserInfo?.certificateNumber }}
</sv> </sv>
</sv-container> <sv label="身份证照" col="2">
<sv-container col="2">
<sv label="身份证照">
<app-imagelist <app-imagelist
[imgList]="[detailData?.adminUserInfo?.certificatePhotoFrontWatermark,detailData?.adminUserInfo?.certificatePhotoBackWatermark]"> [imgList]="[detailData?.adminUserInfo?.certificatePhotoFrontWatermark,detailData?.adminUserInfo?.certificatePhotoBackWatermark]">
</app-imagelist> </app-imagelist>
</sv> </sv>
<sv label="企业授权函"> <sv label="企业授权函" col="2">
<app-imagelist [imgList]="[detailData?.adminUserInfo?.certificatePhotoBackWatermark]"></app-imagelist> <app-imagelist [imgList]="[detailData?.adminUserInfo?.certificatePhotoBackWatermark]"></app-imagelist>
</sv> </sv>
</sv-container> </sv-container>

View File

@ -58,6 +58,7 @@
} }
.ant-form-item-control { .ant-form-item-control {
max-width : 100% !important;
margin-left: 20px !important; margin-left: 20px !important;
} }
} }

View File

@ -64,15 +64,14 @@ export class FreightComponentsListNewComponent implements OnInit {
}, },
$registrationCapital: { $registrationCapital: {
spanLabelFixed: 180, spanLabelFixed: 180,
grid: { xxl: 13, xl: 18, lg: 24, md: 24 } grid: { xxl: 13, xl: 18, lg: 22, md: 22 }
}, },
$unit: { $unit: {
spanLabelFixed: 100, grid: { xxl: 6, xl: 6, lg: 2, md: 2 }
grid: { span: 6 }
}, },
$isLoingDate: { $isLoingDate: {
spanLabelFixed: 100, spanLabelFixed: 100,
grid: { span: 6 } grid: { xxl: 6, xl: 6, lg: 4, md: 6 }
} }
}; };
@ -369,7 +368,7 @@ export class FreightComponentsListNewComponent implements OnInit {
minimum: 1, minimum: 1,
maximum: 99999999999999999999, maximum: 99999999999999999999,
ui: { ui: {
grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, grid: { xxl: 13, xl: 18, lg: 22, md: 22 },
placeholder: '请输入营业执照上的注册资本', placeholder: '请输入营业执照上的注册资本',
errors: { errors: {
required: '请输入营业执照上的注册资本' required: '请输入营业执照上的注册资本'
@ -383,28 +382,53 @@ export class FreightComponentsListNewComponent implements OnInit {
type: 'string', type: 'string',
ui: { ui: {
...DATECONFIG, ...DATECONFIG,
grid: { xxl: 13, xl: 18, lg: 24, md: 24 },
errors: {
required: '请选择开始日期'
}
} as SFDateWidgetSchema
},
blank1: {
type: 'string',
ui: { widget: 'text', grid: { xxl: 11, xl: 6, md: 0, sm: 0 }, class: 'input-back' },
default: ' '
},
operatingStartTime: {
title: '营业期限',
type: 'string',
ui: {
...DATECONFIG,
grid: { xxl: 13, xl: 18, lg: 24, md: 24 },
errors: { errors: {
required: '请选择开始日期' required: '请选择开始日期'
} }
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
operatingEndTime: { operatingEndTime: {
title: '营业期限', title: '',
type: 'string', type: 'string',
ui: { ui: {
...DATECONFIG, ...DATECONFIG,
grid: { xxl: 13, xl: 18, lg: 20, md: 18 },
errors: { errors: {
required: '请选择截止日期' required: '请选择截止日期'
}, },
change: i => { change: i => {
this.sf1?.setValue('/isLoingDate', false); this.sf1?.setValue('/isLoingDate', false);
setTimeout(() => {
console.log(this.sf1.value);
}, 1000);
} }
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
isLoingDate: { isLoingDate: {
title: '长期', title: '长期',
type: 'boolean', type: 'boolean',
ui: { class: 'input-back', widget: 'checkbox', change: i => this.longTime(i, 'schema11') } as SFCheckboxWidgetSchema ui: {
class: 'input-back',
widget: 'checkbox',
change: i => this.sf1?.setValue('/operatingEndTime', null)
} as SFCheckboxWidgetSchema
}, },
businessScope: { businessScope: {
title: '经营范围', title: '经营范围',
@ -543,7 +567,7 @@ export class FreightComponentsListNewComponent implements OnInit {
grid: { span: 6 }, grid: { span: 6 },
class: 'input-back', class: 'input-back',
widget: 'checkbox', widget: 'checkbox',
change: i => this.longTime(i, 'schema11') change: i=> this.sf1?.setValue('/legalPersonIdentityDTO/validEndTime', null),
} as SFCheckboxWidgetSchema } as SFCheckboxWidgetSchema
} }
}, },
@ -555,7 +579,6 @@ export class FreightComponentsListNewComponent implements OnInit {
'certificateType', 'certificateType',
'certificateNumber', 'certificateNumber',
'validStartTime', 'validStartTime',
'validEndTime'
] ]
} }
}, },
@ -568,7 +591,6 @@ export class FreightComponentsListNewComponent implements OnInit {
'enterpriseAddress', 'enterpriseAddress',
'registrationCapital', 'registrationCapital',
'enterpriseRegistrationTime', 'enterpriseRegistrationTime',
'operatingEndTime',
'operatingStartTime', 'operatingStartTime',
'businessScope' 'businessScope'
] ]