From f02604af65cdb87bcfb44bcd804f037435874974 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Fri, 26 Sep 2025 09:30:30 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=91=98=E5=B7=A5=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E5=AE=A1=E6=A0=B8=E6=B5=81=E7=A8=8B=202?= =?UTF-8?q?=E3=80=81=E5=91=98=E5=B7=A5-=E6=9C=BA=E6=9E=84=E5=85=A5?= =?UTF-8?q?=E4=BD=8F=E6=B5=81=E7=A8=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 6 +- .../employeesapply/EmployeesApply.api.ts | 20 ++ .../employeesapply/EmployeesApply.data.ts | 43 +++ .../employeesapply/EmployeesApplyList.vue | 2 +- .../employeesapply/EmployeesInfoUpList.vue | 259 +++++++++++++++++ .../employeesapply/EmployeesInvidedList.vue | 2 +- .../components/EmployeesApplyForm.vue | 30 +- .../components/EmployeesApplyModal.vue | 45 ++- .../components/EmployeesUpInfoForm.vue | 269 ++++++++++++++++++ 9 files changed, 655 insertions(+), 21 deletions(-) create mode 100644 src/views/admin/employeesapply/EmployeesInfoUpList.vue create mode 100644 src/views/admin/employeesapply/components/EmployeesUpInfoForm.vue diff --git a/.env.production b/.env.production index 9cd485d..28cef7b 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_USE_MOCK = false # 发布路径 -VITE_PUBLIC_PATH = /biz103 +VITE_PUBLIC_PATH = /biz101 # 是否启用gzip或brotli压缩 # 选项值: gzip | brotli | none @@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false #后台接口父地址(必填) -VITE_GLOB_API_URL=/nursingunit103 +VITE_GLOB_API_URL=/nursingunit101 #后台接口全路径地址(必填) -VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit103 +VITE_GLOB_DOMAIN_URL=https://www.focusnu.com/nursingunit101 # 接口父路径前缀 VITE_GLOB_API_URL_PREFIX= diff --git a/src/views/admin/employeesapply/EmployeesApply.api.ts b/src/views/admin/employeesapply/EmployeesApply.api.ts index 32e4757..0539f2f 100644 --- a/src/views/admin/employeesapply/EmployeesApply.api.ts +++ b/src/views/admin/employeesapply/EmployeesApply.api.ts @@ -5,6 +5,7 @@ const { createConfirm } = useMessage(); enum Api { list = '/admin/employeesapply/list', + getModifyInfo = '/admin/employeesapply/getModifyInfo', save = '/admin/employeesapply/add', edit = '/admin/employeesapply/edit', deleteOne = '/admin/employeesapply/delete', @@ -12,6 +13,7 @@ enum Api { importExcel = '/admin/employeesapply/importExcel', exportXls = '/admin/employeesapply/exportXls', invide = '/admin/employeesapply/invide', + audit = '/admin/employeesapply/audit', } /** @@ -31,6 +33,7 @@ export const getImportUrl = Api.importExcel; */ export const list = (params) => defHttp.get({ url: Api.list, params }); + /** * 删除单个 * @param params @@ -79,3 +82,20 @@ export const saveOrUpdate = (params, isUpdate) => { export const invide = (params) => { return defHttp.post({ url: Api.invide, params }); }; + + +/** + * 获取变更信息 + * @param params + */ +export const getModifyInfo = (params) => { + return defHttp.post({ url: Api.getModifyInfo, params }); +} + +/** + * 审批提交 + * @param params + */ +export const auditSubmit = (params) => { + return defHttp.post({ url: Api.audit, params }); +}; \ No newline at end of file diff --git a/src/views/admin/employeesapply/EmployeesApply.data.ts b/src/views/admin/employeesapply/EmployeesApply.data.ts index 1d20dd4..a5784d1 100644 --- a/src/views/admin/employeesapply/EmployeesApply.data.ts +++ b/src/views/admin/employeesapply/EmployeesApply.data.ts @@ -90,3 +90,46 @@ export const superQuerySchema = { status: {title: '申请状态 0历史 1申请中 2通过 3驳回',order: 28,view: 'text', type: 'string',}, auditContent: {title: '审核备注',order: 29,view: 'text', type: 'string',}, }; + +export const applyObj = { + id: '员工申请ID', + openId: '微信OpenID', + employeeId: '员工ID', + name: '姓名', + sex: '性别', + national: '民族', + idCard: '身份证号', + tel: '联系电话', + dateOfBirth: '出生日期', + marriedOrNot: '婚否', + height: '身高', + weight: '体重', + address: '家庭住址', + isSmoking: '是否吸烟', + healthStatus: '健康状况', + houseAddress: '住址', + politicalAppearance: '政治面貌', + emergencyContact: '紧急联系人', + emergencyTel: '紧急联系人电话', + emergencyRelationship: '与本人关系', + hukouNature: '户口性质', + idCardPositive: '身份证正面', + idCardNegative: '身份证反面', + healthCertificatePositive: '健康证正面', + healthCertificateNegative: '健康证反面', + bankPositive: '银行卡正面', + bankNegative: '银行卡反面', + openingBank: '开户行', + bankCard: '银行卡号', + qualification: '资质证', + noCrimeCertificate: '无犯罪证明', + regional: '区域', + delFlag: '是否删除 0未删除 1删除', + createTime: '申请日期', + updateBy: '更新人', + updateTime: '更新日期', + status: '申请状态 1申请中 2通过 3驳回', + auditContent: '审核备注', + izHistory: '是否历史数据', + applyType: '申请类型 0被邀请 1主动申请 2信息变更' +}; diff --git a/src/views/admin/employeesapply/EmployeesApplyList.vue b/src/views/admin/employeesapply/EmployeesApplyList.vue index 70f0908..ac5668e 100644 --- a/src/views/admin/employeesapply/EmployeesApplyList.vue +++ b/src/views/admin/employeesapply/EmployeesApplyList.vue @@ -101,7 +101,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ pageSizeOptions: ['15', '50', '70', '100'], }, beforeFetch: async (params) => { - queryParam.isInvited = '1' + queryParam.applyType = '1' return Object.assign(params, queryParam); }, }, diff --git a/src/views/admin/employeesapply/EmployeesInfoUpList.vue b/src/views/admin/employeesapply/EmployeesInfoUpList.vue new file mode 100644 index 0000000..78109b4 --- /dev/null +++ b/src/views/admin/employeesapply/EmployeesInfoUpList.vue @@ -0,0 +1,259 @@ + + + + + diff --git a/src/views/admin/employeesapply/EmployeesInvidedList.vue b/src/views/admin/employeesapply/EmployeesInvidedList.vue index b6e5607..e7f40db 100644 --- a/src/views/admin/employeesapply/EmployeesInvidedList.vue +++ b/src/views/admin/employeesapply/EmployeesInvidedList.vue @@ -101,7 +101,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ pageSizeOptions: ['15', '50', '70', '100'], }, beforeFetch: async (params) => { - queryParam.isInvited = '0' + queryParam.applyType = '0' return Object.assign(params, queryParam); }, }, diff --git a/src/views/admin/employeesapply/components/EmployeesApplyForm.vue b/src/views/admin/employeesapply/components/EmployeesApplyForm.vue index 9e1319a..11b583a 100644 --- a/src/views/admin/employeesapply/components/EmployeesApplyForm.vue +++ b/src/views/admin/employeesapply/components/EmployeesApplyForm.vue @@ -227,24 +227,25 @@ -
- +
+
-
- +
+
- +
-
+
待确认 已接受 已拒绝
-
+
待审核 申请通过 申请驳回 @@ -256,18 +257,18 @@ - - -
+ + +
+ v-model:value="formData.auditContent" allow-clear> {{ formData.auditContent }}
- -
+ +
{{ formData.auditContent }}
- @@ -337,7 +337,7 @@ const formData = reactive>({ createTime: '', status: '', auditContent: '', - isInvited:'', + applyType: '', }); const statusVal = ref('') const { createMessage } = useMessage(); diff --git a/src/views/admin/employeesapply/components/EmployeesApplyModal.vue b/src/views/admin/employeesapply/components/EmployeesApplyModal.vue index f47db5e..5cd8204 100644 --- a/src/views/admin/employeesapply/components/EmployeesApplyModal.vue +++ b/src/views/admin/employeesapply/components/EmployeesApplyModal.vue @@ -15,7 +15,17 @@ - + + + + + + + @@ -24,13 +34,17 @@ import { ref, nextTick, defineExpose } from 'vue'; import EmployeesApplyForm from './EmployeesApplyForm.vue' import JModal from '/@/components/Modal/src/JModal/JModal.vue'; import NuEmployeesAdvisoryInfoList from '/@/views/admin/employeesadvisoryinfo/NuEmployeesAdvisoryInfoList.vue' +import EmployeesUpInfoForm from '/@/views/admin/employeesapply/components/EmployeesUpInfoForm.vue' + const title = ref(''); const width = ref(800); const visible = ref(false); const disableSubmit = ref(false); const registerForm = ref(); +const upInfoForm = ref(); const invidedVisible = ref(false); +const upInfoVisible = ref(false); const invidedRef = ref(); const emit = defineEmits(['register', 'success']); /** @@ -56,6 +70,18 @@ function edit(record) { }); } +/** + * 编辑 + * @param record + */ +function upInfoEdit(record) { + title.value = disableSubmit.value ? '详情' : '审核'; + upInfoVisible.value = true; + nextTick(() => { + upInfoForm.value.show(record); + }); +} + /** * 确定按钮点击事件 */ @@ -86,9 +112,26 @@ function openInvidedList() { invidedVisible.value = true } +/** + * 员工信息变更-关闭 + */ +function handleUpInfoCancel() { + console.log(123123) + upInfoVisible.value = false + emit('success'); +} + +/** + * 员工信息变更确认 + */ +function handleUpInfoOk() { + upInfoForm.value.submitForm(); +} + defineExpose({ add, edit, + upInfoEdit, disableSubmit, openInvidedList, }); diff --git a/src/views/admin/employeesapply/components/EmployeesUpInfoForm.vue b/src/views/admin/employeesapply/components/EmployeesUpInfoForm.vue new file mode 100644 index 0000000..ff3f9cf --- /dev/null +++ b/src/views/admin/employeesapply/components/EmployeesUpInfoForm.vue @@ -0,0 +1,269 @@ + + + + + \ No newline at end of file