|
@ -638,7 +638,6 @@ Vue.component('fangshi-detail-6', {
|
|
|
随访医生签名:\
|
|
|
</div>\
|
|
|
<div class="ui-col-1">\
|
|
|
<el-input type="text" :readonly="!editable" v-model="newbornData.VISITING_DOCTOR" clearable></el-input>\
|
|
|
<el-input type="text" :readonly="!editable" v-model="newbornData.visiting_DOCTOR" clearable></el-input>\
|
|
|
</div>\
|
|
|
</div>\
|
|
@ -647,7 +646,6 @@ Vue.component('fangshi-detail-6', {
|
|
|
家属确认签字:\
|
|
|
</div>\
|
|
|
<div class="ui-col-1">\
|
|
|
<el-input type="text" :readonly="!editable" v-model="newbornData.FAMILY_SIGN" clearable></el-input>\
|
|
|
<el-input type="text" :readonly="!editable" v-model="newbornData.family_SIGN" clearable></el-input>\
|
|
|
</div>\
|
|
|
</div>\
|
|
@ -689,7 +687,11 @@ Vue.component('fangshi-detail-6', {
|
|
|
input: '',
|
|
|
name: '',
|
|
|
number: '',
|
|
|
newbornData: {},
|
|
|
newbornData: {
|
|
|
this_INTERVIEW_DATE:'',
|
|
|
birthday:'',
|
|
|
sick_SEX:''
|
|
|
},
|
|
|
patientCode:'',
|
|
|
followupClass:''
|
|
|
}
|
|
@ -1011,7 +1013,7 @@ Vue.component('fangshi-detail-6', {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
getLastData:function(){
|
|
|
getLastData:function(obj){
|
|
|
var vm=this
|
|
|
fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass,patientCode:vm.patientCode }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
@ -1020,11 +1022,18 @@ Vue.component('fangshi-detail-6', {
|
|
|
if (vm.finishedStatus) {
|
|
|
vm.getData()
|
|
|
} else {
|
|
|
//默认信息
|
|
|
vm.newbornData.sick_NAME=obj.name
|
|
|
vm.newbornData.sick_SEX=obj.sex.toString()
|
|
|
vm.newbornData.birthday=obj.birthday
|
|
|
vm.newbornData.visiting_DOCTOR=obj.doctorName
|
|
|
// 居民存在上次历史记录,则代入默认信息
|
|
|
if (res.data.detail) {
|
|
|
vm.newbornData = res.data.detail
|
|
|
vm.dealData(data)
|
|
|
}
|
|
|
//默认随访时间为当前时间
|
|
|
vm.newbornData.this_INTERVIEW_DATE = new Date().format("yyyy-MM-dd")
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@ -1116,7 +1125,12 @@ Vue.component('fangshi-detail-6', {
|
|
|
res.data.status!=1?vm.finishedStatus=false:vm.finishedStatus=true
|
|
|
vm.patientCode=res.data.patientCode
|
|
|
vm.followupClass=res.data.followupClass
|
|
|
vm.getLastData()//获取patientCode,followupClass 获取上一次数据
|
|
|
var obj={}
|
|
|
obj.doctorName=res.data.doctorName
|
|
|
obj.name=res.data.patient.name
|
|
|
obj.sex=res.data.patient.sex
|
|
|
obj.birthday=res.data.patient.birthday
|
|
|
vm.getLastData(obj)//获取patientCode,followupClass 获取上一次数据
|
|
|
vm.setEditBtn()
|
|
|
} else {
|
|
|
top.toastr.error(res.msg);
|