|
|
@ -58,6 +58,7 @@ |
|
|
</GuipSwitch> |
|
|
</GuipSwitch> |
|
|
</div> |
|
|
</div> |
|
|
</GuipFormItem> |
|
|
</GuipFormItem> |
|
|
|
|
|
|
|
|
<GuipFormItem column="column" class="mb24" label="使用功能"> |
|
|
<GuipFormItem column="column" class="mb24" label="使用功能"> |
|
|
<el-checkbox-group slot="formDom" v-model="departType" @change="validateSelection" |
|
|
<el-checkbox-group slot="formDom" v-model="departType" @change="validateSelection" |
|
|
class="checkboxGroup"> |
|
|
class="checkboxGroup"> |
|
|
@ -68,6 +69,16 @@ |
|
|
<el-checkbox :label="2">仅医生名片</el-checkbox> |
|
|
<el-checkbox :label="2">仅医生名片</el-checkbox> |
|
|
</el-checkbox-group> |
|
|
</el-checkbox-group> |
|
|
</GuipFormItem> |
|
|
</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="就诊提醒"> |
|
|
<GuipFormItem column="column" class="" label="就诊提醒"> |
|
|
<div slot="formRight" class="desc">就诊前的注意事项,非必填</div> |
|
|
<div slot="formRight" class="desc">就诊前的注意事项,非必填</div> |
|
|
<GuipTextarea slot="formDom" v-model="form.notice" prop="notice" width="100%" height="84px" |
|
|
<GuipTextarea slot="formDom" v-model="form.notice" prop="notice" width="100%" height="84px" |
|
|
@ -797,6 +808,7 @@ export default { |
|
|
hospitalSearchFlag: false, |
|
|
hospitalSearchFlag: false, |
|
|
hospitalSearchTimeout: false, |
|
|
hospitalSearchTimeout: false, |
|
|
departIsFixed: -1, |
|
|
departIsFixed: -1, |
|
|
|
|
|
previewIsOpen:-1, |
|
|
projectList: [], |
|
|
projectList: [], |
|
|
projectTagData: [], |
|
|
projectTagData: [], |
|
|
courseList: [], |
|
|
courseList: [], |
|
|
@ -1977,14 +1989,14 @@ export default { |
|
|
}); |
|
|
}); |
|
|
// 存储一份副本,用于后续操作 |
|
|
// 存储一份副本,用于后续操作 |
|
|
this.hosListCopy = JSON.parse(JSON.stringify(this.hosList)) |
|
|
this.hosListCopy = JSON.parse(JSON.stringify(this.hosList)) |
|
|
|
|
|
|
|
|
// 保存原始数据 |
|
|
// 保存原始数据 |
|
|
this.rawScheduleData = JSON.parse(JSON.stringify(list)); |
|
|
this.rawScheduleData = JSON.parse(JSON.stringify(list)); |
|
|
|
|
|
|
|
|
// 初始化当前月份的排班数据 |
|
|
// 初始化当前月份的排班数据 |
|
|
this.generateMonthSchedule(this.currentDay); |
|
|
this.generateMonthSchedule(this.currentDay); |
|
|
this.countMonthlyConflicts(); |
|
|
this.countMonthlyConflicts(); |
|
|
|
|
|
|
|
|
this.hosLength = Object.keys(list).length; |
|
|
this.hosLength = Object.keys(list).length; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -2692,6 +2704,7 @@ export default { |
|
|
|
|
|
|
|
|
this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : [] |
|
|
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.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.onLinePay = response.data.pay_switch |
|
|
this.hasVisitFee = response.data.has_visit_fee |
|
|
this.hasVisitFee = response.data.has_visit_fee |
|
|
this.registerMoney = response.data.visit_price |
|
|
this.registerMoney = response.data.visit_price |
|
|
@ -2894,6 +2907,10 @@ export default { |
|
|
this.$set(this.projectList, row) |
|
|
this.$set(this.projectList, row) |
|
|
this.editorProjectInfo({ status: row.status, project_id: row.id }) |
|
|
this.editorProjectInfo({ status: row.status, project_id: row.id }) |
|
|
}, |
|
|
}, |
|
|
|
|
|
onPreviewSwitchChange(data) { |
|
|
|
|
|
this.form.preview_is_open = data ? 1 : 0 |
|
|
|
|
|
this.previewIsOpen = data |
|
|
|
|
|
}, |
|
|
onSwitchChange2(row) { |
|
|
onSwitchChange2(row) { |
|
|
var tmpstatus = row.status == 1 ? 0 : 1 |
|
|
var tmpstatus = row.status == 1 ? 0 : 1 |
|
|
this.$set(this.courseList, row) |
|
|
this.$set(this.courseList, row) |
|
|
@ -3093,7 +3110,8 @@ export default { |
|
|
is_fixed: this.form.is_fixed, |
|
|
is_fixed: this.form.is_fixed, |
|
|
type: this.departType[0], |
|
|
type: this.departType[0], |
|
|
notice: this.form.notice, |
|
|
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) { |
|
|
if (this.doctor_id && !this.depart_id) { |
|
|
|