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: '收挂号费', name: '收挂号费',
desc: 'siteMessage7' desc: 'siteMessage7'
}, },
{
name: '收项目费',
desc: 'siteMessage10'
},
] ]
}, },
{ {

131
src/views/HosInformation.vue

@ -306,7 +306,27 @@
</div> </div>
</el-form> </el-form>
</div> </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="siteMessage flex-common mt12" id="siteMessage8">
<div class="littleTitle mb12">出诊设置</div> <div class="littleTitle mb12">出诊设置</div>
<el-form :model="houseCallSettingForm"> <el-form :model="houseCallSettingForm">
@ -448,6 +468,7 @@
</el-calendar> </el-calendar>
</div> </div>
</div> </div>
<!-- <p class="pageTitle bold">项目管理</p> --> <!-- <p class="pageTitle bold">项目管理</p> -->
<div class="siteMessage flex-common mt12" id="siteMessage4"> <div class="siteMessage flex-common mt12" id="siteMessage4">
<el-form> <el-form>
@ -942,6 +963,8 @@ export default {
freeRegVisible: false, freeRegVisible: false,
registrationVisible: false, registrationVisible: false,
hasVisitFee: null, hasVisitFee: null,
hasProjectFee:null,//
is_on_credit:null,//
hasFreeRegisterRule: false, hasFreeRegisterRule: false,
hasAgainVisitFreeDays: 0, hasAgainVisitFreeDays: 0,
againVisitFreeDays: 0, againVisitFreeDays: 0,
@ -2493,6 +2516,47 @@ export default {
console.error(error, 'error') 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) { changeSelectWeixin(item) {
// if(this.bindWxpayId === item.payid){ // if(this.bindWxpayId === item.payid){
// this.bindWxpayId = 0 // this.bindWxpayId = 0
@ -2690,16 +2754,14 @@ export default {
'afternoon_worktime': response.data.afternoon_worktime ? response.data.afternoon_worktime.split('-') : '' 'afternoon_worktime': response.data.afternoon_worktime ? response.data.afternoon_worktime.split('-') : ''
} }
this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes)); this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes));
// --------- // 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; const {display_work_days,worktime_no_fixed,is_allow_coincide} = response.data
if(display_work_days > 0){ if(display_work_days > 0){
this.houseCallSettingForm.planDays = display_work_days; this.houseCallSettingForm.planDays = display_work_days;
}else{ }else{
this.houseCallSettingForm.display_work_days = display_work_days this.houseCallSettingForm.display_work_days = display_work_days
} }
this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed
// ---------
this.is_allow_coincide=is_allow_coincide this.is_allow_coincide=is_allow_coincide
this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : [] 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; box-sizing: border-box;
background: #FAFAFA; background: #FAFAFA;
.biditemMast { }
background: #fff; .biditemMast {
padding: 24px 16px; background: #fff;
border-radius: 8px; padding: 24px 16px;
background: #FFFFFF; border-radius: 8px;
align-items: flex-start; background: #FFFFFF;
.bidwrap-item-top { .bidwrap-item-top {
.top-right { height: 100%;
p { .top-right {
margin-top: 10px; height: 100%;
color: #1E2226; p {
} margin-top: 10px;
color: #1E2226;
}
.desc { .desc {
color: #6B7280; color: #6B7280;
} }
a { a {
text-decoration: none; text-decoration: none;
color: #006AFF; color: #006AFF;
img { img {
margin-right: 10px; margin-right: 10px;
}
} }
} }
} }
}
.bidwrap-item-bot { .bidwrap-item-bot {
padding-left: 54px; padding-left: 54px;
justify-content: flex-end; justify-content: flex-end;
}
} }
} }
.projectWrap{
padding: 24px 14px;
box-sizing: border-box;
background: #FAFAFA;
height: 144px;
box-sizing: border-box;
}
.el-autocomplete-noloading { .el-autocomplete-noloading {
display: none !important; display: none !important;
} }

Loading…
Cancel
Save