import { defineComponent, ref, reactive, resolveComponent, mergeProps, unref, withCtx, createTextVNode, createVNode, toDisplayString, createBlock, createCommentVNode, openBlock, Fragment, isRef, useSSRContext } from 'vue'; import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'vue/server-renderer'; import { message } from 'ant-design-vue'; import { a as _export_sfc, c as useHead } from './server.mjs'; import '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'node:url'; import 'better-sqlite3'; import 'vue-router'; import '@babel/runtime/helpers/esm/extends'; import 'stylis'; import 'dayjs'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'unhead/server'; import 'devalue'; import 'unhead/plugins'; import 'unhead/utils'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "review", __ssrInlineRender: true, setup(__props) { useHead({ title: "会员审核" }); const loading = ref(false); const saving = ref(false); const materialsModal = ref(false); const detailModal = ref(false); const rejectModal = ref(false); const rejectReason = ref(""); const currentRecord = ref(null); const pendingCount = ref(5); const total = ref(0); const currentPage = ref(1); const pageSize = ref(15); const filters = reactive({ keyword: "", type: "", status: "" }); const columns = [ { title: "申请人", dataIndex: "applicantName", key: "applicantName" }, { title: "会员类型", key: "type", width: 110 }, { title: "单位/联系方式", dataIndex: "orgOrContact", key: "orgOrContact" }, { title: "申请时间", dataIndex: "applyTime", key: "applyTime", width: 150 }, { title: "状态", key: "status", width: 100 }, { title: "材料", key: "materials", width: 100 }, { title: "操作", key: "action", width: 180 } ]; const dataSource = ref([ { id: 1, applicantName: "广西某科技公司", memberType: "enterprise", orgOrContact: "王总 139****0001", phone: "139****0001", email: "enterprise@xx.com", organization: "广西某科技有限公司", applyTime: "2024-12-19 10:00", status: "pending" }, { id: 2, applicantName: "张某某", memberType: "personal", orgOrContact: "广西大学", phone: "138****0001", email: "zhang@gxu.edu.cn", applyTime: "2024-12-18 14:30", status: "pending" }, { id: 3, applicantName: "南宁某咨询机构", memberType: "enterprise", orgOrContact: "李经理 137****0002", phone: "137****0002", email: "nn@xx.com", organization: "南宁某咨询有限公司", applyTime: "2024-12-15 09:20", status: "approved" } ]); function getStatusColor(status) { const map = { pending: "orange", approved: "green", rejected: "red" }; return map[status] || "default"; } function getStatusText(status) { const map = { pending: "待审核", approved: "已通过", rejected: "已拒绝" }; return map[status] || status; } function viewMaterials(record) { currentRecord.value = record; materialsModal.value = true; } function viewDetail(record) { currentRecord.value = record; detailModal.value = true; } async function handleApprove(record) { record.status = "approved"; pendingCount.value = Math.max(0, pendingCount.value - 1); message.success(`已通过 ${record.applicantName} 的会员申请`); } function handleReject(record) { currentRecord.value = record; rejectReason.value = ""; rejectModal.value = true; } async function confirmReject() { if (!rejectReason.value.trim()) { message.warning("请填写拒绝原因"); return; } saving.value = true; try { currentRecord.value.status = "rejected"; currentRecord.value.rejectReason = rejectReason.value; pendingCount.value = Math.max(0, pendingCount.value - 1); message.success("已拒绝申请并通知申请人"); rejectModal.value = false; } finally { saving.value = false; } } function handlePageChange(page) { currentPage.value = page; loadData(); } async function loadData() { } return (_ctx, _push, _parent, _attrs) => { const _component_a_space = resolveComponent("a-space"); const _component_a_input = resolveComponent("a-input"); const _component_a_select = resolveComponent("a-select"); const _component_a_select_option = resolveComponent("a-select-option"); const _component_a_button = resolveComponent("a-button"); const _component_a_table = resolveComponent("a-table"); const _component_a_tag = resolveComponent("a-tag"); const _component_a_modal = resolveComponent("a-modal"); const _component_a_divider = resolveComponent("a-divider"); const _component_a_descriptions = resolveComponent("a-descriptions"); const _component_a_descriptions_item = resolveComponent("a-descriptions-item"); const _component_a_textarea = resolveComponent("a-textarea"); _push(`
`); _push(ssrRenderComponent(_component_a_space, { wrap: "" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_a_input, { value: unref(filters).keyword, "onUpdate:value": ($event) => unref(filters).keyword = $event, placeholder: "搜索申请人姓名/单位", "allow-clear": "", style: { "width": "200px" }, onPressEnter: loadData }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_a_select, { value: unref(filters).type, "onUpdate:value": ($event) => unref(filters).type = $event, style: { "width": "130px" }, onChange: loadData }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(_component_a_select_option, { value: "" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`全部类型`); } else { return [ createTextVNode("全部类型") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_select_option, { value: "enterprise" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`企业会员`); } else { return [ createTextVNode("企业会员") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_select_option, { value: "personal" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`个人会员`); } else { return [ createTextVNode("个人会员") ]; } }), _: 1 }, _parent3, _scopeId2)); } else { return [ createVNode(_component_a_select_option, { value: "" }, { default: withCtx(() => [ createTextVNode("全部类型") ]), _: 1 }), createVNode(_component_a_select_option, { value: "enterprise" }, { default: withCtx(() => [ createTextVNode("企业会员") ]), _: 1 }), createVNode(_component_a_select_option, { value: "personal" }, { default: withCtx(() => [ createTextVNode("个人会员") ]), _: 1 }) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_a_select, { value: unref(filters).status, "onUpdate:value": ($event) => unref(filters).status = $event, style: { "width": "130px" }, onChange: loadData }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(_component_a_select_option, { value: "" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`全部状态`); } else { return [ createTextVNode("全部状态") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_select_option, { value: "pending" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`待审核`); } else { return [ createTextVNode("待审核") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_select_option, { value: "approved" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`已通过`); } else { return [ createTextVNode("已通过") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_select_option, { value: "rejected" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`已拒绝`); } else { return [ createTextVNode("已拒绝") ]; } }), _: 1 }, _parent3, _scopeId2)); } else { return [ createVNode(_component_a_select_option, { value: "" }, { default: withCtx(() => [ createTextVNode("全部状态") ]), _: 1 }), createVNode(_component_a_select_option, { value: "pending" }, { default: withCtx(() => [ createTextVNode("待审核") ]), _: 1 }), createVNode(_component_a_select_option, { value: "approved" }, { default: withCtx(() => [ createTextVNode("已通过") ]), _: 1 }), createVNode(_component_a_select_option, { value: "rejected" }, { default: withCtx(() => [ createTextVNode("已拒绝") ]), _: 1 }) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_a_button, { type: "primary", onClick: loadData }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`搜索`); } else { return [ createTextVNode("搜索") ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(_component_a_input, { value: unref(filters).keyword, "onUpdate:value": ($event) => unref(filters).keyword = $event, placeholder: "搜索申请人姓名/单位", "allow-clear": "", style: { "width": "200px" }, onPressEnter: loadData }, null, 8, ["value", "onUpdate:value"]), createVNode(_component_a_select, { value: unref(filters).type, "onUpdate:value": ($event) => unref(filters).type = $event, style: { "width": "130px" }, onChange: loadData }, { default: withCtx(() => [ createVNode(_component_a_select_option, { value: "" }, { default: withCtx(() => [ createTextVNode("全部类型") ]), _: 1 }), createVNode(_component_a_select_option, { value: "enterprise" }, { default: withCtx(() => [ createTextVNode("企业会员") ]), _: 1 }), createVNode(_component_a_select_option, { value: "personal" }, { default: withCtx(() => [ createTextVNode("个人会员") ]), _: 1 }) ]), _: 1 }, 8, ["value", "onUpdate:value"]), createVNode(_component_a_select, { value: unref(filters).status, "onUpdate:value": ($event) => unref(filters).status = $event, style: { "width": "130px" }, onChange: loadData }, { default: withCtx(() => [ createVNode(_component_a_select_option, { value: "" }, { default: withCtx(() => [ createTextVNode("全部状态") ]), _: 1 }), createVNode(_component_a_select_option, { value: "pending" }, { default: withCtx(() => [ createTextVNode("待审核") ]), _: 1 }), createVNode(_component_a_select_option, { value: "approved" }, { default: withCtx(() => [ createTextVNode("已通过") ]), _: 1 }), createVNode(_component_a_select_option, { value: "rejected" }, { default: withCtx(() => [ createTextVNode("已拒绝") ]), _: 1 }) ]), _: 1 }, 8, ["value", "onUpdate:value"]), createVNode(_component_a_button, { type: "primary", onClick: loadData }, { default: withCtx(() => [ createTextVNode("搜索") ]), _: 1 }) ]; } }), _: 1 }, _parent)); _push(`
`); _push(ssrRenderComponent(_component_a_table, { columns, "data-source": unref(dataSource), loading: unref(loading), "row-key": "id", pagination: { total: unref(total), pageSize: unref(pageSize), current: unref(currentPage), onChange: handlePageChange, showTotal: (t) => `共 ${t} 条` } }, { bodyCell: withCtx(({ column, record }, _push2, _parent2, _scopeId) => { if (_push2) { if (column.key === "type") { _push2(ssrRenderComponent(_component_a_tag, { color: record.memberType === "enterprise" ? "blue" : "green" }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`${ssrInterpolate(record.memberType === "enterprise" ? "企业会员" : "个人会员")}`); } else { return [ createTextVNode(toDisplayString(record.memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } if (column.key === "status") { _push2(ssrRenderComponent(_component_a_tag, { color: getStatusColor(record.status) }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`${ssrInterpolate(getStatusText(record.status))}`); } else { return [ createTextVNode(toDisplayString(getStatusText(record.status)), 1) ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } if (column.key === "materials") { _push2(ssrRenderComponent(_component_a_button, { size: "small", onClick: ($event) => viewMaterials(record) }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`查看材料`); } else { return [ createTextVNode("查看材料") ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } if (column.key === "action") { _push2(``); if (record.status === "pending") { _push2(ssrRenderComponent(_component_a_space, null, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(_component_a_button, { type: "primary", size: "small", onClick: ($event) => handleApprove(record) }, { default: withCtx((_2, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`通过`); } else { return [ createTextVNode("通过") ]; } }), _: 2 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_button, { danger: "", size: "small", onClick: ($event) => handleReject(record) }, { default: withCtx((_2, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`拒绝`); } else { return [ createTextVNode("拒绝") ]; } }), _: 2 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_button, { size: "small", onClick: ($event) => viewDetail(record) }, { default: withCtx((_2, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`详情`); } else { return [ createTextVNode("详情") ]; } }), _: 2 }, _parent3, _scopeId2)); } else { return [ createVNode(_component_a_button, { type: "primary", size: "small", onClick: ($event) => handleApprove(record) }, { default: withCtx(() => [ createTextVNode("通过") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { danger: "", size: "small", onClick: ($event) => handleReject(record) }, { default: withCtx(() => [ createTextVNode("拒绝") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { size: "small", onClick: ($event) => viewDetail(record) }, { default: withCtx(() => [ createTextVNode("详情") ]), _: 1 }, 8, ["onClick"]) ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(ssrRenderComponent(_component_a_button, { size: "small", onClick: ($event) => viewDetail(record) }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`详情`); } else { return [ createTextVNode("详情") ]; } }), _: 2 }, _parent2, _scopeId)); } _push2(``); } else { _push2(``); } } else { return [ column.key === "type" ? (openBlock(), createBlock(_component_a_tag, { key: 0, color: record.memberType === "enterprise" ? "blue" : "green" }, { default: withCtx(() => [ createTextVNode(toDisplayString(record.memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]), _: 2 }, 1032, ["color"])) : createCommentVNode("", true), column.key === "status" ? (openBlock(), createBlock(_component_a_tag, { key: 1, color: getStatusColor(record.status) }, { default: withCtx(() => [ createTextVNode(toDisplayString(getStatusText(record.status)), 1) ]), _: 2 }, 1032, ["color"])) : createCommentVNode("", true), column.key === "materials" ? (openBlock(), createBlock(_component_a_button, { key: 2, size: "small", onClick: ($event) => viewMaterials(record) }, { default: withCtx(() => [ createTextVNode("查看材料") ]), _: 1 }, 8, ["onClick"])) : createCommentVNode("", true), column.key === "action" ? (openBlock(), createBlock(Fragment, { key: 3 }, [ record.status === "pending" ? (openBlock(), createBlock(_component_a_space, { key: 0 }, { default: withCtx(() => [ createVNode(_component_a_button, { type: "primary", size: "small", onClick: ($event) => handleApprove(record) }, { default: withCtx(() => [ createTextVNode("通过") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { danger: "", size: "small", onClick: ($event) => handleReject(record) }, { default: withCtx(() => [ createTextVNode("拒绝") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { size: "small", onClick: ($event) => viewDetail(record) }, { default: withCtx(() => [ createTextVNode("详情") ]), _: 1 }, 8, ["onClick"]) ]), _: 2 }, 1024)) : (openBlock(), createBlock(_component_a_button, { key: 1, size: "small", onClick: ($event) => viewDetail(record) }, { default: withCtx(() => [ createTextVNode("详情") ]), _: 1 }, 8, ["onClick"])) ], 64)) : createCommentVNode("", true) ]; } }), _: 1 }, _parent)); _push(`
`); _push(ssrRenderComponent(_component_a_modal, { open: unref(materialsModal), "onUpdate:open": ($event) => isRef(materialsModal) ? materialsModal.value = $event : null, title: `${unref(currentRecord)?.applicantName} 的申请材料`, width: "700px", footer: null }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { if (unref(currentRecord)) { _push2(`
`); if (unref(currentRecord).memberType === "enterprise") { _push2(`

