Forráskód Böngészése

判断当前登录医生级别来处理签约消息

linehang 6 éve
szülő
commit
5e6a9f3461

+ 9 - 2
app/sign/html/sign_handle.html

@ -58,11 +58,18 @@
						</div>
						<p class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">全科医生</span>
							<span class="fl w-60-1 c-border-r pl20">{{patientInfo.jtSign.doctorName}}</span>
							<span v-if="doctorType == 2" class="fl w-60-1 c-border-r pl20">{{patientInfo.jtSign.doctorName}}</span>
							<div v-if="doctorType == 3" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(2)">{{signInfo.healthDoctorName ? signInfo.healthDoctorName : "请选择健康管理师"}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList4">
			                        <li class="cur-pit c-999" v-for="(member, index) in doctorList" :key="index" @click="selectLi(4, member)">{{member.name}}</li>
			                    </ul>
							</div>
						</p>
						<div class="m0 c-border-b clearfix">
							<span class="fl w-40 c-border-r pl20 c-999">健康管理师</span>
							<div class="c-position-r fl w-60-1 c-border-r">
							<span v-if="doctorType == 3" class="fl w-60-1 c-border-r pl20">{{patientInfo.jtSign.doctorName}}</span>
							<div v-if="doctorType == 2" class="c-position-r fl w-60-1 c-border-r">
								<p class="pl20 w-100 set-bg" @click="selectStatus(2)">{{signInfo.healthDoctorName ? signInfo.healthDoctorName : "请选择健康管理师"}}</p>
								<ul class="pull-list m0 p0 c-border-l c-border-r c-border-b" v-if="isShowList2">
			                        <li class="cur-pit c-999" v-for="(member, index) in memberList" :key="index" @click="selectLi(2, member)">{{member.name}}</li>

+ 2 - 2
app/sign/html/sign_manage.html

@ -182,7 +182,7 @@
                	signList: function() {
                		var vm = this
						var params = {
							doctorType: doctorType, //疾病类型
							doctorType: doctorType,
							status: vm.statusCode, //处理方式(1待签约 5待缴费 3已签约)
							page: vm.page,
							pageSize: 10,
@ -217,7 +217,7 @@
			            this.page = 1;
			            this.statusTit = data.statusName;
			            this.statusCode = data.statusCode;
			            this.signList();
			            this.signCount();
			        },
			        suosou: function() {
			        	this.page = 1;

+ 26 - 8
app/sign/js/sign_handle.js

@ -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;