From 7ede994731ca23b0ed2cf8b9fd8cba5b692a3510 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Fri, 27 Jun 2025 15:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E5=8A=A0=E7=9B=9F/=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/orgapplyinfo/OrgApplyInfo.data.ts | 7 +- .../components/OrgApplyInfoForm.vue | 109 ++--- .../components/OrgApplyInfoModal.vue | 2 +- .../biz/orgmodifyinfo/OrgModifyInfo.api.ts | 81 ++++ .../biz/orgmodifyinfo/OrgModifyInfo.data.ts | 101 +++++ .../biz/orgmodifyinfo/OrgModifyInfoList.vue | 279 +++++++++++++ .../components/OrgHistoryForm.vue | 230 +++++++++++ .../components/OrgModifyInfoForm.vue | 378 ++++++++++++++++++ .../components/OrgModifyInfoModal.vue | 103 +++++ 9 files changed, 1235 insertions(+), 55 deletions(-) create mode 100644 src/views/biz/orgmodifyinfo/OrgModifyInfo.api.ts create mode 100644 src/views/biz/orgmodifyinfo/OrgModifyInfo.data.ts create mode 100644 src/views/biz/orgmodifyinfo/OrgModifyInfoList.vue create mode 100644 src/views/biz/orgmodifyinfo/components/OrgHistoryForm.vue create mode 100644 src/views/biz/orgmodifyinfo/components/OrgModifyInfoForm.vue create mode 100644 src/views/biz/orgmodifyinfo/components/OrgModifyInfoModal.vue diff --git a/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts b/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts index d8f02de..860baae 100644 --- a/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts +++ b/src/views/biz/orgapplyinfo/OrgApplyInfo.data.ts @@ -6,7 +6,7 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '咨询人姓名', + title: '姓名', align: 'center', dataIndex: 'name', }, @@ -50,11 +50,6 @@ export const columns: BasicColumn[] = [ align: 'center', dataIndex: 'status_dictText', }, - { - title: '审批备注', - align: 'center', - dataIndex: 'content', - }, ]; // 高级查询数据 diff --git a/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue b/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue index f049012..5c3d344 100644 --- a/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue +++ b/src/views/biz/orgapplyinfo/components/OrgApplyInfoForm.vue @@ -5,119 +5,101 @@ - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -126,30 +108,31 @@ - + - + - + - + - + @@ -164,37 +147,56 @@ - + - + - + - + - + + + + + + + + + + 待审核 + 审核通过 + 驳回 + + + + + + @@ -271,10 +273,21 @@ const formData = reactive>({ const tempNullVal = ref('') const { createMessage } = useMessage(); const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); -const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } }); +const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 17 } }); const confirmLoading = ref(false); //表单验证 const validatorRules = reactive({ + status: [{ required: true, message: '请选择审批结果!' },], + content: [ + { + validator: async (_rule, value) => { + if (formData.status === '3' && !value) { + return Promise.reject('请输入驳回原因!'); + } + return Promise.resolve(); + }, + }, + ], }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); diff --git a/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue b/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue index af67ebe..920b23e 100644 --- a/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue +++ b/src/views/biz/orgapplyinfo/components/OrgApplyInfoModal.vue @@ -31,7 +31,7 @@ * @param record */ function edit(record) { - title.value = disableSubmit.value ? '详情' : '机构入驻申请审批'; + title.value = disableSubmit.value ? '详情' : '机构加盟申请审批'; visible.value = true; nextTick(() => { registerForm.value.edit(record); diff --git a/src/views/biz/orgmodifyinfo/OrgModifyInfo.api.ts b/src/views/biz/orgmodifyinfo/OrgModifyInfo.api.ts new file mode 100644 index 0000000..6aa1763 --- /dev/null +++ b/src/views/biz/orgmodifyinfo/OrgModifyInfo.api.ts @@ -0,0 +1,81 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/orgapplyinfo/orgApplyInfo/modifyLlist', + save='/orgapplyinfo/orgApplyInfo/add', + edit='/orgapplyinfo/orgApplyInfo/edit', + deleteOne = '/orgapplyinfo/orgApplyInfo/delete', + deleteBatch = '/orgapplyinfo/orgApplyInfo/deleteBatch', + importExcel = '/orgapplyinfo/orgApplyInfo/importExcel', + exportXls = '/orgapplyinfo/orgApplyInfo/exportXls', + getModifyInfo = '/orgapplyinfo/orgApplyInfo/getModifyInfo', +} + +/** + * 导出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 getModifyInfo = (params) => { + return defHttp.post({ url: Api.getModifyInfo, params }); +} \ No newline at end of file diff --git a/src/views/biz/orgmodifyinfo/OrgModifyInfo.data.ts b/src/views/biz/orgmodifyinfo/OrgModifyInfo.data.ts new file mode 100644 index 0000000..0019448 --- /dev/null +++ b/src/views/biz/orgmodifyinfo/OrgModifyInfo.data.ts @@ -0,0 +1,101 @@ +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: 'tel', + }, + { + title: '申请日期', + align: 'center', + dataIndex: 'createTime', + }, + { + title: '机构地址', + align: 'center', + dataIndex: 'orgAddress', + }, + { + title: '机构负责人电话', + align: 'center', + dataIndex: 'orgLeaderPhone', + }, + { + title: '机构房屋性质', + align: 'center', + dataIndex: 'orgPropertyType', + }, + { + title: '机构建筑面积', + align: 'center', + dataIndex: 'orgBuildingArea', + }, + { + title: '审批状态', + align: 'center', + dataIndex: 'status_dictText', + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + tel: { title: '联系电话', order: 2, view: 'text', type: 'string' }, + status: { title: '状态 1审核中 2审核完成 3驳回 ', order: 3, view: 'list', type: 'string', dictCode: '' }, + createTime: { title: '创建日期', order: 5, view: 'datetime', type: 'string' }, + izEntry: { title: '机构是否入驻0否 1是(是否入驻过)', order: 7, view: 'list', type: 'string', dictCode: '' }, + name: { title: '咨询人姓名', order: 8, view: 'text', type: 'string' }, + sex: { title: '性别', order: 9, view: 'text', type: 'string' }, + orgAddress: { title: '机构地址', order: 24, view: 'text', type: 'string' }, + orgLeaderPhone: { title: '机构负责人电话', order: 27, view: 'text', type: 'string' }, + orgPropertyType: { title: '机构房屋性质', order: 29, view: 'text', type: 'string' }, + orgBuildingArea: { title: '机构建筑面积', order: 30, view: 'number', type: 'number' }, +}; + +export const applyObj = { + openId: '微信id', + wechatName: '微信名称', + tel: '联系电话', + status: '审核状态', + content: '审核备注', + createTime: '申请时间', + name: '咨询人姓名', + sex: '性别', + national: '民族', + birthDate: '出生日期', + idCardAddress: '住址', + idCard: '身份证号', + issuingAuthority: '签发机关', + startTime: '有效开始日期', + endTime: '有效结束日期', + cardZmPath: '身份证正面照片', + cardFmPath: '身份证反面照片', + comBusinessLicense: '营业执照照片', + comName: '企业名称', + comRegisterAddress: '企业注册地址', + comCreditCode: '企业信用代码', + comLegalPerson: '企业法人', + orgAddress: '机构地址', + orgLeader: '机构负责人', + orgLeaderPhone: '机构负责人电话', + orgBuildingNumber: '机构楼宇牌号', + orgPropertyType: '机构房屋性质', + orgBuildingArea: '机构建筑面积', + orgProvince: '机构省份', + orgCity: '机构城市', + orgDistrict: '机构区域', +}; diff --git a/src/views/biz/orgmodifyinfo/OrgModifyInfoList.vue b/src/views/biz/orgmodifyinfo/OrgModifyInfoList.vue new file mode 100644 index 0000000..d07ef00 --- /dev/null +++ b/src/views/biz/orgmodifyinfo/OrgModifyInfoList.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/src/views/biz/orgmodifyinfo/components/OrgHistoryForm.vue b/src/views/biz/orgmodifyinfo/components/OrgHistoryForm.vue new file mode 100644 index 0000000..0e3eb14 --- /dev/null +++ b/src/views/biz/orgmodifyinfo/components/OrgHistoryForm.vue @@ -0,0 +1,230 @@ + + + + + \ No newline at end of file diff --git a/src/views/biz/orgmodifyinfo/components/OrgModifyInfoForm.vue b/src/views/biz/orgmodifyinfo/components/OrgModifyInfoForm.vue new file mode 100644 index 0000000..47feb7c --- /dev/null +++ b/src/views/biz/orgmodifyinfo/components/OrgModifyInfoForm.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/src/views/biz/orgmodifyinfo/components/OrgModifyInfoModal.vue b/src/views/biz/orgmodifyinfo/components/OrgModifyInfoModal.vue new file mode 100644 index 0000000..2898078 --- /dev/null +++ b/src/views/biz/orgmodifyinfo/components/OrgModifyInfoModal.vue @@ -0,0 +1,103 @@ + + + + + +