Compare commits

...

6 Commits

  1. 4
      src/store/index.js
  2. 131
      src/views/HosInformation.vue

4
src/store/index.js

@ -51,6 +51,10 @@ export default new Vuex.Store({
name: '收挂号费',
desc: 'siteMessage7'
},
{
name: '收项目费',
desc: 'siteMessage10'
},
]
},
{

131
src/views/HosInformation.vue

@ -306,7 +306,27 @@
</div>
</el-form>
</div>
<div class="siteMessage flex-common mt12" id="siteMessage10">
<el-form>
<div class="flex gap12 mb24">
<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>
<div class="projectWrap">
<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="is_on_credit" float="left" :active-value="1" :inactive-value="0"
activeText="开启" inactiveText="关闭" @change="isOnCreditRefChange"></GuipSwitch>
</div>
</div>
</el-form>
</div>
<div class="siteMessage flex-common mt12" id="siteMessage8">
<div class="littleTitle mb12">出诊设置</div>
<el-form :model="houseCallSettingForm">
@ -448,6 +468,7 @@
</el-calendar>
</div>
</div>
<!-- <p class="pageTitle bold">项目管理</p> -->
<div class="siteMessage flex-common mt12" id="siteMessage4">
<el-form>
@ -942,6 +963,8 @@ export default {
freeRegVisible: false,
registrationVisible: false,
hasVisitFee: null,
hasProjectFee:null,//
is_on_credit:null,//
hasFreeRegisterRule: false,
hasAgainVisitFreeDays: 0,
againVisitFreeDays: 0,
@ -2493,6 +2516,47 @@ export default {
console.error(error, 'error')
})
},
// 2
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')
// })
},
async isOnCreditRefChange(e) {
this.is_on_credit = e
// await this.$http('POST', '/api/admin/set_has_visit_fee', {
// is_on_credit: this.is_on_credit,
// 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['isOnCreditRef'],
// position: 'top'
// })
// }).catch(error => {
// console.error(error, 'error')
// })
},
changeSelectWeixin(item) {
// if(this.bindWxpayId === item.payid){
// this.bindWxpayId = 0
@ -2690,16 +2754,14 @@ 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;
// type,is_fixed,pay_switch,has_visit_fee,has_project_fee,is_on_credit,visit_price,
const {display_work_days,worktime_no_fixed,is_allow_coincide} = response.data
if(display_work_days > 0){
this.houseCallSettingForm.planDays = display_work_days;
}else{
this.houseCallSettingForm.display_work_days = display_work_days
}
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)] : []
@ -3610,42 +3672,49 @@ export default {
box-sizing: border-box;
background: #FAFAFA;
.biditemMast {
background: #fff;
padding: 24px 16px;
border-radius: 8px;
background: #FFFFFF;
align-items: flex-start;
}
.biditemMast {
background: #fff;
padding: 24px 16px;
border-radius: 8px;
background: #FFFFFF;
.bidwrap-item-top {
.top-right {
p {
margin-top: 10px;
color: #1E2226;
}
.bidwrap-item-top {
height: 100%;
.top-right {
height: 100%;
p {
margin-top: 10px;
color: #1E2226;
}
.desc {
color: #6B7280;
}
.desc {
color: #6B7280;
}
a {
text-decoration: none;
color: #006AFF;
a {
text-decoration: none;
color: #006AFF;
img {
margin-right: 10px;
}
img {
margin-right: 10px;
}
}
}
}
.bidwrap-item-bot {
padding-left: 54px;
justify-content: flex-end;
}
.bidwrap-item-bot {
padding-left: 54px;
justify-content: flex-end;
}
}
.projectWrap{
padding: 24px 14px;
box-sizing: border-box;
background: #FAFAFA;
height: 144px;
box-sizing: border-box;
}
.el-autocomplete-noloading {
display: none !important;
}

Loading…
Cancel
Save