|
@ -408,6 +408,8 @@
|
|
templateDetail: function(){
|
|
templateDetail: function(){
|
|
if(this.templateDetail.length==0){
|
|
if(this.templateDetail.length==0){
|
|
this.havePlan = false
|
|
this.havePlan = false
|
|
|
|
}else{
|
|
|
|
this.havePlan = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@ -488,10 +490,13 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
comMedicalRecords:function(record){
|
|
|
|
|
|
comMedicalRecords:function(record,isEdit){
|
|
var vm = this
|
|
var vm = this
|
|
var loading = layer.load(0, {shade: false})
|
|
var loading = layer.load(0, {shade: false})
|
|
var event=record&&record.event?record.event:""
|
|
var event=record&&record.event?record.event:""
|
|
|
|
if(!isEdit){
|
|
|
|
isEdit = ""
|
|
|
|
}
|
|
recoverAPI.getPatientAccetokenByIdcard({idcard:vm.pati.idcard}).then(function(res){
|
|
recoverAPI.getPatientAccetokenByIdcard({idcard:vm.pati.idcard}).then(function(res){
|
|
layer.close(loading)
|
|
layer.close(loading)
|
|
if(res.status==200){
|
|
if(res.status==200){
|
|
@ -503,7 +508,7 @@
|
|
closeBtn: 1,
|
|
closeBtn: 1,
|
|
shift: 5,
|
|
shift: 5,
|
|
shadeClose: false, //点击遮罩关闭层
|
|
shadeClose: false, //点击遮罩关闭层
|
|
content: httpRequest.server+"profileweb/#/zhuyuan?patientCode="+res.data.patientCode+'&hospital='+docInfo.hospital+"&recoverDown=true&event='+event,
|
|
|
|
|
|
content: httpRequest.server+"profileweb/#/zhuyuan?patientCode="+res.data.patientCode+"&hospital="+docInfo.hospital+"&recoverDown="+isEdit+"&event="+event,
|
|
end: function(){
|
|
end: function(){
|
|
var comProfile = sessionStorage.getItem("comProfile")
|
|
var comProfile = sessionStorage.getItem("comProfile")
|
|
if(comProfile){
|
|
if(comProfile){
|
|
@ -516,7 +521,6 @@
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
comMedicalRecordsBack:function(comProfile,event){
|
|
comMedicalRecordsBack:function(comProfile,event){
|
|
var vm = this
|
|
var vm = this
|
|
@ -547,6 +551,9 @@
|
|
vm.medicalRecordsList.unshift(res.data)
|
|
vm.medicalRecordsList.unshift(res.data)
|
|
}else{
|
|
}else{
|
|
vm.$set(vm.medicalRecordsList, vm.curMedicalRecordsIndex, res.data)
|
|
vm.$set(vm.medicalRecordsList, vm.curMedicalRecordsIndex, res.data)
|
|
|
|
}
|
|
|
|
if(!vm.adviceContent){
|
|
|
|
vm.adviceContent = res.data.advice
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
@ -570,21 +577,39 @@
|
|
// 编辑住院病历
|
|
// 编辑住院病历
|
|
editMedicalRecords: function(o, i){
|
|
editMedicalRecords: function(o, i){
|
|
var vm = this
|
|
var vm = this
|
|
vm.curMedicalRecordsIndex = i
|
|
|
|
if(o.event){
|
|
|
|
vm.comMedicalRecords(o)
|
|
|
|
}else{
|
|
|
|
window.localStorage.setItem('curMedicalRecords', JSON.stringify(o))
|
|
|
|
this.selectPatientIndex = layer.open({
|
|
|
|
type: 2,
|
|
|
|
area: ['480px', '650px'],
|
|
|
|
shade: 0.5,
|
|
|
|
title: '添加住院病历',
|
|
|
|
closeBtn: 1,
|
|
|
|
shift: 5,
|
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
|
content: "medical-records.html?patient="+vm.pati.patient+'&patientName='+vm.pati.patientName+'&medicalRecordsId='+o.id
|
|
|
|
});
|
|
|
|
|
|
if(vm.isEditConfig){
|
|
|
|
if(o.event){
|
|
|
|
vm.comMedicalRecords(o)
|
|
|
|
}else{
|
|
|
|
window.localStorage.setItem('curMedicalRecords', JSON.stringify(o))
|
|
|
|
this.selectPatientIndex = layer.open({
|
|
|
|
type: 2,
|
|
|
|
area: ['480px', '650px'],
|
|
|
|
shade: 0.5,
|
|
|
|
title: '添加住院病历',
|
|
|
|
closeBtn: 1,
|
|
|
|
shift: 5,
|
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
|
content: "../../rehabilitation/html/medical-records-detail.html?medicalRecordsCode="+o.code
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
vm.curMedicalRecordsIndex = i
|
|
|
|
if(o.event){
|
|
|
|
vm.comMedicalRecords(o,true)
|
|
|
|
}else{
|
|
|
|
window.localStorage.setItem('curMedicalRecords', JSON.stringify(o))
|
|
|
|
this.selectPatientIndex = layer.open({
|
|
|
|
type: 2,
|
|
|
|
area: ['480px', '650px'],
|
|
|
|
shade: 0.5,
|
|
|
|
title: '添加住院病历',
|
|
|
|
closeBtn: 1,
|
|
|
|
shift: 5,
|
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
|
content: "medical-records.html?patient="+vm.pati.patient+'&patientName='+vm.pati.patientName+'&medicalRecordsId='+o.id
|
|
|
|
});
|
|
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//关闭添加住院病历弹框
|
|
//关闭添加住院病历弹框
|