优化
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// Pages/authentication/authentication.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@@ -8,9 +9,8 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '实名认证', //导航栏 中间的标题
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
height: app.globalData.height,
|
||||
info: {}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
@@ -19,5 +19,14 @@ Page({
|
||||
this.setData({
|
||||
nbLoading: false,
|
||||
})
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,18 +1,18 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<van-cell-group>
|
||||
<van-cell size="large" title="真实姓名" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="联系邮箱" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="所在医疗机构" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="所在科室" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" is-link required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="医龄" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="执业经历" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="擅长" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="真实姓名" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_name}}" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_num}}" />
|
||||
<van-cell size="large" title="联系邮箱" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="所在医疗机构" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="所在科室" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.department_custom_name}}" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.pharmacist_title}}" />
|
||||
<van-cell size="large" title="医龄" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="执业经历" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
<van-cell size="large" title="擅长" title-width="120rpx" required title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="缺少字段" />
|
||||
</van-cell-group>
|
||||
<view class="submit">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">下一步</van-button>
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">下一步(去干啥?)</van-button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -1,4 +1,5 @@
|
||||
// Pages/home.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
/**
|
||||
@@ -12,7 +13,13 @@ Page({
|
||||
title: '药师端', //导航栏 中间的标题
|
||||
},
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height
|
||||
height: app.globalData.height,
|
||||
pharmacist: {},
|
||||
audit_number: 0,
|
||||
data_list_0: [],
|
||||
data_list_1: [],
|
||||
data_list_2: [],
|
||||
data_list_3: [],
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@@ -28,5 +35,74 @@ Page({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
api.getPharmacistIndex().then(response => {
|
||||
this.setData({
|
||||
pharmacist: response.data.pharmacist,
|
||||
audit_number: response.data.audit_number
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
|
||||
this.getPharmacistPrescription();
|
||||
},
|
||||
getPharmacistPrescription(){
|
||||
let params = {};
|
||||
let active = this.data.active;
|
||||
let pharmacist_audit_status = 0;
|
||||
let platform_audit_status = 1;
|
||||
|
||||
if(active == 0){
|
||||
pharmacist_audit_status = 0;
|
||||
platform_audit_status = 0;
|
||||
}
|
||||
if(active == 1){
|
||||
pharmacist_audit_status = 1;
|
||||
platform_audit_status = 1;
|
||||
}
|
||||
if(active == 2){
|
||||
pharmacist_audit_status = 2;
|
||||
platform_audit_status = 0;
|
||||
}
|
||||
if(active == 3){
|
||||
pharmacist_audit_status = 1;
|
||||
platform_audit_status = 2;
|
||||
}
|
||||
params.pharmacist_audit_status = pharmacist_audit_status;
|
||||
params.platform_audit_status = platform_audit_status;
|
||||
let data_name = "data_list_"+active;
|
||||
api.getPharmacistPrescription(params).then(response => {
|
||||
this.setData({
|
||||
[data_name]: response.data.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
onChange(e){
|
||||
console.log(e)
|
||||
this.setData({
|
||||
active: e.detail.index
|
||||
})
|
||||
this.getPharmacistPrescription();
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url)
|
||||
},
|
||||
switchStatus(){
|
||||
let is_online = this.data.pharmacist.is_online;
|
||||
if(is_online == 0){
|
||||
is_online = 1
|
||||
}else if(is_online == 1){
|
||||
is_online = 0
|
||||
}
|
||||
api.putPharmacistOnOff({is_online: is_online}).then(response => {
|
||||
this.setData({
|
||||
"pharmacist.is_online": is_online
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
+65
-51
@@ -2,100 +2,114 @@
|
||||
<view class="container">
|
||||
<view class="main title">
|
||||
<view class="photo">
|
||||
<t-avatar class="avatar-example" width="20" image="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png" />
|
||||
<t-avatar class="avatar-example" width="20" image="{{pharmacist.avatar}}" />
|
||||
</view>
|
||||
<view class="name">
|
||||
<view class="realname">李四</view>
|
||||
<view class="today_num">今日审方 9</view>
|
||||
<view class="realname">{{pharmacist.user_name}}</view>
|
||||
<view class="today_num">今日审方 {{audit_number}}</view>
|
||||
</view>
|
||||
<view class="status">
|
||||
<view class="status_text status_offline">离线</view>
|
||||
<view class="status" bindtap="switchStatus">
|
||||
<view class="status_text {{pharmacist.is_online==1?'status_online':'status_offline'}}">{{pharmacist.is_online==1?'在线':'离线'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main content">
|
||||
<van-tabs active="{{ active }}" color="{{ active_color }}" bind:change="onChange">
|
||||
<van-tab title="待审核处方">
|
||||
<view class="item">
|
||||
<view class="item" wx:for="{{data_list_0}}">
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="pre_content">处方订单号:{{item.prescription_code}}</view>
|
||||
<view class="end_content">
|
||||
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<!-- <navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</navigator>
|
||||
</navigator> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content">
|
||||
<navigator url="/Pages/yaoshi/medicalrecord/medicalrecord" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</navigator>
|
||||
<view class="pre_content">开方时间:{{item.created_at}}</view>
|
||||
<view class="end_content" bindtap="go" data-url="/Pages/yaoshi/medicalrecord/medicalrecord?order_inquiry_id={{item.order_inquiry_id }}&order_prescription_id={{item.order_prescription_id}}">
|
||||
<van-button type="primary" color="#ec871e" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<view class="pre_content">{{item.patient_name}}/{{item.patient_sex==1?'男':'女'}}/{{item.patient_age}}岁</view>
|
||||
<view class="end_content" bindtap="go" data-url="/Pages/yaoshi/prescription/prescription?order_prescription_id={{item.order_prescription_id}}">
|
||||
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item">
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</van-tab>
|
||||
<van-tab title="已审核处方">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: #2196f3;">通过</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
<van-tab title="驳回处方">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: red;">驳回</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
<van-tab title="不通过">
|
||||
<view class="item">
|
||||
<view class="pre_content">
|
||||
处方订单号 2023010510324649
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="mini">迷你按钮</van-button>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">开方时间:2023-01-16 08:52</view>
|
||||
<view class="end_content" style="color: red;">驳回</view>
|
||||
</view>
|
||||
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">张三/男/45岁</view>
|
||||
<view class="end_content">
|
||||
<!-- <van-button type="primary" color="linear-gradient(to bottom, #5EA8D5, #63CFEA)" size="small">去审方</van-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</view>
|
||||
<view style="height: 60px;">
|
||||
<!-- 适配底部tabbar -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -40,15 +40,18 @@ page{
|
||||
.status_offline{
|
||||
background-color: #BFBFBF;
|
||||
}
|
||||
.status_online{
|
||||
background-color: rgb(124, 231, 124);
|
||||
}
|
||||
.status_text{
|
||||
display: inline-block;
|
||||
padding: 10rpx 20rpx;
|
||||
border-radius: 20rpx;
|
||||
word-spacing: 10rpx;
|
||||
letter-spacing: 10rpx;
|
||||
float: right;
|
||||
margin-right: 25rpx;
|
||||
font-size: 20rpx;
|
||||
display: flex;
|
||||
width: 50rpx;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
.custom-tabs {
|
||||
margin-bottom: 32rpx;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//index.js
|
||||
//获取应用实例
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: {
|
||||
// 组件所需的参数
|
||||
@@ -11,9 +10,21 @@ Page({
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height ,
|
||||
height: app.globalData.height,
|
||||
info: ""
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onShow(){
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
+10
-10
@@ -1,19 +1,19 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||
<text class="name">李四</text>
|
||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<van-cell-group>
|
||||
<van-cell size="large" title="姓名" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="李四" />
|
||||
<van-cell size="large" title="性别" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="年龄" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="手机号码" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="我的地址" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="科室" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="内容" />
|
||||
<van-cell size="large" title="姓名" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" />
|
||||
<van-cell size="large" title="性别" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.sex==1?'男':'女'}}" />
|
||||
<van-cell size="large" title="年龄" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.age}}" />
|
||||
<van-cell size="large" title="身份证号" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.card_num}}" />
|
||||
<!-- <van-cell size="large" title="手机号码" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" /> -->
|
||||
<!-- <van-cell size="large" title="我的地址" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.user_name}}" /> -->
|
||||
<van-cell size="large" title="科室" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.department_custom_name}}" />
|
||||
<van-cell size="large" title="职称" title-width="120rpx" title-style="text-align: justify;text-justify:distribute-all-lines; text-align-last: justify;" value="{{info.pharmacist_title}}" />
|
||||
</van-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
@@ -14,6 +14,5 @@
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
width: 60rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//index.js
|
||||
//获取应用实例
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: {
|
||||
// 组件所需的参数
|
||||
@@ -9,11 +8,34 @@ Page({
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '患者病历', //导航栏 中间的标题
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height ,
|
||||
height: app.globalData.height,
|
||||
order_inquiry_id: "",
|
||||
order_prescription_id: "",
|
||||
case_detail: {}
|
||||
},
|
||||
onLoad(options) {
|
||||
let order_inquiry_id = options.order_inquiry_id;
|
||||
let order_prescription_id = options.order_prescription_id;
|
||||
console.log("order_inquiry_id: ", order_inquiry_id);
|
||||
this.setData({
|
||||
order_inquiry_id: order_inquiry_id,
|
||||
order_prescription_id: order_prescription_id,
|
||||
})
|
||||
},
|
||||
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)
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -3,27 +3,26 @@
|
||||
<view class="user_info">
|
||||
<view class="user_item">患者信息</view>
|
||||
<view class="user_item">
|
||||
<text class="item_title">姓名:</text>张三
|
||||
<text class="item_title">性别:</text>男
|
||||
<text class="item_title">年龄:</text>30岁
|
||||
<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>我问问</view>
|
||||
<view class="item"><text class="item_title">用药意向:</text>【未匹配】连花清瘟胶囊*1</view>
|
||||
<view class="item"><text class="item_title">体重:</text>56KG</view>
|
||||
<view class="item"><text class="item_title">本次用药已相关确认病症:</text>无</view>
|
||||
<view class="item"><text class="item_title">是否服用过您想购买的药品且无相关禁忌症:</text>是</view>
|
||||
<view class="item"><text class="item_title">是否有药物过敏史:</text>否</view>
|
||||
<view class="item"><text class="item_title">您的肝功能、肾功能是否存在异常:</text>否</view>
|
||||
<view class="item"><text class="item_title">您是否处于备孕、妊娠、哺乳期:</text>否</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">
|
||||
<navigator url="/Pages/yaoshi/prescription/prescription" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
|
||||
</navigator>
|
||||
<view class="go_check" bindtap="go" data-url="/Pages/yaoshi/prescription/prescription?order_prescription_id={{order_prescription_id}}">
|
||||
<van-button color="linear-gradient(to right, #4CABEA, #64CFE9)" block round type="info">前往审方</van-button>
|
||||
</view>
|
||||
<view class="bottom">肝胆相照提供技术支持</view>
|
||||
<view class="bottom"></view>
|
||||
</view>
|
||||
@@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F3F5F7;
|
||||
}
|
||||
.container{
|
||||
letter-spacing: 3rpx;
|
||||
background-color: #F3F5F7;
|
||||
height: 100vh;
|
||||
}
|
||||
.user_info{
|
||||
background-color: #fff;
|
||||
|
||||
+13
-15
@@ -1,31 +1,29 @@
|
||||
// Pages/my/my.js
|
||||
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,
|
||||
height: app.globalData.height,
|
||||
info:{}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 1, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
},
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<t-avatar class="avatar" size="large" image="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yaoshi_default_photo.png" />
|
||||
<text class="name">李四</text>
|
||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<navigator url="/Pages/yaoshi/info/info" open-type="navigate" hover-class="other-navigator-hover">
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
width: 60rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.my{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import Toast from '@vant/weapp/toast/toast'
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
@@ -12,10 +14,15 @@ Page({
|
||||
},
|
||||
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
height: app.globalData.height,
|
||||
order_prescription_id: ""
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
onLoad(options) {
|
||||
let order_prescription_id = options.order_prescription_id;
|
||||
console.log("order_prescription_id: ", order_prescription_id)
|
||||
this.setData({
|
||||
order_prescription_id: order_prescription_id
|
||||
})
|
||||
},
|
||||
|
||||
onConfirmReason(event) {
|
||||
@@ -27,7 +34,6 @@ Page({
|
||||
},
|
||||
|
||||
onCancelReason() {
|
||||
Toast('取消');
|
||||
this.setData({ reasonshow: false });
|
||||
},
|
||||
|
||||
@@ -53,21 +59,34 @@ Page({
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
|
||||
submitBohui() {
|
||||
submitBohui(e) {
|
||||
console.log(444);
|
||||
Toast.loading({
|
||||
message: '加载中...',
|
||||
forbidClick: true,
|
||||
onClose: () => {
|
||||
console.log('执行OnClose函数');
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
});
|
||||
|
||||
this.putPharmacistPrescriptionVerify(e);
|
||||
},
|
||||
|
||||
submit(){
|
||||
console.log(555);
|
||||
},
|
||||
onShow(){
|
||||
api.getPharmacistPrescriptioninfo({order_prescription_id: this.data.order_prescription_id}).then(response => {
|
||||
console.log(response.data);
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
putPharmacistPrescriptionVerify(e){
|
||||
console.log(e)
|
||||
let params = {};
|
||||
params.pharmacist_audit_status = e.currentTarget.dataset.pharmacist_audit_status;
|
||||
if(params.pharmacist_audit_status == 2){
|
||||
params.pharmacist_fail_reason = this.data.resonText;
|
||||
}
|
||||
params.order_prescription_id = this.data.order_prescription_id;
|
||||
api.putPharmacistPrescriptionVerify(params).then(response => {
|
||||
console.log(response.data);
|
||||
Toast.success("处理成功");
|
||||
setTimeout(() => {
|
||||
wx.navigateBack();
|
||||
}, 1000);
|
||||
}).catch(errors => {console.error(errors);})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -14,19 +14,22 @@
|
||||
<text decode="true"> 驳回 </text>
|
||||
</van-button>
|
||||
</view>
|
||||
<view class="button_item">
|
||||
<view class="button_item" bindtap="putPharmacistPrescriptionVerify" data-pharmacist_audit_status="1">
|
||||
<van-button round type="primary" bind:click="submit">
|
||||
<text decode="true"> 通过 </text>
|
||||
</van-button>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20rpx;">
|
||||
|
||||
</view>
|
||||
|
||||
<van-popup show="{{ bohuishow }}" bind:close="onClose">
|
||||
<view class="pop">
|
||||
<van-cell size="large" title="驳回理由:" is-link value="{{ resonText }}" bind:click="showReasonPopup"/>
|
||||
<view class="pop_button">
|
||||
<view class="pop_button_txt" bindtap="closePopup">取消</view>
|
||||
<view class="pop_button_txt" bindtap="submitBohui">确认驳回</view>
|
||||
<view class="pop_button_txt" bindtap="submitBohui" data-pharmacist_audit_status="2">确认驳回</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
.container{
|
||||
page{
|
||||
|
||||
background-color: #F3F5F7;
|
||||
}
|
||||
|
||||
.img_box{
|
||||
width: 90vw;
|
||||
margin: 20rpx auto;
|
||||
|
||||
Reference in New Issue
Block a user