Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de72bae38a | ||
|
|
c3aad05393 | ||
|
|
66d3d4b8a9 | ||
|
|
9649d0a651 | ||
|
|
0c06201451 | ||
|
|
5788befbc3 | ||
|
|
0c437a60f3 |
@ -15,6 +15,7 @@ Page({
|
|||||||
user_name: "医师姓名",
|
user_name: "医师姓名",
|
||||||
not_accepted_inquiry_num: 0,
|
not_accepted_inquiry_num: 0,
|
||||||
accepting_inquiry_num: 0,
|
accepting_inquiry_num: 0,
|
||||||
|
is_welfare_cooperation:null,
|
||||||
info_shiming_status_txt: "未认证",
|
info_shiming_status_txt: "未认证",
|
||||||
info_shiming_status: "info_shiming_status_no",
|
info_shiming_status: "info_shiming_status_no",
|
||||||
show_info_note: false,
|
show_info_note: false,
|
||||||
@ -268,6 +269,8 @@ Page({
|
|||||||
let multi_point_status = response.data.info.multi_point_status;
|
let multi_point_status = response.data.info.multi_point_status;
|
||||||
//绑定结算银行卡
|
//绑定结算银行卡
|
||||||
let is_bind_bank = response.data.info.is_bind_bank;
|
let is_bind_bank = response.data.info.is_bind_bank;
|
||||||
|
let is_welfare_cooperation=response.data.info.is_welfare_cooperation;
|
||||||
|
|
||||||
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
api.getDoctorService(response.data.info.doctor_id).then(res=>{
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
let result=res.data;
|
let result=res.data;
|
||||||
@ -316,6 +319,7 @@ Page({
|
|||||||
"info.iden_auth_status": iden_auth_status,
|
"info.iden_auth_status": iden_auth_status,
|
||||||
"info.multi_point_status": multi_point_status,
|
"info.multi_point_status": multi_point_status,
|
||||||
"info.is_bind_bank": is_bind_bank,
|
"info.is_bind_bank": is_bind_bank,
|
||||||
|
'info.is_welfare_cooperation':is_welfare_cooperation
|
||||||
// "info.is_img_expert_reception": is_img_expert_reception,
|
// "info.is_img_expert_reception": is_img_expert_reception,
|
||||||
// "info.is_img_quick_reception": is_img_quick_reception,
|
// "info.is_img_quick_reception": is_img_quick_reception,
|
||||||
// "info.is_img_welfare_reception": is_img_welfare_reception,
|
// "info.is_img_welfare_reception": is_img_welfare_reception,
|
||||||
@ -383,6 +387,9 @@ Page({
|
|||||||
// const { current, source } = e.detail;
|
// const { current, source } = e.detail;
|
||||||
// console.log(current, source);
|
// console.log(current, source);
|
||||||
},
|
},
|
||||||
|
goChuFang(e){
|
||||||
|
app.go(e.currentTarget.dataset.url)
|
||||||
|
},
|
||||||
go(e){
|
go(e){
|
||||||
let checkDialog = this.checkDialog(e);
|
let checkDialog = this.checkDialog(e);
|
||||||
// console.log("checkDialog: ", checkDialog);
|
// console.log("checkDialog: ", checkDialog);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<page-meta page-style="{{ true ? 'overflow: hidden;' : '' }}" />
|
<!-- <page-meta page-style="{{ true ? 'overflow: hidden;' : '' }}" /> -->
|
||||||
<view class="container" id="container">
|
<view class="container" id="container">
|
||||||
<!-- 顶部背景 -->
|
<!-- 顶部背景 -->
|
||||||
<view class="top_bk"></view>
|
<view class="top_bk"></view>
|
||||||
@ -115,7 +115,7 @@
|
|||||||
<text class="fun_box_item_txt">个人简介管理</text>
|
<text class="fun_box_item_txt">个人简介管理</text>
|
||||||
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index?multi_point_status={{info.multi_point_status}}&&idcard_status={{info.idcard_status}}&&is_bind_bank={{info.is_bind_bank}}&&iden_auth_status={{info.iden_auth_status}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index?multi_point_status={{info.multi_point_status}}&idcard_status={{info.idcard_status}}&is_bind_bank={{info.is_bind_bank}}&iden_auth_status={{info.iden_auth_status}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
@ -131,7 +131,7 @@
|
|||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">快速问诊管理</text>
|
<text class="fun_box_item_txt">快速问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="6" data-url="/user/pages/yishi/yizhensetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="go" data-moudle="6" data-url="/user/pages/yishi/yizhensetup/index?is_welfare_cooperation={{info.is_welfare_cooperation}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
@ -139,7 +139,7 @@
|
|||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">公益问诊管理</text>
|
<text class="fun_box_item_txt">公益问诊管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="7" data-url="/user/pages/yishi/chufangsetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="goChuFang" data-moudle="7" data-url="/user/pages/yishi/chufangsetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
@ -149,6 +149,16 @@
|
|||||||
<t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="处方管理" />
|
<t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="处方管理" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view bindtap="goChuFang" data-moudle="7" data-url="/user/pages/yishi/transferchufangsetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
|
<van-image class="fun_box_item_img"
|
||||||
|
fit="widthFix"
|
||||||
|
width="70rpx"
|
||||||
|
src="{{static_host}}/applet/doctor/static/images/yishi/chufang.png"
|
||||||
|
/>
|
||||||
|
<view class="fun_box_item_txt">
|
||||||
|
<t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="抄送处方管理" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu" style="height: {{funbox_height}}rpx;">
|
<view class="fun_box_item" data-moudle="8" bindtap="contactKeFu" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
@ -157,6 +167,9 @@
|
|||||||
/>
|
/>
|
||||||
<text class="fun_box_item_txt">联系客服</text>
|
<text class="fun_box_item_txt">联系客服</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="fun_box_item" style="height: {{funbox_height}}rpx;background:none">
|
||||||
|
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 100%;height: 55px;">
|
<view style="width: 100%;height: 55px;">
|
||||||
<!-- 处理底部tabbar遮挡 50px -->
|
<!-- 处理底部tabbar遮挡 50px -->
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
page{
|
page{
|
||||||
background-color: #FAFAFA;
|
background-color: #FAFAFA;
|
||||||
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
.container{
|
.container{
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top_bk{
|
.top_bk{
|
||||||
position: fixed;
|
position: absolute;
|
||||||
top: -2230rpx;
|
top: -2230rpx;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@ -179,7 +183,7 @@ page{
|
|||||||
}
|
}
|
||||||
.fun_box{
|
.fun_box{
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
margin: 30rpx auto 0 auto;
|
margin: 30rpx auto 20rpx auto;
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
|
box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -37,6 +37,7 @@ Component({
|
|||||||
lifetimes: {
|
lifetimes: {
|
||||||
detached() {
|
detached() {
|
||||||
myaudio.stop();
|
myaudio.stop();
|
||||||
|
wx.setStorageSync('currentAudioId', '')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -80,6 +81,8 @@ Component({
|
|||||||
|
|
||||||
const { id } = e.currentTarget.dataset;
|
const { id } = e.currentTarget.dataset;
|
||||||
const { audioSave } = this.data;
|
const { audioSave } = this.data;
|
||||||
|
console.log(id);
|
||||||
|
wx.setStorageSync('currentAudioId',id)
|
||||||
this.triggerEvent("closeAudio",false)
|
this.triggerEvent("closeAudio",false)
|
||||||
// 设置状态
|
// 设置状态
|
||||||
audioSave.forEach((message, index) => {
|
audioSave.forEach((message, index) => {
|
||||||
@ -128,7 +131,9 @@ Component({
|
|||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
stopmy(){
|
||||||
|
myaudio.stop();
|
||||||
|
},
|
||||||
// 音频停止
|
// 音频停止
|
||||||
audioStop(e) {
|
audioStop(e) {
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
|
|||||||
@ -120,6 +120,7 @@ Component({
|
|||||||
serviceInfo:{},
|
serviceInfo:{},
|
||||||
baseInfo:{},
|
baseInfo:{},
|
||||||
family_id:'',
|
family_id:'',
|
||||||
|
fresh:true,
|
||||||
patient_user_id:'',
|
patient_user_id:'',
|
||||||
extensionArea: false,
|
extensionArea: false,
|
||||||
sendMessageBtn: false,
|
sendMessageBtn: false,
|
||||||
@ -188,10 +189,16 @@ Component({
|
|||||||
lifetimes: {
|
lifetimes: {
|
||||||
attached() {
|
attached() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
// 加载声音录制管理器
|
// 加载声音录制管理器
|
||||||
this.recorderManager = wx.getRecorderManager();
|
this.recorderManager = wx.getRecorderManager();
|
||||||
this.recorderManager.onStop(async(resData) => {
|
this.recorderManager.onStop(async(resData) => {
|
||||||
|
this.setData({
|
||||||
|
fresh:!this.data.fresh
|
||||||
|
})
|
||||||
|
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
|
|
||||||
if (this.data.canSend) {
|
if (this.data.canSend) {
|
||||||
if (resData.duration < 1000) {
|
if (resData.duration < 1000) {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
@ -596,6 +603,10 @@ this.setData({
|
|||||||
},
|
},
|
||||||
// 长按录音
|
// 长按录音
|
||||||
handleLongPress(e) {
|
handleLongPress(e) {
|
||||||
|
this.triggerEvent('closeAudio',false);
|
||||||
|
if(this.timer){
|
||||||
|
clearInterval(this.timer)
|
||||||
|
}
|
||||||
this.openRecord(e,this.recording)
|
this.openRecord(e,this.recording)
|
||||||
},
|
},
|
||||||
recording(e,THIS){
|
recording(e,THIS){
|
||||||
@ -616,7 +627,7 @@ this.setData({
|
|||||||
THIS.timer=setInterval(()=>{
|
THIS.timer=setInterval(()=>{
|
||||||
if(THIS.data.recordtime>=60){
|
if(THIS.data.recordtime>=60){
|
||||||
THIS.handleTouchEnd();
|
THIS.handleTouchEnd();
|
||||||
clearInterval(THIS.timer);
|
//clearInterval(THIS.timer);
|
||||||
|
|
||||||
};
|
};
|
||||||
THIS.setData({
|
THIS.setData({
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<view class="TUI-message-input-container">
|
<view class="TUI-message-input-container">
|
||||||
<view class="TUI-commom-function">
|
<view class="TUI-commom-function">
|
||||||
<view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view>
|
<view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view>
|
||||||
<view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">在线开处方</view>
|
<view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">在线开处方</view>
|
||||||
<view class="TUI-commom-function-item" data-key="12" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && !videoInfo.is_reservation_time && baseInfo.inquiry_mode==2 }}">预约视频时间</view>
|
<view class="TUI-commom-function-item" data-key="12" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && !videoInfo.is_reservation_time && baseInfo.inquiry_mode==2 }}">预约视频时间</view>
|
||||||
<view class="TUI-commom-function-item" data-key="13" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && videoInfo.is_reservation_time && baseInfo.inquiry_mode==2 }}">发起视频</view>
|
<view class="TUI-commom-function-item" data-key="13" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && videoInfo.is_reservation_time && baseInfo.inquiry_mode==2 }}">发起视频</view>
|
||||||
<!-- wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && videoInfo.is_reservation_time && videoInfo.is_video==0 }}" -->
|
<!-- wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1 && videoInfo.is_reservation_time && videoInfo.is_video==0 }}" -->
|
||||||
@ -22,11 +22,21 @@
|
|||||||
bindlinechange="inputBindLinechange"
|
bindlinechange="inputBindLinechange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{isAudio}}" class="TUI-message-input-main"
|
<view wx:if="{{isAudio && fresh}}"
|
||||||
|
id="talk1"
|
||||||
|
class="TUI-message-input-main"
|
||||||
|
catchlongpress="handleLongPress"
|
||||||
|
catchtouchmove="handleTouchMove"
|
||||||
|
catchtouchend="handleTouchEnd"
|
||||||
|
catchtouchcancel="handleTouchCancel"
|
||||||
|
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
||||||
|
<text >{{text}}</text>
|
||||||
|
</view>
|
||||||
|
<view wx:elif="{{isAudio && !fresh}}"
|
||||||
|
id="talk2" class="TUI-message-input-main"
|
||||||
catchlongpress="handleLongPress"
|
catchlongpress="handleLongPress"
|
||||||
catchtouchmove="handleTouchMove"
|
catchtouchmove="handleTouchMove"
|
||||||
catchtouchend="handleTouchEnd"
|
catchtouchend="handleTouchEnd"
|
||||||
catchtap="handleTouchCancel"
|
|
||||||
catchtouchcancel="handleTouchCancel"
|
catchtouchcancel="handleTouchCancel"
|
||||||
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
style="display: flex; justify-content: center; font-size: 32rpx; font-family: PingFangSC-Regular; height: 30px">
|
||||||
<text >{{text}}</text>
|
<text >{{text}}</text>
|
||||||
|
|||||||
@ -320,12 +320,21 @@ Component({
|
|||||||
},
|
},
|
||||||
closeAudio(data){
|
closeAudio(data){
|
||||||
//关闭其他语音
|
//关闭其他语音
|
||||||
|
let currentAudioId= wx.getStorageSync('currentAudioId');
|
||||||
this.data.messageList.forEach((item)=>{
|
this.data.messageList.forEach((item)=>{
|
||||||
if(item.type=="TIMSoundElem"){
|
if(item.type=="TIMSoundElem"){
|
||||||
let ele=this.selectComponent('#audio'+item.ID);
|
let ele=this.selectComponent('#audio'+item.ID);
|
||||||
|
if(item.ID!=currentAudioId){
|
||||||
|
|
||||||
|
ele.stopmy();
|
||||||
|
}
|
||||||
ele.setData({
|
ele.setData({
|
||||||
isPlay:false
|
isPlay:false
|
||||||
})
|
})
|
||||||
|
//console.log(ele);
|
||||||
|
|
||||||
|
//ele.stopmy();
|
||||||
|
//console.log(ele)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -234,6 +234,9 @@ Component({
|
|||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
|
closeAudio(){
|
||||||
|
this.selectComponent('#MessageList').closeAudio();
|
||||||
|
},
|
||||||
checkChuFang(order_inquiry_id){
|
checkChuFang(order_inquiry_id){
|
||||||
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
api.getDoctorPrescriptionCheck({order_inquiry_id: order_inquiry_id}).then(response => {
|
||||||
let status = response.data.status
|
let status = response.data.status
|
||||||
|
|||||||
@ -73,8 +73,11 @@
|
|||||||
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
|
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
|
||||||
<view class="input-area" style="{{input_area_style}}" >
|
<view class="input-area" style="{{input_area_style}}" >
|
||||||
<!-- wx:if="{{showChat}}" -->
|
<!-- wx:if="{{showChat}}" -->
|
||||||
|
<!-- bind:closeAudio="closeAudio" -->
|
||||||
<view class="message-input" style="{{viewData.style}}" >
|
<view class="message-input" style="{{viewData.style}}" >
|
||||||
<MessageInput bind:myhandleExtensions="myhandleExtensions" id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" from="{{from}}" hasCallKit="{{hasCallKit}}"
|
<MessageInput bind:myhandleExtensions="myhandleExtensions"
|
||||||
|
bind:closeAudio="closeAudio"
|
||||||
|
id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" from="{{from}}" hasCallKit="{{hasCallKit}}"
|
||||||
serviceInfo="{{serviceInfo}}"
|
serviceInfo="{{serviceInfo}}"
|
||||||
isEditTime="{{isEditTime}}"
|
isEditTime="{{isEditTime}}"
|
||||||
videoInfo="{{videoInfo}}"
|
videoInfo="{{videoInfo}}"
|
||||||
|
|||||||
1
app.json
1
app.json
@ -21,6 +21,7 @@
|
|||||||
"pages/yishi/identity/index",
|
"pages/yishi/identity/index",
|
||||||
"pages/yishi/onlinesetup/index",
|
"pages/yishi/onlinesetup/index",
|
||||||
"pages/yishi/chufangsetup/index",
|
"pages/yishi/chufangsetup/index",
|
||||||
|
"pages/yishi/transferchufangsetup/index",
|
||||||
"pages/yishi/onlinechufang/index",
|
"pages/yishi/onlinechufang/index",
|
||||||
"pages/yishi/zhiye_identity/index",
|
"pages/yishi/zhiye_identity/index",
|
||||||
"pages/yishi/signcanvas/index",
|
"pages/yishi/signcanvas/index",
|
||||||
|
|||||||
BIN
miniprogram-doctor.zip
Normal file
BIN
miniprogram-doctor.zip
Normal file
Binary file not shown.
@ -70,9 +70,8 @@
|
|||||||
3、平台代扣个人所得税,根据公式:
|
3、平台代扣个人所得税,根据公式:
|
||||||
</text>
|
</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_inquiry_ids.length == 0 || sub_btn_disabled || withdrawal_amount == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_nos.length == 0 || sub_btn_disabled || withdrawal_amount == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
||||||
<view class="kefu" bindtap="contactKeFu">
|
<view class="kefu" bindtap="contactKeFu">
|
||||||
<text>联系客服</text>
|
<text>联系客服</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
119
user/pages/yishi/transferchufangsetup/index.js
Normal file
119
user/pages/yishi/transferchufangsetup/index.js
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
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,
|
||||||
|
stickyProps: {
|
||||||
|
offsetTop: app.globalData.height*2 + 20,
|
||||||
|
zIndex: 99
|
||||||
|
},
|
||||||
|
prescription_status: 0,
|
||||||
|
chufang_list_0: [],
|
||||||
|
chufang_list_1: [],
|
||||||
|
chufang_list_2: [],
|
||||||
|
current_page: 0,
|
||||||
|
total: 0,
|
||||||
|
per_page: 0,
|
||||||
|
last_page: 0,
|
||||||
|
|
||||||
|
},
|
||||||
|
onLoad(options){
|
||||||
|
console.log(options.status)
|
||||||
|
if(options.status){
|
||||||
|
this.setData({
|
||||||
|
pharmacist_audit_status:options.status,
|
||||||
|
prescription_status:options.status
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShow(){
|
||||||
|
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onTabsChange(e) {
|
||||||
|
// console.log(e);
|
||||||
|
let list_name = "chufang_list_" + e.detail.value;
|
||||||
|
//console.log(list_name)
|
||||||
|
this.setData({
|
||||||
|
prescription_status: e.detail.value,
|
||||||
|
current_page: 0,
|
||||||
|
last_page: 0,
|
||||||
|
[list_name]: []
|
||||||
|
})
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
|
||||||
|
onTabsClick(event) {
|
||||||
|
console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
|
||||||
|
},
|
||||||
|
|
||||||
|
onStickyScroll(event) {
|
||||||
|
// console.log(event.detail);
|
||||||
|
},
|
||||||
|
onPullDownRefresh(){
|
||||||
|
console.log('===下拉动作===');
|
||||||
|
this.setData({
|
||||||
|
current_page: 0,
|
||||||
|
})
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
console.log('===触底了!!===');
|
||||||
|
if(this.data.current_page < this.data.last_page){//最后一页时停止分页
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getList(){
|
||||||
|
//获取处方列表
|
||||||
|
let params = {};
|
||||||
|
params.pharmacist_audit_status = this.data.prescription_status;//处方审核状态(0:审核中 2:审核驳回)
|
||||||
|
params.page = this.data.current_page + 1;
|
||||||
|
api.getDoctorPrescriptionTransfer(params).then(response => {
|
||||||
|
//console.log(response);
|
||||||
|
if(response.data.total > 0){
|
||||||
|
let list_name = "chufang_list_" + this.data.prescription_status;
|
||||||
|
//console.log(list_name);
|
||||||
|
let apprise_list = this.data[list_name];
|
||||||
|
this.setData({
|
||||||
|
[list_name]: apprise_list.concat(response.data.data),
|
||||||
|
current_page: response.data.current_page,
|
||||||
|
total: response.data.total,
|
||||||
|
per_page: response.data.per_page,
|
||||||
|
last_page: response.data.last_page,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(errors => {console.error(errors);})
|
||||||
|
},
|
||||||
|
go(e){
|
||||||
|
let url = e.currentTarget.dataset.url;
|
||||||
|
//console.log(url);
|
||||||
|
app.go(url);
|
||||||
|
},
|
||||||
|
handlegetLastInquiry(patient_id,doctor_id,order_inquiry_id){
|
||||||
|
api.getLastInquiry({
|
||||||
|
patient_id:patient_id,
|
||||||
|
doctor_id:doctor_id
|
||||||
|
}).then(data=>{
|
||||||
|
let result=data.data;
|
||||||
|
let url='';
|
||||||
|
if(result){
|
||||||
|
url = "/TUIChatService/pages/index?order_inquiry_id="+result+"&from=prescription";
|
||||||
|
}else{
|
||||||
|
url = "/TUIChatService/pages/index?order_inquiry_id="+order_inquiry_id+"&from=prescription";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
app.go(url);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gochat(e){
|
||||||
|
let {order_inquiry_id,patient_id,doctor_id} = e.currentTarget.dataset;
|
||||||
|
this.handlegetLastInquiry(patient_id,doctor_id,order_inquiry_id);
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
9
user/pages/yishi/transferchufangsetup/index.json
Normal file
9
user/pages/yishi/transferchufangsetup/index.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"te-nav-bar": "../../../commpents/te_navbar/index",
|
||||||
|
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||||
|
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||||
|
"van-empty": "@vant/weapp/empty/index"
|
||||||
|
}
|
||||||
|
}
|
||||||
162
user/pages/yishi/transferchufangsetup/index.wxml
Normal file
162
user/pages/yishi/transferchufangsetup/index.wxml
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
|
<view class="container">
|
||||||
|
<view class="tabs">
|
||||||
|
<t-tabs
|
||||||
|
value="{{prescription_status}}"
|
||||||
|
bind:change="onTabsChange"
|
||||||
|
bind:click="onTabsClick"
|
||||||
|
bind:scroll="onStickyScroll"
|
||||||
|
t-class="custom-tabs"
|
||||||
|
>
|
||||||
|
|
||||||
|
<t-tab-panel label="审核中" name ="0" value="0" style="overflow: scroll;">
|
||||||
|
<view class="item_list" style="overflow: scroll;">
|
||||||
|
<view class="item" wx:for="{{chufang_list_0}}">
|
||||||
|
|
||||||
|
<!-- 头部 -->
|
||||||
|
<view class="item_top">
|
||||||
|
<view class="namebox">
|
||||||
|
<view class="item_top_name">{{item.patient_name}}</view>
|
||||||
|
<view class="item_top_sex">{{item.patient_sex==1?'男':'女'}} | {{item.patient_age}}岁</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_top_status_box">
|
||||||
|
<!-- 药师审核状态(0:审核中 1:审核成功 2:审核驳回) -->
|
||||||
|
<view class="item_top_status">
|
||||||
|
{{item.pharmacist_audit_status==0?'审核中':item.pharmacist_audit_status==1?'审核成功':'审核驳回'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 中间内容部分 -->
|
||||||
|
<view class="item_content">
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">开方时间:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.created_at}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情描述:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.disease_desc}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li" wx:if="{{item.diagnosis_date}}">
|
||||||
|
<view class="item_content_li_title">确诊日期:</view>
|
||||||
|
<view class="item_content_li_txt" >{{item.diagnosis_date}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情诊断:</view>
|
||||||
|
<view class="item_content_li_txt">
|
||||||
|
<text wx:for="{{item.order_prescription_icd}}" wx:for-item="icd">{{icd.icd_name}};</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 底部按钮 -->
|
||||||
|
<view class="item_bottom" bindtap="gochat" data-order_inquiry_id="{{item.order_inquiry_id}}" data-doctor_id="{{item.doctor_id}}" data-patient_id="{{item.patient_id}}">
|
||||||
|
<view class="item_bottom_btn" >问诊记录</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<van-empty description="暂无数据" wx:if="{{chufang_list_0.length == 0}}" />
|
||||||
|
</view>
|
||||||
|
</t-tab-panel>
|
||||||
|
<!-- 审核通过面板 -->
|
||||||
|
<t-tab-panel label="审核通过" value="1" name ="1" style="overflow: scroll;">
|
||||||
|
<view class="item_list" style="overflow: scroll;">
|
||||||
|
<view class="item" wx:for="{{chufang_list_1}}">
|
||||||
|
|
||||||
|
<!-- 头部 -->
|
||||||
|
<view class="item_top">
|
||||||
|
<view class="namebox">
|
||||||
|
<view class="item_top_name">{{item.patient_name}}</view>
|
||||||
|
<view class="item_top_sex">{{item.patient_sex==1?'男':'女'}} | {{item.patient_age}}岁</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_top_status_box">
|
||||||
|
<!-- 药师审核状态(0:审核中 1:审核成功 2:审核驳回) -->
|
||||||
|
<view class="item_top_status">
|
||||||
|
{{item.pharmacist_audit_status==0?'审核中':item.pharmacist_audit_status==1?'审核成功':'审核驳回'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 中间内容部分 -->
|
||||||
|
<view class="item_content">
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">开方时间:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.created_at}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情描述:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.disease_desc}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li" wx:if="{{item.diagnosis_date}}">
|
||||||
|
<view class="item_content_li_title">确诊日期:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.diagnosis_date}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情诊断:</view>
|
||||||
|
<view class="item_content_li_txt">
|
||||||
|
<text wx:for="{{item.order_prescription_icd}}" wx:for-item="icd">{{icd.icd_name}};</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 底部按钮 -->
|
||||||
|
<view class="item_bottom" bindtap="gochat" data-order_inquiry_id="{{item.order_inquiry_id}}" data-doctor_id="{{item.doctor_id}}" data-patient_id="{{item.patient_id}}">
|
||||||
|
<view class="item_bottom_btn">问诊记录</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<van-empty description="暂无数据" wx:if="{{chufang_list_1.length == 0}}" />
|
||||||
|
</view>
|
||||||
|
</t-tab-panel>
|
||||||
|
<!-- 驳回面板 -->
|
||||||
|
<t-tab-panel label="驳回" value="2" name ="2" style="overflow: scroll;">
|
||||||
|
<view class="item_list" style="overflow: scroll;">
|
||||||
|
|
||||||
|
<view class="item" wx:for="{{chufang_list_2}}">
|
||||||
|
<!-- 头部 -->
|
||||||
|
<view class="item_top">
|
||||||
|
<view class="namebox">
|
||||||
|
<view class="item_top_name">{{item.patient_name}}</view>
|
||||||
|
<view class="item_top_sex">{{item.patient_sex==1?'男':'女'}} | {{item.patient_age}}岁</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_top_status_box">
|
||||||
|
<!-- 药师审核状态(0:审核中 1:审核成功 2:审核驳回) -->
|
||||||
|
<view class="item_top_status item_top_status_no">
|
||||||
|
{{item.pharmacist_audit_status==0?'审核中':item.pharmacist_audit_status==1?'审核成功':'驳回'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 中间内容部分 -->
|
||||||
|
<view class="item_content">
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">开方时间:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.created_at}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情描述:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.disease_desc}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li" wx:if="{{item.diagnosis_date}}">
|
||||||
|
<view class="item_content_li_title">确诊日期:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.diagnosis_date}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">病情诊断:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.icd_name}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="item_content_li">
|
||||||
|
<view class="item_content_li_title">驳回原因:</view>
|
||||||
|
<view class="item_content_li_txt">{{item.pharmacist_fail_reason}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 底部按钮 -->
|
||||||
|
<view class="item_bottom">
|
||||||
|
<view class="item_bottom_btn" bindtap="gochat" data-order_inquiry_id="{{item.order_inquiry_id}}" data-doctor_id="{{item.doctor_id}}" data-patient_id="{{item.patient_id}}">问诊记录</view>
|
||||||
|
<view class="item_bottom_btn item_bottom_btn_repeat" bindtap="go" data-url="/user/pages/yishi/onlinechufang/index?order_inquiry_id={{item.order_inquiry_id}}&order_prescription_id={{item.order_prescription_id}}">
|
||||||
|
重开处方
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<van-empty description="暂无数据" wx:if="{{chufang_list_2.length == 0}}" />
|
||||||
|
</t-tab-panel>
|
||||||
|
</t-tabs>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
111
user/pages/yishi/transferchufangsetup/index.wxss
Normal file
111
user/pages/yishi/transferchufangsetup/index.wxss
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
page{
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
}
|
||||||
|
.container{
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
.t-tabs__content{
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
}
|
||||||
|
.t-tabs__item--active{
|
||||||
|
color: #49B9AD !important;
|
||||||
|
}
|
||||||
|
.t-tabs__track{
|
||||||
|
background-color: var(--td-tab-track-color, var(--td-primary-color, #49B9AD)) !important;
|
||||||
|
}
|
||||||
|
.item_list{
|
||||||
|
width: 90vw;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 20rpx 0;
|
||||||
|
}
|
||||||
|
.namebox{
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.item_top{
|
||||||
|
position: relative;
|
||||||
|
height: 100rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content:space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 32rpx;
|
||||||
|
}
|
||||||
|
.item_top::after {
|
||||||
|
position: absolute;
|
||||||
|
box-sizing: border-box;
|
||||||
|
content: ' ';
|
||||||
|
pointer-events: none;
|
||||||
|
right: 32rpx;
|
||||||
|
left: 32rpx;
|
||||||
|
bottom: 0;
|
||||||
|
border-bottom: 1px dashed var(--td-cell-border-color, var(--td-gray-color-3, #999));
|
||||||
|
transform: scaleY(0.5);
|
||||||
|
}
|
||||||
|
.item_top_name{
|
||||||
|
|
||||||
|
color: #3CC7C0;
|
||||||
|
font-size: 34rpx;
|
||||||
|
}
|
||||||
|
.item_top_sex{
|
||||||
|
margin-left: 30rpx;
|
||||||
|
font-size: 34rpx;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.item_top_status_box{
|
||||||
|
|
||||||
|
}
|
||||||
|
.item_top_status{
|
||||||
|
padding: 10rpx;
|
||||||
|
color: #FA541C;
|
||||||
|
background-color: #FFF2E8;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_top_status_no{
|
||||||
|
color: #fff;
|
||||||
|
background-color: #999;
|
||||||
|
}
|
||||||
|
.item_content{
|
||||||
|
padding: 20rpx 32rpx 0rpx 32rpx;
|
||||||
|
}
|
||||||
|
.item_content_li{
|
||||||
|
display: flex;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
.item_content_li_title{
|
||||||
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
.item_content_li_txt{
|
||||||
|
margin-left: 10rpx;
|
||||||
|
flex: 1;
|
||||||
|
word-break: break-all;
|
||||||
|
color: #666666;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.item_bottom{
|
||||||
|
height: 120rpx;
|
||||||
|
}
|
||||||
|
.item_bottom_btn{
|
||||||
|
position: relative;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
margin-right: 32rpx;
|
||||||
|
float: right;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
padding: 15rpx 20rpx 15rpx 20rpx;
|
||||||
|
width: 150rpx;
|
||||||
|
background: linear-gradient(305deg, #FF931A 0%, #FCB75D 100%);
|
||||||
|
border-radius: 50rpx;
|
||||||
|
letter-spacing: 5rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.item_bottom_btn_repeat{
|
||||||
|
background: linear-gradient(129deg, #13DFD5 0%, #31C9C1 100%);
|
||||||
|
|
||||||
|
}
|
||||||
@ -9,6 +9,7 @@ Page({
|
|||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '公益问诊设置', //导航栏 中间的标题
|
title: '公益问诊设置', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
|
is_welfare_cooperation:null,
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
checked: true,
|
checked: true,
|
||||||
showSetting:false,
|
showSetting:false,
|
||||||
@ -41,8 +42,13 @@ Page({
|
|||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(){
|
onLoad(options){
|
||||||
|
console.log(options.is_welfare_cooperation)
|
||||||
|
if(options.is_welfare_cooperation){
|
||||||
|
this.setData({
|
||||||
|
is_welfare_cooperation:options.is_welfare_cooperation
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
this.getDoctorOpen()
|
this.getDoctorOpen()
|
||||||
@ -62,8 +68,8 @@ Page({
|
|||||||
'info.work_num_day': response.data.work_num_day
|
'info.work_num_day': response.data.work_num_day
|
||||||
// config: response.data.config,
|
// config: response.data.config,
|
||||||
})
|
})
|
||||||
// this.formatAmounts();
|
this.formatAmounts();
|
||||||
// this.formatAmountValue();
|
this.formatAmountValue();
|
||||||
}).then(re =>{
|
}).then(re =>{
|
||||||
// let is_open = this.data.info.is_open;
|
// let is_open = this.data.info.is_open;
|
||||||
// let note = this.data.note;
|
// let note = this.data.note;
|
||||||
@ -257,6 +263,7 @@ Page({
|
|||||||
|
|
||||||
onPickerChange(e) {
|
onPickerChange(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
const { value } = e.detail;
|
const { value } = e.detail;
|
||||||
console.log('picker change:', e.detail);
|
console.log('picker change:', e.detail);
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="每日接诊数量" is-link
|
title="每日接诊数量" is-link
|
||||||
border="{{true}}"
|
border="{{true}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
|
||||||
>
|
>
|
||||||
<view class="num" wx:if="{{info.work_num_day!==''}}">
|
<view class="num" wx:if="{{info.work_num_day!==''}}">
|
||||||
{{ info.work_num_day }}
|
{{ info.work_num_day }}
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="问诊单价" is-link
|
title="问诊单价" is-link
|
||||||
border="{{false}}"
|
border="{{false}}"
|
||||||
url="/user/pages/yishi/yizhensetupprice/index"
|
url="/user/pages/yishi/yizhensetupprice/index?is_welfare_cooperation={{is_welfare_cooperation}}"
|
||||||
>
|
>
|
||||||
<view wx:if="{{info.inquiry_price}}">
|
<view wx:if="{{info.inquiry_price}}">
|
||||||
<text class="price">{{ amountText }}</text>
|
<text class="price">{{ amountText }}</text>
|
||||||
|
|||||||
@ -9,6 +9,7 @@ Page({
|
|||||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||||
title: '设置价格', //导航栏 中间的标题
|
title: '设置价格', //导航栏 中间的标题
|
||||||
},
|
},
|
||||||
|
is_welfare_cooperation:null,
|
||||||
height: app.globalData.height,
|
height: app.globalData.height,
|
||||||
checked: true,
|
checked: true,
|
||||||
open_note: "已开启,可在问诊消息中进行接诊",
|
open_note: "已开启,可在问诊消息中进行接诊",
|
||||||
@ -39,7 +40,14 @@ Page({
|
|||||||
},
|
},
|
||||||
sub_visible: false,
|
sub_visible: false,
|
||||||
},
|
},
|
||||||
|
onLoad(options){
|
||||||
|
console.log(options.is_welfare_cooperation)
|
||||||
|
if(options.is_welfare_cooperation){
|
||||||
|
this.setData({
|
||||||
|
is_welfare_cooperation:options.is_welfare_cooperation
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
let params = {};
|
let params = {};
|
||||||
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||||
@ -199,6 +207,17 @@ Page({
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
const { key } = e.currentTarget.dataset;
|
const { key } = e.currentTarget.dataset;
|
||||||
const { value } = e.detail;
|
const { value } = e.detail;
|
||||||
|
console.log(value);
|
||||||
|
if(this.data.is_welfare_cooperation==='0' && value[0] ==0){
|
||||||
|
wx.showToast({
|
||||||
|
title: `请联系客服开通权限~`,
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
this.setData({
|
||||||
|
amountVisible:true
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
}
|
||||||
console.log('picker change:', e.detail);
|
console.log('picker change:', e.detail);
|
||||||
this.setData({
|
this.setData({
|
||||||
[`${key}Visible`]: false,
|
[`${key}Visible`]: false,
|
||||||
|
|||||||
@ -373,6 +373,17 @@ class API extends HTTP {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取抄送处方列表
|
||||||
|
getDoctorPrescriptionTransfer(params) {
|
||||||
|
return this.request({
|
||||||
|
url: `${this.baseUrl}/doctor/prescription/transfer`,
|
||||||
|
method: 'GET',
|
||||||
|
data: {
|
||||||
|
...params
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
//获取处方详情
|
//获取处方详情
|
||||||
getDoctorPrescriptionInfo(params) {
|
getDoctorPrescriptionInfo(params) {
|
||||||
return this.request({
|
return this.request({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user