Compare commits

...

1 Commits

Author SHA1 Message Date
zq c5ca92faff 增加赊欠挂号费功能 1 week ago
  1. 36
      src/views/HosInformation.vue

36
src/views/HosInformation.vue

@ -303,6 +303,16 @@
@click="showDialog('registerRule')">立即设置</GuipButton>
</div>
</div>
<div class="biditemMast mb12 flex-between">
<div class="bidwrap-item-top flex">
<div class="top-right column">
<p>赊欠挂号费</p>
<p class="desc">开启后财务可给患者赊欠挂号费</p>
</div>
</div>
<GuipSwitch :value="deferred_regFee" float="left" :active-value="1" :inactive-value="0"
activeText="开启" inactiveText="关闭" @change="regFeeChange"></GuipSwitch>
</div>
</div>
</el-form>
</div>
@ -776,6 +786,7 @@ export default {
},
data() {
return {
deferred_regFee: null,//
afterText: '',
morningText: '',
depart_id: false,
@ -1150,6 +1161,27 @@ export default {
...mapState(['hosMenuData']) // VuexshowSidebar
},
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 {

Loading…
Cancel
Save