代码优化
parent
66eefc37ad
commit
9df30e466a
|
|
@ -1,51 +1,51 @@
|
|||
import request from '@/config/axios'
|
||||
|
||||
// 员工花名册 VO
|
||||
export interface EmployeeVO {
|
||||
id: number // 唯一标识符
|
||||
empName: string // 姓名
|
||||
idNo: string // 身份证号
|
||||
empNo: string // 工号
|
||||
station: string // 岗位
|
||||
bankNo: string // 银行卡号
|
||||
orgNo: number // 所属机构
|
||||
annuityNo: string // 企业年金帐号
|
||||
socialSecurityNo: string // 社保账号
|
||||
pensionNo: string // 养老金帐号
|
||||
housingFundNo: string // 住房公积金账号
|
||||
workTime: Date // 参加工作时间
|
||||
empStatus: string // 员工状态
|
||||
}
|
||||
|
||||
// 员工花名册 API
|
||||
export const EmployeeApi = {
|
||||
// 查询员工花名册分页
|
||||
getEmployeePage: async (params: any) => {
|
||||
return await request.get({ url: `/arcb/salary/employee/page`, params })
|
||||
},
|
||||
|
||||
// 查询员工花名册详情
|
||||
getEmployee: async (id: number) => {
|
||||
return await request.get({ url: `/arcb/salary/employee/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增员工花名册
|
||||
createEmployee: async (data: EmployeeVO) => {
|
||||
return await request.post({ url: `/arcb/salary/employee/create`, data })
|
||||
},
|
||||
|
||||
// 修改员工花名册
|
||||
updateEmployee: async (data: EmployeeVO) => {
|
||||
return await request.put({ url: `/arcb/salary/employee/update`, data })
|
||||
},
|
||||
|
||||
// 删除员工花名册
|
||||
deleteEmployee: async (id: number) => {
|
||||
return await request.delete({ url: `/arcb/salary/employee/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出员工花名册 Excel
|
||||
exportEmployee: async (params) => {
|
||||
return await request.download({ url: `/arcb/salary/employee/export-excel`, params })
|
||||
},
|
||||
}
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 员工花名册 VO
|
||||
export interface EmployeeVO {
|
||||
id: number // 唯一标识符
|
||||
empName: string // 姓名
|
||||
idNo: string // 身份证号
|
||||
empNo: string // 工号
|
||||
station: string // 岗位
|
||||
bankNo: string // 银行卡号
|
||||
orgNo: number // 所属机构
|
||||
annuityNo: string // 企业年金帐号
|
||||
socialSecurityNo: string // 社保账号
|
||||
pensionNo: string // 养老金帐号
|
||||
housingFundNo: string // 住房公积金账号
|
||||
workTime: Date // 参加工作时间
|
||||
empStatus: string // 员工状态
|
||||
}
|
||||
|
||||
// 员工花名册 API
|
||||
export const EmployeeApi = {
|
||||
// 查询员工花名册分页
|
||||
getEmployeePage: async (params: any) => {
|
||||
return await request.get({ url: `/salary/employee/page`, params })
|
||||
},
|
||||
|
||||
// 查询员工花名册详情
|
||||
getEmployee: async (id: number) => {
|
||||
return await request.get({ url: `/salary/employee/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增员工花名册
|
||||
createEmployee: async (data: EmployeeVO) => {
|
||||
return await request.post({ url: `/salary/employee/create`, data })
|
||||
},
|
||||
|
||||
// 修改员工花名册
|
||||
updateEmployee: async (data: EmployeeVO) => {
|
||||
return await request.put({ url: `/salary/employee/update`, data })
|
||||
},
|
||||
|
||||
// 删除员工花名册
|
||||
deleteEmployee: async (id: number) => {
|
||||
return await request.delete({ url: `/salary/employee/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出员工花名册 Excel
|
||||
exportEmployee: async (params) => {
|
||||
return await request.download({ url: `/salary/employee/export-excel`, params })
|
||||
},
|
||||
}
|
||||
|
|
@ -242,5 +242,5 @@ export enum DICT_TYPE {
|
|||
IOT_RW_TYPE = 'iot_rw_type', // IOT 读写类型
|
||||
|
||||
// ===================人力资源模块======================
|
||||
ARCB_EMP_STATUS = 'arcb_emp_status',
|
||||
ARCB_EMP_STATUS = 'arcb_emp_status', //员工状态
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-width="100px"
|
||||
label-width="150px"
|
||||
v-loading="formLoading"
|
||||
>
|
||||
<el-form-item label="姓名" prop="empName">
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
<el-date-picker
|
||||
v-model="formData.workTime"
|
||||
type="date"
|
||||
value-format="x"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="选择参加工作时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:model="queryParams"
|
||||
ref="queryFormRef"
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
label-width="109px"
|
||||
>
|
||||
<el-form-item label="姓名" prop="empName">
|
||||
<el-input
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
placeholder="请输入住房公积金账号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
class="!w-260px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="参加工作时间" prop="workTime">
|
||||
|
|
@ -131,7 +131,7 @@
|
|||
type="primary"
|
||||
plain
|
||||
@click="openForm('create')"
|
||||
v-hasPermi="['arcb:employee:create']"
|
||||
v-hasPermi="['salary:employee:create']"
|
||||
>
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
</el-button>
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
plain
|
||||
@click="handleExport"
|
||||
:loading="exportLoading"
|
||||
v-hasPermi="['arcb:employee:export']"
|
||||
v-hasPermi="['salary:employee:export']"
|
||||
>
|
||||
<Icon icon="ep:download" class="mr-5px" /> 导出
|
||||
</el-button>
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
<!-- 列表 -->
|
||||
<ContentWrap>
|
||||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
||||
<el-table-column label="唯一标识符" align="center" prop="id" />
|
||||
<!-- <el-table-column label="唯一标识符" align="center" prop="id" />-->
|
||||
<el-table-column label="姓名" align="center" prop="empName" />
|
||||
<el-table-column label="身份证号" align="center" prop="idNo" />
|
||||
<el-table-column label="工号" align="center" prop="empNo" />
|
||||
|
|
@ -174,7 +174,7 @@
|
|||
link
|
||||
type="primary"
|
||||
@click="openForm('update', scope.row.id)"
|
||||
v-hasPermi="['arcb:employee:update']"
|
||||
v-hasPermi="['salary:employee:update']"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
|
|
@ -182,7 +182,7 @@
|
|||
link
|
||||
type="danger"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
v-hasPermi="['arcb:employee:delete']"
|
||||
v-hasPermi="['salary:employee:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue