车辆对接

This commit is contained in:
wangshiming
2022-01-10 16:37:36 +08:00
parent 857697adc0
commit ae813263d6
4 changed files with 104 additions and 0 deletions

View File

@ -168,6 +168,24 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
placeholder: '请输入'
}
},
dispatchPhone: {
type: 'string',
title: '手机号',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchName: {
type: 'string',
title: '名字',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchId: {
type: 'string',
title: '调度员',
@ -176,6 +194,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
placeholder: '请选择',
allowClear: true,
optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您',
change: (value: any, data: any) => {
if(data.label) {
const dat = data.label.split('/')
this.sf1.setValue('/dispatchName', dat[0]);
this.sf1.setValue('/dispatchPhone', dat[1]);
}
},
asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema
}
@ -917,6 +942,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
this.sf1data = {
enterpriseInfoName: res?.enterpriseInfoName,
dispatchPhone: res?.dispatchPhone,
dispatchName: res?.dispatchName,
externalResourceCode: res?.externalResourceCode,
dispatchId: res?.dispatchId
};