|
@ -78,7 +78,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="c-t-center mt50">
|
|
|
<button type="button" class="btn btn-white btn-size-m mr15">取消</button>
|
|
|
<button type="button" class="btn btn-12B7F5 btn-size-m" @click="saveBtn">保存</button>
|
|
|
</div>
|
|
|
</div>
|
|
@ -143,7 +142,8 @@
|
|
|
curTeamInfo: {},
|
|
|
teamListObj: {},
|
|
|
curHealthStatu: '',
|
|
|
emptyText: '暂无数据'
|
|
|
emptyText: '暂无数据',
|
|
|
is_sign_specialist: false
|
|
|
},
|
|
|
mounted: function() {
|
|
|
this.getSpecialistTeamList()
|
|
@ -156,9 +156,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
isSignSpecialist: function(is_sign, card){
|
|
|
if(is_sign){
|
|
|
this.getRehabilitationPatientList(card)
|
|
|
isSignSpecialist: function(is_sign, idcard){
|
|
|
if(is_sign){ // 已家签
|
|
|
if(idcard){ // 已签约专科
|
|
|
this.is_sign_specialist = true
|
|
|
this.getRehabilitationPatientList(idcard)
|
|
|
}
|
|
|
} else {
|
|
|
this.patientInfo = undefined
|
|
|
this.emptyText = '患者暂未家签,请先提醒患者完成家庭医生签约'
|
|
@ -303,11 +306,37 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//居民未与扫描的二维码团队对应
|
|
|
createPatientInSpeciaRelation:function(data){
|
|
|
var vm = this,
|
|
|
params = {
|
|
|
patient: data.patient_code,
|
|
|
doctor: docInfo.code,
|
|
|
patientName: data.patient_name,
|
|
|
doctorName: docInfo.name,
|
|
|
teamCode:data.teamCode
|
|
|
}
|
|
|
rehaAPI.createPatientInSpeciaRelation(params).then(function(res){
|
|
|
if(res.data&&res.data.status == 200) {
|
|
|
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
},
|
|
|
saveBtn: function(){
|
|
|
var vm = this
|
|
|
var vm = this, num1 = 0, num2 = 0,
|
|
|
health = {}, disease = [], custom = []
|
|
|
if(!vm.patientInfo){return false}
|
|
|
if(!is_sign_specialist){
|
|
|
vm.createPatientInSpeciaRelation({
|
|
|
patient_code: vm.patientInfo.patient,
|
|
|
patient_name: vm.patientInfo.patientName,
|
|
|
teamCode: vm.curTeamInfo.id
|
|
|
})
|
|
|
}
|
|
|
if(!vm.curHealthStatu){
|
|
|
showWarningMessage('请选择健康情况!')
|
|
|
return false
|