소스 검색

新签全科接口对接、修改必填

linehang 6 년 전
부모
커밋
42eb63522a
1개의 변경된 파일24개의 추가작업 그리고 3개의 파일을 삭제
  1. 24 3
      app/sign/js/sign_handle.js

+ 24 - 3
app/sign/js/sign_handle.js

@ -193,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);
				}
@ -399,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
@ -408,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
@ -441,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;
@ -562,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) {