|
|
|
@ -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; |
|
|
|
} |
|
|
|
|