@@ -414,6 +415,9 @@ const disabled = computed(() => {
}
return props.formDisabled;
});
+setInterval(() => {
+ console.log("🌊 ~ disabled:", disabled)
+}, 2000)
/**
@@ -427,6 +431,7 @@ function add() {
* 编辑
*/
function edit(record) {
+ console.log("🌊 ~ edit ~ record:", record)
ageVal.value = handleComputedAge(record.dateOfBirth)
nextTick(() => {
resetFields();
diff --git a/src/views/admin/employeesapplyBK/EmployeesApply.api.ts b/src/views/admin/employeesapplyBK/EmployeesApply.api.ts
new file mode 100644
index 0000000..0539f2f
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/EmployeesApply.api.ts
@@ -0,0 +1,101 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from '/@/hooks/web/useMessage';
+
+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',
+ deleteBatch = '/admin/employeesapply/deleteBatch',
+ importExcel = '/admin/employeesapply/importExcel',
+ exportXls = '/admin/employeesapply/exportXls',
+ invide = '/admin/employeesapply/invide',
+ audit = '/admin/employeesapply/audit',
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params, handleSuccess) => {
+ return defHttp.delete({ url: Api.deleteOne, params }, { joinParamsToUrl: true }).then(() => {
+ handleSuccess();
+ });
+};
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({ url: Api.deleteBatch, data: params }, { joinParamsToUrl: true }).then(() => {
+ handleSuccess();
+ });
+ },
+ });
+};
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+};
+
+/**
+ * 邀请加入
+ * @param params
+ */
+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/employeesapplyBK/EmployeesApply.data.ts b/src/views/admin/employeesapplyBK/EmployeesApply.data.ts
new file mode 100644
index 0000000..bb7289e
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/EmployeesApply.data.ts
@@ -0,0 +1,138 @@
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+import { rules } from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+import { getWeekMonthQuarterYear } from '/@/utils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '姓名',
+ align: 'center',
+ dataIndex: 'name',
+ },
+ {
+ title: '性别',
+ align: 'center',
+ dataIndex: 'sex',
+ },
+ {
+ title: '年龄',
+ align: 'center',
+ dataIndex: 'dateOfBirth',
+ },
+ {
+ title: '联系电话',
+ align: 'center',
+ dataIndex: 'tel',
+ },
+ {
+ title: '申请日期',
+ align: 'center',
+ dataIndex: 'createTime',
+ },
+ {
+ title: '审核状态',
+ align: 'center',
+ dataIndex: 'status',
+ },
+ // {
+ // title: '审核备注',
+ // align: "center",
+ // dataIndex: 'auditContent'
+ // },
+];
+
+//列表数据
+export const columns1: BasicColumn[] = [
+ {
+ title: '姓名',
+ align: 'center',
+ dataIndex: 'name',
+ },
+ {
+ title: '性别',
+ align: 'center',
+ dataIndex: 'sex',
+ },
+ {
+ title: '年龄',
+ align: 'center',
+ dataIndex: 'dateOfBirth',
+ },
+ {
+ title: '联系电话',
+ align: 'center',
+ dataIndex: 'tel',
+ },
+ {
+ title: '申请日期',
+ align: 'center',
+ dataIndex: 'createTime',
+ },
+ {
+ title: '邀请状态',
+ align: 'center',
+ dataIndex: 'status',
+ },
+ // {
+ // title: '审核备注',
+ // align: "center",
+ // dataIndex: 'auditContent'
+ // },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ name: { title: '姓名', order: 0, view: 'text', type: 'string' },
+ sex: { title: '性别', order: 1, view: 'radio', type: 'string', dictCode: '' },
+ tel: { title: '联系电话', order: 4, view: 'text', type: 'string' },
+ createTime: { title: '申请日期', order: 27, view: 'datetime', type: 'string' },
+ 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信息变更',
+ startTime: '有效开始日期',
+ endTime: '有效结束日期',
+ currentAddress: '现住址',
+};
diff --git a/src/views/admin/employeesapplyBK/EmployeesApplyList.vue b/src/views/admin/employeesapplyBK/EmployeesApplyList.vue
new file mode 100644
index 0000000..ac5668e
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/EmployeesApplyList.vue
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ handleComputedAge(text) }}
+
+
+ 待确认
+ 申请通过
+ 申请驳回
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/EmployeesInfoUpList.vue b/src/views/admin/employeesapplyBK/EmployeesInfoUpList.vue
new file mode 100644
index 0000000..e6819d9
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/EmployeesInfoUpList.vue
@@ -0,0 +1,259 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ handleComputedAge(text) }}
+
+
+ 待确认
+ 申请通过
+ 申请驳回
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/EmployeesInvidedList.vue b/src/views/admin/employeesapplyBK/EmployeesInvidedList.vue
new file mode 100644
index 0000000..e7f40db
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/EmployeesInvidedList.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+ 邀请
+
+
+
+
+
+
+
+ {{ handleComputedAge(text) }}
+
+
+ 待确认
+ 已接受
+ 已拒绝
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/components/EmployeesApplyForm.vue b/src/views/admin/employeesapplyBK/components/EmployeesApplyForm.vue
new file mode 100644
index 0000000..2411a0a
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/components/EmployeesApplyForm.vue
@@ -0,0 +1,554 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 未上传
+
+
+
+
+
+ 未上传
+
+
+
+
+
+
+
+
+
+ 未上传
+
+
+
+
+
+
+
+
+
+
+
+ 未上传
+
+
+
+
+
+ 未上传
+
+
+
+
+
+
+
+
+
+ 未上传
+
+
+
+
+
+
+
+
+
+ 未上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 申请通过
+ 申请驳回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/components/EmployeesApplyFormbk_.vue b/src/views/admin/employeesapplyBK/components/EmployeesApplyFormbk_.vue
new file mode 100644
index 0000000..b50b5f6
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/components/EmployeesApplyFormbk_.vue
@@ -0,0 +1,373 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 审核通过
+ 审核不通过
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/components/EmployeesApplyModal.vue b/src/views/admin/employeesapplyBK/components/EmployeesApplyModal.vue
new file mode 100644
index 0000000..1e5cd00
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/components/EmployeesApplyModal.vue
@@ -0,0 +1,146 @@
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+ 关闭
+ 确认
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/admin/employeesapplyBK/components/EmployeesUpInfoForm.vue b/src/views/admin/employeesapplyBK/components/EmployeesUpInfoForm.vue
new file mode 100644
index 0000000..96c05e1
--- /dev/null
+++ b/src/views/admin/employeesapplyBK/components/EmployeesUpInfoForm.vue
@@ -0,0 +1,286 @@
+
+
+
+
+
+
+
+ {{ applyObj[record.d1] }}
+
+
+
+
+ 未上传
+
+
+
+
+ 未上传
+
+
+ {{ provinceOptions[record.d2] }}
+
+
+ {{ provinceOptions[record.d3] }}
+
+
+ {{ record.d2 }}㎡
+
+
+ {{ record.d3 }}㎡
+
+
+ {{ record.d2 == '9999-12-31' ? '长期' : record.d2 }}
+
+
+ {{ record.d3 == '9999-12-31' ? '长期' : record.d3 }}
+
+
+
+
+
+
+
+
+
+
+ 审核通过
+ 审核驳回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file