Переглянути джерело

续签\转签历史信息带入

linehang 6 роки тому
батько
коміт
50b62673ff

+ 3 - 0
api/sign_api.js

@ -108,6 +108,9 @@
		},
		findMsgId: function(data) {
			return httpRequest.post("/doctor/message/find", {data: data})
		},
		getTeamNameByTeamCode: function() {
			return httpRequest.post("doctor/sign/getTeamNameByTeamCode", {data: data})
		}
	}
    exports.signAPI = signAPI;

+ 3 - 0
app/sign/css/sign_handle.css

@ -5,6 +5,7 @@
.lh80 {line-height: 81px;}
.b-r-50 {border-radius: 50%;}
ul {list-style: none;}
.w-20 {width: 20%;}
.w-20-1 {width: 20%; width: calc(20% - 1px);}
.w-30-1 {width: 30%; width: calc(30% - 1px);}
.w-40 {width: 40%;}
@ -13,6 +14,7 @@ ul {list-style: none;}
.w-50 {width: 50%;}
.w-50-1 {width: 50%;width: calc(50% - 1px);}
.w-60-1 {width: 60%;width: calc(60% - 1px);}
.w-80-1 {width: calc(80% - 1px);}
.w-60 {width: 60%;}
.h60 {height: 60px;}
.btn-red, .btn-red:hover, .btn-red:focus {background-color: red; color: #fff;}
@ -37,3 +39,4 @@ ul {list-style: none;}
	white-space: nowrap;
}
.c-red {color: red;}
.bgc-f5f5fa {background-color: #f5f5fa;}

+ 10 - 0
app/sign/html/sign_handle.html

@ -110,6 +110,16 @@
						</div>
					</div>
				</li>
				<li class="c-border-b clearfix bgc-f5f5fa" v-if="renewFlag == 2">
					<span class="fl w-20-1 pl20 c-999">历史签约团队</span>
					<span class="fl w-80-1 c-border-l pl20">{{patientInfo.jtSign.hospitalName}},{{patientInfo.jtSign.teamName}},{{patientInfo.jtSign.doctorName}},{{patientInfo.jtSign.doctorHealthName}}</span>
				</li>
				<li class="c-border-b clearfix bgc-f5f5fa" v-if="renewFlag">
					<span class="fl w-20-1 pl20 c-999">历史居民记录</span>
					<p class="fl w-80-1 c-border-l pl20">
						服务类型:<span v-for="(service, ind) in patientInfo.signFamilyServer" :key="ind"><span v-if="ind != 0">、</span>{{service.serverTypeName}}</span>,
						居民标签:<span v-for="(label, i) in patLabel" :key="i"><span v-if="i != 0">、</span>{{label.labelName}}</span></p>
				</li>
			</ul>
			<div class="c-t-center pt20">
				<span class="btn btn-red plr20" @click="refuse()">拒绝签约</span>

+ 38 - 1
app/sign/js/sign_handle.js

@ -52,7 +52,7 @@ top.handleVue=new Vue({
    	isShowList2: false,
    	isShowList3: false,
    	isShowList4: false,
    	patientInfo: null,
    	patientInfo: {jtSign: {}},
    	warnMsg: "",
    	signdictList: null,
    	teamList: null,
@ -62,6 +62,7 @@ top.handleVue=new Vue({
    	fileList: null,
    	serverName: null,
    	labelName: null,
    	patLabel: [],
    	signInfo: {
            signType: 1,
            signCode: httpData.signCode,
@ -154,6 +155,37 @@ top.handleVue=new Vue({
				}
			})
    	},
    	getTeamNameByTeamCode: function() {
    		var vm =this,
    			params = {
    				teamCode: vm.patientInfo.jtSign.adminTeamId
    			},
    			loadding = layer.load(0, {shade: false});
			signAPI.getTeamNameByTeamCode(params).then(function(res) {
				layer.close(loadding)
				if(res.status == 200) {
					vm.patientInfo.jtSign.teamName = res.data
				} else {
					showErrorMessage(res.msg);
				}
			})
    	},
    	patientLabel: function() {
    		var vm =this,
    			params = {
    				patient: httpData.patientCode,
    				labelType: ""
    			},
    			loadding = layer.load(0, {shade: false});
			signAPI.patientLabel(params).then(function(res) {
				layer.close(loadding)
				if(res.status == 200) {
					vm.patLabel = res.data
				} else {
					showErrorMessage(res.msg);
				}
			})
    	},
    	getSigndict: function() {
    		var vm =this,
    			loadding = layer.load(0, {shade: false});
@ -282,6 +314,11 @@ top.handleVue=new Vue({
					}
					vm.signInfo.expenses = vm.patientInfo.jtSign.expensesType
					vm.judgeTeamToDoc(vm.signInfo.adminTeamCode)
					// 查找之前签约的居民标签
			    	vm.patientLabel()
			    	if(vm.renewFlag == 2) { // 获取之前签约团队名字
			    		vm.getTeamNameByTeamCode()
			    	}
				} else {
					showErrorMessage(res.msg);
				}