|
@@ -1166,7 +1166,7 @@ export default {
|
|
for (let i = 0; i < this.detailList.items.length; i++) {
|
|
for (let i = 0; i < this.detailList.items.length; i++) {
|
|
this.detailList.items[i].contractAmount =
|
|
this.detailList.items[i].contractAmount =
|
|
this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
- if (!this.detailList.items[i].contractAmount) {
|
|
|
|
|
|
+ if (this.detailList.items[i].contractAmount == null) {
|
|
return this.$errorMsg('合同单价、合同数量不能为空')
|
|
return this.$errorMsg('合同单价、合同数量不能为空')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1279,7 +1279,7 @@ export default {
|
|
for (let i = 0; i < this.detailList.items.length; i++) {
|
|
for (let i = 0; i < this.detailList.items.length; i++) {
|
|
this.detailList.items[i].contractAmount =
|
|
this.detailList.items[i].contractAmount =
|
|
this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
- if (!this.detailList.items[i].contractAmount) {
|
|
|
|
|
|
+ if (this.detailList.items[i].contractAmount == null) {
|
|
return this.$errorMsg('合同单价、合同数量不能为空')
|
|
return this.$errorMsg('合同单价、合同数量不能为空')
|
|
}
|
|
}
|
|
}
|
|
}
|