车辆对接

This commit is contained in:
wangshiming
2021-12-30 14:26:28 +08:00
parent 9b27cfe76b
commit 64096c02a1
14 changed files with 153 additions and 62 deletions

View File

@ -52,6 +52,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
endInfo: any = [];
PageStatus = '';
dataList: any;
enterpriseProjectIds: any;
constructor(
private http: _HttpClient,
fb: FormBuilder,
@ -140,9 +141,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
change: (q: any) => {
this.getRegionCode(q);
},
visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
},
enterpriseProjectId: {
@ -151,7 +149,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true
} as SFSelectWidgetSchema
},
enterpriseInfoName: {
@ -349,6 +346,12 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
.subscribe(res => {
this.sf1.getProperty('/enterpriseProjectId')!.schema.enum = res;
this.sf1.getProperty('/enterpriseProjectId')!.widget.reset(res);
console.log('12345645454545454=============')
console.log(this.enterpriseProjectIds)
console.log(res)
if(this.enterpriseProjectIds) {
this.sf1.setValue('/enterpriseProjectId', this.enterpriseProjectIds);
}
});
}
initSF5() {
@ -800,9 +803,10 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
});
}
if(res?.enterpriseProjectId) {
this.enterpriseProjectIds = res.enterpriseProjectId
}
this.sf1data = {
// enterpriseProjectId: res?.enterpriseProjectId,
enterpriseInfoName: res?.enterpriseInfoName,
externalResourceCode: res?.externalResourceCode,
dispatchId: res?.dispatchId