12.4更新
This commit is contained in:
+35
-15
@@ -1,5 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import debounce from './../../../utils/debounce'
|
||||
import { API } from '../../../utils/network/api'
|
||||
import debounce from '../../../utils/debounce'
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -8,16 +8,44 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '病历信息', //导航栏 中间的标题
|
||||
},
|
||||
pathography_id:'',
|
||||
height: app.globalData.height,
|
||||
order_inquiry_id: "",
|
||||
order_inquiry_id:"",
|
||||
case_detail: {},
|
||||
imglist: []
|
||||
},
|
||||
onLoad(options){
|
||||
console.log("onLoad", options)
|
||||
this.setData({
|
||||
order_inquiry_id: options.order_inquiry_id
|
||||
})
|
||||
|
||||
if(options.order_inquiry_id){
|
||||
this.setData({
|
||||
order_inquiry_id: options.order_inquiry_id
|
||||
})
|
||||
|
||||
//获取患者问诊病例
|
||||
api.getInquiryDetail({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).then(res => {
|
||||
this.formatImgList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
if(options.pathography_id){
|
||||
this.setData({
|
||||
pathography_id: options.pathography_id
|
||||
})
|
||||
//获取患者问诊病例
|
||||
api.getPathographyDetail(options.pathography_id).then(response => {
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).then(res => {
|
||||
this.formatImgList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
goReport:debounce(function(event){
|
||||
@@ -74,15 +102,7 @@ Page({
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
//获取患者问诊病例
|
||||
api.getDoctorInquiryCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
case_detail: response.data
|
||||
})
|
||||
}).then(res => {
|
||||
this.formatImgList();
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
},
|
||||
|
||||
})
|
||||
@@ -1,6 +1,7 @@
|
||||
<wxs module="dateSubstr" src="./../../../utils/substr.wxs"></wxs>
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
|
||||
<view class="main_title">基础信息</view>
|
||||
<view class="data_box">
|
||||
<view class="data_box_top">
|
||||
@@ -10,8 +11,8 @@
|
||||
<view class="info">
|
||||
<view class="height info_item"><text class="info_title">身高:</text><text class="info_val">{{case_detail.height==null?'未知':case_detail.height + 'CM'}}</text></view>
|
||||
<view class="weight info_item"><text class="info_title">体重:</text><text class="info_val">{{case_detail.weight==null?'未知':case_detail.weight + 'KG'}}</text></view>
|
||||
<view class="minzu info_item"><text class="info_title">民族:</text><text class="info_val">{{case_detail.nation_name==''?'未知':case_detail.nation_name}}</text></view>
|
||||
<view class="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">{{case_detail.job_name==''?'未知':case_detail.job_name}}</text></view>
|
||||
<view class="minzu info_item"><text class="info_title">民族:</text><text class="info_val">{{case_detail.nation_name?case_detail.nation_name:'未知'}}</text></view>
|
||||
<view class="zhiye info_item"><text class="info_title">职业:</text><text class="info_val">{{case_detail.job_name?case_detail.job_name:'未知'}}</text></view>
|
||||
<view class="hunyin info_item"><text class="info_title">婚姻:</text><text class="info_val">{{case_detail.marital_status==0?'未婚':case_detail.marital_status==1?'已婚':case_detail.marital_status==2?'离异':'未知'}}</text></view>
|
||||
</view>
|
||||
<view class="disease_box">
|
||||
@@ -108,7 +109,31 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 50rpx;">
|
||||
|
||||
|
||||
<view wx:if="{{case_detail.order_prescription}}">
|
||||
<view class="main_title">处方信息</view>
|
||||
<view class="data_box">
|
||||
<view class="disease_box">
|
||||
<view class="disease_box_item" >
|
||||
<view class="title">诊断:</view>
|
||||
<view class="conent">{{case_detail.order_prescription.icd_name}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item" >
|
||||
<view class="title">时间:</view>
|
||||
<view class="conent">{{case_detail.order_prescription.doctor_created_time}}</view>
|
||||
</view>
|
||||
<view class="disease_box_item" >
|
||||
<view class="title">药品:</view>
|
||||
<view class="conent" wx:for="case_detail.order_prescription.product" wx:for-item="itemName">
|
||||
{{itemName}};
|
||||
</view>
|
||||
</view>
|
||||
<view class="disease_box_item" >
|
||||
<view class="title">用法:</view>
|
||||
<view class="conent">{{case_detail.order_prescription.single_use}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -30,24 +30,30 @@ page{
|
||||
color: #666666;
|
||||
}
|
||||
.info{
|
||||
|
||||
background: #FAFAFA;
|
||||
border-radius: 10rpx;
|
||||
padding-top: 10rpx;
|
||||
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 20rpx 0 0;
|
||||
padding-bottom: 20rpx;
|
||||
padding:10rpx 20rpx 20rpx;
|
||||
}
|
||||
.info_item{
|
||||
text-align: left;
|
||||
/* width: 190rpx; */
|
||||
width: 203rpx;
|
||||
/* height: 60rpx; */
|
||||
margin-top: 10rpx;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 20rpx;
|
||||
|
||||
align-items: flex-start;
|
||||
}
|
||||
.info_item:nth-child(3n){
|
||||
text-indent: 20rpx;
|
||||
}
|
||||
.info_title{
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
|
||||
Reference in New Issue
Block a user