| | |
| | | ></PIMTable> |
| | | </div> |
| | | <form-dia ref="formDia" @close="handleQuery"></form-dia> |
| | | <files-dia ref="filesDia"></files-dia> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js"; |
| | | import {ElMessageBox} from "element-plus"; |
| | | import dayjs from "dayjs"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | |
| | | prop: "sex", |
| | | }, |
| | | { |
| | | label: "籍贯", |
| | | label: "户籍住址", |
| | | prop: "nativePlace", |
| | | }, |
| | | { |
| | |
| | | prop: "postJob", |
| | | }, |
| | | { |
| | | label: "家庭住址", |
| | | label: "现住址", |
| | | prop: "adress", |
| | | width:200 |
| | | }, |
| | |
| | | label: "专业", |
| | | prop: "profession", |
| | | width:100 |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "identityCard", |
| | | width:200 |
| | | }, |
| | | { |
| | | label: "年龄", |
| | |
| | | width:150 |
| | | }, |
| | | { |
| | | label: "合同年限", |
| | | prop: "contractTerm", |
| | | label: "离职日期", |
| | | prop: "createTime", |
| | | width: 120, |
| | | formatData: (params) => { |
| | | if (params) { |
| | | return dayjs(params).format("YYYY-MM-DD"); |
| | | } |
| | | return "-"; |
| | | } |
| | | }, |
| | | { |
| | | label: "合同开始日期", |
| | |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | width: 120, |
| | | operation: [ |
| | | { |
| | | name: "编辑", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | openForm("edit", row); |
| | | }, |
| | | }, |
| | | { |
| | | name: "附件", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | openFilesFormDia(row); |
| | | }, |
| | | }, |
| | | ], |
| | |
| | | total: 0, |
| | | }); |
| | | const formDia = ref() |
| | | const filesDia = ref() |
| | | const { proxy } = getCurrentInstance() |
| | | |
| | | |
| | |
| | | } |
| | | getList(); |
| | | }; |
| | | // 打开附件弹框 |
| | | const openFilesFormDia = (row) => { |
| | | console.log(row) |
| | | nextTick(() => { |
| | | filesDia.value?.openDialog( row,'合同') |
| | | }) |
| | | }; |
| | | // 查询列表 |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |