Browse Source

签约非健管师显示

linehang 6 years ago
parent
commit
59d461772c
1 changed files with 12 additions and 2 deletions
  1. 12 2
      app/sign/js/sign_handle.js

+ 12 - 2
app/sign/js/sign_handle.js

@ -393,10 +393,10 @@ top.handleVue=new Vue({
					var judge = false
					$.each(res.data, function(i, v) {
						if(v.available) {
							if((vm.renewFlag == 1 && (vm.signInfo.doctor || vm.justDoc)) || v.code == vm.signInfo.doctor && vm.doctorType == 3) {
							if(v.code == vm.signInfo.doctor && vm.doctorType == 3) {
								judge = true
							}
							if((vm.renewFlag == 1 && (vm.signInfo.healthDoctor || vm.justHDoc)) || v.code == vm.signInfo.healthDoctor && vm.doctorType == 2) {
							if(v.code == vm.signInfo.healthDoctor && vm.doctorType == 2) {
								judge = true
			            	}
						}
@ -405,6 +405,11 @@ top.handleVue=new Vue({
		            });
		            if(!judge && httpData.status == 1) {
		            	if(vm.doctorType == 3) {
		            		if(!vm.justDoc && !vm.signInfo.doctorName) {
		            			vm.signInfo.doctorName = vm.signInfo.healthDoctorName
		            			vm.signInfo.doctor = vm.signInfo.healthDoctor
		            			return false
		            		}
		            		if(!vm.justDoc) {
		            			vm.justDoc = vm.signInfo.doctorName
		            		}
@ -414,6 +419,11 @@ top.handleVue=new Vue({
		            		vm.signInfo.doctorName = null
		            	}
						if(vm.doctorType == 2) {
							if(!vm.justHDoc && !vm.signInfo.healthDoctorName) {
		            			vm.signInfo.healthDoctorName = vm.signInfo.doctorName
		            			vm.signInfo.healthDoctor = vm.signInfo.doctor
		            			return false
		            		}
							if(!vm.justHDoc) {
		            			vm.justHDoc = vm.signInfo.healthDoctorName
		            		}