| | |
| | | :isCollapse="true" |
| | | > |
| | | <template #footer> |
| | | <PageFooterBtn |
| | | <!-- <PageFooterBtn |
| | | v-if=" |
| | | enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Pass |
| | | " |
| | |
| | | plain |
| | | @click="handleUnsign" |
| | | >解约</PageFooterBtn |
| | | > |
| | | <PageFooterBtn |
| | | > --> |
| | | <!-- <PageFooterBtn |
| | | type="primary" |
| | | @click="goToSign" |
| | | v-if=" |
| | |
| | | !enterpriseEmployeeInfo.userSignContractStatus |
| | | " |
| | | >签约</PageFooterBtn |
| | | > |
| | | > --> |
| | | </template> |
| | | </JobDetailContent> |
| | | </LoadingLayout> |
| | |
| | | } |
| | | function goFlexJobSign(item: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.flexJobSign}?enterpriseEmployeeId=${item.id}`, |
| | | url: `${RouterPath.flexJobSign}?enterpriseEmployeeId=${item.id}&enterpriseId=${item.enterpriseId}`, |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | const router = Taro.useRouter(); |
| | | const enterpriseEmployeeId = router.params?.enterpriseEmployeeId ?? ''; |
| | | const enterpriseId = router.params?.enterpriseId ?? ''; |
| | | |
| | | const searchValue = ref(''); |
| | | const queryState = reactive({ |
| | |
| | | }, |
| | | keywords: queryState.keywords, |
| | | status: EnumContractTemplateStatus.Completed, |
| | | enterpriseId: enterpriseId, |
| | | }; |
| | | |
| | | return electronSignServices.getEnterpriseContractTemplates(params, { |
| | |
| | | <div class="payroll-manage-detail-top-content-item"> |
| | | <div class="payroll-manage-detail-top-content-item-label">服务费金额:</div> |
| | | <div class="payroll-manage-detail-top-content-item-text"> |
| | | {{ `${form.serviceFee ?? 0}${EnumBillingMethodText[form.billingMethod]}` }} |
| | | {{ `${form.serviceFee ?? 0}${BillingMethodEnumUnit[form.billingMethod]}` }} |
| | | </div> |
| | | </div> |
| | | <div class="payroll-manage-detail-top-content-item"> |
| | |
| | | EnumBillingMethodText, |
| | | EnumTaskSettlementAuditStatus, |
| | | EnumTaskSettlementStatus, |
| | | BillingMethodEnumUnit, |
| | | } from '@12333/constants'; |
| | | import PayrollManageDetailCard from '../components/PayrollManageDetailCard.vue'; |
| | | import { Message, paginateList, setOSSLink, toThousand } from '@12333/utils'; |
| | |
| | | <CompanyTaskList :enterpriseId="enterpriseId" /> |
| | | </ProTabPane> |
| | | <ProTabPane :title="`企业信息`" pane-key="2"> |
| | | <CompanyInfo :enterpriseId="enterpriseId" /> |
| | | <CompanyInfo |
| | | :enterpriseId="enterpriseId" |
| | | :supplierEnterpriseId="supplierEnterpriseId" |
| | | /> |
| | | </ProTabPane> |
| | | </ProTabs> |
| | | </div> |
| | |
| | | |
| | | const router = Taro.useRouter(); |
| | | const enterpriseId = router.params?.id ?? ''; |
| | | const supplierEnterpriseId = router.params?.supplierEnterpriseId ?? ''; |
| | | |
| | | const tab = ref('1'); |
| | | |
| | | const { isLoading, isError, enterpriseDetail, refetch } = useEnterpriseDetail({ id: enterpriseId }); |
| | | const { isLoading, isError, enterpriseDetail, refetch } = useEnterpriseDetail({ |
| | | id: enterpriseId, |
| | | supplierEnterpriseId: supplierEnterpriseId, |
| | | }); |
| | | </script> |
| | |
| | | |
| | | type Props = { |
| | | enterpriseId?: string; |
| | | supplierEnterpriseId?: string; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | |
| | | const { enterpriseDetail } = useEnterpriseDetail({ id: toRef(props, 'enterpriseId') }); |
| | | const { enterpriseDetail } = useEnterpriseDetail({ |
| | | id: toRef(props, 'enterpriseId'), |
| | | supplierEnterpriseId: toRef(props, 'supplierEnterpriseId'), |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | |
| | | const goCompanyDetail = useAccessLogin(() => { |
| | | if (detail.value.enterpriseId) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.companyDetail}?id=${detail.value.enterpriseId}`, |
| | | url: `${RouterPath.companyDetail}?id=${detail.value.enterpriseId}&supplierEnterpriseId=${detail.value.supplierEnterpriseId}`, |
| | | }); |
| | | } |
| | | }); |
| | |
| | | |
| | | type UseEnterpriseDetailOptions = { |
| | | id: MaybeRef<string>; |
| | | supplierEnterpriseId?: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useEnterpriseDetail({ id }: UseEnterpriseDetailOptions) { |
| | | export function useEnterpriseDetail({ id, supplierEnterpriseId }: UseEnterpriseDetailOptions) { |
| | | const { data, refetch, isLoading, isError } = useQuery({ |
| | | queryKey: ['taskServices/getTaskEnterprise', id], |
| | | queryFn: async () => { |
| | | return await taskServices.getTaskEnterprise( |
| | | { id: unref(id) }, |
| | | { id: unref(id), supplierEnterpriseId: unref(supplierEnterpriseId) }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | |
| | | } |
| | | |
| | | interface APIgetEnterpriseContractTemplateSelectParams { |
| | | /** 查询企业合同模板选择器数据 */ |
| | | request?: GetEnterpriseContractTemplateSelectQuery; |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseElectronSignSettingParams { |
| | |
| | | interface APIgetTaskEnterpriseParams { |
| | | /** 企业Id */ |
| | | id?: string; |
| | | /** 供应商Id */ |
| | | supplierEnterpriseId?: string; |
| | | } |
| | | |
| | | interface APIgetTaskInfoParams { |
| | |
| | | content?: string[]; |
| | | } |
| | | |
| | | type GetEnterpriseContractTemplateSelectQuery = Record<string, any>; |
| | | |
| | | interface GetEnterpriseContractTemplateSelectQueryOption { |
| | | /** Id */ |
| | | id?: string; |
| | |
| | | interface GetEnterpriseEmployeesQueryResultItem { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | | /** 头像 */ |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | |
| | | interface GetTaskEnterpriseQueryResult { |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 供应商名称 */ |
| | | supplierEnterpriseName?: string; |
| | | /** 统一社会信用代码 */ |
| | | societyCreditCode?: string; |
| | | /** 是否实名 */ |