diff --git a/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts b/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts index 37f5ac2..341fb18 100644 --- a/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts +++ b/src/views/admin/orgapplyinfo/OrgApplyInfo.data.ts @@ -41,7 +41,7 @@ export const columns: BasicColumn[] = [ width: '8%', }, { - title: '审核意见', + title: '审核状态', align: 'center', dataIndex: 'status_dictText', width: '8%', @@ -57,6 +57,17 @@ export const columns: BasicColumn[] = [ align: 'center', dataIndex: 'workOrderStatus_dictText', width: '8%', + customRender: ({ record }) => { + if (record.workOrderStatus == '0') { + return ''; + } else if (record.workOrderStatus == '1') { + return '待回执'; + } else if (record.workOrderStatus == '2') { + return '已回执'; + } else { + return ''; + } + }, }, ]; @@ -71,43 +82,43 @@ export const hisColumns: BasicColumn[] = [ title: '机构负责人', align: 'center', dataIndex: 'orgLeader', - width:100 + width: 100, }, { title: '负责人电话', align: 'center', dataIndex: 'orgLeaderPhone', - width:120 + width: 120, }, { title: '申请日期', align: 'center', dataIndex: 'createTime', - width:150 + width: 150, }, { title: '房屋性质', align: 'center', dataIndex: 'orgPropertyType', - width:100 + width: 100, }, { title: '面积(㎡)', align: 'center', dataIndex: 'orgBuildingArea', - width:100 + width: 100, }, { title: '类型', align: 'center', dataIndex: 'optTypeName', - width:100 + width: 100, }, { - title: '审核意见', + title: '审核状态', align: 'center', dataIndex: 'status_dictText', - width:100 + width: 100, }, ]; diff --git a/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue b/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue index 676b555..9e53b1d 100644 --- a/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue +++ b/src/views/admin/orgapplyinfo/OrgInfoAuditList.vue @@ -26,8 +26,8 @@ - - + + 待审核 审核通过 审核驳回 diff --git a/src/views/admin/orgapplyinfo/OrgModifyInfo.api.ts b/src/views/admin/orgapplyinfo/OrgModifyInfo.api.ts index 4dccff4..e303d47 100644 --- a/src/views/admin/orgapplyinfo/OrgModifyInfo.api.ts +++ b/src/views/admin/orgapplyinfo/OrgModifyInfo.api.ts @@ -12,6 +12,7 @@ enum Api { importExcel = '/admin/orgapplyinfo/orgApplyInfo/importExcel', exportXls = '/admin/orgapplyinfo/orgApplyInfo/exportXls', getModifyInfo = '/admin/orgapplyinfo/orgApplyInfo/getModifyInfo', + getHisModifyInfo = '/admin/orgapplyinfo/orgApplyInfo/getHisModifyInfo', upInfoAudit = '/admin/orgapplyinfo/orgApplyInfo/upInfoAudit', } @@ -84,3 +85,12 @@ export const upInfoAudit = (params) => { export const getModifyInfo = (params) => { return defHttp.post({ url: Api.getModifyInfo, params }); }; + +/** + * 返回当次审核信息和上一次使用的信息 + * @param params + * @returns + */ +export const getHisModifyInfo = (params) => { + return defHttp.post({ url: Api.getHisModifyInfo, params }); +}; \ No newline at end of file diff --git a/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue b/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue index a274565..fd23cfc 100644 --- a/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue +++ b/src/views/admin/orgapplyinfo/components/OrgApplyInfoForm.vue @@ -5,14 +5,14 @@ - - - - + + + + - @@ -53,6 +53,9 @@ + + + @@ -95,8 +98,7 @@ - + @@ -106,7 +108,7 @@ - + @@ -139,7 +141,9 @@ + value-format="YYYY-MM-DD" style="width: 100%" suffix-icon="" /> + @@ -171,16 +175,17 @@ + value-format="YYYY-MM-DD" style="width: 100%" suffix-icon="" /> - + + suffix-icon="" /> @@ -203,8 +208,8 @@ - - + 历史数据 待审核 @@ -247,7 +252,7 @@ - + @@ -426,11 +431,16 @@ function handleView(record) { function add() { edit({}); } - +const izApplyAudit = ref(true) /** * 编辑 */ function edit(record) { + if (record.optType == 'rz' && record.status == '1') { + izApplyAudit.value = true; + } else { + izApplyAudit.value = false; + } nextTick(() => { resetFields(); let tmpData = {}; diff --git a/src/views/admin/orgapplyinfo/components/OrgApplyInfoModal.vue b/src/views/admin/orgapplyinfo/components/OrgApplyInfoModal.vue index c8f1a84..3a04faf 100644 --- a/src/views/admin/orgapplyinfo/components/OrgApplyInfoModal.vue +++ b/src/views/admin/orgapplyinfo/components/OrgApplyInfoModal.vue @@ -14,8 +14,8 @@ @@ -27,7 +27,13 @@ - + + + + diff --git a/src/views/admin/orgapplyinfo/components/OrgAuditHisList.vue b/src/views/admin/orgapplyinfo/components/OrgAuditHisList.vue index f452bf9..b8f2f18 100644 --- a/src/views/admin/orgapplyinfo/components/OrgAuditHisList.vue +++ b/src/views/admin/orgapplyinfo/components/OrgAuditHisList.vue @@ -26,8 +26,8 @@ - - + + 审核通过 审核驳回 @@ -145,51 +145,19 @@ const wrapperCol = reactive({ }); /** - * 高级查询事件 + * 详情 */ -function handleSuperQuery(params) { - Object.keys(params).map((k) => { - queryParam[k] = params[k]; - }); - searchQuery(); -} - -/** - * 新增事件 - */ -function handleAdd() { - registerModal.value.disableSubmit = false; - registerModal.value.add(); -} - -/** - * 编辑事件 - */ -function handleEdit(record: Recordable) { - registerModal.value.disableSubmit = false; +function handleRzDetail(record: Recordable) { + registerModal.value.disableSubmit = true; registerModal.value.edit(record); } /** * 详情 */ -function handleDetail(record: Recordable) { +function handleBgDetail(record: Recordable) { registerModal.value.disableSubmit = true; - registerModal.value.edit(record); -} - -/** - * 删除事件 - */ -async function handleDelete(record) { - await deleteOne({ id: record.id }, handleSuccess); -} - -/** - * 批量删除事件 - */ -async function batchHandleDelete() { - await batchDelete({ ids: selectedRowKeys.value }, handleSuccess); + registerModal.value.showHis(record); } /** @@ -199,55 +167,11 @@ function handleSuccess() { (selectedRowKeys.value = []) && reload(); } -/** - * 上传合同 - */ -function handleUpContract(record) { - registerModal.value.editContract(record); -} - -/** - * 通知运维平台搭建业务平台 - */ -function handleBuildPlat(record) { - -} - -/** - * 账户初始化 - * @param record - */ -function handleInitAccount(record) { - var userInfo = { userName: record.tel, realname: record.name, orgCode: record.id } - console.log("🚀 ~ handleInitAccount ~ userInfo:", userInfo) - defHttp.post({ url: '/sys/user/initialization', params: userInfo }).then(res => { - console.log("🚀 ~ handleInitAccount ~ res:", res) - zhcshVisible.value = true; - zhcshMessage.value = res.message; - handleSuccess(); - }) - -} - function handleCshCancel() { zhcshVisible.value = false; zhcshMessage.value = ''; } -/** - * 信息推送 - * @param record - */ -function handlePushInfo(record) { - console.log("🚀 ~ handlePushInfo ~ record:", record) - var params = { openId: record.openId, id: record.id } - console.log("🚀 ~ handlePushInfo ~ params:", params) - defHttp.get({ url: '/weixinMini/sendOrgAuthInfo', params }).then(res => { - handleSuccess(); - }) -} - - /** * 操作栏 */ @@ -255,46 +179,14 @@ function getTableAction(record) { return [ { label: '详情', - onClick: handleDetail.bind(null, record), + onClick: handleRzDetail.bind(null, record), ifShow: record.optType == 'rz' }, { label: '详情', - onClick: handleDetail.bind(null, record), + onClick: handleBgDetail.bind(null, record), ifShow: record.optType == 'bg' }, - { - label: '加盟审核', - onClick: handleEdit.bind(null, record), - auth: 'orgapplyinfo:nu_org_apply_info:edit', - ifShow: record.status == '1' - }, - { - label: '上传合同', - onClick: handleUpContract.bind(null, record), - auth: 'orgapplyinfo:nu_org_apply_info:edit', - ifShow: record.buildStatus == '3' - }, - // { - // label: '运维平台进行搭建', - // onClick: handleBuildPlat.bind(null, record), - // auth: 'orgapplyinfo:nu_org_apply_info:edit', - // ifShow: () => { - // return record.buildStatus == '3' && !!record.contract - // } - // }, - { - label: '账号初始化', - onClick: handleInitAccount.bind(null, record), - auth: 'orgapplyinfo:nu_org_apply_info:edit', - ifShow: record.workOrderStatus == '2' && record.buildStatus == '4' - }, - // { - // label: '信息推送', - // onClick: handlePushInfo.bind(null, record), - // auth: 'orgapplyinfo:nu_org_apply_info:edit', - // ifShow: record.buildStatus == '5'n - // }, ]; } diff --git a/src/views/admin/orgapplyinfo/components/OrgHistoryForm.vue b/src/views/admin/orgapplyinfo/components/OrgHistoryForm.vue index 4e26c5e..c9931fc 100644 --- a/src/views/admin/orgapplyinfo/components/OrgHistoryForm.vue +++ b/src/views/admin/orgapplyinfo/components/OrgHistoryForm.vue @@ -1,7 +1,7 @@