1、调整员工管理-员工管理-卡片样式

2、解决身份证长期问题
This commit is contained in:
1378012178@qq.com 2025-09-23 15:28:59 +08:00
parent 32b84d837d
commit 32a8922c04
9 changed files with 635 additions and 521 deletions

View File

@ -2,7 +2,7 @@
VITE_USE_MOCK = false VITE_USE_MOCK = false
# 发布路径 # 发布路径
VITE_PUBLIC_PATH = /biz102 VITE_PUBLIC_PATH = /biz103
# 是否启用gzip或brotli压缩 # 是否启用gzip或brotli压缩
# 选项值: gzip | brotli | none # 选项值: gzip | brotli | none
@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填) #后台接口父地址(必填)
VITE_GLOB_API_URL=/nursingunit102 VITE_GLOB_API_URL=/nursingunit103
#后台接口全路径地址(必填) #后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit102 VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit103
# 接口父路径前缀 # 接口父路径前缀
VITE_GLOB_API_URL_PREFIX= VITE_GLOB_API_URL_PREFIX=

View File

@ -2,190 +2,218 @@
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<JFormContainer :disabled="disabled"> <JFormContainer :disabled="disabled">
<template #detail> <template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuEmployeesAdvisoryInfoForm"> <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
name="NuEmployeesAdvisoryInfoForm">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'基本信息'" /> <SectionDivider :title="'基本信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="身份证正面" v-bind="validateInfos.cardZmPath" id="NuEmployeesAdvisoryInfoForm-cardZmPath" name="cardZmPath"> <a-form-item label="身份证正面" v-bind="validateInfos.cardZmPath" id="NuEmployeesAdvisoryInfoForm-cardZmPath"
<j-image-upload :fileMax="1" text="无" v-model:value="formData.cardZmPath" disabled ></j-image-upload> name="cardZmPath">
</a-form-item> <j-image-upload :fileMax="1" text="无" v-model:value="formData.cardZmPath" disabled></j-image-upload>
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item label="身份证反面" v-bind="validateInfos.cardFmPath" id="NuEmployeesAdvisoryInfoForm-cardFmPath" name="cardFmPath"> <a-col :span="12">
<j-image-upload :fileMax="1" text="无" v-model:value="formData.cardFmPath" disabled ></j-image-upload> <a-form-item label="身份证反面" v-bind="validateInfos.cardFmPath" id="NuEmployeesAdvisoryInfoForm-cardFmPath"
</a-form-item> name="cardFmPath">
</a-col> <j-image-upload :fileMax="1" text="无" v-model:value="formData.cardFmPath" disabled></j-image-upload>
<a-col :span="12"> </a-form-item>
<a-form-item label="咨询人姓名" v-bind="validateInfos.name" id="NuEmployeesAdvisoryInfoForm-name" name="name"> </a-col>
<!-- <a-input v-model:value="formData.name" placeholder="请输入咨询人姓名" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.name}} <a-form-item label="咨询人姓名" v-bind="validateInfos.name" id="NuEmployeesAdvisoryInfoForm-name" name="name">
</a-form-item> <!-- <a-input v-model:value="formData.name" placeholder="请输入咨询人姓名" allow-clear disabled ></a-input> -->
</a-col> {{ formData.name }}
<a-col :span="12"> </a-form-item>
<a-form-item label="性别" v-bind="validateInfos.sex" id="NuEmployeesAdvisoryInfoForm-sex" name="sex"> </a-col>
<!-- <a-input v-model:value="formData.sex" placeholder="请输入性别" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.sex}} <a-form-item label="性别" v-bind="validateInfos.sex" id="NuEmployeesAdvisoryInfoForm-sex" name="sex">
</a-form-item> <!-- <a-input v-model:value="formData.sex" placeholder="请输入性别" allow-clear disabled ></a-input> -->
</a-col> {{ formData.sex }}
<a-col :span="12"> </a-form-item>
<a-form-item label="民族" v-bind="validateInfos.national" id="NuEmployeesAdvisoryInfoForm-national" name="national"> </a-col>
<!-- <a-input v-model:value="formData.national" placeholder="请输入民族" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.national}} <a-form-item label="民族" v-bind="validateInfos.national" id="NuEmployeesAdvisoryInfoForm-national"
</a-form-item> name="national">
</a-col> <!-- <a-input v-model:value="formData.national" placeholder="请输入民族" allow-clear disabled ></a-input> -->
<a-col :span="12"> {{ formData.national }}
<a-form-item label="出生日期" v-bind="validateInfos.birthDate" id="NuEmployeesAdvisoryInfoForm-birthDate" name="birthDate"> </a-form-item>
<!-- <a-date-picker placeholder="请选择出生日期" v-model:value="formData.birthDate" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> --> </a-col>
{{formData.birthDate}} <a-col :span="12">
</a-form-item> <a-form-item label="出生日期" v-bind="validateInfos.birthDate" id="NuEmployeesAdvisoryInfoForm-birthDate"
</a-col> name="birthDate">
<a-col :span="12"> <!-- <a-date-picker placeholder="请选择出生日期" v-model:value="formData.birthDate" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> -->
<a-form-item label="住址" v-bind="validateInfos.idCardAddress" id="NuEmployeesAdvisoryInfoForm-idCardAddress" name="idCardAddress"> {{ formData.birthDate }}
<!-- <a-input v-model:value="formData.idCardAddress" placeholder="请输入住址" allow-clear disabled ></a-input> --> </a-form-item>
{{formData.idCardAddress}} </a-col>
</a-form-item> <a-col :span="12">
</a-col> <a-form-item label="住址" v-bind="validateInfos.idCardAddress"
<a-col :span="12"> id="NuEmployeesAdvisoryInfoForm-idCardAddress" name="idCardAddress">
<a-form-item label="身份证号" v-bind="validateInfos.idCard" id="NuEmployeesAdvisoryInfoForm-idCard" name="idCard"> <!-- <a-input v-model:value="formData.idCardAddress" placeholder="请输入住址" allow-clear disabled ></a-input> -->
<!-- <a-input v-model:value="formData.idCard" placeholder="请输入身份证号" allow-clear disabled ></a-input> --> {{ formData.idCardAddress }}
{{formData.idCard}} </a-form-item>
</a-form-item> </a-col>
</a-col> <a-col :span="12">
<a-col :span="12"> <a-form-item label="身份证号" v-bind="validateInfos.idCard" id="NuEmployeesAdvisoryInfoForm-idCard"
<a-form-item label="签发机关" v-bind="validateInfos.issuingAuthority" id="NuEmployeesAdvisoryInfoForm-issuingAuthority" name="issuingAuthority"> name="idCard">
<!-- <a-input v-model:value="formData.issuingAuthority" placeholder="请输入签发机关" allow-clear disabled ></a-input> --> <!-- <a-input v-model:value="formData.idCard" placeholder="请输入身份证号" allow-clear disabled ></a-input> -->
{{formData.issuingAuthority}} {{ formData.idCard }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="有效开始日期" v-bind="validateInfos.startTime" id="NuEmployeesAdvisoryInfoForm-startTime" name="startTime"> <a-form-item label="签发机关" v-bind="validateInfos.issuingAuthority"
<!-- <a-date-picker placeholder="请选择有效开始日期" v-model:value="formData.startTime" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> --> id="NuEmployeesAdvisoryInfoForm-issuingAuthority" name="issuingAuthority">
{{formData.startTime}} <!-- <a-input v-model:value="formData.issuingAuthority" placeholder="请输入签发机关" allow-clear disabled ></a-input> -->
</a-form-item> {{ formData.issuingAuthority }}
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item label="有效结束日期" v-bind="validateInfos.endTime" id="NuEmployeesAdvisoryInfoForm-endTime" name="endTime"> <a-col :span="12">
<!-- <a-date-picker placeholder="请选择有效结束日期" v-model:value="formData.endTime" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> --> <a-form-item label="有效开始日期" v-bind="validateInfos.startTime" id="NuEmployeesAdvisoryInfoForm-startTime"
{{formData.endTime}} name="startTime">
</a-form-item> <!-- <a-date-picker placeholder="请选择有效开始日期" v-model:value="formData.startTime" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> -->
</a-col> {{ formData.startTime }}
<a-col :span="12"> </a-form-item>
<a-form-item label="联系电话" v-bind="validateInfos.tel" id="NuEmployeesAdvisoryInfoForm-tel" name="tel"> </a-col>
<!-- <a-input v-model:value="formData.tel" placeholder="请输入联系电话" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.tel}} <a-form-item label="有效结束日期" v-bind="validateInfos.endTime" id="NuEmployeesAdvisoryInfoForm-endTime"
</a-form-item> name="endTime">
</a-col> <!-- <a-date-picker placeholder="请选择有效结束日期" v-model:value="formData.endTime" disabled value-format="YYYY-MM-DD" style="width: 100%" allow-clear /> -->
{{ formData.endTime == '9999-12-31' ? '长期' : formData.endTime }}
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="联系电话" v-bind="validateInfos.tel" id="NuEmployeesAdvisoryInfoForm-tel" name="tel">
<!-- <a-input v-model:value="formData.tel" placeholder="请输入联系电话" allow-clear disabled ></a-input> -->
{{ formData.tel }}
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'其他信息'" /> <SectionDivider :title="'其他信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="婚否" v-bind="validateInfos.maritalStatus" id="NuEmployeesAdvisoryInfoForm-maritalStatus" name="maritalStatus"> <a-form-item label="婚否" v-bind="validateInfos.maritalStatus"
<!-- <a-input v-model:value="formData.maritalStatus" placeholder="请输入婚否" allow-clear disabled ></a-input> --> id="NuEmployeesAdvisoryInfoForm-maritalStatus" name="maritalStatus">
{{formData.maritalStatus}} <!-- <a-input v-model:value="formData.maritalStatus" placeholder="请输入婚否" allow-clear disabled ></a-input> -->
</a-form-item> {{ formData.maritalStatus }}
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item label="身高" v-bind="validateInfos.height" id="NuEmployeesAdvisoryInfoForm-height" name="height"> <a-col :span="12">
<!-- <a-input v-model:value="formData.height" placeholder="请输入身高" allow-clear disabled ></a-input> --> <a-form-item label="身高" v-bind="validateInfos.height" id="NuEmployeesAdvisoryInfoForm-height"
{{formData.height}} name="height">
</a-form-item> <!-- <a-input v-model:value="formData.height" placeholder="请输入身高" allow-clear disabled ></a-input> -->
</a-col> {{ formData.height }}
<a-col :span="12"> </a-form-item>
<a-form-item label="体重" v-bind="validateInfos.weight" id="NuEmployeesAdvisoryInfoForm-weight" name="weight"> </a-col>
<!-- <a-input v-model:value="formData.weight" placeholder="请输入体重" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.weight}} <a-form-item label="体重" v-bind="validateInfos.weight" id="NuEmployeesAdvisoryInfoForm-weight"
</a-form-item> name="weight">
</a-col> <!-- <a-input v-model:value="formData.weight" placeholder="请输入体重" allow-clear disabled ></a-input> -->
<a-col :span="12"> {{ formData.weight }}
<a-form-item label="健康状况" v-bind="validateInfos.healthStatus" id="NuEmployeesAdvisoryInfoForm-healthStatus" name="healthStatus"> </a-form-item>
<!-- <a-input v-model:value="formData.healthStatus" placeholder="请输入健康状况" allow-clear disabled ></a-input> --> </a-col>
{{formData.healthStatus}} <a-col :span="12">
</a-form-item> <a-form-item label="健康状况" v-bind="validateInfos.healthStatus"
</a-col> id="NuEmployeesAdvisoryInfoForm-healthStatus" name="healthStatus">
<a-col :span="12"> <!-- <a-input v-model:value="formData.healthStatus" placeholder="请输入健康状况" allow-clear disabled ></a-input> -->
<a-form-item label="政治面貌" v-bind="validateInfos.politicalAppearance" id="NuEmployeesAdvisoryInfoForm-politicalAppearance" name="politicalAppearance"> {{ formData.healthStatus }}
<!-- <a-input v-model:value="formData.politicalAppearance" placeholder="请输入政治面貌" allow-clear disabled ></a-input> --> </a-form-item>
{{formData.politicalAppearance}} </a-col>
</a-form-item> <a-col :span="12">
</a-col> <a-form-item label="政治面貌" v-bind="validateInfos.politicalAppearance"
<a-col :span="12"> id="NuEmployeesAdvisoryInfoForm-politicalAppearance" name="politicalAppearance">
<a-form-item label="户口性质" v-bind="validateInfos.hukouType" id="NuEmployeesAdvisoryInfoForm-hukouType" name="hukouType"> <!-- <a-input v-model:value="formData.politicalAppearance" placeholder="请输入政治面貌" allow-clear disabled ></a-input> -->
<!-- <a-input v-model:value="formData.hukouType" placeholder="请输入户口性质" allow-clear disabled ></a-input> --> {{ formData.politicalAppearance }}
{{formData.hukouType}} </a-form-item>
</a-form-item> </a-col>
</a-col> <a-col :span="12">
<a-form-item label="户口性质" v-bind="validateInfos.hukouType" id="NuEmployeesAdvisoryInfoForm-hukouType"
name="hukouType">
<!-- <a-input v-model:value="formData.hukouType" placeholder="请输入户口性质" allow-clear disabled ></a-input> -->
{{ formData.hukouType }}
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'联系人信息'" /> <SectionDivider :title="'联系人信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="紧急联系人姓名" v-bind="validateInfos.contactName" id="NuEmployeesAdvisoryInfoForm-contactName" name="contactName"> <a-form-item label="紧急联系人姓名" v-bind="validateInfos.contactName"
<!-- <a-input v-model:value="formData.contactName" placeholder="请输入紧急联系人姓名" allow-clear disabled ></a-input> --> id="NuEmployeesAdvisoryInfoForm-contactName" name="contactName">
{{formData.contactName}} <!-- <a-input v-model:value="formData.contactName" placeholder="请输入紧急联系人姓名" allow-clear disabled ></a-input> -->
</a-form-item> {{ formData.contactName }}
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item label="紧急联系人电话" v-bind="validateInfos.contactTel" id="NuEmployeesAdvisoryInfoForm-contactTel" name="contactTel"> <a-col :span="12">
<!-- <a-input v-model:value="formData.contactTel" placeholder="请输入紧急联系人电话" allow-clear disabled ></a-input> --> <a-form-item label="紧急联系人电话" v-bind="validateInfos.contactTel" id="NuEmployeesAdvisoryInfoForm-contactTel"
{{formData.contactTel}} name="contactTel">
</a-form-item> <!-- <a-input v-model:value="formData.contactTel" placeholder="请输入紧急联系人电话" allow-clear disabled ></a-input> -->
</a-col> {{ formData.contactTel }}
<a-col :span="12"> </a-form-item>
<a-form-item label="与本人关系" v-bind="validateInfos.contactRelationship" id="NuEmployeesAdvisoryInfoForm-contactRelationship" name="contactRelationship"> </a-col>
<!-- <a-input v-model:value="formData.contactRelationship" placeholder="请输入紧急联系人与本人关系" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.contactRelationship}} <a-form-item label="与本人关系" v-bind="validateInfos.contactRelationship"
</a-form-item> id="NuEmployeesAdvisoryInfoForm-contactRelationship" name="contactRelationship">
</a-col> <!-- <a-input v-model:value="formData.contactRelationship" placeholder="请输入紧急联系人与本人关系" allow-clear disabled ></a-input> -->
{{ formData.contactRelationship }}
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'银行卡信息'" /> <SectionDivider :title="'银行卡信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="银行卡正面" v-bind="validateInfos.bankZmPath" id="NuEmployeesAdvisoryInfoForm-bankZmPath" name="bankZmPath"> <a-form-item label="银行卡正面" v-bind="validateInfos.bankZmPath" id="NuEmployeesAdvisoryInfoForm-bankZmPath"
<j-image-upload :fileMax="1" text="无" v-model:value="formData.bankZmPath" disabled ></j-image-upload> name="bankZmPath">
</a-form-item> <j-image-upload :fileMax="1" text="无" v-model:value="formData.bankZmPath" disabled></j-image-upload>
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item label="银行卡反面" v-bind="validateInfos.bankFmPath" id="NuEmployeesAdvisoryInfoForm-bankFmPath" name="bankFmPath"> <a-col :span="12">
<j-image-upload :fileMax="1" text="无" v-model:value="formData.bankFmPath" disabled ></j-image-upload> <a-form-item label="银行卡反面" v-bind="validateInfos.bankFmPath" id="NuEmployeesAdvisoryInfoForm-bankFmPath"
</a-form-item> name="bankFmPath">
</a-col> <j-image-upload :fileMax="1" text="无" v-model:value="formData.bankFmPath" disabled></j-image-upload>
<a-col :span="12"> </a-form-item>
<a-form-item label="开户行" v-bind="validateInfos.openingBank" id="NuEmployeesAdvisoryInfoForm-openingBank" name="openingBank"> </a-col>
<!-- <a-input v-model:value="formData.openingBank" placeholder="请输入开户行" allow-clear disabled ></a-input> --> <a-col :span="12">
{{formData.openingBank}} <a-form-item label="开户行" v-bind="validateInfos.openingBank" id="NuEmployeesAdvisoryInfoForm-openingBank"
</a-form-item> name="openingBank">
</a-col> <!-- <a-input v-model:value="formData.openingBank" placeholder="请输入开户行" allow-clear disabled ></a-input> -->
<a-col :span="12"> {{ formData.openingBank }}
<a-form-item label="银行卡号" v-bind="validateInfos.bankCard" id="NuEmployeesAdvisoryInfoForm-bankCard" name="bankCard"> </a-form-item>
<!-- <a-input v-model:value="formData.bankCard" placeholder="请输入银行卡号" allow-clear disabled ></a-input> --> </a-col>
{{formData.bankCard}} <a-col :span="12">
</a-form-item> <a-form-item label="银行卡号" v-bind="validateInfos.bankCard" id="NuEmployeesAdvisoryInfoForm-bankCard"
</a-col> name="bankCard">
<!-- <a-input v-model:value="formData.bankCard" placeholder="请输入银行卡号" allow-clear disabled ></a-input> -->
{{ formData.bankCard }}
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'证件信息'" /> <SectionDivider :title="'证件信息'" />
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="健康证正面" v-bind="validateInfos.healthZmPath" id="NuEmployeesAdvisoryInfoForm-healthZmPath" name="healthZmPath"> <a-form-item label="健康证正面" v-bind="validateInfos.healthZmPath"
<j-image-upload :fileMax="1" text="无" v-model:value="formData.healthZmPath" disabled ></j-image-upload> id="NuEmployeesAdvisoryInfoForm-healthZmPath" name="healthZmPath">
</a-form-item> <j-image-upload :fileMax="1" text="无" v-model:value="formData.healthZmPath" disabled></j-image-upload>
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<!-- <a-col :span="12">
<a-form-item label="健康证反面" v-bind="validateInfos.healthFmPath" id="NuEmployeesAdvisoryInfoForm-healthFmPath" name="healthFmPath"> <a-form-item label="健康证反面" v-bind="validateInfos.healthFmPath" id="NuEmployeesAdvisoryInfoForm-healthFmPath" name="healthFmPath">
<j-image-upload :fileMax="1" text="无" v-model:value="formData.healthFmPath" disabled ></j-image-upload> <j-image-upload :fileMax="1" text="无" v-model:value="formData.healthFmPath" disabled ></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :span="12"> <a-col :span="12">
<a-form-item label="资质证" v-bind="validateInfos.qualificationPath" id="NuEmployeesAdvisoryInfoForm-qualificationPath" name="qualificationPath"> <a-form-item label="资质证" v-bind="validateInfos.qualificationPath"
<j-image-upload :fileMax="0" text="无" v-model:value="formData.qualificationPath" disabled ></j-image-upload> id="NuEmployeesAdvisoryInfoForm-qualificationPath" name="qualificationPath">
</a-form-item> <j-image-upload :fileMax="0" text="无" v-model:value="formData.qualificationPath"
</a-col> disabled></j-image-upload>
<a-col :span="12"> </a-form-item>
<a-form-item label="无犯罪正面" v-bind="validateInfos.noCrimeCertificate" id="NuEmployeesAdvisoryInfoForm-noCrimeCertificate" name="noCrimeCertificate"> </a-col>
<j-image-upload :fileMax="1" text="无" v-model:value="formData.noCrimeCertificate" disabled ></j-image-upload> <a-col :span="12">
</a-form-item> <a-form-item label="无犯罪正面" v-bind="validateInfos.noCrimeCertificate"
</a-col> id="NuEmployeesAdvisoryInfoForm-noCrimeCertificate" name="noCrimeCertificate">
<j-image-upload :fileMax="1" text="无" v-model:value="formData.noCrimeCertificate"
disabled></j-image-upload>
</a-form-item>
</a-col>
</a-row> </a-row>
</a-form> </a-form>
</template> </template>
@ -194,159 +222,159 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue'; import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '/@/hooks/web/useMessage';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue'; import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
import { getValueType } from '/@/utils'; import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../NuEmployeesAdvisoryInfo.api'; import { saveOrUpdate } from '../NuEmployeesAdvisoryInfo.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({})}, formData: { type: Object, default: () => ({}) },
formBpm: { type: Boolean, default: true } formBpm: { type: Boolean, default: true }
}); });
const formRef = ref(); const formRef = ref();
const useForm = Form.useForm; const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']); const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({ const formData = reactive<Record<string, any>>({
id: '', id: '',
tel: '', tel: '',
name: '', name: '',
sex: '', sex: '',
national: '', national: '',
birthDate: '', birthDate: '',
idCardAddress: '', idCardAddress: '',
idCard: '', idCard: '',
issuingAuthority: '', issuingAuthority: '',
startTime: '', startTime: '',
endTime: '', endTime: '',
cardZmPath: '', cardZmPath: '',
cardFmPath: '', cardFmPath: '',
maritalStatus: '', maritalStatus: '',
height: '', height: '',
weight: '', weight: '',
healthStatus: '', healthStatus: '',
politicalAppearance: '', politicalAppearance: '',
contactName: '', contactName: '',
contactTel: '', contactTel: '',
contactRelationship: '', contactRelationship: '',
hukouType: '', hukouType: '',
bankZmPath: '', bankZmPath: '',
bankFmPath: '', bankFmPath: '',
openingBank: '', openingBank: '',
bankCard: '', bankCard: '',
healthZmPath: '', healthZmPath: '',
healthFmPath: '', healthFmPath: '',
qualificationPath: '', qualificationPath: '',
noCrimeCertificate: '', noCrimeCertificate: '',
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } }); const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 12 } }); const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 12 } });
const confirmLoading = ref<boolean>(false); const confirmLoading = ref<boolean>(false);
// //
const validatorRules = reactive({ const validatorRules = reactive({
}); });
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
// //
const disabled = computed(()=>{ const disabled = computed(() => {
if(props.formBpm === true){ if (props.formBpm === true) {
if(props.formData.disabled === false){ if (props.formData.disabled === false) {
return false; return false;
}else{ } else {
return true; return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
const tmpData = {};
Object.keys(formData).forEach((key) => {
if (record.hasOwnProperty(key)) {
tmpData[key] = record[key]
}
})
//
Object.assign(formData, tmpData);
});
}
/**
* 提交数据
*/
async function submitForm() {
try {
//
await validate();
} catch ({ errorFields }) {
if (errorFields) {
const firstField = errorFields[0];
if (firstField) {
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
} }
} }
return props.formDisabled; return Promise.reject(errorFields);
});
/**
* 新增
*/
function add() {
edit({});
} }
confirmLoading.value = true;
/** const isUpdate = ref<boolean>(false);
* 编辑 //
*/ let model = formData;
function edit(record) { if (model.id) {
nextTick(() => { isUpdate.value = true;
resetFields(); }
const tmpData = {}; //
Object.keys(formData).forEach((key) => { for (let data in model) {
if(record.hasOwnProperty(key)){ //
tmpData[key] = record[key] if (model[data] instanceof Array) {
} let valueType = getValueType(formRef.value.getProps, data);
}) //
// if (valueType === 'string') {
Object.assign(formData, tmpData); model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
}); });
} }
/**
* 提交数据
*/
async function submitForm() {
try {
//
await validate();
} catch ({ errorFields }) {
if (errorFields) {
const firstField = errorFields[0];
if (firstField) {
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
}
}
return Promise.reject(errorFields);
}
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({ defineExpose({
add, add,
edit, edit,
submitForm, submitForm,
}); });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.antd-modal-form { .antd-modal-form {
padding: 14px; padding: 14px;
} }
</style> </style>

View File

@ -174,13 +174,13 @@
v-model:value="formData.healthCertificatePositive" disabled></j-image-upload> v-model:value="formData.healthCertificatePositive" disabled></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <!-- <a-col :span="12">
<a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative" <a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative"
id="BizEmployeesInfoForm-healthCertificateNegative" name="healthCertificateNegative"> id="BizEmployeesInfoForm-healthCertificateNegative" name="healthCertificateNegative">
<j-image-upload :fileMax="1" :bizPath="`employeesZzxx`" <j-image-upload :fileMax="1" :bizPath="`employeesZzxx`"
v-model:value="formData.healthCertificateNegative" disabled></j-image-upload> v-model:value="formData.healthCertificateNegative" disabled></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
</a-row> </a-row>
</a-tab-pane> </a-tab-pane>

View File

@ -155,12 +155,12 @@
<j-image-upload :fileMax="0" v-model:value="formData.healthCertificatePositive"></j-image-upload> <j-image-upload :fileMax="0" v-model:value="formData.healthCertificatePositive"></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <!-- <a-col :span="12">
<a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative" <a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative"
id="EmployeesApplyForm-healthCertificateNegative" name="healthCertificateNegative"> id="EmployeesApplyForm-healthCertificateNegative" name="healthCertificateNegative">
<j-image-upload :fileMax="0" v-model:value="formData.healthCertificateNegative"></j-image-upload> <j-image-upload :fileMax="0" v-model:value="formData.healthCertificateNegative"></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'资质证'" /> <SectionDivider :title="'资质证'" />
</a-col> </a-col>

View File

@ -153,12 +153,12 @@ export const columns: BasicColumn[] = [
dataIndex: 'healthCertificatePositive', dataIndex: 'healthCertificatePositive',
customRender: render.renderImage, customRender: render.renderImage,
}, },
{ // {
title: '健康证反面', // title: '健康证反面',
align: "center", // align: "center",
dataIndex: 'healthCertificateNegative', // dataIndex: 'healthCertificateNegative',
customRender: render.renderImage, // customRender: render.renderImage,
}, // },
{ {
title: '银行卡正面', title: '银行卡正面',
align: "center", align: "center",

View File

@ -2,19 +2,21 @@
<div class="p-2"> <div class="p-2">
<!--查询区域--> <!--查询区域-->
<div class="jeecg-basic-table-form-container"> <div class="jeecg-basic-table-form-container">
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol"
:wrapper-col="wrapperCol">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :lg="6"> <a-col :lg="6">
<a-form-item name="name"> <a-form-item name="name">
<template #label><span title="姓名">姓名</span></template> <template #label><span title="姓名">姓名</span></template>
<j-input placeholder="请输入姓名" v-model:value="queryParam.name" allow-clear ></j-input> <j-input placeholder="请输入姓名" v-model:value="queryParam.name" allow-clear></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons"> <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6"> <a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button> <a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button> <a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset"
style="margin-left: 8px">重置</a-button>
<!-- <a-button type="primary" v-auth="'bizEmployeesInfo:biz_employees_info:add'" @click="handleAdd" preIcon="ant-design:plus-outlined" style="margin-left: 8px"> 新增</a-button> --> <!-- <a-button type="primary" v-auth="'bizEmployeesInfo:biz_employees_info:add'" @click="handleAdd" preIcon="ant-design:plus-outlined" style="margin-left: 8px"> 新增</a-button> -->
</a-col> </a-col>
</span> </span>
@ -22,54 +24,97 @@
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<a-row style="margin-top: -5px;"> <a-row>
<a-col v-for="(item,index) in dataList" :key="index" style="padding: 5px 14px 0 0;height: 230px;" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6" > <a-col v-for="(item, index) in dataList" :key="index"
<a-row style="padding: 0 5px;background-color: white;border-radius: 8px;height: 220px;"> :style="{ 'padding-right': (index + 1) % 4 === 0 ? '0px' : '14px' }" :xs="24" :sm="24" :md="12" :lg="12" :xl="8"
<a-col :span="4"> :xxl="6">
<div class="bjclass"> <a-row style="padding: 14px;background-color: white;border-radius: 10px;height: 230px;">
<img :src="handleHeadPath(item.headPath)" style="width: 40px;height:40px;margin-top: 10px;" @error="setDefaultImage"/> <a-col :span="4" style="padding-left: 8px;">
</div> <img :src="handleHeadPath(item.headPath)" style="width: 48px;height:48px;border-radius: 45px;" />
</a-col> </a-col>
<a-col :span="20" style="padding-left: 15px;"> <a-col :span="16" style="padding-left: 8px;">
<div> <div>
<span class="titleOne"> <span class="titleOne">
{{item.name}} / {{ item.name }} /
{{item.sex_dictText?item.sex_dictText:'无'}} {{ item.sex ? item.sex : '无' }}
</span> </span>
</div> </div>
<div style="height: 130px"> <div style="margin-top: 2px;">
<div class="center-lines">入职日期: {{item.entryTime }}</div> <span style="color: rgb(144, 147, 153);">入职日期 :<span style="margin-left: 24px;"> {{ item.entryTime
<div class="center-lines">身份证号: {{item.idCard }}</div> }}</span></span>
<div class="center-lines">联系电话: {{item.tel }}</div>
<div class="center-lines">出生日期: {{item.dateOfBirth }}</div>
</div> </div>
<div style="color: #857f7f;"> </a-col>
<!-- <span style="float:left;"><Icon icon="ant-design:user-add-outlined" :size="18" /><span style="margin-left:5px;">{{ item.createBy_dictText }}</span></span> --> <a-col :span="3">
<span style="float:left;"><Icon icon="ant-design:field-time-outlined" :size="20" /><span style="margin-left:5px;font-size:16px;">{{ item.createTime.substring(0,10) }}</span></span> <div v-show="item.izOnline == '0'" class="online-status">在线</div>
<span style="margin-right: 15px;float:right;"> <div v-show="item.izOnline == '1'" class="offline-status">离线</div>
</a-col>
<a-col :span="24" style="height: 63%;padding-top: 14px;">
<div
style="background-color: #F8F9FB;height: 100%;border-radius: 10px;color: rgb(149 149 149);font-weight: 480;">
<a-row style="padding-top: 1vh;">
<a-col :span="3">
<div style="float: right;line-height: 25px;">
<Icon icon="ant-design:idcard-outlined" :size="18" />
</div>
</a-col>
<a-col :span="5" style="padding-left: 4px;">身份证号</a-col>
<a-col :span="16" style="padding-right: 24px;">
<div style="float: right;">{{ item.idCard }}</div>
</a-col>
</a-row>
<a-row style="padding-top: 1vh;">
<a-col :span="3">
<div style="float: right;line-height: 23px;">
<Icon icon="ant-design:phone-outlined" :size="18" style="transform: rotate(90deg);" />
</div>
</a-col>
<a-col :span="5" style="padding-left: 4px;">联系电话:</a-col>
<a-col :span="16" style="padding-right: 24px;">
<div style="float: right;">{{ item.tel }}</div>
</a-col>
</a-row>
<a-row style="padding-top: 1.2vh;">
<a-col :span="3">
<div style="float: right;line-height: 23px;">
<Icon icon="material-symbols:calendar-month-outline" :size="18" />
</div>
</a-col>
<a-col :span="5" style="padding-left: 4px;">出生日期:</a-col>
<a-col :span="16" style="padding-right: 24px;">
<div style="float: right;">{{ item.dateOfBirth }}</div>
</a-col>
</a-row>
</div>
</a-col>
<a-col :span="24">
<div style="float: right;margin-right: 0px;">
<span>
<a-dropdown :trigger="['hover']" placement="topRight"> <a-dropdown :trigger="['hover']" placement="topRight">
<a-button type="link"><Icon icon="ant-design:more-outlined" :size="20" /></a-button> <a-button type="link">
<template #overlay> <Icon icon="ant-design:more-outlined" :size="23" style="transform: rotate(90deg);" />
<a-menu> </a-button>
<a-menu-item @click="handleEdit(item)">编辑</a-menu-item> <template #overlay>
<a-menu-item @click="handleFwbq(item)">服务标签</a-menu-item> <a-menu>
<a-menu-item @click="handleFpzh(item)">分配账号</a-menu-item> <a-menu-item @click="handleEdit(item)">编辑</a-menu-item>
</a-menu> <a-menu-item @click="handleFwbq(item)">服务标签</a-menu-item>
</template> <a-menu-item @click="handleFpzh(item)">分配账号</a-menu-item>
</a-dropdown> </a-menu>
</span> </template>
</a-dropdown>
</span>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-col> </a-col>
</a-row> </a-row>
<div v-if="dataList.length>0" style="float:right;bottom: 20px;z-index: 999;padding: 8px 16px;border-radius: 4px;display: flex;align-items: center;"> <div v-if="dataList.length > 0"
style="float:right;bottom: 20px;z-index: 999;padding: 8px 16px;border-radius: 4px;display: flex;align-items: center;">
<span style="margin-right: 10px;"> {{ total }} 条数据</span> <span style="margin-right: 10px;"> {{ total }} 条数据</span>
<Pagination showLessItems v-model:current="current" :pageSize="pageSize" size="small" <Pagination showLessItems v-model:current="current" :pageSize="pageSize" size="small" show-quick-jumper
show-quick-jumper :total="total" @change="onPageChange" /> :total="total" @change="onPageChange" />
</div> </div>
<div v-if="dataList.length==0" style="text-align: center;width: 100%;margin-top: 50px;"> <div v-if="dataList.length == 0" style="text-align: center;width: 100%;margin-top: 50px;">
<a-empty description="暂无数据" /> <a-empty description="暂无数据" />
</div> </div>
@ -84,60 +129,60 @@
</template> </template>
<script lang="ts" name="bizEmployeesInfo-bizEmployeesInfo" setup> <script lang="ts" name="bizEmployeesInfo-bizEmployeesInfo" setup>
import { ref, reactive, onMounted } from 'vue'; import { ref, reactive, onMounted } from 'vue';
import { useListPage } from '/@/hooks/system/useListPage'; import { useListPage } from '/@/hooks/system/useListPage';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './BizEmployeesInfo.api'; import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './BizEmployeesInfo.api';
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import BizEmployeesInfoModal from './components/BizEmployeesInfoModal.vue' import BizEmployeesInfoModal from './components/BizEmployeesInfoModal.vue'
import EmployeesServiceTagModal from '/@/views/biz/bizEmployeesInfo/employeesServiceTag/employeesServiceTagModal.vue' import EmployeesServiceTagModal from '/@/views/biz/bizEmployeesInfo/employeesServiceTag/employeesServiceTagModal.vue'
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import { Pagination } from 'ant-design-vue'; import { Pagination } from 'ant-design-vue';
import { useDrawer } from '/@/components/Drawer'; import { useDrawer } from '/@/components/Drawer';
import UserDrawer from '/@/views/system/user/UserDrawer.vue'; import UserDrawer from '/@/views/system/user/UserDrawer.vue';
import JInput from "/@/components/Form/src/jeecg/components/JInput.vue"; import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
const APagination = Pagination; const APagination = Pagination;
//drawer //drawer
const [registerDrawer, { openDrawer }] = useDrawer(); const [registerDrawer, { openDrawer }] = useDrawer();
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({}); const queryParam = reactive<any>({});
const registerModal = ref(); const registerModal = ref();
const registerServiceTagModal = ref(); const registerServiceTagModal = ref();
const dataList = ref<any[]>([]); const dataList = ref<any[]>([]);
const current = ref(1); const current = ref(1);
const pageSize = ref(12); const pageSize = ref(12);
const total = ref(0); const total = ref(0);
const labelCol = reactive({ const labelCol = reactive({
xs:24, xs: 24,
sm:4, sm: 4,
xl:6, xl: 6,
xxl:4 xxl: 4
}); });
const wrapperCol = reactive({ const wrapperCol = reactive({
xs: 24, xs: 24,
sm: 20, sm: 20,
}); });
//logo //logo
function handleHeadPath(headPath){ function handleHeadPath(headPath) {
console.log('headPath--->',headPath); console.log('headPath--->', headPath);
if(headPath){ if (headPath) {
return getFileAccessHttpUrl(headPath); return getFileAccessHttpUrl(headPath);
}else{ } else {
return '../resource/img/logo.png'; return '../resource/img/logo.png';
}
} }
}
// //
function handleFpzh(item){ function handleFpzh(item) {
defHttp.get({url:'/sys/user/queryByEmployessId',params:{employessId:item.id}}).then(res=>{ defHttp.get({ url: '/sys/user/queryByEmployessId', params: { employessId: item.id } }).then(res => {
console.log("🚀 ~ handleFpzh ~ res:", res) console.log("🚀 ~ handleFpzh ~ res:", res)
if(res==null){ if (res == null) {
var record = {employessId:item.id,phone:item.tel,realname:item.name,sex:item.sex?parseInt(item.sex):'' } var record = { employessId: item.id, phone: item.tel, realname: item.name, sex: item.sex ? parseInt(item.sex) : '' }
console.log("🚀 ~ defHttp.get ~ record:", record) console.log("🚀 ~ defHttp.get ~ record:", record)
openDrawer(true, { openDrawer(true, {
record, record,
@ -145,9 +190,9 @@ function handleFpzh(item){
showFooter: true, showFooter: true,
tenantSaas: false, tenantSaas: false,
}); });
}else{ } else {
openDrawer(true, { openDrawer(true, {
record:res, record: res,
isUpdate: true, isUpdate: true,
showFooter: true, showFooter: true,
tenantSaas: false, tenantSaas: false,
@ -157,131 +202,139 @@ function handleFpzh(item){
} }
// //
function handleFwbq(info){ function handleFwbq(info) {
registerServiceTagModal.value.disableSubmit = false; registerServiceTagModal.value.disableSubmit = false;
registerServiceTagModal.value.init(info); registerServiceTagModal.value.init(info);
} }
/** /**
* 新增事件 * 新增事件
*/ */
function handleAdd() { function handleAdd() {
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.add(); registerModal.value.add();
} }
/** /**
* 编辑事件 * 编辑事件
*/ */
function handleEdit(record) { function handleEdit(record) {
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;
registerModal.value.edit(record); registerModal.value.edit(record);
} }
/** /**
* 详情 * 详情
*/ */
function handleDetail(record: Recordable) { function handleDetail(record: Recordable) {
registerModal.value.disableSubmit = true; registerModal.value.disableSubmit = true;
registerModal.value.edit(record); registerModal.value.edit(record);
} }
/** /**
* 删除事件 * 删除事件
*/ */
async function handleDelete(record) { async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess); await deleteOne({ id: record.id }, handleSuccess);
} }
/** /**
* 成功回调 * 成功回调
*/ */
function handleSuccess() { function handleSuccess() {
reload() reload()
} }
/** /**
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
reload(); reload();
} }
/** /**
* 重置 * 重置
*/ */
function searchReset() { function searchReset() {
formRef.value.resetFields(); formRef.value.resetFields();
// //
reload(); reload();
} }
function onPageChange(page,pageSize){ function onPageChange(page, pageSize) {
console.log('onPageChange', page,pageSize); console.log('onPageChange', page, pageSize);
current.value = page; current.value = page;
reload(); reload();
} }
function reload(){ function reload() {
queryParam.pageSize = pageSize; queryParam.pageSize = pageSize;
queryParam.pageNo = current; queryParam.pageNo = current;
console.log('queryParam',queryParam); console.log('queryParam', queryParam);
defHttp.get({url:'/admin/bizEmployeesInfo/bizEmployeesInfo/list',params:queryParam}).then(res=>{ defHttp.get({ url: '/admin/bizEmployeesInfo/bizEmployeesInfo/list', params: queryParam }).then(res => {
console.log(res); console.log(res);
dataList.value = res.records; dataList.value = res.records;
total.value = res.total; total.value = res.total;
}) })
} }
// //
onMounted(() => { onMounted(() => {
reload(); reload();
}); });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.jeecg-basic-table-form-container { .jeecg-basic-table-form-container {
padding: 0; padding: 0;
.table-page-search-submitButtons {
display: block; .table-page-search-submitButtons {
margin-bottom: 24px; display: block;
white-space: nowrap; margin-bottom: 24px;
} white-space: nowrap;
.query-group-cust{
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
.ant-form-item:not(.ant-form-item-with-help){
margin-bottom: 16px;
height: 32px;
}
:deep(.ant-picker),:deep(.ant-input-number){
width: 100%;
}
} }
.cardClass{ .query-group-cust {
margin: 5px; min-width: 100px !important;
// }
border-radius: 8px;
transition: box-shadow 0.3s ease-in-out;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
.query-group-split-cust {
width: 30px;
display: inline-block;
text-align: center
} }
.buttonMargin{
margin: 3px; .ant-form-item:not(.ant-form-item-with-help) {
margin-bottom: 16px;
height: 32px;
} }
.bjclass{
:deep(.ant-picker),
:deep(.ant-input-number) {
width: 100%;
}
}
.cardClass {
margin: 5px;
//
border-radius: 8px;
transition: box-shadow 0.3s ease-in-out;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}
.buttonMargin {
margin: 3px;
}
.bjclass {
text-align: center; text-align: center;
margin-top: 16px; margin-top: 16px;
border-radius: 50%; border-radius: 50%;
@ -289,22 +342,55 @@ function onPageChange(page,pageSize){
height: 60px; height: 60px;
background: linear-gradient(to bottom, #fff, #efe9e9); background: linear-gradient(to bottom, #fff, #efe9e9);
} }
.titleOne { .titleOne {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
height: 40px; height: 20px;
line-height: 40px; line-height: 20px;
margin-bottom: 10px;
} }
.ellipsis-two-lines { .ellipsis-two-lines {
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 限制文本为2行 */ -webkit-line-clamp: 2;
/* 限制文本为2行 */
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height:24px;color: #5a5a5a; line-height: 24px;
color: #5a5a5a;
} }
.center-lines { .center-lines {
line-height:24px;color: #5a5a5a; line-height: 24px;
color: #5a5a5a;
}
.online-status {
float: right;
height: 28px;
line-height: 25px;
text-align: center;
background-color: #EFF7FF;
border: 1px solid #21A5FA;
color: #21A5FA;
font-weight: bold;
border-radius: 10px;
width: 70px;
margin-top: 3px;
}
.offline-status {
float: right;
height: 28px;
line-height: 25px;
text-align: center;
background-color: #F5F7FF;
border: 1px solid #e9e9e9;
color: rgb(144, 147, 153);
font-weight: bold;
border-radius: 10px;
width: 70px;
margin-top: 3px;
} }
</style> </style>

View File

@ -164,11 +164,11 @@
<j-image-upload :fileMax="0" :bizPath="`employeesZzxx`" v-model:value="formData.healthCertificatePositive" ></j-image-upload> <j-image-upload :fileMax="0" :bizPath="`employeesZzxx`" v-model:value="formData.healthCertificatePositive" ></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <!-- <a-col :span="12">
<a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative" id="BizEmployeesInfoForm-healthCertificateNegative" name="healthCertificateNegative"> <a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative" id="BizEmployeesInfoForm-healthCertificateNegative" name="healthCertificateNegative">
<j-image-upload :fileMax="0" :bizPath="`employeesZzxx`" v-model:value="formData.healthCertificateNegative" ></j-image-upload> <j-image-upload :fileMax="0" :bizPath="`employeesZzxx`" v-model:value="formData.healthCertificateNegative" ></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
</a-row> </a-row>
</a-tab-pane> </a-tab-pane>

View File

@ -198,7 +198,7 @@
disabled></j-image-upload> disabled></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <!-- <a-col :span="12">
<a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative" <a-form-item label="健康证反面" v-bind="validateInfos.healthCertificateNegative"
id="BizEmployeesInfoForm-healthCertificateNegative" id="BizEmployeesInfoForm-healthCertificateNegative"
name="healthCertificateNegative"> name="healthCertificateNegative">
@ -206,7 +206,7 @@
v-model:value="formData.healthCertificateNegative" v-model:value="formData.healthCertificateNegative"
disabled></j-image-upload> disabled></j-image-upload>
</a-form-item> </a-form-item>
</a-col> </a-col> -->
</a-row> </a-row>
</a-tab-pane> </a-tab-pane>

View File

@ -131,7 +131,7 @@
<a-form-item label="有效结束日期" v-bind="validateInfos.endTime" id="ElderInfoForm-endTime" name="endTime"> <a-form-item label="有效结束日期" v-bind="validateInfos.endTime" id="ElderInfoForm-endTime" name="endTime">
<!-- <a-date-picker placeholder="请选择有效结束日期" v-model:value="formData.endTime" showTime <!-- <a-date-picker placeholder="请选择有效结束日期" v-model:value="formData.endTime" showTime
value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear /> --> value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear /> -->
<span>{{ formData.endTime }}</span> {{ formData.endTime == '9999-12-31' ? '长期' : formData.endTime }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">