车辆对接

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' 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: { dispatchId: {
type: 'string', type: 'string',
title: '调度员', title: '调度员',
@ -169,6 +187,13 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
allowClear: true, 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: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您', optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您',
asyncData: () => this.shipperSrv.getStaffList2() asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
@ -716,6 +741,8 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
this.enterpriseProjectIds = res.enterpriseProjectId this.enterpriseProjectIds = res.enterpriseProjectId
} }
this.sf1data = { this.sf1data = {
dispatchPhone: res?.dispatchPhone,
dispatchName: res?.dispatchName,
// shipperAppUserName: res?.shipperAppUserName || '', // shipperAppUserName: res?.shipperAppUserName || '',
enterpriseProjectId: res?.enterpriseProjectId || '', enterpriseProjectId: res?.enterpriseProjectId || '',
enterpriseInfoName: res?.enterpriseInfoName || '', enterpriseInfoName: res?.enterpriseInfoName || '',

View File

@ -182,6 +182,24 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
format: 'yyyy-MM-dd HH:mm:ss' 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: { dispatchId: {
type: 'string', type: 'string',
title: '调度员', title: '调度员',
@ -189,6 +207,13 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
allowClear: true, 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: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您', optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您',
asyncData: () => this.shipperSrv.getStaffList2() asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema } as SFSelectWidgetSchema

View File

@ -168,6 +168,24 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
placeholder: '请输入' placeholder: '请输入'
} }
}, },
dispatchPhone: {
type: 'string',
title: '手机号',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchName: {
type: 'string',
title: '名字',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchId: { dispatchId: {
type: 'string', type: 'string',
title: '调度员', title: '调度员',
@ -176,6 +194,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
placeholder: '请选择', placeholder: '请选择',
allowClear: true, allowClear: true,
optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您', 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() asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
} }
@ -917,6 +942,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
} }
this.sf1data = { this.sf1data = {
enterpriseInfoName: res?.enterpriseInfoName, enterpriseInfoName: res?.enterpriseInfoName,
dispatchPhone: res?.dispatchPhone,
dispatchName: res?.dispatchName,
externalResourceCode: res?.externalResourceCode, externalResourceCode: res?.externalResourceCode,
dispatchId: res?.dispatchId dispatchId: res?.dispatchId
}; };

View File

@ -181,6 +181,24 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
ui: { ui: {
placeholder: '请输入' placeholder: '请输入'
} }
},
dispatchPhone: {
type: 'string',
title: '手机号',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
},
dispatchName: {
type: 'string',
title: '名字',
maxLength: 30,
ui: {
hidden: true,
placeholder: '请输入'
}
}, },
dispatchId: { dispatchId: {
type: 'string', type: 'string',
@ -189,6 +207,13 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
allowClear: true, 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: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您', optionalHelp: '选择调度员,司机直接联系调度员 ; 不选择,司机直接联系您',
asyncData: () => this.shipperSrv.getStaffList2() asyncData: () => this.shipperSrv.getStaffList2()
} as SFSelectWidgetSchema } as SFSelectWidgetSchema