|
@@ -123,12 +123,31 @@
|
|
|
<img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
|
|
|
<p class="docname">{{patinfo.name}} 您好!</p>
|
|
|
</div>
|
|
|
- <div style="margin:40px auto;width:80%;font-size:1.4rem;">
|
|
|
- 未查询到您的信息请等待主治医生进行信息录入
|
|
|
+ <div class="sign_form">
|
|
|
+ <!-- 未查询到您的信息请等待主治医生进行信息录入 -->
|
|
|
+ <h3 align='center'>请补充个人信息</h3>
|
|
|
+ <div class="input_item">
|
|
|
+ <label>姓名</label>
|
|
|
+ <input v-model="form.name" type="text">
|
|
|
+ </div>
|
|
|
+ <div class="input_item">
|
|
|
+ <label>手机</label>
|
|
|
+ <input v-model="form.phone" type="tel">
|
|
|
+ </div>
|
|
|
+ <div class="input_item">
|
|
|
+ <label>生日</label>
|
|
|
+ <input v-model="form.birthday" type="date">
|
|
|
+ </div>
|
|
|
+ <div class="input_item">
|
|
|
+ <label>性别</label>
|
|
|
+ <input v-model="form.sex" type="radio" name="sex" value="男">男
|
|
|
+ <input v-model="form.sex" type="radio" name="sex" value="男">女
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
- <div class="jbbtn" @click="logout">退出登录</div>
|
|
|
+ <div class="jbbtn" @click="submit">提交</div>
|
|
|
+ <div style="background-color: #ccc;background-image: none;" class="jbbtn" @click="logout">退出登录</div>
|
|
|
</div>
|
|
|
<div class="desc">
|
|
|
<img src="../assets/images/desc.png" alt="" width="100%">
|
|
@@ -165,7 +184,10 @@
|
|
|
patinfo: {},
|
|
|
latestCase: {},
|
|
|
ratioHeight: 0,
|
|
|
- timeinfo: {}
|
|
|
+ timeinfo: {},
|
|
|
+ form:{
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -188,7 +210,12 @@
|
|
|
this.$api.getAccountInfo().then(res => {
|
|
|
if (!res.data.code) {
|
|
|
this.patinfo = res.data.data
|
|
|
-
|
|
|
+ this.form={
|
|
|
+ name:this.patinfo.name,
|
|
|
+ phone:this.patinfo.phone,
|
|
|
+ sex:this.patinfo.sex,
|
|
|
+ birthday:this.patinfo.birthday
|
|
|
+ }
|
|
|
this.$api.getPatientLatestCase().then(res => {
|
|
|
if (!res.data.code) {
|
|
|
that.latestCase = res.data.data
|
|
@@ -203,6 +230,37 @@
|
|
|
this.$api.get_patient_timecalc().then(res => {
|
|
|
this.timeinfo = res.data.data
|
|
|
})
|
|
|
+ },
|
|
|
+ submit(){
|
|
|
+ if (!this.form.birthday) {
|
|
|
+ MessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '请选择出生日期'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.form.sex) {
|
|
|
+ MessageBox({
|
|
|
+ title: '提示',
|
|
|
+ message: '请选择性别'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ let params = this.form
|
|
|
+ // params.role = 2
|
|
|
+ this.$api.updateInfo(params).then(res => {
|
|
|
+ console.log(res.data)
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ // localStorage.setItem("token", res.data.data.token)
|
|
|
+ MessageBox({
|
|
|
+ title: '',
|
|
|
+ message: '提交成功,请等待主治医生进行病例录入'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ // Toast(res.data.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -213,6 +271,30 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
+ .sign_form{
|
|
|
+ text-align: left;
|
|
|
+ width: 450px;
|
|
|
+ margin:0 auto;
|
|
|
+ font-size: 1.2rem;
|
|
|
+ label{
|
|
|
+ display: inline-block;
|
|
|
+ width: 80px;
|
|
|
+ text-align: right;
|
|
|
+ padding-right: 10px;
|
|
|
+ }
|
|
|
+ div{
|
|
|
+ margin: 15px 0;
|
|
|
+ }
|
|
|
+ input[type='text'],input[type='date'],input[type='tel']{
|
|
|
+ width: 300px;
|
|
|
+ height: 35px;
|
|
|
+ border: 1px solid #d9d9d9;
|
|
|
+ outline: none;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 0 10px;
|
|
|
+ font-size: 1rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
.container {
|
|
|
.content {
|
|
|
height: 100%;
|