|
|
@@ -221,7 +221,7 @@
|
|
|
this.$message.error('单价必须是大于0的数字')
|
|
|
}
|
|
|
} else if (!this.validSayPrice.minDay || !this.validSayPrice.maxDay) {
|
|
|
- if (!this.sayPriceObj.minDay || !this.sayPriceObj.maxDay) {
|
|
|
+ if ((!this.sayPriceObj.minDay && this.sayPriceObj.minDay !== 0) || (!this.sayPriceObj.maxDay && this.sayPriceObj.maxDay !== 0)) {
|
|
|
this.$message.error('交期不能为空')
|
|
|
} else {
|
|
|
if (this.sayPriceObj.minDay > 31 || this.sayPriceObj.minDay < 1 || this.sayPriceObj.minDay.toString().indexOf('.') !== -1 || this.sayPriceObj.maxDay > 31 || this.sayPriceObj.maxDay < 1 || this.sayPriceObj.maxDay.toString().indexOf('.') !== -1) {
|