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() {
|
||||
return this.service.request(this.service.$api_getRegionByCode, { regionCode: '' }).pipe(
|
||||
map(res => {
|
||||
@ -520,7 +529,7 @@ export class CarSettleAddDriverComponent implements OnInit {
|
||||
|
||||
if (res) {
|
||||
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'
|
||||
})
|
||||
export class UsermanageService extends ShipperBaseService {
|
||||
// 获取一、二、三级地区详情
|
||||
$api_getRegionToThree = '/api/mdc/pbc/region/getRegionToThree';
|
||||
// 查询企业列表
|
||||
$api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';
|
||||
// 导出企业列表
|
||||
|
||||
Reference in New Issue
Block a user