diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index d763b25..9fcd2e4 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -58,6 +58,7 @@ + @@ -68,6 +69,16 @@ 仅医生名片 + + +
预约开关
+
+ + +
+
+
就诊前的注意事项,非必填
0){ this.houseCallSettingForm.planDays = display_work_days; }else{ @@ -2743,13 +2755,12 @@ export default { this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed this.is_allow_coincide=is_allow_coincide - 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.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.previewIsOpen = response.data.preview_is_open == "1" ? true : false + this.onLinePay = response.data.pay_switch + this.hasVisitFee = response.data.has_visit_fee + this.registerMoney = response.data.visit_price this.hasAgainVisitFreeDays = response.data.has_again_visit_free_days this.againVisitFreeDays = response.data.again_visit_free_days @@ -2949,6 +2960,10 @@ export default { this.$set(this.projectList, row) this.editorProjectInfo({ status: row.status, project_id: row.id }) }, + onPreviewSwitchChange(data) { + this.form.preview_is_open = data ? 1 : 0 + this.previewIsOpen = data + }, onSwitchChange2(row) { var tmpstatus = row.status == 1 ? 0 : 1 this.$set(this.courseList, row) @@ -3148,7 +3163,8 @@ export default { is_fixed: this.form.is_fixed, type: this.departType[0], notice: this.form.notice, - h_shortname: this.form.h_shortname + h_shortname: this.form.h_shortname, + preview_is_open: this.previewIsOpen ? 1 : 0 } if (this.doctor_id && !this.depart_id) {