|
@ -94,6 +94,7 @@
|
|
|
<script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script src="../../../api/http-request.js" type="text/javascript"></script>
|
|
|
<script type="text/javascript" src="../../../api/rehabilitation-api.js"></script>
|
|
|
<script type="text/javascript" src="../../../api/sign_api.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
|
|
|
var httpData=GetRequest()
|
|
@ -123,7 +124,9 @@
|
|
|
icon: 6
|
|
|
})
|
|
|
}
|
|
|
|
|
|
function signSpecialist(flag, signSpecialist){
|
|
|
console.log('signSpecialist', flag, signSpecialist)
|
|
|
}
|
|
|
top.addRecoveryDownVue = new Vue({
|
|
|
el: "#app",
|
|
|
data: {
|
|
@ -158,11 +161,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
isSignSpecialist: function(is_sign, idcard){
|
|
|
signSpecialist: function(is_sign, patientCode){
|
|
|
if(is_sign){ // 已家签
|
|
|
if(idcard){ // 已签约专科
|
|
|
if(patientCode){ // 已签约专科
|
|
|
this.is_sign_specialist = true
|
|
|
this.getRehabilitationPatientList(idcard)
|
|
|
this.getPatient(patientCode)
|
|
|
}
|
|
|
} else {
|
|
|
this.patientInfo = undefined
|
|
@ -198,6 +201,7 @@
|
|
|
}
|
|
|
this.getRehabilitationPatientList(this.searchKey)
|
|
|
},
|
|
|
// 根据身份证号码获取家签居民
|
|
|
getRehabilitationPatientList: function(value){
|
|
|
var vm = this,
|
|
|
loading = layer.load(0, {shade: false})
|
|
@ -221,6 +225,35 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 根据居民code 查找居民
|
|
|
getPatient: function(patient){
|
|
|
var vm = this
|
|
|
var params = {
|
|
|
patient: patient
|
|
|
}
|
|
|
signAPI.getPatient(params).then(function(res){
|
|
|
if(res.status==200){
|
|
|
if(res.data){
|
|
|
var result = res.data
|
|
|
vm.patientInfo = {}
|
|
|
vm.patientInfo['patient'] = result.code
|
|
|
vm.patientInfo['patientName'] = result.name
|
|
|
vm.patientInfo['sex'] = result.sex
|
|
|
vm.patientInfo['age'] = result.age
|
|
|
vm.patientInfo['hospitalName'] = result.jtHospitalName
|
|
|
vm.patientInfo['doctorName'] = result.jtDoctorName
|
|
|
vm.patientInfo['doctorHealthName'] = result.jtDoctorHealthName
|
|
|
vm.$forceUpdate()
|
|
|
vm.getPatientLabelInfo()
|
|
|
// 获取签约专科信息
|
|
|
vm.findPatientTeamList()
|
|
|
}
|
|
|
console.log('res', res)
|
|
|
} else {
|
|
|
showErrorMessage('获取居民信息失败!')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getSpecialistTeamList: function(){
|
|
|
var vm = this,
|
|
|
loading = layer.load(0, {shade: false})
|