master
lynn 7 months ago
parent d5aee10b40
commit 8834adf54b

@ -2210,10 +2210,25 @@ export default {
nextStep() { nextStep() {
if (this.currentStep === 1) { if (this.currentStep === 1) {
// //
if (!this.form.category && !this.form.affairType && !this.form.contractType && if (this.categoryOptions.length > 0 && !this.form.category) {
!this.form.purchaseForm && !this.form.purchaseMethod) { this.$Message.warning('请选择合同分类');
this.$Message.warning('请至少选择一个选项'); return;
}
if (this.affairTypeOptions.length > 0 && !this.form.affairType) {
this.$Message.warning('请选择事项类型');
return;
}
if (this.contractTypeOptions.length > 0 && !this.form.contractType) {
this.$Message.warning('请选择合同类型');
return;
}
if (this.purchaseFormOptions.length > 0 && !this.form.purchaseForm) {
this.$Message.warning('请选择采购形式');
return;
}
if (this.purchaseMethodOptions.length > 0 && !this.form.purchaseMethod) {
this.$Message.warning('请选择采购方式');
return; return;
} }
// //

Loading…
Cancel
Save