This commit is contained in:
2025-11-27 23:50:26 +08:00
parent 40243abb84
commit 489b2314ab
86 changed files with 9534 additions and 266 deletions

View File

@@ -0,0 +1,159 @@
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
import { BasicColumn, BasicTableProps, FormProps } from '@jeesite/core/components/Table';
import { BizCompany, bizCompanyListData } from '@jeesite/biz/api/biz/company';
const { t } = useI18n('biz.company');
const modalProps = {
title: t('公司信息选择'),
};
const searchForm: FormProps<BizCompany> = {
baseColProps: { md: 8, lg: 6 },
labelWidth: 90,
schemas: [
{
label: t('记录日期起'),
field: 'createTime_gte',
component: 'DatePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm',
showTime: { format: 'HH:mm' },
},
},
{
label: t('记录日期止'),
field: 'createTime_lte',
component: 'DatePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm',
showTime: { format: 'HH:mm' },
},
},
{
label: t('公司名称'),
field: 'companyName',
component: 'Input',
},
{
label: t('公司地址'),
field: 'address',
component: 'Input',
},
{
label: t('联系人员'),
field: 'contactPerson',
component: 'Input',
},
{
label: t('说明备注'),
field: 'remarks',
component: 'Input',
},
{
label: t('公司状态'),
field: 'compStatus',
component: 'Select',
componentProps: {
dictType: '',
allowClear: true,
},
},
],
};
const tableColumns: BasicColumn<BizCompany>[] = [
{
title: t('记录日期'),
dataIndex: 'createTime',
key: 'a.create_time',
sorter: true,
width: 180,
align: 'left',
slot: 'firstColumn',
},
{
title: t('公司名称'),
dataIndex: 'companyName',
key: 'a.company_name',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('公司地址'),
dataIndex: 'address',
key: 'a.address',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('联系人员'),
dataIndex: 'contactPerson',
key: 'a.contact_person',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('联系电话'),
dataIndex: 'phoneNumber',
key: 'a.phone_number',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('电子邮箱'),
dataIndex: 'email',
key: 'a.email',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('官方网址'),
dataIndex: 'websiteUrl',
key: 'a.website_url',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('说明备注'),
dataIndex: 'remarks',
key: 'a.remarks',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('公司状态'),
dataIndex: 'compStatus',
key: 'a.comp_status',
sorter: true,
width: 130,
align: 'left',
dictType: 'ustatus ',
},
];
const tableProps: BasicTableProps = {
api: bizCompanyListData,
beforeFetch: (params) => {
params['isAll'] = true;
return params;
},
columns: tableColumns,
formConfig: searchForm,
rowKey: 'companyId',
};
export default {
modalProps,
tableProps,
itemCode: 'companyId',
itemName: 'companyName',
isShowCode: true,
};

View File

@@ -0,0 +1,163 @@
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
import { BasicColumn, BasicTableProps, FormProps } from '@jeesite/core/components/Table';
import { BizResumeEmployee, bizResumeEmployeeListData } from '@jeesite/biz/api/biz/resumeEmployee';
const { t } = useI18n('biz.resumeEmployee');
const modalProps = {
title: t('员工信息选择'),
};
const searchForm: FormProps<BizResumeEmployee> = {
baseColProps: { md: 8, lg: 6 },
labelWidth: 90,
schemas: [
{
label: t('记录时间起'),
field: 'createTime_gte',
component: 'DatePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm',
showTime: { format: 'HH:mm' },
},
},
{
label: t('记录时间止'),
field: 'createTime_lte',
component: 'DatePicker',
componentProps: {
format: 'YYYY-MM-DD HH:mm',
showTime: { format: 'HH:mm' },
},
},
{
label: t('员工姓名'),
field: 'employeeName',
component: 'Input',
},
{
label: t('员工编号'),
field: 'employeeCode',
component: 'Input',
},
{
label: t('电子邮件'),
field: 'email',
component: 'Input',
},
{
label: t('性别'),
field: 'sex',
component: 'RadioGroup',
componentProps: {
dictType: 'sys_user_sex',
},
},
{
label: t('状态'),
field: 'employeeStatus',
component: 'Select',
componentProps: {
dictType: 'ustatus',
allowClear: true,
},
},
],
};
const tableColumns: BasicColumn<BizResumeEmployee>[] = [
{
title: t('记录时间'),
dataIndex: 'createTime',
key: 'a.create_time',
sorter: true,
width: 180,
align: 'left',
slot: 'firstColumn',
},
{
title: t('员工姓名'),
dataIndex: 'employeeName',
key: 'a.employee_name',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('员工编号'),
dataIndex: 'employeeCode',
key: 'a.employee_code',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('电子邮件'),
dataIndex: 'email',
key: 'a.email',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('移动电话'),
dataIndex: 'phoneNumber',
key: 'a.phone_number',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('性别'),
dataIndex: 'sex',
key: 'a.sex',
sorter: true,
width: 130,
align: 'center',
dictType: 'sys_user_sex',
},
{
title: t('职位'),
dataIndex: 'employeePosition',
key: 'a.employee_position',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('入职日期'),
dataIndex: 'hireDate',
key: 'a.hire_date',
sorter: true,
width: 130,
align: 'left',
},
{
title: t('状态'),
dataIndex: 'employeeStatus',
key: 'a.employee_status',
sorter: true,
width: 130,
align: 'left',
dictType: 'ustatus',
},
];
const tableProps: BasicTableProps = {
api: bizResumeEmployeeListData,
beforeFetch: (params) => {
params['isAll'] = true;
return params;
},
columns: tableColumns,
formConfig: searchForm,
rowKey: 'employeeId',
};
export default {
modalProps,
tableProps,
itemCode: 'employeeId',
itemName: 'employeeName',
isShowCode: true,
};