| | |
| | | import { Search } from "@element-plus/icons-vue"; |
| | | import {onMounted, ref} from "vue"; |
| | | import FormDia from "@/views/personnelManagement/dimission/components/formDia.vue"; |
| | | import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js"; |
| | | import {findStaffLeaveListPage, batchDeleteStaffLeaves} from "@/api/personnelManagement/staffLeave.js"; |
| | | import {ElMessageBox} from "element-plus"; |
| | | |
| | | const data = reactive({ |
| | |
| | | prop: "sex", |
| | | }, |
| | | { |
| | | label: "籍贯", |
| | | label: "户籍住址", |
| | | prop: "nativePlace", |
| | | }, |
| | | { |
| | | label: "岗位", |
| | | prop: "postJob", |
| | | label: "部门", |
| | | prop: "deptName", |
| | | }, |
| | | { |
| | | label: "家庭住址", |
| | | label: "岗位", |
| | | prop: "postName", |
| | | }, |
| | | { |
| | | label: "现住址", |
| | | prop: "adress", |
| | | width:200 |
| | | }, |
| | | { |
| | | label: "第一学历", |
| | |
| | | { |
| | | label: "专业", |
| | | prop: "profession", |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "identityCard", |
| | | width:100 |
| | | }, |
| | | { |
| | | label: "年龄", |
| | |
| | | { |
| | | label: "联系电话", |
| | | prop: "phone", |
| | | width:150 |
| | | }, |
| | | { |
| | | label: "紧急联系人", |
| | |
| | | width: 120 |
| | | }, |
| | | { |
| | | label: "联系电话", |
| | | label: "紧急联系人电话", |
| | | prop: "emergencyContactPhone", |
| | | }, |
| | | { |
| | | label: "合同年限", |
| | | prop: "contractTerm", |
| | | }, |
| | | { |
| | | label: "合同开始日期", |
| | | prop: "contractStartTime", |
| | | width: 120 |
| | | }, |
| | | { |
| | | label: "合同结束日期", |
| | | prop: "contractEndTime", |
| | | width: 120 |
| | | width:150 |
| | | }, |
| | | { |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | fixed: 'right', |
| | | operation: [ |
| | | { |
| | | name: "编辑", |
| | |
| | | const formDia = ref() |
| | | const { proxy } = getCurrentInstance() |
| | | |
| | | |
| | | // 查询列表 |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |
| | |
| | | }; |
| | | const getList = () => { |
| | | tableLoading.value = true; |
| | | staffJoinListPage({...page, ...searchForm.value, staffState: 0}).then(res => { |
| | | findStaffLeaveListPage({...page, ...searchForm.value}).then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records |
| | | page.total = res.data.total; |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | staffJoinDel(ids).then((res) => { |
| | | batchDeleteStaffLeaves(ids).then((res) => { |
| | | proxy.$modal.msgSuccess("删除成功"); |
| | | getList(); |
| | | }); |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download("/staff/staffJoinLeaveRecord/export", {staffState: 0}, "人员离职.xlsx"); |
| | | proxy.download("/staff/staffLeave/export", {}, "人员离职.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |