|  | @ -43,6 +43,7 @@ top.changeTypeIndex=null;//修改居民标签的窗体
 | 
	
		
			
				|  |  | top.handleVue=new Vue({
 | 
	
		
			
				|  |  |     el: "#app",
 | 
	
		
			
				|  |  |     data: {
 | 
	
		
			
				|  |  |     	renewFlag: httpData.renewFlag, // 2 改签
 | 
	
		
			
				|  |  |     	justDoc: null,
 | 
	
		
			
				|  |  |     	justHDoc: null,
 | 
	
		
			
				|  |  |     	doctorType: doctorInfo.doctorType,
 | 
	
	
		
			
				|  | @ -70,6 +71,8 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |             disease: null,
 | 
	
		
			
				|  |  |             patientIDcard: null, // 必填
 | 
	
		
			
				|  |  |             adminTeamCode: null,
 | 
	
		
			
				|  |  |             teamCode: null,
 | 
	
		
			
				|  |  |             mesId: null, // 消息id(必填)
 | 
	
		
			
				|  |  |             msgid: null, // 消息id(必填)
 | 
	
		
			
				|  |  |             patient: httpData.patientCode,
 | 
	
		
			
				|  |  |             doctor: null,
 | 
	
	
		
			
				|  | @ -94,6 +97,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |     	if(!httpData.msgid || httpData.msgid == "undefined" || httpData.msgid == "null") {
 | 
	
		
			
				|  |  |     		this.findMsgId()
 | 
	
		
			
				|  |  |     	} else {
 | 
	
		
			
				|  |  |     		this.signInfo.mesId = httpData.msgid
 | 
	
		
			
				|  |  |     		this.signInfo.msgid = httpData.msgid
 | 
	
		
			
				|  |  |     	}
 | 
	
		
			
				|  |  |     	this.teamLimit();
 | 
	
	
		
			
				|  | @ -171,6 +175,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 			signAPI.findMsgId(params).then(function(res) {
 | 
	
		
			
				|  |  | 				layer.close(loadding)
 | 
	
		
			
				|  |  | 				if(res.status == 200) {
 | 
	
		
			
				|  |  | 					vm.signInfo.mesId = res.data.id
 | 
	
		
			
				|  |  | 					vm.signInfo.msgid = res.data.id
 | 
	
		
			
				|  |  | 				} else {
 | 
	
		
			
				|  |  | 					showErrorMessage(res.msg);
 | 
	
	
		
			
				|  | @ -188,6 +193,14 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 				if(res.status == 200) {
 | 
	
		
			
				|  |  | 					vm.patientInfo = res.data
 | 
	
		
			
				|  |  | 					vm.signInfo.patientIDcard = res.data.idCard
 | 
	
		
			
				|  |  | 					if(vm.doctorType == 2) {
 | 
	
		
			
				|  |  | 						vm.signInfo.doctorName = res.data.jtSign.doctorName
 | 
	
		
			
				|  |  | 						vm.signInfo.doctor = res.data.jtSign.doctor
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 					if(vm.doctorType == 3) {
 | 
	
		
			
				|  |  | 						vm.signInfo.healthDoctorName = res.data.jtSign.doctorHealthName
 | 
	
		
			
				|  |  | 						vm.signInfo.healthDoctor = res.data.jtSign.doctorHealth
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 				} else {
 | 
	
		
			
				|  |  | 					showErrorMessage(res.msg);
 | 
	
		
			
				|  |  | 				}
 | 
	
	
		
			
				|  | @ -253,10 +266,19 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 				if(res.status == 200) {
 | 
	
		
			
				|  |  | 					vm.patientInfo = res.data
 | 
	
		
			
				|  |  | 					vm.signInfo.adminTeamCode = vm.patientInfo.jtSign.adminTeamId
 | 
	
		
			
				|  |  | 					vm.signInfo.teamCode = vm.patientInfo.jtSign.adminTeamId
 | 
	
		
			
				|  |  | 					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 || ""
 | 
	
		
			
				|  |  | 					if(vm.doctorType == 2) {
 | 
	
		
			
				|  |  | 						vm.signInfo.doctorName = doctorInfo.name
 | 
	
		
			
				|  |  | 						vm.signInfo.doctor = doctorInfo.uid
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 					if(vm.doctorType == 3) {
 | 
	
		
			
				|  |  | 						vm.signInfo.healthDoctorName = doctorInfo.name
 | 
	
		
			
				|  |  | 						vm.signInfo.healthDoctor = doctorInfo.uid
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 					vm.signInfo.expenses = vm.patientInfo.jtSign.expensesType
 | 
	
		
			
				|  |  | 					vm.judgeTeamToDoc(vm.signInfo.adminTeamCode)
 | 
	
		
			
				|  |  | 				} else {
 | 
	
	
		
			
				|  | @ -274,6 +296,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |     		}
 | 
	
		
			
				|  |  |     		if(!judge) {
 | 
	
		
			
				|  |  |     			this.signInfo.adminTeamCode = null
 | 
	
		
			
				|  |  |     			this.signInfo.teamCode = null
 | 
	
		
			
				|  |  |     			this.warnMsg = "您已不在原签约团队,请选择新的签约团队"
 | 
	
		
			
				|  |  |     			if(this.doctorType == 2) {
 | 
	
		
			
				|  |  |     				this.justHDoc = this.signInfo.healthDoctorName
 | 
	
	
		
			
				|  | @ -384,7 +407,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 		            		if(!vm.justDoc) {
 | 
	
		
			
				|  |  | 		            			vm.justDoc = vm.signInfo.doctorName
 | 
	
		
			
				|  |  | 		            		}
 | 
	
		
			
				|  |  | 		            		vm.warnMsg = "去年居民续签的全科医生" + vm.justDoc + "已不在您的团队,请重新选择一位全科医生"
 | 
	
		
			
				|  |  | 		            		vm.warnMsg = "去年签约的全科医生" + vm.justDoc + "已不在您的团队,请重新选择一位全科医生"
 | 
	
		
			
				|  |  | 							vm.justDoc = null
 | 
	
		
			
				|  |  | 							vm.signInfo.doctor = null
 | 
	
		
			
				|  |  | 		            		vm.signInfo.doctorName = null
 | 
	
	
		
			
				|  | @ -393,7 +416,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 							if(!vm.justHDoc) {
 | 
	
		
			
				|  |  | 		            			vm.justHDoc = vm.signInfo.healthDoctorName
 | 
	
		
			
				|  |  | 		            		}
 | 
	
		
			
				|  |  | 		            		vm.warnMsg = "去年居民续签的健管师" + vm.justHDoc + "已不在您的团队,请重新选择一位健管师"
 | 
	
		
			
				|  |  | 		            		vm.warnMsg = "去年签约的健管师" + vm.justHDoc + "已不在您的团队,请重新选择一位健管师"
 | 
	
		
			
				|  |  | 		            		vm.justHDoc = null
 | 
	
		
			
				|  |  | 		            		vm.signInfo.healthDoctor = null
 | 
	
		
			
				|  |  | 		            		vm.signInfo.healthDoctorName = null
 | 
	
	
		
			
				|  | @ -426,6 +449,10 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |     			this.isShowList4 = false;
 | 
	
		
			
				|  |  |     			this.isShowList3 = !this.isShowList3;
 | 
	
		
			
				|  |  |     		} else {
 | 
	
		
			
				|  |  |     			if(!this.signInfo.adminTeamCode) {
 | 
	
		
			
				|  |  |     				showWarningMessage("请先选择签约团队")
 | 
	
		
			
				|  |  |     				return false;
 | 
	
		
			
				|  |  |     			}
 | 
	
		
			
				|  |  |     			this.isShowList1 = false;
 | 
	
		
			
				|  |  |     			this.isShowList2 = false;
 | 
	
		
			
				|  |  |     			this.isShowList3 = false;
 | 
	
	
		
			
				|  | @ -437,6 +464,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |         	if(num == 1) { // 选择签约团队
 | 
	
		
			
				|  |  |         		this.isShowList1 = false;
 | 
	
		
			
				|  |  | 	            this.signInfo.adminTeamCode = data.id;
 | 
	
		
			
				|  |  | 	            this.signInfo.teamCode = data.id;
 | 
	
		
			
				|  |  | 	            if(this.doctorType == 2) {
 | 
	
		
			
				|  |  | 	            	this.signInfo.healthDoctor = null
 | 
	
		
			
				|  |  | 	            	this.signInfo.healthDoctorName = null
 | 
	
	
		
			
				|  | @ -497,10 +525,10 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  |         	}
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         lookPhoto: function(data) {
 | 
	
		
			
				|  |  |         	layer.open({
 | 
	
		
			
				|  |  |         	parent.photoLayerIndex = parent.layer.open({
 | 
	
		
			
				|  |  |         		type: 2,
 | 
	
		
			
				|  |  |         		area: ['100%', '100%'],
 | 
	
		
			
				|  |  |         		title: "凭证预览",
 | 
	
		
			
				|  |  |         		area: ['70%', '600px'],
 | 
	
		
			
				|  |  |         		title: false,
 | 
	
		
			
				|  |  |         		shade: 0.5,
 | 
	
		
			
				|  |  |         		shadeClose: true,
 | 
	
		
			
				|  |  |         		shift: 2,
 | 
	
	
		
			
				|  | @ -534,6 +562,7 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 						}
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 					vm.signInfo.adminTeamCode = 0;
 | 
	
		
			
				|  |  | 					vm.signInfo.teamCode = 0;
 | 
	
		
			
				|  |  | 					vm.signInfo.type = 2;
 | 
	
		
			
				|  |  | 					vm.signInfo.state = 0;
 | 
	
		
			
				|  |  | 					vm.sign();
 | 
	
	
		
			
				|  | @ -545,13 +574,22 @@ top.handleVue=new Vue({
 | 
	
		
			
				|  |  | 			});
 | 
	
		
			
				|  |  |         },
 | 
	
		
			
				|  |  |         sign: function() {// type:1签约 2拒签
 | 
	
		
			
				|  |  |         	if(this.signInfo.type == 1 && ((this.doctorType == 2 && !this.signInfo.healthDoctor) || (this.doctorType == 3 && !this.signInfo.doctor) || !this.signInfo.sevId || (!this.signInfo.disease && !this.signInfo.healthLabel && !this.signInfo.customLabel))) {
 | 
	
		
			
				|  |  |         	if(this.signInfo.type == 1 && (!this.signInfo.expenses || (this.doctorType == 2 && !this.signInfo.healthDoctor) || (this.doctorType == 3 && !this.signInfo.doctor) || !this.signInfo.sevId || (!this.signInfo.disease && !this.signInfo.healthLabel && !this.signInfo.customLabel))) {
 | 
	
		
			
				|  |  |         		showWarningMessage("请将填写完整签约信息!");
 | 
	
		
			
				|  |  |         		return false;
 | 
	
		
			
				|  |  |         	}
 | 
	
		
			
				|  |  |         	var vm = this,
 | 
	
		
			
				|  |  |     			loadding = layer.load(0, {shade: false});
 | 
	
		
			
				|  |  |     		if (httpData.status == 0) {
 | 
	
		
			
				|  |  |     			var param = vm.signInfo
 | 
	
		
			
				|  |  |     			if(vm.doctorType == 2) {
 | 
	
		
			
				|  |  |     				param.doctor = null
 | 
	
		
			
				|  |  |     				param.doctorName = null
 | 
	
		
			
				|  |  |     			}
 | 
	
		
			
				|  |  |     			if(vm.doctorType == 3) {
 | 
	
		
			
				|  |  |     				param.doctorHealth = null
 | 
	
		
			
				|  |  |     				param.doctorHealthName = null
 | 
	
		
			
				|  |  |     			}
 | 
	
		
			
				|  |  | 				signAPI.sign(vm.signInfo).then(function(res) {
 | 
	
		
			
				|  |  | 					layer.close(loadding)
 | 
	
		
			
				|  |  | 					if(res.status == 200) {
 |