科室项目管理加HIS科室列

main
鹿和sa0ChunLuyu 5 days ago
parent a2eecac1e9
commit b31cea5137

@ -118,6 +118,18 @@ public function GetItemList($searchInfo,$page,$pageSize,$userid){
->where('item_id',$v->id) ->where('item_id',$v->id)
->whereIn('s_check_item_device.device_id', $deptDeviceIds) ->whereIn('s_check_item_device.device_id', $deptDeviceIds)
->get(); ->get();
// 解析HIS绑定科室
$deptNames = [];
if (!empty($v->hisExecDepts)) {
$deptCodes = json_decode($v->hisExecDepts, true);
if (!empty($deptCodes) && is_array($deptCodes)) {
$deptNames = DB::table('s_department')
->whereIn('department_number', $deptCodes)
->pluck('department_name')
->toArray();
}
}
$list[$k]->his_exec_dept_names = $deptNames;
} }
return \Yz::Return(true, '查询成功', ['list'=>$list,'count'=>$count]); return \Yz::Return(true, '查询成功', ['list'=>$list,'count'=>$count]);

@ -41,6 +41,12 @@
<el-table-column type="selection" width="50" /> <el-table-column type="selection" width="50" />
<el-table-column prop="item_code" label="检查项目编号" width="160" sortable="custom" /> <el-table-column prop="item_code" label="检查项目编号" width="160" sortable="custom" />
<el-table-column prop="item_name" label="检查项目名称" sortable="custom" /> <el-table-column prop="item_name" label="检查项目名称" sortable="custom" />
<el-table-column prop="his_exec_dept_names" label="HIS绑定科室" width="200">
<template #default="scope">
<el-tag v-for="(name, idx) in scope.row.his_exec_dept_names" :key="idx"
class="ml-2" style="margin-bottom: 2px; margin-right: 4px;">{{ name }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="reservation_method_name" label="预约方式" /> <el-table-column prop="reservation_method_name" label="预约方式" />
<el-table-column prop="limosis" label="要求空腹" width="100"> <el-table-column prop="limosis" label="要求空腹" width="100">
<template #default="scope"> <template #default="scope">

Loading…
Cancel
Save