Browse Source

Merge pull request '是否允许预约设置' (#19) from project_charge_switch_setting into master

Reviewed-on: #19
master
longchao 6 days ago
parent
commit
0e63002299
  1. 20
      src/views/HosInformation.vue

20
src/views/HosInformation.vue

@ -58,6 +58,7 @@
</GuipSwitch>
</div>
</GuipFormItem>
<GuipFormItem column="column" class="mb24" label="使用功能">
<el-checkbox-group slot="formDom" v-model="departType" @change="validateSelection"
class="checkboxGroup">
@ -68,6 +69,16 @@
<el-checkbox :label="2">仅医生名片</el-checkbox>
</el-checkbox-group>
</GuipFormItem>
<GuipFormItem column="column" class="mb24" v-if="departType.length > 0 && departType[0] == 1">
<div slot="formLeft" class="form-top-icon">预约开关</div>
<div class="flex" slot="formDom" style="padding: 9px 0px;">
<GuipSwitch :value="previewIsOpen" @change="onPreviewSwitchChange" activeText="开启预约"
inactiveText="关闭预约" :active-value="true" :inactive-value="false">
</GuipSwitch>
</div>
</GuipFormItem>
<GuipFormItem column="column" class="" label="就诊提醒">
<div slot="formRight" class="desc">就诊前的注意事项非必填</div>
<GuipTextarea slot="formDom" v-model="form.notice" prop="notice" width="100%" height="84px"
@ -797,6 +808,7 @@ export default {
hospitalSearchFlag: false,
hospitalSearchTimeout: false,
departIsFixed: -1,
previewIsOpen:-1,
projectList: [],
projectTagData: [],
courseList: [],
@ -2692,6 +2704,7 @@ export default {
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
@ -2894,6 +2907,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)
@ -3093,7 +3110,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) {

Loading…
Cancel
Save