|
|
|
|
@ -2210,10 +2210,25 @@ export default {
|
|
|
|
|
|
|
|
|
|
nextStep() {
|
|
|
|
|
if (this.currentStep === 1) {
|
|
|
|
|
// 验证是否至少选择了一个下拉框
|
|
|
|
|
if (!this.form.category && !this.form.affairType && !this.form.contractType &&
|
|
|
|
|
!this.form.purchaseForm && !this.form.purchaseMethod) {
|
|
|
|
|
this.$Message.warning('请至少选择一个选项');
|
|
|
|
|
// 验证每个有选项的下拉框是否已选择
|
|
|
|
|
if (this.categoryOptions.length > 0 && !this.form.category) {
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
// 获取模版配置
|
|
|
|
|
|