|
|
|
@ -305,13 +305,18 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="siteMessage flex-common mt12" id="siteMessage7"> |
|
|
|
<div class="siteMessage flex-common mt12" id="siteMessage10"> |
|
|
|
<el-form> |
|
|
|
<div class="flex gap12"> |
|
|
|
<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> |
|
|
|
<p class="mb12" style="text-align: left;color: #1E2226;">赊欠功能</p> |
|
|
|
<div class="flex"> |
|
|
|
<GuipSwitch :value="is_on_credit" ref="isOnCreditRef" :active-value="1" :inactive-value="0" @change="isOnCreditRefChange"></GuipSwitch> |
|
|
|
<span class="desc">{{ is_on_credit == 1 ? '开启' : '关闭' }},开启后财务可给患者赊欠项目</span> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="siteMessage flex-common mt12" id="siteMessage4"> |
|
|
|
@ -699,7 +704,8 @@ export default { |
|
|
|
freeRegVisible:false, |
|
|
|
registrationVisible:false, |
|
|
|
hasVisitFee:null, |
|
|
|
hasProjectFee:null, |
|
|
|
hasProjectFee:null,//是否开启项目收费 |
|
|
|
is_on_credit:null,//是否开启赊欠 |
|
|
|
hasFreeRegisterRule:false, |
|
|
|
hasAgainVisitFreeDays:0, |
|
|
|
againVisitFreeDays:0, |
|
|
|
@ -848,7 +854,7 @@ export default { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 接口需要更改 |
|
|
|
// 接口需要更改 先分成2个方法 后续有需要进行合并 |
|
|
|
async onProjectFeeChange(e) { |
|
|
|
this.hasProjectFee = e |
|
|
|
// await this.$http('POST', '/api/admin/set_has_visit_fee', { |
|
|
|
@ -869,6 +875,26 @@ export default { |
|
|
|
// 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) { |
|
|
|
console.log(item, 'item') |
|
|
|
// if(this.bindWxpayId === item.payid){ |
|
|
|
@ -1069,12 +1095,14 @@ export default { |
|
|
|
'morning_worktime': response.data.morning_worktime ? response.data.morning_worktime.split('-') : '', |
|
|
|
'afternoon_worktime': response.data.afternoon_worktime ? response.data.afternoon_worktime.split('-') : '' |
|
|
|
} |
|
|
|
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.hasProjectFee = response.data.has_project_fee; |
|
|
|
this.registerMoney = response.data.visit_price; |
|
|
|
const {type,is_fixed,pay_switch,has_visit_fee,has_project_fee,is_on_credit,visit_price} = response.data |
|
|
|
this.departType = (type || type === 0 || type === "0") ? [Number(type)] : [] |
|
|
|
this.departIsFixed = is_fixed == "1" ? true : false |
|
|
|
this.onLinePay = pay_switch; |
|
|
|
this.hasVisitFee = has_visit_fee; |
|
|
|
this.hasProjectFee = has_project_fee; |
|
|
|
this.is_on_credit = is_on_credit; |
|
|
|
this.registerMoney = visit_price; |
|
|
|
|
|
|
|
this.hasAgainVisitFreeDays = response.data.has_again_visit_free_days |
|
|
|
this.againVisitFreeDays = response.data.again_visit_free_days |
|
|
|
|