4.23
This commit is contained in:
parent
baf8a289dd
commit
70ddba15f1
@ -26,7 +26,7 @@
|
||||
<text wx:else>0</text>个沟通回合
|
||||
</text>
|
||||
</view>
|
||||
<view class="count_time" wx:elif="{{baseInfo.inquiry_status==4 && (baseInfo.inquiry_mode==9 || baseInfo.inquiry_mode==8) }}"> 问诊中 | <text wx:if="{{serviceInfo.monthly_frequency==0}}" class="red" decode> 不限问诊次数,{{serviceInfo.finish_time}}后结束</text>
|
||||
<view class="count_time" wx:elif="{{baseInfo.inquiry_status==4 && (baseInfo.inquiry_mode==9 || baseInfo.inquiry_mode==8) }}"> 问诊中 | <text wx:if="{{serviceInfo.monthly_frequency==0}}" class="red" decode> 不限问诊次数,{{serviceInfo.finish_time}}天后结束</text>
|
||||
<text decode wx:else> 当月剩余:<text class="red">{{serviceInfo.monthly_frequency-serviceInfo.month_inquiry_count}}</text>次</text></view>
|
||||
</view>
|
||||
<view class="right">
|
||||
|
||||
@ -13,6 +13,7 @@ Page({
|
||||
title: '添加服务内容', //导航栏 中间的标题
|
||||
|
||||
},
|
||||
tuwenPrice:'',
|
||||
cycle_columns:['1个月', '3个月', '6个月', '12个月'],
|
||||
service_columns:['10次','不限次'],
|
||||
showCycle:false,
|
||||
@ -21,6 +22,10 @@ Page({
|
||||
isAdd:false,
|
||||
service_rounds:0,
|
||||
cur_id:'',
|
||||
onePrice:null,
|
||||
threePrice:null,
|
||||
sixPrice:null,
|
||||
yearPrice:null,
|
||||
items:[{
|
||||
service_period:'',
|
||||
service_price:''
|
||||
@ -238,7 +243,12 @@ getFollowDetail(){
|
||||
this.setData({
|
||||
iden_auth_status:options.iden_auth_status,
|
||||
idcard_status:options.idcard_status,
|
||||
is_bind_bank:options.is_bind_bank
|
||||
is_bind_bank:options.is_bind_bank,
|
||||
tuwenPrice:options.tuwenPrice,
|
||||
onePrice:options.tuwenPrice?(options.tuwenPrice*10*0.5).toFixed(2):0,
|
||||
threePrice:options.tuwenPrice?(options.tuwenPrice*30*0.4).toFixed(2):0,
|
||||
sixPrice:options.tuwenPrice?(options.tuwenPrice*60*0.3).toFixed(2):0,
|
||||
yearPrice:options.tuwenPrice?(options.tuwenPrice*120*0.2).toFixed(2):0,
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
@ -33,19 +33,19 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
|
||||
<view class="price_steup_box_bottom_title">服务价格(元)</view>
|
||||
<view class="price_steup_box_bottom_title">服务价格</view>
|
||||
<view class="price_steup_box_bottom_num">
|
||||
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" bindinput="changeIpt" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="tips">
|
||||
<view >建议服务价格设置为:{{(item.service_period/30)==1?'单次图文*10次*5~8折':(item.service_period/30)==3?'单次图文*30次*4~7折':(item.service_period/30)==6?'单次图文*60次*3~6折':(item.service_period/30)==12?'单次图文*120次*2~5折':'单次图文*10次*5'}}</view>
|
||||
<view class="tips" wx:if="{{tuwenPrice}}">
|
||||
<view >建议服务价格设置为:{{(item.service_period/30)==1?'¥'+onePrice:(item.service_period/30)==3?'¥'+threePrice:(item.service_period/30)==6?'¥'+sixPrice:(item.service_period/30)==12?'¥'+yearPrice:'单次图文*10次*0.5'}}</view>
|
||||
<view wx:if="{{items.length>1}}" bind:tap="delService" data-id="{{index}}">删除</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="continueadd" bind:tap="addServiceArr" wx:if="{{items.length<=4}}">继续添加服务内容</view>
|
||||
<view class="continueadd" bind:tap="addServiceArr" wx:if="{{items.length<4}}">继续添加服务内容</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" bind:tap="handle">保存</view>
|
||||
|
||||
@ -23,11 +23,13 @@ Page({
|
||||
sub_visible: false,
|
||||
skeleton_loading: true,
|
||||
order_inquiry_ids: [],
|
||||
order_nos:[],
|
||||
sub_btn_disabled: false
|
||||
},
|
||||
onLoad(option){
|
||||
let order_inquiry_ids = option.order_inquiry_ids;
|
||||
let params = {};
|
||||
console.log(order_inquiry_ids)
|
||||
if(order_inquiry_ids){
|
||||
params.order_inquiry_ids = order_inquiry_ids;
|
||||
this.setData({
|
||||
@ -93,7 +95,7 @@ Page({
|
||||
bank_card_code_mask: response.data.bank.bank_card_code_mask,
|
||||
withdrawal_amount: response.data.withdrawal_amount,
|
||||
amount_total:response.data.amount_total,
|
||||
order_inquiry_ids: response.data.order_inquiry_ids,
|
||||
order_nos:response.data.order_nos,
|
||||
bank_card_name: response.data.bank.bank_card_name_mask,
|
||||
income_tax: response.data.income_tax,
|
||||
skeleton_loading: false
|
||||
@ -109,7 +111,7 @@ Page({
|
||||
sub_btn_disabled: true
|
||||
})
|
||||
let params = {};
|
||||
params.order_inquiry_id = this.data.order_inquiry_ids.join(",");
|
||||
params.order_no = this.data.order_nos.join(",");
|
||||
params.withdrawal_amount_total = this.data.withdrawal_amount;
|
||||
params.bank_card_id = this.data.bank_card_id;
|
||||
//获取提现数据
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<view class="money">¥{{doctor_today_inquiry_total}}</view>
|
||||
</view>
|
||||
<view class="finish">
|
||||
<view class="titlename">已完成待入账</view>
|
||||
<view class="titlename">待入账</view>
|
||||
<view class="money">¥{{doctor_day_completed_amount_total}}</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -69,7 +69,8 @@
|
||||
<view slot="content" class="slotcontent">
|
||||
<view class="msg">1、账户余额表示未提现的所有已经结束的订单金额总和</view>
|
||||
<view class="msg">2、今日接诊收入表示今日已经接诊的订单金额总和 </view>
|
||||
<view class="msg">3、已完成待入账表示近期已完成未结束的订单金额总和 </view>
|
||||
<view class="msg">3、待入账表示单次问诊已完成未结束的订单金额总和+健康包/随访包服务开始后的订单金额总和
|
||||
</view>
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
||||
确定
|
||||
|
||||
@ -14,8 +14,10 @@ Page({
|
||||
// open_note: "已开启,患者可以向您发起图文问诊",
|
||||
// close_note: "已关闭,暂不接诊",
|
||||
note: "",
|
||||
tuwenPrice:'',
|
||||
inquiry_type: 1,
|
||||
inquiry_mode: 1,
|
||||
monthly_frequency:'',
|
||||
multi_point_status:'',
|
||||
config_setting:{},
|
||||
items:[],
|
||||
@ -79,13 +81,19 @@ Page({
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
let {active}=this.data;
|
||||
let {active,idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||
this.getDoctorconfig();
|
||||
this.getDoctorOpen();
|
||||
this.getSysconfig();
|
||||
if(active==4){
|
||||
this.getConfig()
|
||||
}
|
||||
if(active==1){
|
||||
this.getFollow();
|
||||
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
||||
this.getFollowDetail();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
getDoctorOpen(){
|
||||
@ -117,6 +125,11 @@ Page({
|
||||
// config: response.data.config,
|
||||
// note: response.data.info.is_open
|
||||
})
|
||||
if(inquiry_mode==1){
|
||||
this.setData({
|
||||
tuwenPrice:response.data.inquiry_price
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
changeON(){
|
||||
@ -158,8 +171,8 @@ Page({
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
addServiceContent(){
|
||||
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank)
|
||||
let {idcard_status,iden_auth_status,is_bind_bank,tuwenPrice}=this.data;
|
||||
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank+"&tuwenPrice="+tuwenPrice)
|
||||
},
|
||||
async doChange(detail){
|
||||
console.log("onChange: ", detail);
|
||||
@ -347,6 +360,7 @@ Page({
|
||||
let res=response.data.map((item)=>{
|
||||
return {service_period:item.service_period,service_price:item.service_price}
|
||||
})
|
||||
res.sort((a, b) =>a.service_period-b.service_period);
|
||||
this.setData({
|
||||
items:res
|
||||
})
|
||||
@ -390,7 +404,7 @@ Page({
|
||||
getHealthy(){
|
||||
api.getHealthy().then(response => {
|
||||
this.setData({
|
||||
healthPrice:(response.data.inquiry_price*response.data.service_rate/100).toFixed(2)
|
||||
healthPrice:(response.data.inquiry_price*response.data.service_rate/100*response.data.service_count).toFixed(2)
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==1)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=6" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
|
||||
@ -22,15 +22,17 @@
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
||||
<view class="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.work_num_day}}">
|
||||
{{info.work_num_day}}
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</view>
|
||||
</van-cell>
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
|
||||
<view class="cell_value">
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;flex:0.8" title="问诊单价" is-link border="{{false}}">
|
||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
||||
<text style="color: #000;"> 元</text>
|
||||
</view>
|
||||
<view wx:else >请选择单价</view>
|
||||
</van-cell>
|
||||
</view>
|
||||
</view>
|
||||
@ -57,7 +59,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==1)?'已开启,患者可以向您发起随访包服务':'已关闭,暂不接诊' }}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
||||
@ -69,7 +71,7 @@
|
||||
<view class="price_steup_box_top_title">服务次数/月</view>
|
||||
<view class="price_steup_box_top_stepper" bind:tap="addServiceContent">
|
||||
<text class="amount nodata" wx:if="{{monthly_frequency===''}}">请选择服务次数</text>
|
||||
<text class="amount" wx:else>{{monthly_frequency===0?'不限次数':'10次'}}</text>
|
||||
<text class="amount" wx:else>{{monthly_frequency==="0"?'不限次数':'10次'}}</text>
|
||||
|
||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||
</view>
|
||||
@ -95,8 +97,8 @@
|
||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
|
||||
<view class="price_steup_box_bottom_title">服务价格(元)</view>
|
||||
<view class="price_steup_box_bottom" style="padding-bottom: 25rpx;">
|
||||
<view class="price_steup_box_bottom_title">服务价格</view>
|
||||
<view class="price_steup_box_bottom_num">
|
||||
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" disabled="{{true}}" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
||||
</view>
|
||||
@ -148,7 +150,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起健康包服务':'已关闭,暂不接诊' }}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=6" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
||||
@ -158,7 +160,7 @@
|
||||
<view class="checked_box">
|
||||
<view class="price_title">服务价格</view>
|
||||
<view class="price_steup_box pricebox" style="overflow: hidden;padding-bottom: 10rpx;">
|
||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务价格(元)" >
|
||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务价格" >
|
||||
<view class="cell_value cell_value_heal">
|
||||
<input type="number" placeholder="请设置价格"
|
||||
value="{{healthPrice}}"
|
||||
@ -186,7 +188,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1&& active==3)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=12" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
|
||||
@ -197,15 +199,17 @@
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
||||
<view class="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.work_num_day}}">
|
||||
{{info.work_num_day}}
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</view>
|
||||
</van-cell>
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
|
||||
<view class="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
||||
<text style="color: #000;"> 元</text>
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择问诊单价</view>
|
||||
</van-cell>
|
||||
</view>
|
||||
</view>
|
||||
@ -241,7 +245,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==4)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=11" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
|
||||
|
||||
@ -65,11 +65,12 @@ page{
|
||||
padding-top: 10rpx;
|
||||
display: flex;
|
||||
width: 90vw;
|
||||
margin: 0 auto;
|
||||
margin: 0 auto 20rpx;
|
||||
border-radius: 20rpx;
|
||||
flex-direction: column;
|
||||
background-color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.price_steup_box_top{
|
||||
position: relative;
|
||||
display: flex;
|
||||
@ -139,6 +140,8 @@ page{
|
||||
color: #000;
|
||||
}
|
||||
.cell_value_seting{
|
||||
|
||||
white-space: nowrap;
|
||||
color: rgba(0,0,0,0.45);
|
||||
}
|
||||
.dialog{
|
||||
@ -216,4 +219,7 @@ color: #E34D59;
|
||||
}
|
||||
.unit{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.nodata{
|
||||
color: #999999;
|
||||
}
|
||||
@ -106,6 +106,7 @@ Page({
|
||||
app.go("/user/pages/yishi/cash/index?order_inquiry_ids="+order_inquiry_ids);
|
||||
},
|
||||
goback(){
|
||||
|
||||
wx.navigateBack()
|
||||
},
|
||||
onLoad(options){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user