车辆对接
This commit is contained in:
@ -122,11 +122,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
title: '货主',
|
||||
type: 'string',
|
||||
maxLength: 30,
|
||||
enum: [],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
serverSearch: true,
|
||||
searchDebounceTime: 300,
|
||||
searchLoadingText: '搜索中...',
|
||||
|
||||
onSearch: (q: any) => {
|
||||
if (!!q) {
|
||||
return this.service
|
||||
@ -757,8 +759,17 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
// 初始化信息
|
||||
dataR (res: any) {
|
||||
// this.dataList = res;
|
||||
if(res?.shipperAppUserName) {
|
||||
const List: any = []
|
||||
this.service.request(this.service.$api_enterpriceList, { enterpriseName: res?.shipperAppUserName}).subscribe((res) => {
|
||||
console.log(res)
|
||||
res?.forEach((element: any) => {
|
||||
List.push({ label: element.enterpriseName, value: element.id } )
|
||||
});
|
||||
})
|
||||
this.schema1.shipperAppUserId.enum = List
|
||||
}
|
||||
this.sf1data = {
|
||||
// shipperAppUserName: res?.shipperAppUserName ,
|
||||
enterpriseProjectId: res?.enterpriseProjectId ,
|
||||
enterpriseInfoName: res?.enterpriseInfoName ,
|
||||
externalResourceCode: res?.externalResourceCode ,
|
||||
|
||||
Reference in New Issue
Block a user