Browse Source

单价预算判断

yangc 8 years ago
parent
commit
de261d1434
1 changed files with 3 additions and 0 deletions
  1. 3 0
      components/applyPurchase/PublishApply.vue

+ 3 - 0
components/applyPurchase/PublishApply.vue

@@ -284,6 +284,9 @@
       },
       checkUnitPrice: function () {
         this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
+        if (this.applyObj.unitPrice < 0) {
+          this.$message.error('请输入正确的数值')
+        }
         return this.validObj.unitPrice
       },
       checkAmount: function () {