|
@@ -241,7 +241,7 @@ export default {
|
|
this.warning("请先选择所属医院")
|
|
this.warning("请先选择所属医院")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(!this.form.moduleName){
|
|
|
|
|
|
+ if(!this.form.tempName){
|
|
this.warning("请先选择模块")
|
|
this.warning("请先选择模块")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -336,8 +336,8 @@ export default {
|
|
this.moduleInfoList.splice(index,1)
|
|
this.moduleInfoList.splice(index,1)
|
|
},
|
|
},
|
|
confirm(form){
|
|
confirm(form){
|
|
- this.$refs[form].validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
|
|
+ // this.$refs[form].validate((valid) => {
|
|
|
|
+ // if (valid) {
|
|
const {tempName,hospital,moduleName,moduleType} = this.form
|
|
const {tempName,hospital,moduleName,moduleType} = this.form
|
|
let moduleDetail = [], moduleInfoList = this.moduleInfoList
|
|
let moduleDetail = [], moduleInfoList = this.moduleInfoList
|
|
for(let i = 0; i < moduleInfoList.length; i++){
|
|
for(let i = 0; i < moduleInfoList.length; i++){
|
|
@@ -350,6 +350,24 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ if(!hospital){
|
|
|
|
+ this.warning("请选择所属医院");
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!moduleName){
|
|
|
|
+ this.warning("请选择所属模块");
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!moduleType){
|
|
|
|
+ this.warning("请选择模块类型");
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!tempName){
|
|
|
|
+ this.warning("请输入模块名称");
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
if(moduleDetail.length === 0){
|
|
if(moduleDetail.length === 0){
|
|
this.warning('请添加模块内容')
|
|
this.warning('请添加模块内容')
|
|
return
|
|
return
|
|
@@ -405,10 +423,10 @@ export default {
|
|
this.saveDisable = false
|
|
this.saveDisable = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ // } else {
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
warning(msg, type,time) {
|
|
warning(msg, type,time) {
|
|
this.$message({
|
|
this.$message({
|