|
@ -47,14 +47,16 @@ new Vue({
|
|
|
isShowList3: false,
|
|
|
isShowList4: false,
|
|
|
showTit3: "请选择补贴类型",
|
|
|
showTit4: "请选择服务类型",
|
|
|
showTit5: "请选择居民标签",
|
|
|
patientInfo: null,
|
|
|
warnMsg: "",
|
|
|
teamList: null,
|
|
|
memberList: null, // 团队成员列表
|
|
|
doctorList: null, // 全科医生列表
|
|
|
dictList: null,
|
|
|
fileList: null,
|
|
|
serverName: null,
|
|
|
serverCode: null,
|
|
|
signInfo: {
|
|
|
signType: 1,
|
|
|
majorDoctor: null,
|
|
@ -66,6 +68,8 @@ new Vue({
|
|
|
adminTeamCode: null,
|
|
|
msgid: httpData.msgId, // 消息id(必填)
|
|
|
patient: httpData.patientCode,
|
|
|
doctor: null,
|
|
|
doctorName: null,
|
|
|
healthDoctor: null,
|
|
|
healthDoctorName: null,
|
|
|
type: 1,
|
|
@ -80,13 +84,9 @@ new Vue({
|
|
|
},
|
|
|
},
|
|
|
mounted: function() {
|
|
|
if (httpData.status == 0) {
|
|
|
this.signing()
|
|
|
} else {
|
|
|
this.signOuttime();
|
|
|
}
|
|
|
this.getDictByDictName();
|
|
|
this.teamLimit();
|
|
|
this.patientLabel();
|
|
|
this.findPatientSignServerBySignCode();
|
|
|
},
|
|
|
methods: {
|
|
@ -116,10 +116,47 @@ new Vue({
|
|
|
if(res.status == 200) {
|
|
|
vm.patientInfo = res.data
|
|
|
vm.signInfo.adminTeamCode = vm.patientInfo.jtSign.adminTeamId
|
|
|
vm.signInfo.healthDoctorName = vm.patientInfo.jtSign.doctorHealthName
|
|
|
vm.signInfo.healthDoctor = vm.patientInfo.jtSign.doctorHealth
|
|
|
vm.signInfo.healthDoctorName = vm.patientInfo.jtSign.doctorHealthName || ""
|
|
|
vm.signInfo.healthDoctor = vm.patientInfo.jtSign.doctorHealth || ""
|
|
|
vm.signInfo.doctor = vm.patientInfo.jtSign.doctor || ""
|
|
|
vm.signInfo.doctorName = vm.patientInfo.jtSign.doctorName || ""
|
|
|
vm.signInfo.expenses = vm.patientInfo.jtSign.expensesType
|
|
|
vm.teamMember()
|
|
|
vm.judgeTeamToDoc(vm.signInfo.adminTeamCode)
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
judgeTeamToDoc: function(teamCode) {
|
|
|
var judge = false
|
|
|
for(var i = 0, len = this.teamList.length; i < len; i++) {
|
|
|
if(this.teamList[i].id == teamCode) {
|
|
|
judge = true
|
|
|
this.teamMember()
|
|
|
}
|
|
|
}
|
|
|
if(!judge) {
|
|
|
this.signInfo.adminTeamCode = null
|
|
|
this.warnMsg = "您已不在原签约团队,请选择新的签约团队"
|
|
|
if(this.doctorType == 2) {
|
|
|
this.signInfo.healthDoctorName = null
|
|
|
this.signInfo.healthDoctor = null
|
|
|
} else {
|
|
|
this.signInfo.doctor = null
|
|
|
this.signInfo.doctorName = null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
patientLabel: function() {
|
|
|
var vm =this,
|
|
|
loadding = layer.load(0, {shade: false}),
|
|
|
params = {
|
|
|
patient: httpData.patientCode,
|
|
|
labelType: null
|
|
|
}
|
|
|
signAPI.patientLabel(params).then(function(res) {
|
|
|
layer.close(loadding)
|
|
|
if(res.status == 200) {
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
@ -150,6 +187,11 @@ new Vue({
|
|
|
layer.close(loadding)
|
|
|
if(res.status == 200) {
|
|
|
vm.teamList = res.data
|
|
|
if (httpData.status == 0) {
|
|
|
vm.signing()
|
|
|
} else {
|
|
|
vm.signOuttime();
|
|
|
}
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
@ -164,7 +206,21 @@ new Vue({
|
|
|
signAPI.findPatientSignServerBySignCode(params).then(function(res) {
|
|
|
layer.close(loadding)
|
|
|
if(res.status == 200) {
|
|
|
vm.fileList = []
|
|
|
vm.fileList = [];
|
|
|
var len = res.data.length;
|
|
|
if(res.data.length > 0) {
|
|
|
vm.serverName = "";
|
|
|
vm.serverCode = "";
|
|
|
for(var i = 0; i < len; i++) {
|
|
|
if(i == 0) {
|
|
|
vm.serverName += res.data[i].serverTypeName
|
|
|
vm.serverCode += res.data[i].servetType
|
|
|
} else {
|
|
|
vm.serverName += + ', ' + res.data[i].serverTypeName
|
|
|
vm.serverCode += +',' + res.data[i].servetType
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$.each(res.data, function(i, v) {
|
|
|
if(v.serverType == 8 || v.serverType == 9 || v.serverType == 11) {
|
|
|
vm.fileList.push(v);
|
|
@ -186,10 +242,31 @@ new Vue({
|
|
|
vm.memberList = [];
|
|
|
vm.doctorList = [];
|
|
|
if(res.status == 200) {
|
|
|
var judge = false
|
|
|
$.each(res.data, function(i, v) {
|
|
|
if(v.level == 3 || v.level == 2) {vm.memberList.push(v);}
|
|
|
if(v.level == 2) {vm.doctorList.push(v);}
|
|
|
if(v.available) {
|
|
|
if(v.code == vm.signInfo.doctor && vm.doctorType == 3) {
|
|
|
judge = true
|
|
|
}
|
|
|
if(v.code == vm.signInfo.healthDoctor && vm.doctorType == 2) {
|
|
|
judge = true
|
|
|
}
|
|
|
}
|
|
|
if(v.available && (v.level == 3 || v.level == 2)) {vm.memberList.push(v);}
|
|
|
if(v.available && v.level == 2) {vm.doctorList.push(v);}
|
|
|
});
|
|
|
if(!judge) {
|
|
|
if(vm.doctorType == 3) {
|
|
|
vm.signInfo.doctor = null
|
|
|
vm.signInfo.doctorName = null
|
|
|
vm.warnMsg = "居民续签的全科医生已不在您的团队,请重新选择一位全科医生"
|
|
|
}
|
|
|
if(vm.doctorType == 2) {
|
|
|
vm.signInfo.healthDoctor = null
|
|
|
vm.signInfo.healthDoctorName = null
|
|
|
vm.warnMsg = "居民续签的健管师已不在您的团队,请重新选择一位健管师"
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
@ -227,6 +304,14 @@ new Vue({
|
|
|
if(num == 1) { // 选择签约团队
|
|
|
this.isShowList1 = false;
|
|
|
this.signInfo.adminTeamCode = data.id;
|
|
|
if(this.doctorType == 2) {
|
|
|
this.signInfo.healthDoctor = null
|
|
|
this.signInfo.healthDoctorName = null
|
|
|
}
|
|
|
if(this.doctorType == 3) {
|
|
|
this.signInfo.doctor = null
|
|
|
this.signInfo.doctorName = null
|
|
|
}
|
|
|
if(!this.memberList || !this.doctorList) {
|
|
|
this.teamMember()
|
|
|
}
|
|
@ -241,9 +326,9 @@ new Vue({
|
|
|
this.signInfo.expenses = data.code;
|
|
|
}
|
|
|
if(num == 4) { // 选择全科医生
|
|
|
this.isShowList2 = false;
|
|
|
this.signInfo.healthDoctorName = data.name
|
|
|
this.signInfo.healthDoctor = data.code
|
|
|
this.isShowList4 = false;
|
|
|
this.signInfo.doctorName = data.name
|
|
|
this.signInfo.doctor = data.code
|
|
|
}
|
|
|
},
|
|
|
showTeamName: function(teamCode) {
|