fix bug
This commit is contained in:
@ -477,6 +477,15 @@ export class CarSettleAddDriverComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
getRegionToThree() {
|
||||||
|
// 获取一、二、三级地区详情
|
||||||
|
this.service.http.post(this.service.$api_getRegionToThree).subscribe((res) => {
|
||||||
|
if(this.sf1){
|
||||||
|
this.sf1.getProperty('/enterpriseAddressCode')!.schema.enum = res.data;
|
||||||
|
this.sf1?.getProperty('/enterpriseAddressCode')?.widget.reset(res.data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
getProvinceData() {
|
getProvinceData() {
|
||||||
return this.service.request(this.service.$api_getRegionByCode, { regionCode: '' }).pipe(
|
return this.service.request(this.service.$api_getRegionByCode, { regionCode: '' }).pipe(
|
||||||
map(res => {
|
map(res => {
|
||||||
@ -520,7 +529,7 @@ export class CarSettleAddDriverComponent implements OnInit {
|
|||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
this.sf2.setValue('/licenseNo', res.certificateNumber);
|
this.sf2.setValue('/licenseNo', res.certificateNumber);
|
||||||
//this.sf.setValue('/validStartTime', res.continuingEducationInfo);
|
this.sf2.setValue('/regionCode', res.addressRegionCodes?.[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,8 @@ import { ImageViewComponent } from 'src/app/shared/components/imagelist';
|
|||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class UsermanageService extends ShipperBaseService {
|
export class UsermanageService extends ShipperBaseService {
|
||||||
|
// 获取一、二、三级地区详情
|
||||||
|
$api_getRegionToThree = '/api/mdc/pbc/region/getRegionToThree';
|
||||||
// 查询企业列表
|
// 查询企业列表
|
||||||
$api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';
|
$api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';
|
||||||
// 导出企业列表
|
// 导出企业列表
|
||||||
@ -132,7 +134,7 @@ export class UsermanageService extends ShipperBaseService {
|
|||||||
$api_saveCaptainr_new = '/api/mdc/userDriverExpand/saveCaptainr';
|
$api_saveCaptainr_new = '/api/mdc/userDriverExpand/saveCaptainr';
|
||||||
|
|
||||||
// 查询司机配置列表
|
// 查询司机配置列表
|
||||||
$api_configPage= '/api/mdc/cuc/driver/list/configPage';
|
$api_configPage = '/api/mdc/cuc/driver/list/configPage';
|
||||||
|
|
||||||
constructor(public injector: Injector, private nzModalService: NzModalService, public eaCacheSrv: EACacheService) {
|
constructor(public injector: Injector, private nzModalService: NzModalService, public eaCacheSrv: EACacheService) {
|
||||||
super(injector, eaCacheSrv);
|
super(injector, eaCacheSrv);
|
||||||
|
|||||||
Reference in New Issue
Block a user