车辆对接

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

@ -162,6 +162,24 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
format: 'yyyy-MM-dd HH:mm:ss'
}
},
dispatchPhone: {
type: 'string',
title: '手机号',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchName: {
type: 'string',
title: '名字',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchId: {
type: 'string',
title: '调度员',
@ -169,6 +187,13 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
widget: 'select',
placeholder: '请选择',
allowClear: true,
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]);
}
},
optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您',
asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema
@ -716,6 +741,8 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
this.enterpriseProjectIds = res.enterpriseProjectId
}
this.sf1data = {
dispatchPhone: res?.dispatchPhone,
dispatchName: res?.dispatchName,
// shipperAppUserName: res?.shipperAppUserName || '',
enterpriseProjectId: res?.enterpriseProjectId || '',
enterpriseInfoName: res?.enterpriseInfoName || '',