Jelajahi Sumber

就医记录

zhengkaixin 4 tahun lalu
induk
melakukan
6333ee5e44

+ 1 - 1
src/projects/pension/apis/Master/hospital.js

@@ -49,7 +49,7 @@ export function medicalRecordAdd(params) {
 //就医记录详情
 export function medicalRecordDetail(id) {
 	return request({
-		url: '/mobile/medicalRecordsApi/medicalRecordDetail'+id,
+		url: '/mobile/medicalRecordsApi/medicalRecordDetail/'+id,
  		method: 'get',
 	})
 }

+ 1 - 1
src/projects/pension/views/Master/Hospital/Archives.vue

@@ -8,7 +8,7 @@
 				<form class="mui-input-group">
 					<div class="mui-input-row">
 						<label>头像</label>
-						<button class="mui-btn mui-btn-block  " type='button' style="width:65%">
+						<button class="mui-btn mui-btn-block  " type='button' style="width:65%;padding-right:15px">
 							<img :src="detail.faceImageUrl" />
 						</button>
 					</div>

+ 14 - 0
src/projects/pension/views/Master/Hospital/Form.vue

@@ -160,8 +160,10 @@
                                          mui.toast('请输入病因');
                                          return false;
                            }
+                           return true;
 		},
 		submit(){
+
 		if (!this.checkForm()) {
 		       return;
 		}
@@ -285,6 +287,18 @@
 	        	API.medicalRecordDetail(this.$route.query.id).then(res=>{
                     this.detail=res;
 				this.isLoading = false;
+				if(this.detail.resultImg){
+				 	        	this.resultImg=this.detail.resultImg.split(",")
+				}
+				if(this.detail.drugsImg){
+				 		 		this.drugsImg=this.detail.drugsImg.split(",")
+
+				}
+				if(this.detail.costImg){
+				 	        	this.costImg=this.detail.costImg.split(",")
+
+                				}
+
 
          		}).catch(error => {
                     this.isLoading = false;

+ 3 - 1
src/projects/pension/views/Master/Hospital/Home.vue

@@ -80,7 +80,9 @@
 					title: '账单记录'
 				},
 				isLoading: false,
-                info:{},
+                info:{
+                faceImageUrl:''
+                },
 				listForm: {
 					pageIndex: 1,
 					pageSize: 20,