车辆对接

This commit is contained in:
wangshiming
2021-12-29 17:20:00 +08:00
parent a3f3b2e9a8
commit 2ded33f4d6
23 changed files with 443 additions and 94 deletions

View File

@ -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 ,