Kaynağa Gözat

解决bug:签约处理居民信息不显示

chenyue 5 yıl önce
ebeveyn
işleme
ca44053623

+ 3 - 3
app/sign/html/sign_handle.html

@ -18,7 +18,7 @@
				</dt>
				<dd class="fl ml10 c-999">
					<p class="m0"><span class="c-333 c-f16">{{patientInfo.name}}</span><span class="ml10 c-f14">({{patientInfo.sex == 1 ? "男" : "女"}}&emsp;{{patientInfo.age && patientInfo.age > 0 ? patientInfo.age : "<1"}}岁)</span></p>
					<p v-if="!renewFlag || renewFlag == 'undefined'" class="c-f12 m0">申请时间: {{handleStr(patientInfo.jtSign.applyDate) || handleStr(patientInfo.applyDate)}}</p>
					<p v-if="!renewFlag || renewFlag == 'undefined'" class="c-f12 m0">申请时间: {{handleStr(patientInfo.jtSign?patientInfo.jtSign.applyDate:"") || handleStr(patientInfo.applyDate)|| "无时间记录"}}</p>
					<p v-if="renewFlag && renewFlag != 'undefined'" class="c-f12 m0">申请时间: {{applyDate}}</p>
				</dd>
			</dl>
@ -32,7 +32,7 @@
				</li>
				<li class="c-border-b clearfix">
					<span class="fl w-20-1 c-border-r pl20 c-999">医保卡号</span>
					<span class="fl w-30-1 c-border-r pl20">{{patientInfo.jtSign.ssc}}</span>
					<span class="fl w-30-1 c-border-r pl20">{{patientInfo.jtSign?patientInfo.jtSign.ssc:""}}</span>
					<span class="fl w-20-1 c-border-r pl20 c-999">医疗保险号</span>
					<span class="fl w-30-1 pl20">{{patientInfo.medicareNumber}}</span>
				</li>
@ -112,7 +112,7 @@
				</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}},{{hisTeamName}},{{patientInfo.jtSign.doctorName}},{{patientInfo.jtSign.doctorHealthName}}</span>
					<span class="fl w-80-1 c-border-l pl20">{{patientInfo.jtSign?patientInfo.jtSign.hospitalName:""}},{{hisTeamName}},{{patientInfo.jtSign?patientInfo.jtSign.doctorName:""}},{{patientInfo.jtSign?patientInfo.jtSign.doctorHealthName:""}}</span>
				</li>
				<li class="c-border-b clearfix bgc-f5f5fa" v-if="renewFlag == 1 || renewFlag == 2">
					<span class="fl w-20-1 pl20 c-999">历史居民记录</span>

+ 2 - 2
app/sign/js/sign_detail.js

@ -39,8 +39,8 @@ new Vue({
    	isSaveBtn: false,
    	isSaveBtn1: false,
    	isSaveBtn2: false,
    	patientInfo: null,
    	doctorTeam: null,
    	patientInfo: {jtSign:{}},
    	doctorTeam: {},
    	doctorList: null,
    	memberList: null,
    	dictList: null,

+ 15 - 11
app/sign/js/sign_handle.js

@ -1,7 +1,7 @@
var httpData=GetRequest(),
	doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'));
var applyDate=httpData.applyDate?decodeURI(httpData.applyDate):""
var refuseReason = null;
function showSuccessMessage(msg) {
@ -44,7 +44,7 @@ top.handleVue=new Vue({
    el: "#app",
    data: {
    	renewFlag: httpData.renewFlag, // 2 改签
    	applyDate: decodeURI(httpData.applyDate) || "",
    	applyDate: applyDate,
    	justDoc: null,
    	justHDoc: null,
    	doctorType: doctorInfo.doctorType,
@ -225,16 +225,20 @@ top.handleVue=new Vue({
			signAPI.signing(params).then(function(res) {
				layer.close(loadding)
				if(res.status == 200) {
					vm.patientInfo = res.data
				    var patientInfo=JSON.parse(JSON.stringify(vm.patientInfo))
				    vm.patientInfo={}
					vm.patientInfo = _.assign(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
					}
					if(res.data.jtSign){
					    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);
				}