diff --git a/api/consult-order.js b/api/consult-order.js deleted file mode 100644 index b32b178..0000000 --- a/api/consult-order.js +++ /dev/null @@ -1,98 +0,0 @@ -// 患者管理模块 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 deleted file mode 100644 index 10caf9c..0000000 --- a/api/corp/dept.js +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index 62c45af..0000000 --- a/api/corp/im.js +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 7849409..0000000 --- a/api/corp/rate.js +++ /dev/null @@ -1,15 +0,0 @@ -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 deleted file mode 100644 index 7358cae..0000000 --- a/api/doctor/doctor.js +++ /dev/null @@ -1,75 +0,0 @@ -import api from '../../utils/http.js' - -const BASE_PATH = "/corp/doctors"; - -/** - * 获取医生 - * @param {string} id - 医生ID - * @returns {Promise} 医生数据 - */ -export function getDoctorInfo(id) { - return api.post(`${BASE_PATH}/get-by-id`, { id }) -} - -/** - * 获取邀请医生 - * @param {string} doctorId - 医生ID - * @returns {Promise} 邀请医生数据 - */ -export function getDoctorByDoctorId(doctorId) { - return api.get(`${BASE_PATH}/doctor/${doctorId}`) -} - -/** - * 获取医生 - * @param {string} accountId - 账户ID - * @returns - */ -export function getDoctorInfoByAccountId(accountId) { - return api.post(`${BASE_PATH}/get-by-account-id`, { accountId }) -} -/** - * 获取医生 - * @param {string} doctorId - 医生ID - * @returns - */ -export function getDoctorInfoByDoctorId(doctorId) { - return api.post(`${BASE_PATH}/get-by-doctor-id`, { doctorId }) -} -/** - * 创建医生 - * @param {Object} data - 医生数据 - * @param {string} data.accountId - 账户ID - * @param {string} data.avatar - 医生头像 - * @param {string} data.name - 医生姓名 - * @param {string} data.phone - 医生手机号 - * @param {string} data.hospitalId - 医院ID - * @param {string} data.hospitalName - 医院名称 - * @param {string} data.departmentId - 科室ID - * @param {string} data.title - 医生职称 - * @param {string} data.specialty - 医生擅长 - * @param {string} data.intro - 个人简介 - * @param {string} data.titleCertificate - 职称证书 - * @param {string} data.practiceLicenseCode - 执业证编号 - * @param {string} data.practiceLicenseFront - 执业证正面 - * @param {string} data.practiceLicenseBack - 执业证背面 - * @param {string} data.medicalLicenseFront - 资格证正面 - * @param {string} data.medicalLicenseBack - 资格证背面 - * @param {string} data.medicalLicenseCode - 资格证编号 - * @param {string} data.idCardFront - 身份证正面 - * @param {string} data.idCardBack - 身份证背面 - * @param {string} data.workCard - 工作证 - * @returns {Promise} 创建结果 - */ -export function createDoctorInfo(data) { - return api.post(`${BASE_PATH}/create`, data) -} - -/** - * 更新医生 - * @param {Object} data - 医生数据 - * @returns {Promise} 更新结果 - */ -export function updateDoctorInfo(data) { - return api.post(`${BASE_PATH}/update`, data) -} diff --git a/api/medicine.js b/api/medicine.js deleted file mode 100644 index 2314f8c..0000000 --- a/api/medicine.js +++ /dev/null @@ -1,50 +0,0 @@ -// 患者管理模块 API 封装 -import api from '../utils/http.js' - -// API 基础路径 -const BASE_PATH = '/medicine' - -export function getDiagnosisList({ type, keyword, page, limit }) { - return api.post(`${BASE_PATH}/diagnoses/list`, { type, keyword, page, limit }) -} - -export function getAccountPrescriptions({ accountId: patientAccountId, doctorId, patientId, statusList, page, limit }) { - return api.post(`${BASE_PATH}/prescriptions/get-by-patient-account`, { patientAccountId, doctorId, statusList, page, limit, patientId }) -} - -export function getPrescriptionStats(accountId, statusList) { - return api.post(`${BASE_PATH}/prescriptions/account-stats`, { accountId, statusList }) -} - -export function getPrescriptionDetail(id) { - return api.post(`${BASE_PATH}/prescriptions/get-by-id`, { id }) -} - -export function getPrescriptionDetailWithRps(id) { - return api.post(`${BASE_PATH}/prescriptions/get-by-id-with-rps`, { id }) -} - -export function bindSharePrescription({ id, accountId, openId, patientId }) { - return api.post(`${BASE_PATH}/prescriptions/bind-member`, { id, accountId, openId, patientId }) -} - -export function getPrescriptionTradeNo({ id, openId, accountId, logistics }) { - return api.post(`${BASE_PATH}/prescriptions/get-trade-no`, { id, openId, accountId, logistics }) -} - -export function cancelPrescription({ accountId, id }) { - return api.post(`${BASE_PATH}/prescriptions/cancel`, { id, accountId }) -} - -export function applyMedicines({ id, patientAccountId, openId }) { - return api.post(`${BASE_PATH}/prescriptions/apply-represcription`, { id, patientAccountId, openId }) -} - -export function getCartMedicines({ accountId, ids }) { - return api.post(`${BASE_PATH}/prescriptions/get-cart-medicines`, { accountId, ids }) -} - -export function getMergeTradeNo({ ids, openId, accountId, logistics }) { - return api.post(`${BASE_PATH}/prescriptions/get-merge-trade-no`, { ids, openId, accountId, logistics }) - -} \ No newline at end of file diff --git a/components/form-template/form-cell/form-select.vue b/components/form-template/form-cell/form-select.vue index 5070c91..d261253 100644 --- a/components/form-template/form-cell/form-select.vue +++ b/components/form-template/form-cell/form-select.vue @@ -1,5 +1,5 @@