Browse Source

报价-交期修改为1-999

liusw 7 years ago
parent
commit
e2aa5ae591
1 changed files with 4 additions and 4 deletions
  1. 4 4
      components/applyPurchase/SayPrice.vue

+ 4 - 4
components/applyPurchase/SayPrice.vue

@@ -179,14 +179,14 @@
         }
       },
       onLeadtimeInput: function () {
-        if (this.sayPriceObj.leadtime.length > 2) {
-          this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.substring(0, 2)
+        if (this.sayPriceObj.leadtime.length > 3) {
+          this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.substring(0, 3)
         }
       },
       onLeadtimeBlur: function () {
-        if (!this.sayPriceObj.leadtime || this.sayPriceObj.leadtime < 1 || this.sayPriceObj.leadtime > 31 || this.sayPriceObj.leadtime.toString().indexOf('.') !== -1) {
+        if (!this.sayPriceObj.leadtime || this.sayPriceObj.leadtime < 1 || this.sayPriceObj.leadtime >= 1000 || this.sayPriceObj.leadtime.toString().indexOf('.') !== -1) {
           this.validSayPrice.leadtime = false
-          this.$message.error('交期只能填写1-31之间的整数值')
+          this.$message.error('交期请填写1-999之间的正整数')
         } else {
           this.validSayPrice.leadtime = true
         }