|
@ -80,7 +80,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button v-if="!isEditConfig" type="button" class="btn btn-default fr" style="width: 100%; background: #12B7F5; border-radius: 0px ;border: 0px ;padding: 10px;margin-top: 15px;" @click="addMedicalRecords()">添加住院病历</button>
|
|
|
|
|
|
<button v-if="!isEditConfig&&medicalRecordsList.length==0" type="button" class="btn btn-default fr" style="width: 100%; background: #12B7F5; border-radius: 0px ;border: 0px ;padding: 10px;margin-top: 15px;" @click="addMedicalRecords()">添加住院病历</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="fl c-h100 w-100-400">
|
|
<div class="fl c-h100 w-100-400">
|
|
@ -685,7 +685,6 @@
|
|
},
|
|
},
|
|
// 获取居民信息
|
|
// 获取居民信息
|
|
getPatientInfo: function() {
|
|
getPatientInfo: function() {
|
|
// this.findPatientSignSpecialistInfo()
|
|
|
|
var vm = this,
|
|
var vm = this,
|
|
loadding = layer.load(0, {shade: false}),
|
|
loadding = layer.load(0, {shade: false}),
|
|
params = {
|
|
params = {
|
|
@ -696,34 +695,66 @@
|
|
if(res.status == 200) {
|
|
if(res.status == 200) {
|
|
vm.patiInfo = res.data
|
|
vm.patiInfo = res.data
|
|
vm.pati.patientName = res.data.name
|
|
vm.pati.patientName = res.data.name
|
|
vm.jDlist.push({
|
|
|
|
name: vm.patiInfo.ssDoctorName || vm.patiInfo.jtDoctorName,
|
|
|
|
code: vm.patiInfo.ssDoctor || vm.patiInfo.jtDoctor,
|
|
|
|
hospitalName: vm.patiInfo.jtHospitalName
|
|
|
|
})
|
|
|
|
vm.jDlist.push({
|
|
|
|
name: vm.patiInfo.ssDoctorHealthName || vm.patiInfo.jtDoctorHealthName,
|
|
|
|
code: vm.patiInfo.ssDoctorHealth || vm.patiInfo.jtDoctorHealth,
|
|
|
|
hospitalName: vm.patiInfo.jtHospitalName
|
|
|
|
})
|
|
|
|
vm.jDlist.push({
|
|
|
|
name: docInfo.name,
|
|
|
|
code: docInfo.uid,
|
|
|
|
hospitalName: docInfo.hospitalName
|
|
|
|
})
|
|
|
|
|
|
if(vm.planId){ // 编辑服务项时获取服务医生列表
|
|
|
|
vm.selectPlanServerDoctor(vm.planId)
|
|
|
|
} else {
|
|
|
|
vm.jDlist.push({
|
|
|
|
name: vm.patiInfo.ssDoctorName || vm.patiInfo.jtDoctorName,
|
|
|
|
code: vm.patiInfo.ssDoctor || vm.patiInfo.jtDoctor,
|
|
|
|
hospitalName: vm.patiInfo.jtHospitalName
|
|
|
|
})
|
|
|
|
vm.jDlist.push({
|
|
|
|
name: vm.patiInfo.ssDoctorHealthName || vm.patiInfo.jtDoctorHealthName,
|
|
|
|
code: vm.patiInfo.ssDoctorHealth || vm.patiInfo.jtDoctorHealth,
|
|
|
|
hospitalName: vm.patiInfo.jtHospitalName
|
|
|
|
})
|
|
|
|
vm.jDlist.push({
|
|
|
|
name: docInfo.name,
|
|
|
|
code: docInfo.uid,
|
|
|
|
hospitalName: docInfo.hospitalName
|
|
|
|
})
|
|
|
|
}
|
|
// 获取居民标签
|
|
// 获取居民标签
|
|
vm.getPatientLabelInfo()
|
|
vm.getPatientLabelInfo()
|
|
if(!vm.teamCode){
|
|
|
|
|
|
if(vm.docInfo.doctorType==1){
|
|
vm.findPatientSignSpecialistInfo()
|
|
vm.findPatientSignSpecialistInfo()
|
|
}
|
|
}
|
|
if(vm.planId){
|
|
|
|
vm.getServiceItem()
|
|
|
|
}
|
|
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
// 获取服务医生列表
|
|
|
|
selectPlanServerDoctor: function(id){
|
|
|
|
var vm = this,
|
|
|
|
params = {
|
|
|
|
planId: id
|
|
|
|
}
|
|
|
|
rehaAPI.selectPlanServerDoctor(params).then(function(res){
|
|
|
|
var jtList = [], zkList = []
|
|
|
|
if(res.status==200){
|
|
|
|
$.each(res.data, function(index, item){
|
|
|
|
if(item.level==1){
|
|
|
|
zkList.push({
|
|
|
|
name: item.name,
|
|
|
|
code: item.code,
|
|
|
|
hospitalName: item.hospitalName
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
jtList.push({
|
|
|
|
name: item.name,
|
|
|
|
code: item.code,
|
|
|
|
hospitalName: item.hospitalName
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
vm.jDlist = jtList.concat(zkList)
|
|
|
|
vm.getServiceItem()
|
|
|
|
}else{
|
|
|
|
layer.msg(res.msg,{icon:5});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
// 签约专科信息
|
|
// 签约专科信息
|
|
findPatientSignSpecialistInfo: function() {
|
|
findPatientSignSpecialistInfo: function() {
|
|
var vm = this,
|
|
var vm = this,
|
|
@ -734,8 +765,10 @@
|
|
recoverAPI.findPatientSignSpecialistInfo(params).then(function(res) {
|
|
recoverAPI.findPatientSignSpecialistInfo(params).then(function(res) {
|
|
if(res.status == 200) {
|
|
if(res.status == 200) {
|
|
vm.pati.teamCode = res.data.teamCode
|
|
vm.pati.teamCode = res.data.teamCode
|
|
vm.teamCode = res.data.teamCode
|
|
|
|
vm.specialistTeam(res.data.teamCode)
|
|
|
|
|
|
if(!vm.teamCode){
|
|
|
|
vm.teamCode = res.data.teamCode
|
|
|
|
}
|
|
|
|
vm.specialistTeam(vm.teamCode)
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg);
|
|
showErrorMessage(res.msg);
|
|
}
|
|
}
|
|
@ -1178,7 +1211,6 @@
|
|
var obj;
|
|
var obj;
|
|
if(o.code=='2'||o.code=='3'||!o.frequencyCode){
|
|
if(o.code=='2'||o.code=='3'||!o.frequencyCode){
|
|
obj = {
|
|
obj = {
|
|
id: vm.planDetailId,
|
|
|
|
hospitalServiceItemId: o.code,
|
|
hospitalServiceItemId: o.code,
|
|
type: 2,
|
|
type: 2,
|
|
doctor: vm.jDlist[0].code,
|
|
doctor: vm.jDlist[0].code,
|
|
@ -1196,7 +1228,6 @@
|
|
executeTime.push(v)
|
|
executeTime.push(v)
|
|
});
|
|
});
|
|
obj = {
|
|
obj = {
|
|
id: vm.planDetailId,
|
|
|
|
hospitalServiceItemId: o.code, // 服务项code
|
|
hospitalServiceItemId: o.code, // 服务项code
|
|
type: 2,
|
|
type: 2,
|
|
doctor: o.executeDoctor,
|
|
doctor: o.executeDoctor,
|