提交 795ea7e4 编写于 作者: vino's avatar vino

回显检验去掉

上级 af5dd9a8
...@@ -142,8 +142,11 @@ export default { ...@@ -142,8 +142,11 @@ export default {
}, },
watch:{ watch:{
doctorId:function (){ doctorId:function (){
if(this.doctorId == 0){ if(this.doctorId == 0 || this.doctorId == null){
this.formData.receptionId = ""; this.formData.receptionId = "";
if(this.$refs.setForm) {
this.$refs.setForm.resetFields()
}
} }
else { else {
this.formData.receptionId = this.doctorId; this.formData.receptionId = this.doctorId;
......
...@@ -100,8 +100,17 @@ export default { ...@@ -100,8 +100,17 @@ export default {
operateUserID:function (){ operateUserID:function (){
if(!this.batchFlag){ if(!this.batchFlag){
this.model.operatorId = this.operateUserID; if(this.operateUserID == 0 || this.operateUserID == null){
this.changeOperator(this.operateUserID); this.model.operatorId = "";
if(this.$refs.setForm) {
this.$refs.setForm.resetFields()
}
}
else{
this.model.operatorId = this.operateUserID;
this.changeOperator(this.operateUserID);
}
} }
} }
}, },
......
...@@ -96,8 +96,11 @@ export default { ...@@ -96,8 +96,11 @@ export default {
}, },
watch:{ watch:{
triageDepartmentId:function (){ triageDepartmentId:function (){
if(this.triageDepartmentId == 0){ if(this.triageDepartmentId == 0 || this.triageDepartmentId == null){
this.model.triageDepartmentId = ""; this.model.triageDepartmentId = "";
if(this.$refs.setForm) {
this.$refs.setForm.resetFields()
}
} }
else { else {
this.model.triageDepartmentId = this.triageDepartmentId; this.model.triageDepartmentId = this.triageDepartmentId;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册