diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index 46c19a9..7779960 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -260,7 +260,7 @@
收挂号费 - 患者在小程序预约时,{{hasVisitFee == 1?'':'不'}}需缴纳挂号费 + 患者在小程序预约时,{{ hasVisitFee == 1 ? '' : '不' }}需缴纳挂号费
@@ -305,6 +305,16 @@
+
+ +
+ 收项目费 + + {{ hasProjectFee == 1 ? '开启' : '关闭' }},医院可以通过小程序收取项目费 +
+
+
+
@@ -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