分包医生

This commit is contained in:
zoujiandong
2024-01-16 14:59:06 +08:00
parent 562d4e9691
commit d5a9339ddd
1060 changed files with 3177 additions and 44707 deletions
@@ -0,0 +1,44 @@
import { API } from '../../../../utils/network/api'
const api = new API()
const app = getApp()
Page({
data: {
// 组件所需的参数
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '患者病历', //导航栏 中间的标题
},
// 此页面 页面内容距最顶部的距离
height: app.globalData.height,
order_inquiry_id: "",
order_prescription_id: "",
case_detail: {},
from: ""
},
onLoad(options) {
let order_inquiry_id = options.order_inquiry_id;
let order_prescription_id = options.order_prescription_id;
let from = options.from;
console.log("order_inquiry_id: ", order_inquiry_id);
this.setData({
order_inquiry_id: order_inquiry_id,
order_prescription_id: order_prescription_id,
from: from,
})
},
onShow(){
api.getCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
console.log(response.data);
this.setData({
case_detail: response.data
})
}).catch(errors => {
console.error(errors);
})
},
go(e){
let url = e.currentTarget.dataset.url;
app.go(url)
},
})
@@ -0,0 +1,12 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "../../../../commpents/te_navbar/index",
"van-button": "@vant/weapp/button/index"
},
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "患者病历",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
@@ -0,0 +1,28 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="user_info">
<view class="user_item">患者信息</view>
<view class="user_item">
<text class="item_title">姓名:</text>{{case_detail.name}}
<text class="item_title">性别:</text>{{case_detail.sex==1?'男':'女'}}
<text class="item_title">年龄:</text>{{case_detail.age}}岁
</view>
</view>
<view class="case_info">
<view class="item">疾病资料</view>
<view class="item"><text class="item_title">病情主要述:</text>{{case_detail.disease_desc}}</view>
<view class="item">
<text class="item_title">用药意向:</text>
<text wx:for="{{case_detail.product}}">{{item}}</text>
</view>
<view class="item"><text class="item_title">体重:</text>{{case_detail.weight}}KG</view>
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>{{case_detail.is_taboo==0?'否':'是'}}</view>
<view class="item"><text class="item_title">是否有药物过敏史:</text>{{case_detail.is_allergy_history==0?'否':'是'}}</view>
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>{{case_detail.is_pregnant==0?'否':'是'}}</view>
<view class="item"><text class="item_title">复诊凭证</text></view>
</view>
<view class="go_check" bindtap="go" data-url="/user/pages/yaoshi/prescription/prescription?order_prescription_id={{order_prescription_id}}">
<van-button wx:if="{{from == '1'}}" color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
</view>
<view class="bottom"></view>
</view>
@@ -0,0 +1,35 @@
page{
background-color: #F3F5F7;
}
.container{
letter-spacing: 3rpx;
}
.user_info{
background-color: #fff;
margin: 30rpx 0;
padding: 20rpx;
}
.case_info{
background-color: #fff;
padding: 20rpx;
}
.user_item{
padding: 20rpx 0;
}
.item{
padding: 30rpx 0;
border-bottom: 1rpx solid #F1F1F1;
}
.item_title{
color: #909090;
}
.bottom{
text-align: center;
margin: 30rpx 0;
font-size: 20rpx;
letter-spacing: 5rpx;
}
.go_check{
width: 90vw;
margin: 20rpx auto 50rpx auto;
}