分包医生
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
nbFrontColor: '#000000',
|
||||
nbBackgroundColor: '#ffffff',
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '实名认证', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
info: {}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.data.height)
|
||||
},
|
||||
onShow(){
|
||||
this.setData({
|
||||
nbLoading: false,
|
||||
})
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "实名认证",
|
||||
"backgroundColor": "#eeeeee",
|
||||
"backgroundTextStyle": "light"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<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="{{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>
|
||||
</view>
|
||||
</view>
|
||||
@@ -1,4 +0,0 @@
|
||||
.submit{
|
||||
width: 90vw;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
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,
|
||||
info: ""
|
||||
},
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onShow(){
|
||||
|
||||
api.getPharmacistInfo().then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
info: response.data
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-cell-group": "@vant/weapp/cell-group/index"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "基本资料",
|
||||
"backgroundColor": "#eeeeee",
|
||||
"backgroundTextStyle": "light"
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<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="{{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>
|
||||
@@ -1,23 +0,0 @@
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.top{
|
||||
width: 100vw;
|
||||
background-color: rgb(255, 255, 255);
|
||||
height: 370rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.name{
|
||||
color: white;
|
||||
margin-top: 30rpx;
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
font-size: 28rpx;
|
||||
width: 180rpx;
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
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)
|
||||
},
|
||||
})
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-button": "@vant/weapp/button/index"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "患者病历",
|
||||
"backgroundColor": "#eeeeee",
|
||||
"backgroundTextStyle": "light"
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
<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="/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>
|
||||
@@ -1,35 +0,0 @@
|
||||
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;
|
||||
}
|
||||
@@ -5,9 +5,9 @@
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="my" bindtap="go" data-url="/Pages/yaoshi/info/info">个人中心</view>
|
||||
<view class="my" bindtap="go" data-url="/user/pages/yaoshi/info/info">个人中心</view>
|
||||
<view class="item_list">
|
||||
<view class="item" bindtap="go" data-url="/Pages/yaoshi/authentication/authentication">
|
||||
<view class="item" bindtap="go" data-url="/user/pages/yaoshi/authentication/authentication">
|
||||
<van-icon name="user-o" size="50rpx" color="#55B0E5"/>
|
||||
<text class="item_name">实名认证</text>
|
||||
</view>
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
import Toast from '@vant/weapp/toast/toast'
|
||||
import { API } from './../../../utils/network/api'
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
bohuishow: false,
|
||||
reasonshow: false,
|
||||
resonText: "请选择驳回理由",
|
||||
columns: ['用法错误', '超适应症用药', '诊断与用药不符', '抗生素使用不合理', '重复用药'],
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '处方详情', //导航栏 中间的标题
|
||||
},
|
||||
// 此页面 页面内容距最顶部的距离
|
||||
height: app.globalData.height,
|
||||
order_prescription_id: "",
|
||||
prescription_img_oss_path: "",
|
||||
doctor_sign_image: ""
|
||||
},
|
||||
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) {
|
||||
const { picker, value, index } = event.detail;
|
||||
console.log(`当前值:${value}, 当前索引:${index}`);
|
||||
let _resonText = `${value}`;
|
||||
this.setData({ resonText: _resonText });
|
||||
this.setData({ reasonshow: false });
|
||||
},
|
||||
|
||||
onCancelReason() {
|
||||
this.setData({ reasonshow: false });
|
||||
},
|
||||
|
||||
showPopup() {
|
||||
this.setData({ bohuishow: true });
|
||||
},
|
||||
|
||||
showReasonPopup(){
|
||||
console.log(222);
|
||||
this.setData({ reasonshow: true });
|
||||
},
|
||||
|
||||
onClose() {
|
||||
console.log(111);
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
|
||||
onCloseReason(){
|
||||
this.setData({ reasonshow: false });
|
||||
},
|
||||
|
||||
closePopup(){
|
||||
this.setData({ bohuishow: false });
|
||||
},
|
||||
|
||||
submitBohui(e) {
|
||||
console.log(444);
|
||||
this.putPharmacistPrescriptionVerify(e);
|
||||
},
|
||||
|
||||
submit(){
|
||||
console.log(555);
|
||||
},
|
||||
onShow(){
|
||||
api.getPharmacistPrescriptioninfo({order_prescription_id: this.data.order_prescription_id}).then(response => {
|
||||
console.log(response.data);
|
||||
this.setData({
|
||||
prescription_img_oss_path: response.data.prescription_img_oss_path,
|
||||
doctor_sign_image: response.data.doctor_sign_image
|
||||
})
|
||||
}).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);})
|
||||
}
|
||||
|
||||
})
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"te-nav-bar": "/commpents/te_navbar",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-cell": "@vant/weapp/cell/index",
|
||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||
"van-toast": "@vant/weapp/toast/index",
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-picker": "@vant/weapp/picker/index"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "处方详情",
|
||||
"backgroundColor": "#eeeeee",
|
||||
"backgroundTextStyle": "light"
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="img_box" wx:if="{{false}}">
|
||||
<view class="img_content">
|
||||
<image class="case_img"
|
||||
src="{{prescription_img_oss_path}}"
|
||||
mode="widthFix"
|
||||
/>
|
||||
<image class="doctor_sign_image"
|
||||
src="{{doctor_sign_image}}"
|
||||
mode="widthFix"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="imgbox">
|
||||
<image src="{{prescription_img_oss_path}}" mode="widthFix" class="prescription"></image>
|
||||
<image src="{{doctor_sign_image}}" mode="widthFix" class="doctorSign"></image>
|
||||
</view>
|
||||
<view class="button_group">
|
||||
<view class="button_item">
|
||||
<van-button round plain type="danger" bind:click="showPopup">
|
||||
<text decode="true"> 驳回 </text>
|
||||
</van-button>
|
||||
</view>
|
||||
<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" data-pharmacist_audit_status="2">确认驳回</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
<van-popup
|
||||
show="{{ reasonshow }}"
|
||||
position="bottom"
|
||||
bind:close="onCloseReason"
|
||||
>
|
||||
<van-picker show-toolbar
|
||||
title="请选择"
|
||||
columns="{{ columns }}"
|
||||
bind:cancel="onCancelReason"
|
||||
bind:confirm="onConfirmReason" />
|
||||
</van-popup>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
|
||||
</view>
|
||||
@@ -1,60 +0,0 @@
|
||||
page{
|
||||
background-color: #F3F5F7;
|
||||
}
|
||||
|
||||
.img_box{
|
||||
width: 90vw;
|
||||
margin: 20rpx auto;
|
||||
text-align: center;
|
||||
}
|
||||
.case_img{
|
||||
width: 100%;
|
||||
}
|
||||
.img_content{
|
||||
background-color: #F3F5F7;
|
||||
padding: 20rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.button_group{
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.button_item{
|
||||
display:inline-block;
|
||||
}
|
||||
.pop{
|
||||
width: 90vw;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.pop_button{
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.pop_button_txt{
|
||||
color: red;
|
||||
}
|
||||
.imgbox{
|
||||
width:100%;
|
||||
height:0;
|
||||
position:relative;
|
||||
padding-bottom:141%;
|
||||
}
|
||||
.prescription{
|
||||
position:absolute;
|
||||
top:0px;
|
||||
height:100%;
|
||||
bottom:0px;
|
||||
width:100%;
|
||||
}
|
||||
.doctorSign{
|
||||
position:absolute;
|
||||
width:100rpx;
|
||||
height:53rpx;
|
||||
left:125rpx;
|
||||
bottom:126rpx;
|
||||
}
|
||||
.van-cell__value{
|
||||
flex: 1.2 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user