tanyanfei 7 months ago
parent
commit
8fa7497f12
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/components/RegPatinfo.vue

+ 9 - 1
src/components/RegPatinfo.vue

@@ -124,7 +124,7 @@
           })
           return
         }
-       
+
         if (!this.form.phone) {
           MessageBox({
             title: '提示',
@@ -145,7 +145,15 @@
           this.$api.searchInfo(params).then(res=>{
             // console.log(res.data)
             if(res.data.code == 0){
+              if(res.data.data.length > 0){
                 this.form=res.data.data[0]
+              }else{
+                MessageBox({
+                  title: '提示',
+                  message: '未检索到该病人信息'
+                })
+              }
+                
             }
           })
           return