|  | @ -1,6 +1,7 @@
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | var httpData=GetRequest(),
 | 
	
		
			
				|  |  | 	doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'));
 | 
	
		
			
				|  |  | 	doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent')),
 | 
	
		
			
				|  |  | 	isManage = doctorInfo.currentUserRole ? doctorInfo.currentUserRole.isManage : null
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | function showSuccessMessage(msg) {
 | 
	
		
			
				|  |  | 	layer.msg(msg, {
 | 
	
	
		
			
				|  | @ -29,14 +30,19 @@ function showInfoMessage(msg) {
 | 
	
		
			
				|  |  | new Vue({
 | 
	
		
			
				|  |  |     el: "#app",
 | 
	
		
			
				|  |  |     data: {
 | 
	
		
			
				|  |  |     	isManage: isManage,
 | 
	
		
			
				|  |  |     	isShowList1: false,
 | 
	
		
			
				|  |  |     	isShowList2: false,
 | 
	
		
			
				|  |  |     	isShowList3: false,
 | 
	
		
			
				|  |  |     	isJudgeHealthDoctor: null,
 | 
	
		
			
				|  |  |     	isJudgeDoctor: null,
 | 
	
		
			
				|  |  |     	isJudgeExpense: null,
 | 
	
		
			
				|  |  |     	isSaveBtn: false,
 | 
	
		
			
				|  |  |     	isSaveBtn1: false,
 | 
	
		
			
				|  |  |     	isSaveBtn2: false,
 | 
	
		
			
				|  |  |     	patientInfo: null,
 | 
	
		
			
				|  |  |     	doctorTeam: null,
 | 
	
		
			
				|  |  |     	doctorList: null,
 | 
	
		
			
				|  |  |     	memberList: null,
 | 
	
		
			
				|  |  |     	dictList: null,
 | 
	
		
			
				|  |  |     	adminTeamCode: null,
 | 
	
	
		
			
				|  | @ -77,7 +83,10 @@ new Vue({
 | 
	
		
			
				|  |  | 				if(res.status == 200) {
 | 
	
		
			
				|  |  | 					vm.doctorTeam = res.data
 | 
	
		
			
				|  |  | 					vm.isJudgeHealthDoctor = vm.doctorTeam.healthDoctorCode
 | 
	
		
			
				|  |  | 					vm.teamMember()
 | 
	
		
			
				|  |  | 					vm.isJudgeDoctor = vm.doctorTeam.doctorCode
 | 
	
		
			
				|  |  | 					if(isManage == 1) {
 | 
	
		
			
				|  |  | 						vm.teamMember()
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 				} else {
 | 
	
		
			
				|  |  | 					showErrorMessage(res.msg);
 | 
	
		
			
				|  |  | 				}
 | 
	
	
		
			
				|  | @ -115,7 +124,7 @@ new Vue({
 | 
	
		
			
				|  |  | 							if(i == 0) {
 | 
	
		
			
				|  |  | 								vm.serverName += res.data[i].serverTypeName
 | 
	
		
			
				|  |  | 							} else {
 | 
	
		
			
				|  |  | 								vm.serverName += + ', ' + res.data[i].serverTypeName
 | 
	
		
			
				|  |  | 								vm.serverName += ', ' + res.data[i].serverTypeName
 | 
	
		
			
				|  |  | 							}
 | 
	
		
			
				|  |  | 						}
 | 
	
		
			
				|  |  | 					}
 | 
	
	
		
			
				|  | @ -138,10 +147,11 @@ new Vue({
 | 
	
		
			
				|  |  | 			signAPI.teamMember(params).then(function(res) {
 | 
	
		
			
				|  |  | 				layer.close(loadding)
 | 
	
		
			
				|  |  | 				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.available && (v.level == 3 || v.level == 2)) {vm.memberList.push(v);}
 | 
	
		
			
				|  |  | 		                if(v.available && v.level == 2) {vm.doctorList.push(v);}
 | 
	
		
			
				|  |  | 		            });
 | 
	
		
			
				|  |  | 				} else {
 | 
	
		
			
				|  |  | 					showErrorMessage(res.msg);
 | 
	
	
		
			
				|  | @ -149,16 +159,32 @@ new Vue({
 | 
	
		
			
				|  |  | 			})
 | 
	
		
			
				|  |  |    		},
 | 
	
		
			
				|  |  |     	selectStatus: function(num) {
 | 
	
		
			
				|  |  |     		if (num == 2) {
 | 
	
		
			
				|  |  |     		if (num == 1) {
 | 
	
		
			
				|  |  |     			this.isShowList3 = false;
 | 
	
		
			
				|  |  |     			this.isShowList2 = false;
 | 
	
		
			
				|  |  |     			this.isShowList1 = !this.isShowList1;
 | 
	
		
			
				|  |  |     		} else if (num == 2) {
 | 
	
		
			
				|  |  |     			this.isShowList3 = false;
 | 
	
		
			
				|  |  |     			this.isShowList1 = false;
 | 
	
		
			
				|  |  |     			this.isShowList2 = !this.isShowList2;
 | 
	
		
			
				|  |  |     		} else {
 | 
	
		
			
				|  |  |     			this.isShowList1 = false;
 | 
	
		
			
				|  |  |     			this.isShowList2 = false;
 | 
	
		
			
				|  |  |     			this.isShowList3 = !this.isShowList3;
 | 
	
		
			
				|  |  |     		}
 | 
	
		
			
				|  |  |             
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         selectLi: function(num, data) {
 | 
	
		
			
				|  |  |         	if(num == 1) {
 | 
	
		
			
				|  |  |         		this.isShowList1 = false;
 | 
	
		
			
				|  |  |         		if(data.code == this.isJudgeDoctor) {
 | 
	
		
			
				|  |  |         			this.isSaveBtn = false
 | 
	
		
			
				|  |  |         		} else {
 | 
	
		
			
				|  |  |         			this.isSaveBtn = true
 | 
	
		
			
				|  |  |         		}
 | 
	
		
			
				|  |  |         		this.doctorTeam.doctorCode = data.code;
 | 
	
		
			
				|  |  |     			this.doctorTeam.doctorName = data.name;
 | 
	
		
			
				|  |  |         	}
 | 
	
		
			
				|  |  |         	if(num == 2) {
 | 
	
		
			
				|  |  |         		this.isShowList2 = false;
 | 
	
		
			
				|  |  |         		if(data.code == this.isJudgeHealthDoctor) {
 | 
	
	
		
			
				|  | @ -216,7 +242,7 @@ new Vue({
 | 
	
		
			
				|  |  |         	})
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         saveChange: function() {
 | 
	
		
			
				|  |  |         	if(!this.isSaveBtn1 && !this.isSaveBtn2) {
 | 
	
		
			
				|  |  |         	if(!this.isSaveBtn && !this.isSaveBtn1 && !this.isSaveBtn2) {
 | 
	
		
			
				|  |  |         		return false;
 | 
	
		
			
				|  |  |         	}
 | 
	
		
			
				|  |  |         	var vm = this,
 | 
	
	
		
			
				|  | @ -232,6 +258,7 @@ new Vue({
 | 
	
		
			
				|  |  | 					showSuccessMessage(res.msg);
 | 
	
		
			
				|  |  | 					vm.patientSign();
 | 
	
		
			
				|  |  | 					vm.patientTeam();
 | 
	
		
			
				|  |  | 					vm.isSaveBtn = false
 | 
	
		
			
				|  |  | 					vm.isSaveBtn1 = false
 | 
	
		
			
				|  |  | 					vm.isSaveBtn2 = false
 | 
	
		
			
				|  |  | 				} else {
 |