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