From 0f2e52e70a85f752a5696dcaa202a71106452b90 Mon Sep 17 00:00:00 2001
From: zq <136432190602163.com>
Date: Tue, 18 Nov 2025 14:38:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E9=A1=B9=E7=9B=AE?=
=?UTF-8?q?=E8=B4=B9=E9=83=A8=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/HosInformation.vue | 41 +++++++++++++++++++++++++++++++++++++----
1 file changed, 37 insertions(+), 4 deletions(-)
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 @@
@@ -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