提交 0f230b01 编写于 作者: yi.li's avatar yi.li

增加接口

上级 a5336279
......@@ -22,3 +22,47 @@
padding-left: 20px;
padding-right: 20px;
}
/*重置单选按钮样式*/
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
background-color: #449284;
border-color: #449284;
box-shadow: -1px 0 0 0 #449284;
}
.el-radio-button__inner:hover {
color: #449284;
}
/*重置输入框,选择框样式*/
.el-range-editor.is-active, .el-range-editor.is-active:hover, .el-select .el-input.is-focus .el-input__inner,.el-input__inner:focus{
border-color: #449284;
}
.el-select-dropdown__item.selected {
color: #449284;
}
.el-select .el-input__inner:focus {
border-color: #449284;
}
/*重置文字按钮样式*/
.el-button--text{
color: #606266;
}
.el-button--text:focus, .el-button--text:hover{
color: #449284;
}
/*重置表格选择框*/
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
border-color: #449284;
background-color: #449284;
}
.el-checkbox__inner {
border-color: #DCDFE6!important;
}
.el-checkbox__input.is-focus,.el-checkbox__inner:hover,.el-checkbox__inner.is-focus {
border-color: #449284!important;
}
/*重置textarea聚焦样式*/
.el-textarea__inner:focus {
border-color: #449284!important;
}
......@@ -152,12 +152,21 @@ export const savePatientInfo = (data) => {
description: '保存居民信息',
})
};
export const getLabelsList = (params) => {
export const getNationsList = (params) => {
return fetch({
headers,
url: getBaseUrl(`healths/labels/`),
url: getBaseUrl(`resident/constants/nations`),
method: 'get',
params: params,
description: '获取分组列表',
description: '获取56个民族列表',
})
};
export const getHealthRecordList = (data) => {
return fetch({
headers,
url: getBaseUrl(`followup/entering/health/records`),
method: 'post',
data: data,
description: '健康档案记录列表',
})
};
......@@ -9,9 +9,9 @@
<div class="f-main-content screenSet">
<div class="header-title">
<span>基本信息</span>
<p><el-button plain size="small">取消</el-button><el-button type="primary" size="small">保存</el-button></p>
<p><el-button plain size="small">取消</el-button><el-button type="primary" size="small" @click="saveEdit">保存</el-button></p>
</div>
<edit-information></edit-information>
<edit-information :patientInfoObj="patientInfo" :checkForm="checkForm"></edit-information>
</div>
</div>
</template>
......@@ -20,7 +20,7 @@
import BreadCrumb from '@/components/breadcrumb'
import editInformation from './components/edit-information'
import { mapGetters } from 'vuex'
import { getDiseasesList, getPatientDetail, getRemindPatient, deletePatient,savePatientInfo } from '@/utils/patients/patientsapi'
import { getPatientDetail, getRemindPatient, deletePatient,savePatientInfo } from '@/utils/patients/patientsapi'
export default {
name: "basicInfo",
components: {
......@@ -34,35 +34,24 @@
curmbSecond: '我的居民',
curmbThird: '居民详情',
jumPathThird: '/patients-manage/mypatients-manage/patients-list',
patientId: '99997786', //暂时写死一个居民的patientId
patientId: '', //暂时写死一个居民的patientId
patientInfo: {
isWechatBind: 1,
remark: '',
},
showLabelName: '',
showDiseaseName: '',
birthTimeDisplay: '',
recordList: [{}],
checkForm: false
}
},
created() {
this.patientId = this.$route.query.patientId;
this.init();
// getDiseasesList().then(({data}) => {
// console.log('获取所有疾病',data)
// })
},
computed: {
// ...mapState('planManage',{
// remarkOption: state => state.remarkOption,
// templateOptions: state => state.templateOptions,
// })
...mapGetters([
'_token',
])
},
methods: {
// ...mapActions('planManage', ['getTimeNodeList','getRemarkOption','getFollowupTemplate']),
init() {
getPatientDetail(this.patientId).then((data) => {
if(data.code == '000000') {
......@@ -103,6 +92,9 @@
}
})
},
saveEdit() {
this.checkForm = true;
},
//提醒绑定
remindBind() {
let remindMobileWechatPara = {
......
......@@ -80,45 +80,28 @@
</el-tab-pane>
<el-tab-pane label="健康记录" name="second">
<div class="health-record-list" v-if="recordList.length">
<div class="item">
<div class="record-date">2019-3-20</div>
<div class="record-content">
<div class="record-title">
<p>长海医院2型糖尿病18年随访计划-第3次随访</p>
<span>门诊随访</span>
</div>
<div class="list-visit">
<span class="left-label">患教内容:</span>
<div class="right-item">健康漫画标题</div>
</div>
<div class="list-visit">
<span class="left-label">随访量表:</span>
<div class="right-item">
<p>高血压随访量表<span class="check-btn" @click="openScaleDetail">查看量表</span></p>
<p>糖尿病随访量表<span class="check-btn" @click="openScaleDetail">查看量表</span></p>
</div>
</div>
</div>
</div>
<div class="item">
<div class="record-date">2019-2-20</div>
<div class="item" v-for="(item, index) in recordList" :key="index">
<div class="record-date">{{item.finishedTime}}</div>
<div class="record-content">
<div class="record-title">
<p>长海医院2型糖尿病18年随访计划-第3次随访</p>
<span>门诊随访</span>
<p>{{item.name}}-第{{item.seqNo}}次随访</p>
<span>{{item.fuTypeValue}}</span>
</div>
<div class="list-visit">
<span class="left-label">患教内容:</span>
<div class="right-item">健康漫画标题</div>
<div class="right-item">{{item.sendContent | emptyFilter}}</div>
</div>
<div class="list-visit">
<span class="left-label">随访量表:</span>
<div class="right-item">
<p>高血压随访量表<span class="check-btn" @click="openScaleDetail">查看量表</span></p>
<p v-for="(item2, index2) in item.scaleSimpleDtos" :key="index2">{{item2.name}}
<!--<span class="check-btn" @click="openScaleDetail(item2.url)">查看量表</span>-->
</p>
</div>
</div>
</div>
</div>
<p style="text-align: center;padding:10px 0;cursor: pointer">点击加载更多</p>
</div>
<div class="no-record-content" v-if="!recordList.length">
<div>
......@@ -136,7 +119,7 @@
<script>
import BreadCrumb from '@/components/breadcrumb'
import { mapGetters } from 'vuex'
import { getDiseasesList, getPatientDetail, getRemindPatient, deletePatient,savePatientInfo } from '@/utils/patients/patientsapi'
import { getDiseasesList, getPatientDetail, getRemindPatient, deletePatient, savePatientInfo, getHealthRecordList } from '@/utils/patients/patientsapi'
export default {
name: "patientDetail",
components: {
......@@ -151,6 +134,7 @@
jumPathThird: '/patients-manage/mypatients-manage/patients-list',
activeName: 'first',
patientId: '',
doctorId: '',
patientInfo: {
isWechatBind: 1,
remark: '',
......@@ -158,33 +142,28 @@
showLabelName: '',
showDiseaseName: '',
birthTimeDisplay: '',
recordList: [{}],
recordList: [],
hasMore: true,
}
},
created() {
this.patientId = this.$route.query.patientId;
this.init();
// getDiseasesList().then(({data}) => {
// console.log('获取所有疾病',data)
// })
},
mounted() {
},
computed: {
// ...mapState('planManage',{
// remarkOption: state => state.remarkOption,
// templateOptions: state => state.templateOptions,
// })
...mapGetters([
'_token',
])
},
methods: {
// ...mapActions('planManage', ['getTimeNodeList','getRemarkOption','getFollowupTemplate']),
init() {
getPatientDetail(this.patientId).then((data) => {
if(data.code == '000000') {
this.patientInfo = data.data;
if(this.patientInfo){
this.doctorId = this.patientInfo.doctorId;
let customLabels = this.patientInfo.customLabels;
let diseases = this.patientInfo.diseases;
let groupLabelNames = [];
......@@ -220,11 +199,30 @@
}
})
},
getRecordList(pageNo, pageSize) {
let reqPara = {
doctorId: '101281458',
// patientId: this.patientId,
patientId: '99997701',
pageNo: pageNo,
pageSize: pageSize,
}
getHealthRecordList(reqPara).then((data) => {
if(data.code == '000000'){
this.recordList = data.data.healthRecordDtos;
// let total = data.data.count;
}else {
this.$message.error(data.message)
}
})
},
tabChangeHandler(tab) {
// console.log(tab);
if(tab.name == 'second'){
this.getRecordList(1,2);
}
},
deletePatient() {
// 把写的提示信需要换行的地方分成数组 confirmText
// 把写的提示信需要换行的地方分成数组 confirmText
const confirmText = ['您确定要删除此居民吗?', '删除后,您将无法对该居民发送患教和进行随访,重新添加该居民依旧可查看历史发送记录及随访记录'];
const newDatas = [];
const h = this.$createElement;
......@@ -241,7 +239,6 @@
let reqParam = {
patientIdList: [this.patientId],
token: this._token,
// token: 'AB2BEE40C5AD452E93688D31A14E8C12',
};
deletePatient(reqParam).then(data => {
if(data.code == '000000') {
......@@ -268,7 +265,14 @@
});
});
},
editPatient() {},
editPatient() {
this.$router.push({
path: '/patients-manage/mypatients-manage/basic-info',
query: {
patientId: this.patientId
}
})
},
//提醒绑定
remindBind() {
let remindMobileWechatPara = {
......@@ -281,6 +285,7 @@
}).then( data => {
if(data.code == '000000') {
this.$message.success(data.data.respMsg);
this.init();
}else {
this.$message.error(data.message);
}
......@@ -291,26 +296,17 @@
savePatientInfo(this.patientInfo).then(data => {
if(data.code == '000000'){
this.$message.success('保存备注成功')
this.init();
}else {
this.$message.error(data.message);
}
})
},
//查看量表详情
openScaleDetail() {
console.log('打开量表');
// this.$router.push({
// path: '/followup/record-manage/form-template',
// query: {
// doctorId: val.doctorId,
// scaleNo: val.resourceId,
// planPatientsTimesId:
// val.planPatientsTimesId,
// showBtn: 0
// }
// });
// window.open()
openScaleDetail(url) {
window.open(url)
},
},
filters: {
emptyFilter: function(value) {
......@@ -391,6 +387,8 @@
}
}
.health-record-list{
height: 500px;
overflow-y: scroll;
.item{
width: 100%;
margin-bottom: 15px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册