|
@ -41,15 +41,18 @@ function getReason(ele) {
|
|
|
new Vue({
|
|
|
el: "#app",
|
|
|
data: {
|
|
|
doctorType: doctorInfo.doctorType,
|
|
|
isShowList1: false,
|
|
|
isShowList2: false,
|
|
|
isShowList3: false,
|
|
|
isShowList4: false,
|
|
|
showTit3: "请选择补贴类型",
|
|
|
showTit4: "请选择服务类型",
|
|
|
showTit5: "请选择居民标签",
|
|
|
patientInfo: null,
|
|
|
teamList: null,
|
|
|
memberList: null,
|
|
|
memberList: null, // 团队成员列表
|
|
|
doctorList: null, // 全科医生列表
|
|
|
dictList: null,
|
|
|
fileList: null,
|
|
|
signInfo: {
|
|
@ -180,11 +183,12 @@ new Vue({
|
|
|
}
|
|
|
signAPI.teamMember(params).then(function(res) {
|
|
|
layer.close(loadding)
|
|
|
vm.memberList = []
|
|
|
vm.memberList = [];
|
|
|
vm.doctorList = [];
|
|
|
if(res.status == 200) {
|
|
|
$.each(res.data, function(i, v) {
|
|
|
if(v.level == 3 || v.level == 2)
|
|
|
vm.memberList.push(v);
|
|
|
if(v.level == 3 || v.level == 2) {vm.memberList.push(v);}
|
|
|
if(v.level == 2) {vm.doctorList.push(v);}
|
|
|
});
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
@ -195,30 +199,39 @@ new Vue({
|
|
|
if(num == 1) {
|
|
|
this.isShowList2 = false;
|
|
|
this.isShowList3 = false;
|
|
|
this.isShowList4 = false;
|
|
|
this.isShowList1 = !this.isShowList1;
|
|
|
} else if (num == 2) {
|
|
|
if(!this.signInfo.adminTeamCode) {
|
|
|
showWarningMessage("请先选择签约团队")
|
|
|
return false;
|
|
|
}
|
|
|
this.isShowList1 = false;
|
|
|
this.isShowList3 = false;
|
|
|
this.isShowList4 = false;
|
|
|
this.isShowList2 = !this.isShowList2;
|
|
|
} else {
|
|
|
} else if (num == 3) {
|
|
|
this.isShowList1 = false;
|
|
|
this.isShowList2 = false;
|
|
|
this.isShowList4 = false;
|
|
|
this.isShowList3 = !this.isShowList3;
|
|
|
} else {
|
|
|
this.isShowList1 = false;
|
|
|
this.isShowList2 = false;
|
|
|
this.isShowList3 = false;
|
|
|
this.isShowList4 = !this.isShowList4;
|
|
|
}
|
|
|
|
|
|
},
|
|
|
selectLi: function(num, data) {
|
|
|
if(num == 1) {
|
|
|
if(num == 1) { // 选择签约团队
|
|
|
this.isShowList1 = false;
|
|
|
this.signInfo.adminTeamCode = data.id;
|
|
|
if(!this.memberList) {
|
|
|
if(!this.memberList || !this.doctorList) {
|
|
|
this.teamMember()
|
|
|
}
|
|
|
}
|
|
|
if(num == 2) {
|
|
|
if(num == 2) { // 选择健管师
|
|
|
this.isShowList2 = false;
|
|
|
this.signInfo.healthDoctorName = data.name
|
|
|
this.signInfo.healthDoctor = data.code
|
|
@ -227,6 +240,11 @@ new Vue({
|
|
|
this.isShowList3 = false;
|
|
|
this.signInfo.expenses = data.code;
|
|
|
}
|
|
|
if(num == 4) { // 选择全科医生
|
|
|
this.isShowList2 = false;
|
|
|
this.signInfo.healthDoctorName = data.name
|
|
|
this.signInfo.healthDoctor = data.code
|
|
|
}
|
|
|
},
|
|
|
showTeamName: function(teamCode) {
|
|
|
var teamName;
|