12.19 患者bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
const app = getApp()
|
||||
import {pathographyDetail} from "../../api/sickRecord"
|
||||
import {throttle} from "../../utils/util"
|
||||
import {pathographyListDelte} from "../../api/sickRecord"
|
||||
import {pathographyDelete} from "../../api/sickRecord"
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -33,7 +33,7 @@ Page({
|
||||
}),
|
||||
previewImage(event) {
|
||||
let id = event.currentTarget.dataset.id;
|
||||
let urls = this.data.sick.diagnose_images;
|
||||
let urls = this.data.sickInfo.diagnose_images;
|
||||
wx.previewImage({
|
||||
current: urls[id], // 当前显示图片的http链接
|
||||
urls: urls // 需要预览的图片http链接列表
|
||||
@@ -41,7 +41,7 @@ Page({
|
||||
},
|
||||
handlePathographyListDelte(){
|
||||
let id=this.data.pathography_id
|
||||
pathographyListDelte(id).then(data=>{
|
||||
pathographyDelete(id).then(data=>{
|
||||
wx.showToast({
|
||||
title: '删除成功',
|
||||
icon:'none'
|
||||
|
||||
@@ -19,12 +19,16 @@
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="infocell" wx:if="{{!(sickInfo.height==null && sickInfo.weight==null && sickInfo.nation_name==null && sickInfo.job_name==null && sickInfo.marital_status==null)}}">
|
||||
<view class="cell">身高:<text class="desc">{{sickInfo.height}}cm</text></view>
|
||||
<view class="cell">体重:<text class="desc">{{sickInfo.weight}}kg
|
||||
</text></view>
|
||||
<view class="cell">民族:<text class="desc">{{sickInfo.nation_name}}</text></view>
|
||||
<view class="cell" >职业:<text class="desc">{{sickInfo.job_name}}</text></view>
|
||||
<view class="cell">婚姻:<text class="desc" wx:if="{{sickInfo.marital_status==0}}">未婚</text><text wx:elif="{{sickInfo.marital_status==1}}">已婚</text><text wx:elif="{{sickInfo.marital_status==2}}">离异</text></view>
|
||||
<view class="rowcell">
|
||||
<view class="cell">身高:<text class="desc" wx:if="{{sickInfo.height}}">{{sickInfo.height}}cm</text> <text class="desc" wx:else>未知</text></view>
|
||||
<view class="cell">体重:<text class="desc" wx:if="{{sickInfo.weight}}">{{sickInfo.weight}}kg
|
||||
</text><text class="desc" wx:else>未知</text></view>
|
||||
<view class="cell">民族:<text class="desc" wx:if="{{sickInfo.nation_name}}">{{sickInfo.nation_name}}</text><text class="desc" wx:else>未知</text></view>
|
||||
</view>
|
||||
<view class="rowcell">
|
||||
<view class="cell" >职业:<text class="desc" wx:if="{{sickInfo.job_name}}">{{sickInfo.job_name}}</text><text class="desc" wx:else>未知</text></view>
|
||||
<view class="cell">婚姻:<text class="desc" wx:if="{{sickInfo.marital_status==0}}">未婚</text><text wx:elif="{{sickInfo.marital_status==1}}">已婚</text><text wx:elif="{{sickInfo.marital_status==2}}">离异</text><text class="desc" wx:else>未知</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="row" wx:if="{{sickInfo.disease_desc}}">
|
||||
@@ -33,7 +37,7 @@
|
||||
</view>
|
||||
<view class="row" wx:if="{{sickInfo.diagnosis_date}}">
|
||||
<view class="name">确诊日期:</view>
|
||||
<view class="desc">{{sickInfo.diagnosis_date}}</view>
|
||||
<view class="desc">{{filters.transforDay(sickInfo.diagnosis_date,"date")}}</view>
|
||||
</view>
|
||||
<view class="row" wx:if="{{sickInfo.diagnosis_hospital}}">
|
||||
<view class="name">确诊医院:</view>
|
||||
@@ -61,7 +65,8 @@
|
||||
<view class="name">复诊凭证(病例/处方单/检查报告/住院单)</view>
|
||||
</view>
|
||||
<view class="imgtip">
|
||||
<image src="{{sickInfo}}" class="img" wx:for="{{sickInfo.diagnose_images}}" mode="aspectFill" wx:for-index="idx" wx:key="idx" bindtap="previewImage" data-id="{{idx}}" ></image>
|
||||
<image src="{{item}}" class="img" wx:for="{{sickInfo.diagnose_images}}" mode="aspectFill" wx:for-index="idx" wx:key="idx" bindtap="previewImage" data-id="{{idx}}" ></image>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -83,7 +88,7 @@
|
||||
<view class="rowtip" wx:if="{{sickInfo.is_pregnant!=null}}">
|
||||
<view class="row">
|
||||
<view class="name">是否备孕、妊娠或者哺乳期:</view>
|
||||
<view class="desc">{{sickInfo.is_pregnant==0?"无":'是'}}</view>
|
||||
<view class="desc">{{sickInfo.is_pregnant==0?"否":'是'}}</view>
|
||||
</view>
|
||||
<view class="tip" wx:if="{{sickInfo.pregnant}}">{{sickInfo.pregnant}}</view>
|
||||
</view>
|
||||
|
||||
@@ -58,11 +58,18 @@ padding:20rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.infocell .cell{
|
||||
flex:1;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
line-height: 60rpx;
|
||||
margin-right: 21rpx;
|
||||
|
||||
}
|
||||
.infocell .cell:nth-child(2){
|
||||
text-align: center;
|
||||
}
|
||||
.infocell .cell:nth-child(3){
|
||||
margin-right: 0rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.cell .desc{
|
||||
@@ -99,4 +106,23 @@ color: #666666;
|
||||
padding:20rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.img{
|
||||
width:200rpx;
|
||||
margin-right: 25rpx;
|
||||
height:200rpx;
|
||||
}
|
||||
.imgtip{
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.img:nth-child(3n){
|
||||
margin-right: 0rpx;
|
||||
}
|
||||
.rowcell{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.rowcell:last-child{
|
||||
width:66.66%;
|
||||
}
|
||||
Reference in New Issue
Block a user