|
|
|
@ -660,8 +660,8 @@ export default { |
|
|
|
validateContract() { |
|
|
|
if (this.contractForm.contractAmount !== null && this.contractForm.contractAmount !== '') { |
|
|
|
let amount = Number(this.contractForm.contractAmount) |
|
|
|
if (isNaN(amount) || amount <= 0) { |
|
|
|
this.$message.error('合同金额必须为大于0的数字') |
|
|
|
if (isNaN(amount) || amount < 0) { |
|
|
|
this.$message.error('合同金额不能为负数') |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|