|
@@ -931,7 +931,7 @@
|
|
|
}
|
|
|
},
|
|
|
del(index){
|
|
|
- let name = this.typeIndex == 1?'productList':this.typeIndex == 2?'byList':'websitList'
|
|
|
+ let name = this.typeIndex == 1?'productList':this.typeIndex == 2?'byList':this.typeIndex == 3?'websitList':'itemList'
|
|
|
this['formData' + this.typeIndex][name].splice(index,1)
|
|
|
},
|
|
|
confirm(){
|
|
@@ -950,14 +950,14 @@
|
|
|
that.typeIndex = '3'
|
|
|
return that.$message.error('请添加服务网点信息');
|
|
|
}
|
|
|
- if(that.formData4.itemList.length == 0){
|
|
|
- that.typeIndex = '4'
|
|
|
- return that.$message.error('请添加辅材配置信息');
|
|
|
- }
|
|
|
- if(that.formData5.itemList.length == 0){
|
|
|
- that.typeIndex = '5'
|
|
|
- return that.$message.error('请添加配件配置信息');
|
|
|
- }
|
|
|
+ // if(that.formData4.itemList.length == 0){
|
|
|
+ // that.typeIndex = '4'
|
|
|
+ // return that.$message.error('请添加辅材配置信息');
|
|
|
+ // }
|
|
|
+ // if(that.formData5.itemList.length == 0){
|
|
|
+ // that.typeIndex = '5'
|
|
|
+ // return that.$message.error('请添加配件配置信息');
|
|
|
+ // }
|
|
|
if(!that.preserveRuleForm('formData1')){
|
|
|
return that.typeIndex = '1'
|
|
|
}
|
|
@@ -967,12 +967,12 @@
|
|
|
if(!that.preserveRuleForm('formData3')){
|
|
|
return that.typeIndex = '3'
|
|
|
}
|
|
|
- if(!that.preserveRuleForm('formData4')){
|
|
|
- return that.typeIndex = '4'
|
|
|
- }
|
|
|
- if(!that.preserveRuleForm('formData5')){
|
|
|
- return that.typeIndex = '5'
|
|
|
- }
|
|
|
+ // if(!that.preserveRuleForm('formData4')){
|
|
|
+ // return that.typeIndex = '4'
|
|
|
+ // }
|
|
|
+ // if(!that.preserveRuleForm('formData5')){
|
|
|
+ // return that.typeIndex = '5'
|
|
|
+ // }
|
|
|
this.save()
|
|
|
}
|
|
|
})
|