diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue
index b9a7779..b7f958f 100644
--- a/src/views/HosInformation.vue
+++ b/src/views/HosInformation.vue
@@ -303,6 +303,16 @@
@click="showDialog('registerRule')">立即设置
+
+
+
+
赊欠挂号费
+
开启后财务可给患者赊欠挂号费
+
+
+
+
@@ -776,6 +786,7 @@ export default {
},
data() {
return {
+ deferred_regFee: null,//挂号费是否开始赊欠
afterText: '',
morningText: '',
depart_id: false,
@@ -1150,6 +1161,27 @@ export default {
...mapState(['hosMenuData']) // 从Vuex映射showSidebar状态到组件的计算属性中
},
methods: {
+ // 设置赊欠挂号费功能
+ regFeeChange(e){
+ this.deferred_regFee = e
+ // await this.$http('POST', '/api/admin/set_has_visit_fee', {
+ // deferred_regFee: this.deferred_regFee,
+ // doctor_id: this.doctor_id,
+ // depart_id: this.depart_id
+ // }).then(response => {
+ // const { code } = response
+ // const msg = this.deferred_regFee === 1 ? '已开启' : '已关闭'
+ // const type = code === 0 ? 'success' : 'error';
+ // this.$positionMessage({
+ // type: type,
+ // message: msg+'赊欠挂号费功能',
+ // target: this.$refs['isOnCreditRef'],
+ // position: 'top'
+ // })
+ // }).catch(error => {
+ // console.error(error, 'error')
+ // })
+ },
// 出诊冲突提示框-取消
handleVisitCancel() {
@@ -2690,7 +2722,6 @@ export default {
'afternoon_worktime': response.data.afternoon_worktime ? response.data.afternoon_worktime.split('-') : ''
}
this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes));
- // ---------还没有数据
const {display_work_days,worktime_no_fixed,is_allow_coincide} = response.data;
if(display_work_days > 0){
this.houseCallSettingForm.planDays = display_work_days;
@@ -2699,7 +2730,6 @@ export default {
}
this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed
- // ---------还没有数据
this.is_allow_coincide=is_allow_coincide
this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : []
@@ -2708,6 +2738,7 @@ export default {
this.onLinePay = response.data.pay_switch
this.hasVisitFee = response.data.has_visit_fee
this.registerMoney = response.data.visit_price
+ this.deferred_regFee = response.data.deferred_regFee;
this.hasAgainVisitFreeDays = response.data.has_again_visit_free_days
this.againVisitFreeDays = response.data.again_visit_free_days
@@ -3615,7 +3646,6 @@ export default {
padding: 24px 16px;
border-radius: 8px;
background: #FFFFFF;
- align-items: flex-start;
.bidwrap-item-top {
.top-right {