|
@@ -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: '该患者尚未进行注册'
|
|
|
})
|
|
|
}
|
|
|
|