diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue index f1561e6e28..c84b459a6b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue @@ -724,6 +724,10 @@ export default { this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) return } + if (this.formobj.deposit !== '0' && this.formobj.deposit !== '' && this.formobj.modelAccountName === '') { + this.$message({ showClose: true, type: 'error', message: '因其中订金不为0,订金账户不能为空' }) + return + } // 提交的代码 // this.submitdisabled = true this.formobj.userSid = window.sessionStorage.getItem('userSid') diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue index 2e8a4bc5c9..6357e4b774 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue @@ -553,6 +553,10 @@ export default { this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) return } + if (this.formobj.deposit !== '0' && this.formobj.deposit !== '' && this.formobj.modelAccountName === '') { + this.$message({ showClose: true, type: 'error', message: '因其中订金不为0,订金账户不能为空' }) + return + } // 提交的代码 this.submitdisabled = true this.formobj.userSid = window.sessionStorage.getItem('userSid') @@ -784,6 +788,10 @@ export default { this.$message({ showClose: true, type: 'error', message: '因其中订金大于采购单价,订金使用规则请选择均分使用' }) return } + if (this.formobj.deposit !== '0' && this.formobj.deposit !== '' && this.formobj.modelAccountName === '') { + this.$message({ showClose: true, type: 'error', message: '因其中订金不为0,订金账户不能为空' }) + return + } this.$refs['form_obj'].validate(valid => { if (valid) { this.submitdisabled = true