This commit is contained in:
wangshiming
2022-02-17 17:03:31 +08:00
parent c56e0218ac
commit cf34bd5146
5 changed files with 96 additions and 39 deletions

View File

@ -358,26 +358,36 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
type: 'string',
title: '车型/车长',
ui: {
widget: 'dict-select',
params: { dictKey: 'car:model' },
widget: 'select',
mode: 'multiple',
placeholder: '请选择车型',
maxMultipleCount:3,
errors: { required: '请选择车型' }
placeholder: '请选择车型',
errors: { required: '请选择车型' },
asyncData: () => this.service.getDictOptions({ dictKey: 'car:model' }),
change:(tag:any , org:any)=>{
if(tag.includes("999")){
this.sf4.setValue('/carModel',["999"]);
}
}
}
},
carLength: {
type: 'string',
title: '',
ui: {
widget: 'dict-select',
params: { dictKey: 'car:length' },
widget: 'select',
mode: 'multiple',
placeholder: '请选择车长',
maxMultipleCount:3,
errors: { required: '请选择车长' }
placeholder: '请选择车长',
errors: { required: '请选择车长' },
asyncData: () => this.service.getDictOptions({ dictKey: 'car:length' }),
change:(tag:any , org:any)=>{
if(tag.includes("999")){
this.sf4.setValue('/carModel',["999"]);
}
}
}
}
},
},
required: ['weight', 'carModel', 'carLength', 'freightPrice', 'rule', 'settlementBasis']
};