Browse Source

增加收项目费部分

projectFee-1118
zq 3 weeks ago
parent
commit
0f2e52e70a
  1. 41
      src/views/HosInformation.vue

41
src/views/HosInformation.vue

@ -260,7 +260,7 @@
<div class="mb32 flex gap12">
<span class="littleTitle">收挂号费</span>
<GuipSwitch :value="hasVisitFee" ref="hasVisitFeeRef" :active-value="1" :inactive-value="0" @change="onVisitFeeChange"></GuipSwitch>
<span class="desc">患者在小程序预约时{{hasVisitFee == 1?'':'不'}}需缴纳挂号费</span>
<span class="desc">患者在小程序预约时{{ hasVisitFee == 1 ? '' : '不' }}需缴纳挂号费</span>
</div>
<div class="bidwrap-item">
<div class="biditemMast mb12 flex-between">
@ -305,6 +305,16 @@
</el-form>
</div>
<div class="siteMessage flex-common mt12" id="siteMessage7">
<el-form>
<div class="flex gap12">
<span class="littleTitle">收项目费</span>
<GuipSwitch :value="hasProjectFee" ref="hasProjectFeeRef" :active-value="1" :inactive-value="0" @change="onProjectFeeChange"></GuipSwitch>
<span class="desc">{{ hasProjectFee == 1 ? '开启' : '关闭' }}医院可以通过小程序收取项目费</span>
</div>
</el-form>
</div>
<!-- <p class="pageTitle bold">项目管理</p> -->
<div class="siteMessage flex-common mt12" id="siteMessage4">
<el-form>
@ -691,6 +701,7 @@ export default {
freeRegVisible:false,
registrationVisible:false,
hasVisitFee:null,
hasProjectFee:null,
hasFreeRegisterRule:false,
hasAgainVisitFreeDays:0,
againVisitFreeDays:0,
@ -839,6 +850,27 @@ export default {
console.error(error, 'error')
})
},
//
async onProjectFeeChange(e) {
this.hasProjectFee = e
// await this.$http('POST', '/api/admin/set_has_visit_fee', {
// has_project_fee: this.hasProjectFee,
// doctor_id: this.doctor_id,
// depart_id: this.depart_id
// }).then(response => {
// const { code } = response
// const msg = this.hasVisitFee === 1 ? '' : ''
// const type = code === 0 ? 'success' : 'error';
// this.$positionMessage({
// type: type,
// message: msg+'',
// target: this.$refs['hasProjectFeeRef'],
// position: 'top'
// })
// }).catch(error => {
// console.error(error, 'error')
// })
},
changeSelectWeixin(item) {
console.log(item, 'item')
// if(this.bindWxpayId === item.payid){
@ -1041,9 +1073,10 @@ export default {
}
this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : []
this.departIsFixed = response.data.is_fixed == "1" ? true : false
this.onLinePay = response.data.pay_switch
this.hasVisitFee = response.data.has_visit_fee
this.registerMoney = response.data.visit_price
this.onLinePay = response.data.pay_switch;
this.hasVisitFee = response.data.has_visit_fee;
this.hasProjectFee = response.data.has_project_fee;
this.registerMoney = response.data.visit_price;
this.hasAgainVisitFreeDays = response.data.has_again_visit_free_days
this.againVisitFreeDays = response.data.again_visit_free_days

Loading…
Cancel
Save