企业会员申请材料

📄入会申请表(盖章)`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
🏢营业执照副本`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
🪪法人身份证`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
📝单位简介`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
`); } else { _push2(`

个人会员申请材料

📄入会申请表(签字)`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
📖个人简介`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
🎓职称证书/学历证书`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
🪪身份证复印件`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
🏆研究成果/获奖证明`); _push2(ssrRenderComponent(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`预览/下载`); } else { return [ createTextVNode("预览/下载") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
`); } if (unref(currentRecord).status === "pending") { _push2(`
`); _push2(ssrRenderComponent(_component_a_divider, null, null, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_a_space, null, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(_component_a_button, { type: "primary", onClick: ($event) => { handleApprove(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`通过申请`); } else { return [ createTextVNode("通过申请") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_button, { danger: "", onClick: ($event) => { handleReject(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`拒绝申请`); } else { return [ createTextVNode("拒绝申请") ]; } }), _: 1 }, _parent3, _scopeId2)); } else { return [ createVNode(_component_a_button, { type: "primary", onClick: ($event) => { handleApprove(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx(() => [ createTextVNode("通过申请") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { danger: "", onClick: ($event) => { handleReject(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx(() => [ createTextVNode("拒绝申请") ]), _: 1 }, 8, ["onClick"]) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`
`); } else { _push2(``); } _push2(`
`); } else { _push2(``); } } else { return [ unref(currentRecord) ? (openBlock(), createBlock("div", { key: 0 }, [ unref(currentRecord).memberType === "enterprise" ? (openBlock(), createBlock("div", { key: 0 }, [ createVNode("h4", null, "企业会员申请材料"), createVNode("div", { class: "materials-list" }, [ createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "📄"), createVNode("span", { class: "material-name" }, "入会申请表(盖章)"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "🏢"), createVNode("span", { class: "material-name" }, "营业执照副本"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "🪪"), createVNode("span", { class: "material-name" }, "法人身份证"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "📝"), createVNode("span", { class: "material-name" }, "单位简介"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]) ]) ])) : (openBlock(), createBlock("div", { key: 1 }, [ createVNode("h4", null, "个人会员申请材料"), createVNode("div", { class: "materials-list" }, [ createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "📄"), createVNode("span", { class: "material-name" }, "入会申请表(签字)"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "📖"), createVNode("span", { class: "material-name" }, "个人简介"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "🎓"), createVNode("span", { class: "material-name" }, "职称证书/学历证书"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "🪪"), createVNode("span", { class: "material-name" }, "身份证复印件"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]), createVNode("div", { class: "material-item" }, [ createVNode("span", { class: "material-icon" }, "🏆"), createVNode("span", { class: "material-name" }, "研究成果/获奖证明"), createVNode(_component_a_button, { size: "small", type: "primary", ghost: "" }, { default: withCtx(() => [ createTextVNode("预览/下载") ]), _: 1 }) ]) ]) ])), unref(currentRecord).status === "pending" ? (openBlock(), createBlock("div", { key: 2, class: "action-area" }, [ createVNode(_component_a_divider), createVNode(_component_a_space, null, { default: withCtx(() => [ createVNode(_component_a_button, { type: "primary", onClick: ($event) => { handleApprove(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx(() => [ createTextVNode("通过申请") ]), _: 1 }, 8, ["onClick"]), createVNode(_component_a_button, { danger: "", onClick: ($event) => { handleReject(unref(currentRecord)); materialsModal.value = false; } }, { default: withCtx(() => [ createTextVNode("拒绝申请") ]), _: 1 }, 8, ["onClick"]) ]), _: 1 }) ])) : createCommentVNode("", true) ])) : createCommentVNode("", true) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_a_modal, { open: unref(detailModal), "onUpdate:open": ($event) => isRef(detailModal) ? detailModal.value = $event : null, title: `会员申请详情`, width: "700px", footer: null }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { if (unref(currentRecord)) { _push2(ssrRenderComponent(_component_a_descriptions, { bordered: "", column: 2 }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "申请人" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).applicantName)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).applicantName), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "会员类型" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(ssrRenderComponent(_component_a_tag, { color: unref(currentRecord).memberType === "enterprise" ? "blue" : "green" }, { default: withCtx((_4, _push5, _parent5, _scopeId4) => { if (_push5) { _push5(`${ssrInterpolate(unref(currentRecord).memberType === "enterprise" ? "企业会员" : "个人会员")}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]; } }), _: 1 }, _parent4, _scopeId3)); } else { return [ createVNode(_component_a_tag, { color: unref(currentRecord).memberType === "enterprise" ? "blue" : "green" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]), _: 1 }, 8, ["color"]) ]; } }), _: 1 }, _parent3, _scopeId2)); if (unref(currentRecord).memberType === "enterprise") { _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "单位/组织" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).organization)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).organization), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); } else { _push3(``); } _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "联系方式" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).phone)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).phone), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "电子邮箱", span: 2 }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).email)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).email), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "申请时间" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).applyTime)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).applyTime), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "状态" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(ssrRenderComponent(_component_a_tag, { color: getStatusColor(unref(currentRecord).status) }, { default: withCtx((_4, _push5, _parent5, _scopeId4) => { if (_push5) { _push5(`${ssrInterpolate(getStatusText(unref(currentRecord).status))}`); } else { return [ createTextVNode(toDisplayString(getStatusText(unref(currentRecord).status)), 1) ]; } }), _: 1 }, _parent4, _scopeId3)); } else { return [ createVNode(_component_a_tag, { color: getStatusColor(unref(currentRecord).status) }, { default: withCtx(() => [ createTextVNode(toDisplayString(getStatusText(unref(currentRecord).status)), 1) ]), _: 1 }, 8, ["color"]) ]; } }), _: 1 }, _parent3, _scopeId2)); if (unref(currentRecord).rejectReason) { _push3(ssrRenderComponent(_component_a_descriptions_item, { label: "拒绝原因", span: 2 }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`${ssrInterpolate(unref(currentRecord).rejectReason)}`); } else { return [ createTextVNode(toDisplayString(unref(currentRecord).rejectReason), 1) ]; } }), _: 1 }, _parent3, _scopeId2)); } else { _push3(``); } } else { return [ createVNode(_component_a_descriptions_item, { label: "申请人" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).applicantName), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "会员类型" }, { default: withCtx(() => [ createVNode(_component_a_tag, { color: unref(currentRecord).memberType === "enterprise" ? "blue" : "green" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]), _: 1 }, 8, ["color"]) ]), _: 1 }), unref(currentRecord).memberType === "enterprise" ? (openBlock(), createBlock(_component_a_descriptions_item, { key: 0, label: "单位/组织" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).organization), 1) ]), _: 1 })) : createCommentVNode("", true), createVNode(_component_a_descriptions_item, { label: "联系方式" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).phone), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "电子邮箱", span: 2 }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).email), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "申请时间" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).applyTime), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "状态" }, { default: withCtx(() => [ createVNode(_component_a_tag, { color: getStatusColor(unref(currentRecord).status) }, { default: withCtx(() => [ createTextVNode(toDisplayString(getStatusText(unref(currentRecord).status)), 1) ]), _: 1 }, 8, ["color"]) ]), _: 1 }), unref(currentRecord).rejectReason ? (openBlock(), createBlock(_component_a_descriptions_item, { key: 1, label: "拒绝原因", span: 2 }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).rejectReason), 1) ]), _: 1 })) : createCommentVNode("", true) ]; } }), _: 1 }, _parent2, _scopeId)); } else { _push2(``); } } else { return [ unref(currentRecord) ? (openBlock(), createBlock(_component_a_descriptions, { key: 0, bordered: "", column: 2 }, { default: withCtx(() => [ createVNode(_component_a_descriptions_item, { label: "申请人" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).applicantName), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "会员类型" }, { default: withCtx(() => [ createVNode(_component_a_tag, { color: unref(currentRecord).memberType === "enterprise" ? "blue" : "green" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).memberType === "enterprise" ? "企业会员" : "个人会员"), 1) ]), _: 1 }, 8, ["color"]) ]), _: 1 }), unref(currentRecord).memberType === "enterprise" ? (openBlock(), createBlock(_component_a_descriptions_item, { key: 0, label: "单位/组织" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).organization), 1) ]), _: 1 })) : createCommentVNode("", true), createVNode(_component_a_descriptions_item, { label: "联系方式" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).phone), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "电子邮箱", span: 2 }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).email), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "申请时间" }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).applyTime), 1) ]), _: 1 }), createVNode(_component_a_descriptions_item, { label: "状态" }, { default: withCtx(() => [ createVNode(_component_a_tag, { color: getStatusColor(unref(currentRecord).status) }, { default: withCtx(() => [ createTextVNode(toDisplayString(getStatusText(unref(currentRecord).status)), 1) ]), _: 1 }, 8, ["color"]) ]), _: 1 }), unref(currentRecord).rejectReason ? (openBlock(), createBlock(_component_a_descriptions_item, { key: 1, label: "拒绝原因", span: 2 }, { default: withCtx(() => [ createTextVNode(toDisplayString(unref(currentRecord).rejectReason), 1) ]), _: 1 })) : createCommentVNode("", true) ]), _: 1 })) : createCommentVNode("", true) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_a_modal, { open: unref(rejectModal), "onUpdate:open": ($event) => isRef(rejectModal) ? rejectModal.value = $event : null, title: "填写拒绝原因", onOk: confirmReject, "confirm-loading": unref(saving) }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_a_textarea, { value: unref(rejectReason), "onUpdate:value": ($event) => isRef(rejectReason) ? rejectReason.value = $event : null, rows: 4, placeholder: "请说明拒绝原因" }, null, _parent2, _scopeId)); } else { return [ createVNode(_component_a_textarea, { value: unref(rejectReason), "onUpdate:value": ($event) => isRef(rejectReason) ? rejectReason.value = $event : null, rows: 4, placeholder: "请说明拒绝原因" }, null, 8, ["value", "onUpdate:value"]) ]; } }), _: 1 }, _parent)); _push(``); }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/admin/members/review.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const review = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-88e0bf35"]]); export { review as default }; //# sourceMappingURL=review-BytUCWvf.mjs.map