|
@@ -182,6 +182,7 @@ export default {
|
|
this.id = this.$route.query && this.$route.query.id ? this.$route.query.id : null;
|
|
this.id = this.$route.query && this.$route.query.id ? this.$route.query.id : null;
|
|
if(this.id){
|
|
if(this.id){
|
|
await this.getEngineering();
|
|
await this.getEngineering();
|
|
|
|
+ this.templateChange({value:this.form.templateId})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -215,9 +216,9 @@ export default {
|
|
// if (this.form.version) {
|
|
// if (this.form.version) {
|
|
// this.versionList = [{value: this.form.version, label: this.form.version}]
|
|
// this.versionList = [{value: this.form.version, label: this.form.version}]
|
|
// }
|
|
// }
|
|
- let project = this.projectList.find(item => item.value == this.form.projectId)
|
|
|
|
- this.areaId = project.areaId;
|
|
|
|
- this.countryId = project.countryId;
|
|
|
|
|
|
+ // let project = this.projectList.find(item => item.value == this.form.projectId)
|
|
|
|
+ this.areaId = this.form.areaId;
|
|
|
|
+ this.countryId = this.form.countryId;
|
|
})
|
|
})
|
|
this.fullLoading = false;
|
|
this.fullLoading = false;
|
|
},
|
|
},
|
|
@@ -320,6 +321,7 @@ export default {
|
|
elevatorQuantity: item.elevatorQuantity
|
|
elevatorQuantity: item.elevatorQuantity
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
templateChange(row) {
|
|
templateChange(row) {
|
|
@@ -490,9 +492,11 @@ export default {
|
|
this.$modal.msgError(this.$t('elevator.required'));
|
|
this.$modal.msgError(this.$t('elevator.required'));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ debugger
|
|
// 电梯数量大于1时
|
|
// 电梯数量大于1时
|
|
if (this.elevatorTableList.length > 1) {
|
|
if (this.elevatorTableList.length > 1) {
|
|
// 校验数量
|
|
// 校验数量
|
|
|
|
+
|
|
if (this.elevatorTableList.length != this.elevatorCount) {
|
|
if (this.elevatorTableList.length != this.elevatorCount) {
|
|
this.$modal.msgError(this.$t('elevator.countError'));
|
|
this.$modal.msgError(this.$t('elevator.countError'));
|
|
return;
|
|
return;
|