Parcourir la source

单价预算判断

yangc il y a 8 ans
Parent
commit
de261d1434
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      components/applyPurchase/PublishApply.vue

+ 3 - 0
components/applyPurchase/PublishApply.vue

@@ -284,6 +284,9 @@
       },
       },
       checkUnitPrice: function () {
       checkUnitPrice: function () {
         this.validObj.unitPrice = this.applyObj.unitPrice === '' ? true : this.applyObj.unitPrice > 0 && this.applyObj.unitPrice < 100000000
         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
         return this.validObj.unitPrice
       },
       },
       checkAmount: function () {
       checkAmount: function () {