|
@@ -193,13 +193,22 @@ export default {
|
|
|
this.form.moduleTypes = []
|
|
|
},
|
|
|
addUnit(){
|
|
|
- if(!this.form.hospital){
|
|
|
+ const {hospital,moduleName,tempName,moduleTypes}=this.form;
|
|
|
+ if(!hospital){
|
|
|
this.warning("请先选择所属医院")
|
|
|
return
|
|
|
}
|
|
|
- if(!this.form.tempName){
|
|
|
- this.warning("请先选择模块")
|
|
|
- return
|
|
|
+ if(!moduleName){
|
|
|
+ this.warning("请选择所属模块");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!tempName.trim()){
|
|
|
+ this.warning("请输入模块名称");
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!moduleTypes.length){
|
|
|
+ this.warning("请先选择模块类型");
|
|
|
+ return
|
|
|
}
|
|
|
this.moduleInfoList.push({
|
|
|
searchName:"",
|