|
|
@@ -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
|
|
|
}
|