|
|
@@ -290,10 +290,10 @@
|
|
|
this.validSayPrice.repliesleadtime = true
|
|
|
for (let i = 0; i < this.sayPriceObj.replies.length; i++) {
|
|
|
console.log(this.sayPriceObj.replies)
|
|
|
- if (!/^[0-9]+([.][0-9]+)$/.test(this.sayPriceObj.replies[i].lapQty) || this.sayPriceObj.replies[i].lapQty === '') {
|
|
|
+ if (!/^[0-9]+([.]{1}[0-9]+)?$/.test(this.sayPriceObj.replies[i].lapQty) || this.sayPriceObj.replies[i].lapQty === '') {
|
|
|
this.validSayPrice.repliesLapQty = false
|
|
|
break
|
|
|
- } else if (!/^[0-9]+([.][0-9]+)$/.test(this.sayPriceObj.replies[i].price) || this.sayPriceObj.replies[i].price === '') {
|
|
|
+ } else if (!/^[0-9]+([.]{1}[0-9]+)?$/.test(this.sayPriceObj.replies[i].price) || this.sayPriceObj.replies[i].price === '') {
|
|
|
this.validSayPrice.repliesPrice = false
|
|
|
break
|
|
|
}
|