2022-10-28 13:31:36 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="app">
|
|
|
|
|
|
<view class="centercontent">
|
|
|
|
|
|
<view class="Commodity">
|
|
|
|
|
|
头像
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<image class="picture" src="../../static/head.png" mode=""></image>
|
2022-10-28 13:31:36 +08:00
|
|
|
|
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="content">
|
|
|
|
|
|
<view class="name">昵称:
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<input type="text" placeholder="请输入" />
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<view class="name">姓名:
|
|
|
|
|
|
<input type="text" placeholder="请输入" v-model="appPersonallist.patientName" />
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="name">电话:
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<input type="text" placeholder="请输入" v-model="appPersonallist.phone" />
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="name">地址:
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<input type="text" placeholder="请输入" v-model="appPersonallist.address" />
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<view class="nursetype name" style="border: none;" @tap="godisease">
|
|
|
|
|
|
疾病类型:
|
|
|
|
|
|
<span class="" style="padding-left: 25rpx;text-overflow: ellipsis;"
|
|
|
|
|
|
v-for="(item,index) in patientDiseaseInfoList">
|
|
|
|
|
|
{{item.diseaseName}}
|
|
|
|
|
|
</span>
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2022-11-01 14:54:09 +08:00
|
|
|
|
<view class="finish" @tap="submit()">完成
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-11-01 14:54:09 +08:00
|
|
|
|
import {
|
|
|
|
|
|
updateInformation,
|
|
|
|
|
|
} from '@/api/modify/modify.js';
|
|
|
|
|
|
import baseurl from '@/api/baseurl.js'
|
2022-10-28 13:31:36 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2022-11-01 14:54:09 +08:00
|
|
|
|
patientId: '',
|
|
|
|
|
|
appPersonallist: {
|
|
|
|
|
|
patientId: '',
|
|
|
|
|
|
patientName: '',
|
|
|
|
|
|
phone: '',
|
|
|
|
|
|
address: '',
|
|
|
|
|
|
cardNo: ' ',
|
|
|
|
|
|
areaCode: '',
|
|
|
|
|
|
headPictureUrl: '',
|
2022-10-28 13:31:36 +08:00
|
|
|
|
|
2022-11-01 14:54:09 +08:00
|
|
|
|
},
|
|
|
|
|
|
patientDiseaseInfoList: [], //获取个人信息
|
2022-10-28 13:31:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-11-01 14:54:09 +08:00
|
|
|
|
onLoad(options) {
|
|
|
|
|
|
this.appPersonallist = JSON.parse(options.appPersonallist)
|
|
|
|
|
|
this.patientDiseaseInfoList = this.appPersonallist.patientDiseaseInfoList
|
|
|
|
|
|
this.patientDiseaseInfoList.forEach(e => {
|
|
|
|
|
|
e.id = e.diseaseId
|
|
|
|
|
|
})
|
|
|
|
|
|
console.log(this.patientDiseaseInfoList)
|
|
|
|
|
|
|
|
|
|
|
|
},
|
2022-10-28 13:31:36 +08:00
|
|
|
|
methods: {
|
2022-11-01 14:54:09 +08:00
|
|
|
|
godisease() {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/disease/disease?diseaseInfoList=${JSON.stringify(this.patientDiseaseInfoList)}`,
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
submit() {
|
|
|
|
|
|
this.appPersonallist.patientDiseaseInfoList = this.patientDiseaseInfoList
|
|
|
|
|
|
updateInformation(this.appPersonallist).then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
title: '修改成功',
|
|
|
|
|
|
duration: 1500
|
|
|
|
|
|
});
|
|
|
|
|
|
that.show = false;
|
|
|
|
|
|
setTimeout(e => {
|
|
|
|
|
|
that.goodsList()
|
|
|
|
|
|
}, 1500)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2022-10-28 13:31:36 +08:00
|
|
|
|
|
2022-11-01 14:54:09 +08:00
|
|
|
|
},
|
|
|
|
|
|
//带参返回
|
|
|
|
|
|
onShow() {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
uni.$on('disease', function(data) {
|
|
|
|
|
|
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
|
|
|
|
|
that.patientDiseaseInfoList.forEach(e => {
|
|
|
|
|
|
e.diseaseId = e.id
|
|
|
|
|
|
})
|
|
|
|
|
|
console.log(that.patientDiseaseInfoList)
|
|
|
|
|
|
})
|
2022-10-28 13:31:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2022-11-01 14:54:09 +08:00
|
|
|
|
@import "./modify.scss"
|
2022-10-28 13:31:36 +08:00
|
|
|
|
</style>
|