tanyanfei 7 ヶ月 前
コミット
ce323a6311

+ 7 - 5
src/components/PatIndex.vue

@@ -124,7 +124,8 @@
             <p class="docname">{{patinfo.name}} 您好!</p>
           </div>
           <div class="sign_form">
-            <!-- 未查询到您的信息请等待主治医生进行信息录入 -->
+            <p v-if='form.sex && form.birthday' style="text-align: center;padding:20px 20px 50px;">未查询到您的信息请等待主治医生进行信息录入</p>
+            <template v-else>
             <h3 align='center'>请补充个人信息</h3>
             <div class="input_item">
               <label>姓名</label>
@@ -143,10 +144,11 @@
               <input  v-model="form.sex" type="radio" name="sex" value="男">男
               <input v-model="form.sex" type="radio" name="sex" value="男">女
             </div>
+            </template>
           </div>
         </div>
         <div class="footer">
-          <div class="jbbtn" @click="submit">提交</div>
+          <div v-if='!form.sex && !form.birthday' class="jbbtn" @click="submit">提交</div>
           <div style="background-color: #ccc;background-image: none;" class="jbbtn" @click="logout">退出登录</div>
         </div>
         <div class="desc">
@@ -273,7 +275,7 @@
 <style scoped lang="scss">
   .sign_form{
     text-align: left;
-    width: 450px;
+    // width: 450px;
     margin:0 auto;
     font-size: 1.2rem;
     label{
@@ -286,7 +288,7 @@
       margin: 15px 0;
     }
     input[type='text'],input[type='date'],input[type='tel']{
-      width: 300px;
+      width: 60%;
       height: 35px;
       border: 1px solid #d9d9d9;
       outline: none;
@@ -324,7 +326,7 @@
 
     .docinfo {
       position: absolute;
-      top: 30%;
+      top: 100px;
       left: 0;
       right: 0;
 

+ 1 - 1
src/components/PatInjectionList.vue

@@ -3,7 +3,7 @@
     <div class="bgimg"></div>
     <div class="content">
       <div class="title">注射记录</div>
-      <div v-if='id && patinfo.name' class="title" style="font-size: 1rem;">姓名:{{patinfo.name}}</div>
+      <div v-if='id' class="title" style="font-size: 1rem;">姓名:{{recordsList[0].name}}</div>
       <div class="injectionListForm baseInfo">
         <div class="listItemContainer">
           <div class="listItem listHeader" style="width:80%;background:#6DA2FE;color:#fff;">打卡时间</div>

+ 8 - 8
src/components/RegPatinfo.vue

@@ -4,20 +4,21 @@
     <div class="content">
       <div class="title">请选择患者</div>
       <div class="loginForm">
-        <mt-field placeholder="请输入病例姓名" label="姓名" v-model="form.name"></mt-field>
+        <mt-field  :disabled='form.id?"disabled":false' placeholder="请输入病例姓名" label="姓名" v-model="form.name"></mt-field>
+        <mt-field :disabled='form.id?"disabled":false' placeholder="请输入手机号" label="手机" v-model="form.phone" type="number"></mt-field>
         <!-- <mt-field placeholder="请选择出生年月" class="inputDisable" disabled label="年龄" v-model="form.birthday"
           @click.native="$refs.birthdayPicker.open();sexFlag=false">
           <img src="../assets/images/down.png" alt="" width="16px">
         </mt-field> -->
-        <mt-field v-if='form.birthday' placeholder="请选择出生年月" class="inputDisable" disabled label="生日" v-model="form.birthday"
-          @click.native="hashCalen=true;sexFlag=false">
+        <mt-field v-if='form.birthday' placeholder="请选择出生年月" class="inputDisable" disabled='form.id?disabled:""' label="生日" v-model="form.birthday"
+          >
           <img src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
-        <mt-field v-if='form.birthday' placeholder="请选择性别" class="inputDisable" disabled label="性别" v-model="form.sex"
-          @click.native="sexFlag=true">
+        <mt-field v-if='form.birthday' placeholder="请选择性别" class="inputDisable" disabled='form.id?disabled:""' label="性别" v-model="form.sex"
+          >
           <img src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
-        <mt-field placeholder="请输入手机号" label="手机" v-model="form.phone" type="number"></mt-field>
+
 
       </div>
       <div class="footer">
@@ -146,7 +147,6 @@
             // console.log(res.data)
             if(res.data.code == 0){
               if(res.data.data.length > 0){
-
                 if(res.data.data[0].sex && res.data.data[0].birthday){
                   this.form=res.data.data[0]
                 }else{
@@ -158,7 +158,7 @@
               }else{
                 MessageBox({
                   title: '提示',
-                  message: '该患者尚未完成注册信息'
+                  message: '该患者尚未进行注册'
                 })
               }