diff --git a/.env.development b/.env.development
index 9928b9d..c35990f 100644
--- a/.env.development
+++ b/.env.development
@@ -1,3 +1,4 @@
MP_API_BASE_URL=http://localhost:8080
MP_CACHE_PREFIX=development
MP_WX_APP_ID=wx93af55767423938e
+MP_CORP_ID=wwe3fb2faa52cf9dfb
diff --git a/App.vue b/App.vue
index b6f4564..32f7d93 100644
--- a/App.vue
+++ b/App.vue
@@ -1,351 +1,353 @@
diff --git a/api/consult-order.js b/api/consult-order.js
new file mode 100644
index 0000000..b32b178
--- /dev/null
+++ b/api/consult-order.js
@@ -0,0 +1,98 @@
+// 患者管理模块 API 封装
+import api from '../utils/http.js'
+
+// API 基础路径
+const BASE_PATH = '/order'
+
+/**
+ * 初始化咨询订单
+ */
+export function initConsultOrder({ doctorCode, accountId, openId, memberId }) {
+ return api.post(`${BASE_PATH}/consult-orders/init`, { doctorCode, accountId, openId, memberId })
+}
+
+/**
+ * 绑定订单的患者信息
+ */
+export function bindOrderPatient({ accountId, memberId, orderId }) {
+ return api.post(`${BASE_PATH}/consult-orders/bind-member`, { accountId, memberId, orderId })
+}
+
+/**
+ * 补充病情描述
+ */
+export function submitOrderDescription({ accountId, orderId, description, diseases, images, hasVisitedHospital }) {
+ return api.post(`${BASE_PATH}/consult-orders/supplement-description`, { accountId, orderId, description, diseases, images, hasVisitedHospital })
+}
+
+/**
+ * 获取订单信息
+ */
+export function getOrderInfo({ orderId }) {
+ return api.post(`${BASE_PATH}/consult-orders/get`, { orderId })
+}
+
+/**
+ * 获取订单列表
+ */
+export function getOrderList({ accountId, page, pageSize: limit, orderStatus }) {
+ return api.post(`${BASE_PATH}/consult-orders/list`, { accountId, page, limit, orderStatus })
+}
+
+/**
+ * 获取最新订单
+ */
+export function getLatestOrder({ accountId, chatGroupId }) {
+ return api.post(`${BASE_PATH}/consult-orders/latest`, { accountId, chatGroupId })
+}
+
+/**
+ * 获取订单支付信息
+ */
+export function getOrderTradeNo({ orderId, accountId }) {
+ return api.post(`${BASE_PATH}/consult-orders/get-trade-no`, { accountId, orderId })
+}
+
+/**
+ * 取消订单
+ */
+export function cancelOrder({ orderId, accountId }) {
+ return api.post(`${BASE_PATH}/consult-orders/cancel`, { orderId, accountId })
+}
+
+/**
+ * 获取账号统计信息
+ */
+export function getAccountStats(accountId, statusList) {
+ return api.post(`${BASE_PATH}/consult-orders/account-stats`, { accountId, statusList })
+}
+
+export function getConsultInfo({doctorCode, memberId, accountId}) {
+ return api.post(`${BASE_PATH}/consult-orders/get-consult-info`, { doctorCode, memberId, accountId })
+}
+
+/**
+ * 更新订单最后一条消息ID
+ */
+export function updateLastMessageId({ orderId, lastMessageId }) {
+ return api.post(`${BASE_PATH}/consult-orders/update-last-message`, { orderId, lastMessageId })
+}
+
+/**
+ * 发送消息到群组
+ * @param {Object} params
+ * @param {string} params.groupId - 群组ID
+ * @param {string} params.desc - 消息描述/类型,如:'WAIT_DOCTOR_ACCEPT'
+ * @param {string} params.message - 消息内容
+ * @param {string} params.ext - 扩展信息(JSON字符串)
+ * @param {string} params.fromAccount - 发送者账号(可选)
+ */
+export function sendMessageToGroup({ groupId, desc, message, ext, fromAccount }) {
+ return api.post(`${BASE_PATH}/consult-orders/send-message-to-group`, {
+ groupId,
+ desc,
+ message,
+ ext,
+ fromAccount
+ })
+}
\ No newline at end of file
diff --git a/api/corp/dept.js b/api/corp/dept.js
new file mode 100644
index 0000000..10caf9c
--- /dev/null
+++ b/api/corp/dept.js
@@ -0,0 +1,13 @@
+import api from "../../utils/http.js";
+
+const BASE_PATH = "/corp";
+
+/**
+ * 获取科室列表(按 corpId)
+ * @param {Object} params
+ * @param {string} params.corpId
+ */
+export function getDeptList(params = {}) {
+ return api.post(`${BASE_PATH}`, { type: "getDeptList", ...params });
+}
+
diff --git a/api/corp/im.js b/api/corp/im.js
new file mode 100644
index 0000000..62c45af
--- /dev/null
+++ b/api/corp/im.js
@@ -0,0 +1,48 @@
+import api from '../../utils/http.js'
+
+// API 基础路径
+const BASE_PATH = '/corp'
+
+/**
+ * 获取用户签名
+ * @param {string} userId - 用户ID
+ * @returns {Promise} 返回包含 userSig 信息的 Promise
+ */
+export const getUserSig = (userId) => {
+ return api.post(`${BASE_PATH}/tencent-im/user-sig`, { userId })
+}
+
+export async function getChatStatus(chatGroupId) {
+ return api.post(`${BASE_PATH}/tencent-im/get-chat-status`, { chatGroupId, role: 'patient' })
+}
+
+export const sendSystemMessage = (groupId, data, Desc = '', Ext = '') => {
+ return api.post(`${BASE_PATH}/tencent-im/send-group-message`, {
+ groupId,
+ msgBody: [
+ {
+ MsgType: "TIMCustomElem",
+ MsgContent: {
+ Data: data,
+ Desc,
+ Ext
+ }
+ }
+ ]
+ })
+}
+
+/**
+ * 获取群组聊天记录(POST请求)
+ * @param {string} groupId - 群组ID
+ * @param {number} limit - 每页数量,默认20,最大100
+ * @param {number} skip - 跳过数量,默认0
+ * @returns {Promise} 返回包含聊天记录的 Promise
+ */
+export const getChatRecordsByGroupId = (groupId, limit = 20, skip = 0) => {
+ return api.post(`${BASE_PATH}/tencent-im/chat-records`, {
+ GroupId: groupId,
+ limit,
+ skip
+ })
+}
diff --git a/api/corp/rate.js b/api/corp/rate.js
new file mode 100644
index 0000000..7849409
--- /dev/null
+++ b/api/corp/rate.js
@@ -0,0 +1,15 @@
+import api from '../../utils/http.js'
+
+// API 基础路径
+const BASE_PATH = '/corp/rate-records'
+
+export const getRate = (id) => {
+ return api.post(`${BASE_PATH}/get-by-id`, { id })
+}
+export function submitRate({ id, rate, words }) {
+ return api.post(`${BASE_PATH}/submit`, { id, rate, words })
+}
+
+export const getRateList = ({ page, pageSize, doctorId }) => {
+ return api.post(`${BASE_PATH}/displayable-list`, { page, limit: pageSize, userId: doctorId })
+}
\ No newline at end of file
diff --git a/api/doctor/doctor.js b/api/doctor/doctor.js
new file mode 100644
index 0000000..7358cae
--- /dev/null
+++ b/api/doctor/doctor.js
@@ -0,0 +1,75 @@
+import api from '../../utils/http.js'
+
+const BASE_PATH = "/corp/doctors";
+
+/**
+ * 获取医生
+ * @param {string} id - 医生ID
+ * @returns {Promise