车辆对接
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user