| | |
| | | <SearchInput |
| | | v-model="extraParamState.searchWord" |
| | | style="width: 250px" |
| | | placeholder="任务名称" |
| | | placeholder="姓名/身份证号/电话" |
| | | @on-click-search="getList" |
| | | @keyup.enter="getList()" |
| | | > |
| | |
| | | > |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <StaffInfoDialog v-bind="dialogStaffInfoProps" /> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | AppContainer, |
| | | QueryFilterItem, |
| | | useTable, |
| | | FieldDatePicker, |
| | | FieldRadio, |
| | | defineOperationBtns, |
| | | useFormDialog, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import * as flexEnterpriseServices from '@/services/api/FlexEnterprise'; |
| | | import { EmploymentSignColumns } from './constants/columns'; |
| | | import { OrderInputType, Message } from '@bole-core/core'; |
| | | import { useGlobalEventContext } from '@/hooks'; |
| | | import { FlexEnterpriseSettingStatus } from '@/constants'; |
| | | import { FlexEnterpriseSettingStatus, Gender } from '@/constants'; |
| | | import StaffInfoDialog from '@/views/FlexJobManage/components/StaffInfoDialog.vue'; |
| | | import { convertApi2FormUrlOnlyOne } from '@/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'EmploymentSignList', |
| | |
| | | ]); |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const route = useRoute(); |
| | | const id = route.params.id as string; |
| | | const BaseState = { |
| | | loading: true, |
| | | }; |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | | const eventContext = useGlobalEventContext(); |
| | | |
| | | eventContext.addEvent('employment:add', () => { |
| | | getList(); |
| | | }); |
| | | |
| | | eventContext.addEvent('employment:edit', () => { |
| | | getList(paginationState.pageIndex); |
| | | }); |
| | | |
| | | onMounted(async () => { |
| | | await getList(); |
| | |
| | | } |
| | | ); |
| | | |
| | | const { |
| | | dialogProps: dialogStaffInfoProps, |
| | | handleEdit: handleStaffInfoEdit, |
| | | editForm: staffInfoEditForm, |
| | | } = useFormDialog({ |
| | | defaultFormParams: { |
| | | id: '', |
| | | name: '', |
| | | idNumber: '', |
| | | phoneNumber: '', |
| | | genderType: Gender.Male, |
| | | age: 0, |
| | | companyId: '', |
| | | customerId: '', |
| | | idFrontUrl: [] as UploadUserFile[], |
| | | idBackUrl: [] as UploadUserFile[], |
| | | contractUrl: [] as UploadUserFile[], |
| | | regiterTime: '', |
| | | realVerifyTime: '', |
| | | signTime: '', |
| | | isDetail: false, |
| | | }, |
| | | }); |
| | | |
| | | function openDialog(row) { |
| | | handleStaffInfoEdit({ |
| | | id: row.id, |
| | | name: row.name, |
| | | idNumber: row.idNumber, |
| | | phoneNumber: row.phoneNumber, |
| | | genderType: Gender.Male, |
| | | age: row.age ?? 0, |
| | | companyId: row.companyId, |
| | | customerId: row.customerId, |
| | | idFrontUrl: convertApi2FormUrlOnlyOne(row.idFrontUrl), |
| | | idBackUrl: convertApi2FormUrlOnlyOne(row.idBackUrl), |
| | | contractUrl: convertApi2FormUrlOnlyOne(row.contractUrl, { |
| | | fileName: row.contractUrl ? row.contractUrl.split('/').pop() : '合同', |
| | | }), |
| | | regiterTime: row.regiterTime, |
| | | realVerifyTime: row.realVerifyTime, |
| | | signTime: row.signTime, |
| | | isDetail: true, |
| | | }); |
| | | } |
| | | |
| | | function handleRecruit(row) {} |
| | | function handleRefuse(row) {} |
| | | </script> |