diff --git a/src/store/index.js b/src/store/index.js index 84116e8..fd0ea94 100755 --- a/src/store/index.js +++ b/src/store/index.js @@ -51,6 +51,10 @@ export default new Vuex.Store({ name: '收挂号费', desc: 'siteMessage7' }, + { + name: '收项目费', + desc: 'siteMessage10' + }, ] }, { diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index afe7db6..267d985 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -305,13 +305,18 @@ -
+
-
+
收项目费 {{ hasProjectFee == 1 ? '开启' : '关闭' }},医院可以通过小程序收取项目费
+

赊欠功能

+
+ + {{ is_on_credit == 1 ? '开启' : '关闭' }},开启后财务可给患者赊欠项目 +
@@ -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