|
@@ -1104,13 +1104,13 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // for (let i = 0; i < this.detailList.length; i++) {
|
|
|
- // this.detailList[i].contractAmount = this.detailList[i].contractQty * this.detailList[i].contractPrice
|
|
|
- // if (this.detailList[i].contractAmount) {
|
|
|
- // return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
- // }
|
|
|
+ for (let i = 0; i < this.detailList.items.length; i++) {
|
|
|
+ this.detailList.items[i].contractAmount = this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
|
+ if (this.detailList.items[i].contractAmount) {
|
|
|
+ return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
+ }
|
|
|
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
// this.detailList.items.map(e=>{
|
|
|
// e.contractAmount = e.contractQty * e.contractPrice
|
|
@@ -1180,12 +1180,13 @@ export default {
|
|
|
this.$message.error("请选择安装时间");
|
|
|
return;
|
|
|
}
|
|
|
- // this.detailList.items.map(e=>{
|
|
|
- // if (!e.contractAmount) {
|
|
|
- // return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
- // }
|
|
|
- // })
|
|
|
+ for (let i = 0; i < this.detailList.items.length; i++) {
|
|
|
+ this.detailList.items[i].contractAmount = this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
|
|
|
+ if (this.detailList.items[i].contractAmount) {
|
|
|
+ return this.$errorMsg('合同单价、合同数量不能为空')
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
let data = {
|
|
|
...this.detailList,
|
|
|
checkBy: this.checkBy,
|