鹿和sa0ChunLuyu 2 weeks ago
parent 1eb37e9c58
commit b5088f5e2f

@ -55,6 +55,22 @@ public function GetItemList($searchInfo,$page,$pageSize){
});
}
}
//只显示参与预约科室的项目
if (!empty($searchInfo['appointmentDeptOnly'])) {
$deptNumbers = DB::table('s_department')
->where('appointment_enabled', 1)
->where('is_del', 0)
->where('department_status', 1)
->pluck('department_number')
->toArray();
if (!empty($deptNumbers)) {
$list->where(function($q) use ($deptNumbers) {
foreach ($deptNumbers as $num) {
$q->orWhere('hisExecDepts', 'like', '%"' . $num . '"%');
}
});
}
}
$count = $list->count();
$list= $list
->leftJoin('s_appointment_type', 's_check_item.reservation_method', '=', 's_appointment_type.id')

@ -27,6 +27,7 @@
<el-option label="有执行科室" value="1" />
<el-option label="无执行科室" value="0" />
</el-select>
<el-checkbox v-model="searchInfo.appointmentDeptOnly" @change="GetItemList" style="margin-left: 15px;"></el-checkbox>
<el-input v-model="searchInfo.name" placeholder="请输入项目编号/名称" style="margin-left: 10px;" />
</div>
@ -315,7 +316,8 @@
orderField: '',
orderDirection: '',
hisExecDepts: '1',
deviceBind: ''
deviceBind: '',
appointmentDeptOnly: false
})
//
let selectedItemInfo = ref({

Loading…
Cancel
Save