|
@@ -977,13 +977,18 @@ export default {
|
|
|
|
|
|
add_dialog_saveSave() {
|
|
add_dialog_saveSave() {
|
|
|
|
|
|
- for (var j = 0; j < this.listAddCont.length; j++) {
|
|
|
|
|
|
+ for (var j = 0; j < this.listAddCont.length; j++) {
|
|
|
|
+ console.log(this.listAddCont,'')
|
|
console.log(this.listAddCont[j].amount)
|
|
console.log(this.listAddCont[j].amount)
|
|
if(this.createTemp.contract == 1){
|
|
if(this.createTemp.contract == 1){
|
|
if(this.listAddCont[j].providerName == ''){
|
|
if(this.listAddCont[j].providerName == ''){
|
|
this.$message({ type: 'warning', message: '请检查供应商是否未填写', duration: 2000 })
|
|
this.$message({ type: 'warning', message: '请检查供应商是否未填写', duration: 2000 })
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ if(this.listAddCont[j].sealNumber == ''){
|
|
|
|
+ this.$message({ type: 'warning', message: '请填写铅封号', duration: 2000 })
|
|
|
|
+ return false
|
|
}
|
|
}
|
|
if(this.listAddCont[j].eqName == ''){
|
|
if(this.listAddCont[j].eqName == ''){
|
|
this.$message({ type: 'warning', message: '请检查设备名称是否未填写', duration: 2000 })
|
|
this.$message({ type: 'warning', message: '请检查设备名称是否未填写', duration: 2000 })
|