|
|
@ -47,13 +47,13 @@ |
|
|
|
</div> |
|
|
|
</GuipFormItem> |
|
|
|
<GuipFormItem column="column" class="mb24" label="使用功能"> |
|
|
|
<el-checkbox-group slot="formDom" v-model="form.type" @change="validateSelection" class="checkboxGroup"> |
|
|
|
<!-- <el-checkbox-group slot="formDom" v-model="form.type" @change="validateSelection" class="checkboxGroup"> |
|
|
|
<div class="flex"> |
|
|
|
<el-checkbox :label="2" >医生名片(基础功能不可取消)</el-checkbox> |
|
|
|
<el-checkbox :label="0">患者预约</el-checkbox> |
|
|
|
</div> |
|
|
|
<el-checkbox :label="1">项目计数</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-checkbox-group> --> |
|
|
|
</GuipFormItem> |
|
|
|
<GuipFormItem column="column" class="" label="就诊提醒"> |
|
|
|
<div slot="formRight" class="desc">就诊前的注意事项,非必填</div> |
|
|
@ -141,8 +141,8 @@ |
|
|
|
<div class=" mb32 flex-between"> |
|
|
|
<span class="littleTitle">项目列表</span> |
|
|
|
<div class="flex-between" style="gap:10px"> |
|
|
|
<GuipButton size="table" type="ignore">新增分组</GuipButton> |
|
|
|
<GuipButton size="table" type="primary">新增项目</GuipButton> |
|
|
|
<GuipButton size="table" type="ignore" @click="addNewGroup">新增分组</GuipButton> |
|
|
|
<GuipButton size="table" type="primary" @click="addNewProject">新增项目</GuipButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="selectAllTable-wrap flex-between mt32"> |
|
|
@ -181,7 +181,7 @@ |
|
|
|
<el-table-column prop="name" label="项目名称" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="price" label="项目价格" min-width="125"></el-table-column> |
|
|
|
<el-table-column prop="group" label="分组" min-width="125"></el-table-column> |
|
|
|
<el-table-column prop="time" label="添加时间" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="create_time" label="添加时间" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="status" label="状态" min-width="125"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<GuipSwitch :modelValue="scope.row.status" @change="onSwitchChange1(scope.row)"> |
|
|
@ -228,10 +228,14 @@ |
|
|
|
<GuipTable :tableData="courseList" style="width: 100%" ref="multipleTable1" |
|
|
|
@selection-change="handleSelectionChange1" :loading="loading1"> |
|
|
|
<el-table-column type="selection" label="选择" width="80"></el-table-column> |
|
|
|
<el-table-column prop="name" label="项目名称" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="price" label="项目价格" min-width="125"></el-table-column> |
|
|
|
<el-table-column prop="group" label="分组" min-width="125"></el-table-column> |
|
|
|
<el-table-column prop="time" label="添加时间" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="name" label="套餐名称" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="price" label="套餐价格" min-width="125"></el-table-column> |
|
|
|
<el-table-column prop="group" label="套餐内容" min-width="125"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.project_classify_num }}项,共{{ scope.row.project_num_count }}次 |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="create_time" label="添加时间" min-width="225"></el-table-column> |
|
|
|
<el-table-column prop="status" label="状态" min-width="125"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<GuipSwitch :modelValue="scope.row.status" @change="onSwitchChange2(scope.row)"> |
|
|
@ -253,7 +257,7 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<GuipDialog :dialogVisible="dialogVisible" :title="dialogTitle" :show-close-button="true" width="762" |
|
|
|
type="center" :show-cancel-button="true" @confirm="handleConfirm" @cancel="handleCancel" |
|
|
|
:show-cancel-button="true" @confirm="handleConfirm" @cancel="handleCancel" |
|
|
|
@close="handleClose" @dialogVisibleChange="dialogVisibleChange"> |
|
|
|
<BatchProject v-if="dialogType == '1'" :projectTagData="projectTagData" @getproTag="getProTagData" /> |
|
|
|
</GuipDialog> |
|
|
@ -387,32 +391,7 @@ export default { |
|
|
|
id: '213' |
|
|
|
}, |
|
|
|
], |
|
|
|
courseList: [ |
|
|
|
{ |
|
|
|
name: '针灸', |
|
|
|
price: '88', |
|
|
|
group: '针灸1', |
|
|
|
time: '2077 - 12 - 20', |
|
|
|
status: true, |
|
|
|
id: '1' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: '拔罐', |
|
|
|
price: '188', |
|
|
|
group: '针灸2', |
|
|
|
time: '2077 - 12 - 20', |
|
|
|
status: true, |
|
|
|
id: '2' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: '火刺', |
|
|
|
price: '55', |
|
|
|
group: '针灸1', |
|
|
|
time: '2077 - 12 - 20', |
|
|
|
status: true, |
|
|
|
id: '3' |
|
|
|
}, |
|
|
|
], |
|
|
|
courseList: [], |
|
|
|
selectAll: false, |
|
|
|
selectAll1: false, |
|
|
|
numSettingForm: { |
|
|
@ -552,7 +531,9 @@ export default { |
|
|
|
// 请求医生信息 |
|
|
|
this.depart_id = depart_id; |
|
|
|
this.doctor_id = doctor_id; |
|
|
|
// this.fetchDoctorData() |
|
|
|
this.fetchDoctorData() |
|
|
|
this.fetchPackData() |
|
|
|
this.geHosAdress() |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -577,6 +558,45 @@ export default { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 疗程套餐 |
|
|
|
fetchPackData() { |
|
|
|
this.$http('POST', '/api/admin/get_project_packagelist', { |
|
|
|
depart_id: this.depart_id, |
|
|
|
doctor_id: this.doctor_id |
|
|
|
}).then(response => { |
|
|
|
if(response.code == 0){ |
|
|
|
this.courseList = response.data.list |
|
|
|
} |
|
|
|
console.log(this.courseList,'courseList='); |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 项目列表 |
|
|
|
fetchProjectData() { |
|
|
|
this.$http('POST', '/api/admin/get_project_packagelist', { |
|
|
|
depart_id: this.depart_id, |
|
|
|
doctor_id: this.doctor_id |
|
|
|
}).then(response => { |
|
|
|
if(response.code == 0){ |
|
|
|
this.courseList = response.data |
|
|
|
} |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
geHosAdress() { |
|
|
|
this.$http('POST', '/api/admin/search_hoispital', { |
|
|
|
keyword: this.doctor_id, |
|
|
|
}).then(response => { |
|
|
|
console.log(response.data,'===data'); |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
validateSelection(val) { |
|
|
|
// 防止取消选中医生名片 |
|
|
|
if (!val.includes(2)) { |
|
|
@ -619,6 +639,12 @@ export default { |
|
|
|
addNewSetMenu() { |
|
|
|
this.$router.push('/addNewTreatment') |
|
|
|
}, |
|
|
|
addNewGroup(){ |
|
|
|
this.dialogVisible1 = true |
|
|
|
}, |
|
|
|
addNewProject(){ |
|
|
|
this.dialogVisible = true |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
|
this.$Message.info('弹框已关闭'); |
|
|
|
this.dialogVisible = false; |
|
|
@ -725,7 +751,8 @@ export default { |
|
|
|
|
|
|
|
// 处理选择变化 |
|
|
|
handleSelectionChange1(rows) { |
|
|
|
this.selectedRows = rows; |
|
|
|
console.log(rows,'1====='); |
|
|
|
this.selectedRows1 = rows; |
|
|
|
// 更新全选按钮状态 |
|
|
|
const allSelected = rows.length === this.courseList.length; |
|
|
|
const noneSelected = rows.length === 0; |
|
|
@ -735,16 +762,19 @@ export default { |
|
|
|
}, |
|
|
|
// 批量操作 |
|
|
|
batchOperate(type,name) { |
|
|
|
if (type == '1') { |
|
|
|
// 默认疗程 |
|
|
|
let url= '/api/admin/project_package_mutil_option'; |
|
|
|
let props = {} |
|
|
|
if (type == '1') {//启用 |
|
|
|
// 禁用 |
|
|
|
if(name == 'project'){ |
|
|
|
// 修改项目列表 |
|
|
|
}else{ |
|
|
|
// selectedRows1 |
|
|
|
// 修改疗程套餐 |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
// 启用 |
|
|
|
if(name == 'project'){ |
|
|
|
// 修改项目列表 |
|
|
|
}else{ |
|
|
@ -752,6 +782,19 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.changePackData(url,props) |
|
|
|
}, |
|
|
|
// |
|
|
|
changePackData(url,params) { |
|
|
|
this.$http('POST',url , { |
|
|
|
...params |
|
|
|
}).then(response => { |
|
|
|
let data = response.data |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
ChangeTime(type) { |
|
|
|
|
|
|
|