Browse Source

康复个人管理界面开发

linehang 5 years ago
parent
commit
ee7c90df5d
2 changed files with 44 additions and 39 deletions
  1. 7 7
      api/http-request.js
  2. 37 32
      app/recover/html/personal-manage.html

+ 7 - 7
api/http-request.js

@ -1,5 +1,5 @@
(function($) {
    var publish_version = false;
    var publish_version = true;
    var isInner = false; //发布线上后有内外网的配置
    var docInfo = "app_storage";
    var agentName = "wlyyAgentForDoc";
@ -10,10 +10,10 @@
    localStorage.setItem('WLYY_IMEI', IMEI)
    $.support.cors = true;
    if(publish_version) { // 生产环境配置
        server = "http://www.xmtyw.cn/wlyytest/"
        server = "http://www.xmtyw.cn/wlyy/"
        imserver = "http://27.155.101.77:3000/api/v2";
        socketUrl = "http://27.155.101.77:3000";
        articleServer = "http://www.xmtyw.cn/wlyytest/"
        articleServer = "http://www.xmtyw.cn/wlyy/"
        loginUrl = "../../login/login.html";
        imgServer = "http://www.xmtyw.cn/";
        if(isInner){
@ -25,11 +25,11 @@
            imgServer = "http://10.95.22.10:8011/";
        }
    } else { // 测试环境配置
        server = "http://192.168.131.172:9092/wlyy/"
        imserver = "http://192.168.131.172:3000/api/v2";
        socketUrl = "http://192.168.131.172:3000";
        server = "http://172.26.0.118:9092/wlyy/"
        imserver = "http://172.26.0.118:3000/api/v2";
        socketUrl = "http://172.26.0.118:3000";
//      server = "http://192.168.131.154:8080/"
        articleServer="http://192.168.131.172:9092/wlyy/"
        articleServer="http://172.26.0.118:9092/wlyy/"
//   server = "http://192.168.131.130:8080/";
//		server = "http://192.168.131.123:8080/"; // 明芬
//      server = "http://192.168.131.127:8060/"; //逸祥

+ 37 - 32
app/recover/html/personal-manage.html

@ -11,6 +11,7 @@
		<link rel="stylesheet" type="text/css" href="../css/personal-manage.css" />
		<style>
			.content {height: 100%}
			.h380 {height: 380px;}
		</style>
	</head>
	<body class="m0">
@ -46,7 +47,7 @@
    			</div>
    			<h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>服务医生</h4>
    			<!--<div class="pt10 pb10" style="overflow: hidden; height: 190px;">-->
    			<div class="pt10 pb10 ui-col-1" style="overflow: hidden; ">
    			<div class="pt10 pb10 ui-col-0" style="overflow: hidden; height: 190px;">
	    			<ul class="p0 m0 c-h100" style="overflow: auto;">
	    				<li class="clearfix plr20 ptb10 doc-li" v-for="(docInfo, index) in recoverPatInfo.serviceDoctorList" :key="index">
	    					<div class="fl set-photo">
@ -63,8 +64,8 @@
	    				</li>
	    			</ul>
    			</div>
    			<!--<h4 class="m0 pl10 lh40 c-border-b">出院小结</h4>
    			<div class="ptb10" style="overflow: hidden; height: calc(100% - 481px);">
    			<h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>医嘱小结</h4>
    			<div class="ptb10 ui-col-1" style="overflow: hidden;">
    				<ul class="m0 p0 c-border b-r-3 c-h100" style="overflow: auto;">
    					<li class="pt5 plr10">
    						<p class="c-999 lh40 clearfix">
@ -76,7 +77,7 @@
    						</div>
    					</li>
    				</ul>
    			</div>-->
    			</div>
	        </div>
	        <div class="ui-col-1 c-h100 w-100-350 ui-grid">
	        	<div class="ui-col-1 c-h100 ui-grid ui-grid-vertical">
@ -111,7 +112,7 @@
		    			</div>
	    			<!--</div>-->
	    			<h4 class="m0 pl15 pr5 lh40 c-border-tb clearfix c-position-r"><em class="c-position-a set-blue-span"></em>康复相关记录<span class="fr w80 c-333 c-f12 c-t-center">已完成:{{finishData.planDetailFinish}}</span></h4>
	    			<div class="ui-col-1" style="overflow: hidden; overflow-y: scroll;">
	    			<div class="ui-col-1" style="overflow: hidden; overflow-y: auto;">
	    				<ul class="p0 m0 c-h100 c-999">
	    					<li class="clearfix plr10 cur-pit record-li" v-for="(plan, index) in planDetailList" :class="{'bgc-dff5fc c-12b7f5':plan.istaDay}" @click="lookProject(plan)">
	    						<div class="fl w80 ptb10 c-t-right">
@ -137,36 +138,40 @@
	    				</ul>
	    			</div>
	        	</div>
	        	<div class="ui-col-0 w300 c-h100 c-border-l">
	        		<div class="plr5 c-h100">
	        			<h4 class="m0 pl15 pr5 lh40 c-border-b clearfix c-position-r"><em class="c-position-a set-blue-span"></em>就诊记录</h4>
	        			<div class="lh30 c-border-b c-t-center clearfix">
	        	<div class="ui-col-0 w350 c-h100 c-border-l ui-grid ui-grid-vertical">
	        		<div class="ui-col-0">
	        			<h4 class="m0 pl15 pr5 lh40 c-border-b clearfix c-position-r"><em class="c-position-a set-blue-span"></em>体征记录</h4>
	        			<div class="h380">
	        				
	        			</div>
	        		</div>
	        		<div class="plr5 ui-col-1 ui-grid ui-grid-vertical">
	        			<h4 class="ui-col-0 m0 pl15 pr5 lh40 c-border-b clearfix c-position-r"><em class="c-position-a set-blue-span"></em>就诊记录</h4>
	        			<div class="ui-col-0 lh30 c-border-b c-t-center clearfix">
	        				<span class="fl w96 cur-pit" :class="{'active':eventType == 1}" @click="selectType(1)">门诊</span>
	        				<span class="fl w96 cur-pit c-border-l" :class="{'active':eventType == 2}" @click="selectType(2)">住院</span>
	        				<span class="fl w96 cur-pit c-border-l" :class="{'active':eventType == 3}" @click="selectType(3)">体检</span>
	        			</div>
	        			<div style="overflow: hidden; height: calc(100% - 72px);">
	        				<ul class="c-h100 p0 m0" style="overflow: auto;">
	        					<li class="clearfix" v-for="(record, index) in seeRecord" :key="index">
	        						<div class="fl set-dianxian h73 plr10 pt20 clerfix">
	    								<span class="fl mlr5 set-row bgc-red" v-if="record.eventType == 2"></span>
	    								<span class="fl mlr5 set-row bgc-green" v-if="record.eventType == 3"></span>
	    								<span class="fl mlr5 set-row bgc-orange" v-if="record.eventType == 1"></span>
        				<ul class="ui-col-1 p0 m0" style="overflow: auto;">
        					<li class="clearfix" v-for="(record, index) in seeRecord" :key="index">
        						<div class="fl set-dianxian h73 plr10 pt20 clerfix">
    								<span class="fl mlr5 set-row bgc-red" v-if="record.eventType == 2"></span>
    								<span class="fl mlr5 set-row bgc-green" v-if="record.eventType == 3"></span>
    								<span class="fl mlr5 set-row bgc-orange" v-if="record.eventType == 1"></span>
    							</div>
    							<div class="fl w-100-60 pt15">
	    							<div class=" c-border b-r-3">
	    								<p class="m0 p0 plr5 c-fff bgc-red lh22 clearfix" v-if="record.eventType == 2">住院<span class="fr">{{record.eventDate}}</span></p>
	    								<p class="m0 p0 plr5 c-fff bgc-green lh22 clearfix" v-if="record.eventType == 3">体检<span class="fr">{{record.eventDate}}</span></p>
	    								<p class="m0 p0 plr5 c-fff bgc-orange lh22 clearfix" v-if="record.eventType == 1">门诊<span class="fr">{{record.eventDate}}</span></p>
	    								<p class="m0 p0 plr5 pt5 lh22">{{record.dianosis}}</p>
	    								<p class="m0 p0 pr5 pb5 pl20 set-hospital">{{record.orgName}}</p>
	    							</div>
	    							<div class="fl w-100-60 pt15">
		    							<div class=" c-border b-r-3">
		    								<p class="m0 p0 plr5 c-fff bgc-red lh22 clearfix" v-if="record.eventType == 2">住院<span class="fr">{{record.eventDate}}</span></p>
		    								<p class="m0 p0 plr5 c-fff bgc-green lh22 clearfix" v-if="record.eventType == 3">体检<span class="fr">{{record.eventDate}}</span></p>
		    								<p class="m0 p0 plr5 c-fff bgc-orange lh22 clearfix" v-if="record.eventType == 1">门诊<span class="fr">{{record.eventDate}}</span></p>
		    								<p class="m0 p0 plr5 pt5 lh22">{{record.dianosis}}</p>
		    								<p class="m0 p0 pr5 pb5 pl20 set-hospital">{{record.orgName}}</p>
		    							</div>
	    							</div>
	        					</li>
	        					<li class="c-t-center c-12b7f5" v-if="hasMoreRecord">查看更多</li>
	        					<li class="c-t-center ptb10" v-if="!seeRecord.length">无就诊记录</li>
	        				</ul>
	        			</div>
    							</div>
        					</li>
        					<li class="c-t-center c-12b7f5" v-if="hasMoreRecord">查看更多</li>
        					<li class="c-t-center ptb10" v-if="!seeRecord.length">无就诊记录</li>
        				</ul>
	        		</div>
	        	</div>
		        </div>
@ -217,8 +222,8 @@
                data: {
                	doctorType: doctorType,
                	isMobile: true,
                	recoverPatInfo: null,
                	finishData: null,
                	recoverPatInfo: {},
                	finishData: {},
                	seeRecord: [],
                	planDetailList: [],
                	isFinishMore: false,