1.添加健康小屋数据
2.天假体检数据
This commit is contained in:
2025-12-03 16:12:26 +08:00
parent f696bac580
commit 8a4113f5d4
6 changed files with 167 additions and 18 deletions
@@ -0,0 +1,7 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/health-emergency/emergency/LargeScreenNew/healthPlaceHomeDetailList',
map = '/health-emergency/emergency/LargeScreenNew/map',
}
export const listApi = (params: any) => defHttp.post({ url: Api.list, params });
export const mapApi = () => defHttp.get({ url: Api.map, params: { type: '3' } });
@@ -1,5 +1,81 @@
import { BasicColumn, FormSchema } from '/@/components/Table';
import { mapApi } from '/@/views/healthMonitor/anY/cottage/cottage.api';
export const columns: BasicColumn[] = [];
export const columns: BasicColumn[] = [
{
title: '所属单位',
dataIndex: 'departName',
},
{
title: '小屋名称',
dataIndex: 'roomName',
},
{
title: '小屋地址',
dataIndex: 'address',
},
{
title: '员工姓名',
dataIndex: 'name',
},
{
title: '员工编号',
dataIndex: 'employeeNum',
width: 100,
},
{
title: '检测类型',
dataIndex: 'checkTypeName',
width: 100,
},
{
title: '测量值',
dataIndex: 'currentVal',
width: 100,
},
{
title: '目标值',
dataIndex: 'goalVal',
width: 100,
},
{
title: '检测日期',
dataIndex: 'checkInDate',
width: 100,
},
];
export const searchScheme: FormSchema[] = [];
export const searchScheme: FormSchema[] = [
{
field: 'name',
label: '员工姓名',
component: 'Input',
},
{
field: 'healthRoomId',
label: '健康小屋',
component: 'ApiSelect',
componentProps: () => ({
api: mapApi,
resultField: 'result',
labelField: 'name',
valueField: 'ayId',
immediate: true,
showSearch: true,
showDefaultValue: false,
filterOption: (input: string, option: any): boolean => {
const str: string = input.toLowerCase();
return option.label.toLowerCase().indexOf(str) >= 0;
},
}),
},
{
field: 'date',
label: '检测日期',
component: 'RangeDate',
componentProps: () => ({
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
}),
},
];
@@ -4,11 +4,11 @@
<script setup lang="ts">
import { BasicTable } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { list } from '/@/views/healthMonitor/healMonitorManage/monitorToll/toolManagement/toolManagement.api';
import { columns, searchScheme } from '/@/views/healthMonitor/anY/cottage/cottage.data';
import { listApi } from '/@/views/healthMonitor/anY/cottage/cottage.api';
const { tableContext } = useListPage({
tableProps: {
api: list,
api: listApi,
columns,
immediate: true,
canResize: false,
@@ -18,12 +18,9 @@
autoSubmitOnEnter: true,
showAdvancedButton: false,
fieldMapToNumber: [],
fieldMapToTime: [],
},
actionColumn: {
width: 200,
fixed: 'right',
fieldMapToTime: [['date', ['checkInDateBegin', 'checkInDateEnd'], 'YYYY-MM-DD']],
},
showActionColumn: false,
},
});
@@ -0,0 +1,5 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/health-emergency/emergency/LargeScreenNew/queryAnYanHealthCheckNew',
}
export const listApi = (params: any) => defHttp.post({ url: Api.list, params });
@@ -1,5 +1,72 @@
import { BasicColumn, FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [];
export const columns: BasicColumn[] = [
{
title: '单位部门',
dataIndex: 'workUnit',
},
{
title: '员工姓名',
dataIndex: 'name',
},
{
title: '员工编号',
dataIndex: 'employeeNum',
},
{
title: '员工性别',
dataIndex: 'sexCodeText',
width: 80,
},
{
title: '员工民族',
dataIndex: 'nationalityValueText',
},
{
title: '联系方式',
dataIndex: 'phone',
},
{
title: '体检医院',
dataIndex: 'hospitalName',
},
{
title: '体检医生',
dataIndex: 'checkDoctor',
},
{
title: '体检编号',
dataIndex: 'checkId',
},
{
title: '体检日期',
dataIndex: 'checkDate',
},
];
export const searchScheme: FormSchema[] = [];
export const searchScheme: FormSchema[] = [
{
field: 'name',
label: '员工姓名',
component: 'Input',
},
{
field: 'employeeNum',
label: '员工编号',
component: 'Input',
},
{
field: 'hospitalName',
label: '体检医院',
component: 'Input',
},
{
field: 'date',
label: '体检日期',
component: 'RangeDate',
componentProps: () => ({
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
}),
},
];
@@ -4,11 +4,11 @@
<script setup lang="ts">
import { BasicTable } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { list } from '/@/views/healthMonitor/healMonitorManage/monitorToll/toolManagement/toolManagement.api';
import { columns, searchScheme } from '/@/views/healthMonitor/anY/physical/physical.data';
import { listApi } from '/@/views/healthMonitor/anY/physical/physical.api';
const { tableContext } = useListPage({
tableProps: {
api: list,
api: listApi,
columns,
immediate: true,
canResize: false,
@@ -18,12 +18,9 @@
autoSubmitOnEnter: true,
showAdvancedButton: false,
fieldMapToNumber: [],
fieldMapToTime: [],
},
actionColumn: {
width: 200,
fixed: 'right',
fieldMapToTime: [['date', ['checkDateStart', 'checkDateEnd'], 'YYYY-MM-DD']],
},
showActionColumn: false,
},
});