From 4db755c75d428ecebd920aa8cdea9a3b909f676b Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Wed, 24 Jun 2026 17:29:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E9=99=A2=E7=AB=AF=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/HospitalLayout.vue | 119 ++- src/i18n/lang/zh-CN.js | 69 +- src/router/route.js | 6 + src/service/modular/hospital/index.js | 26 +- src/service/modular/upload/index.js | 5 + src/views/hospital/orders/detail.vue | 119 ++- src/views/hospital/orders/list.vue | 455 ++++++++++- src/views/hospital/orders/quick.vue | 828 +++++++++++++++++++- src/views/hospital/password.vue | 20 +- src/views/hospital/points.vue | 955 +++++++++++++++++++++-- src/views/hospital/workbench.vue | 179 ++++- 11 files changed, 2595 insertions(+), 186 deletions(-) diff --git a/src/components/layout/HospitalLayout.vue b/src/components/layout/HospitalLayout.vue index 84bc680..89e9568 100644 --- a/src/components/layout/HospitalLayout.vue +++ b/src/components/layout/HospitalLayout.vue @@ -29,6 +29,7 @@ 修改密码 + 更换主题 退出登录 @@ -39,21 +40,79 @@ + + + + + + + + {{ t.name }} + {{ t.desc }} + + + + @@ -128,6 +227,10 @@ onMounted(loadDetail); border-radius: 4px; min-height: 60px; line-height: 1.6; + + :deep(img) { + max-width: 100% !important; + } } .files { display: flex; diff --git a/src/views/hospital/orders/list.vue b/src/views/hospital/orders/list.vue index 7fa4111..c83f6c1 100644 --- a/src/views/hospital/orders/list.vue +++ b/src/views/hospital/orders/list.vue @@ -1,53 +1,198 @@ - - + - - + - + + + + + + + + + - + + + + - {{ $t('btn.query') }} - {{ $t('btn.reset') }} - {{ $t('btn.quickSubmit') }} + {{ + $t("btn.query") + }} + {{ $t("btn.reset") }} + {{ + $t("btn.quickSubmit") + }} - - + + + + 📋 + {{ stats.total }} + {{ $t("stat.totalOrders") }} + + + ⏳ + {{ stats.pending }} + {{ $t("stat.pendingOrders") }} + + + ✅ + {{ stats.completed }} + {{ $t("stat.completedOrders") }} + + + 🔴 + {{ stats.highPriority }} + {{ $t("stat.highPriorityOrders") }} + + - - - {{ row.priority }} + {{ + row.priority + }} + + + + + + + + + + + + {{ row.completedAt || "-" }} - {{ row.status }} + {{ + row.status + }} - - + + - {{ $t('btn.detail') }} - {{ $t('btn.cancel') }} + {{ + $t("btn.view") + }} + {{ + $t("btn.edit") + }} + {{ $t("btn.cancel") }} @@ -68,66 +213,191 @@ diff --git a/src/views/hospital/orders/quick.vue b/src/views/hospital/orders/quick.vue index b9e7edb..e45aa72 100644 --- a/src/views/hospital/orders/quick.vue +++ b/src/views/hospital/orders/quick.vue @@ -2,7 +2,7 @@ - {{ $t('modal.submit') }} + {{ isEdit ? '编辑工单' : $t('modal.submit') }} - + + + + + + {{ $t('label.colorTag') }} + + + + + + - + - - - 高 - 中 - 低 - + + + + + 高 + 中 + 低 + + + + + + + + + + + + + + - - - - - - 无 - 红 - 黄 - 蓝 - + + - + + + + + + + + + + + + + {{ $t('btn.upload') }} + + + {{ $t('label.attachmentTip') }} + + + + {{ $t('common.submit') }} {{ $t('common.cancel') }} + + + + + ✦ 奖励已发放 + + 🪙 + + + +1 积分 + + 🎉 到账通知 + 1 积分已放入您的钱包 + + + + 🏆 距兑换「康小虎 AI 吉祥物」 + + + 还差 {{ rewardDistance }} 分 + + 已达标 🎉 + + + + + + + 当前 {{ rewardTotalPoints }} 分 + + + + + + 开心收下 + + + 查看我的资产 → + + + + diff --git a/src/views/hospital/password.vue b/src/views/hospital/password.vue index 5375bec..cdf23b2 100644 --- a/src/views/hospital/password.vue +++ b/src/views/hospital/password.vue @@ -32,6 +32,7 @@ import { reactive, ref } from "vue"; import { useRouter } from "vue-router"; import { ElMessage } from "element-plus"; import { useI18n } from "vue-i18n"; +import { changePassword } from "@/service/modular/hospital"; const { t } = useI18n(); const router = useRouter(); @@ -55,14 +56,23 @@ const rules = { }; const submit = async () => { - await formRef.value.validate((valid) => { + await formRef.value.validate(async (valid) => { if (!valid) return; submitting.value = true; - setTimeout(() => { - submitting.value = false; + try { + await changePassword({ + oldPassword: form.oldPassword, + newPassword: form.newPassword, + }); ElMessage.success(t('password.success')); - router.back(); - }, 600); + setTimeout(() => { + router.replace('/login'); + }, 1000); + } catch (err) { + console.log(err?.message || t('common.failed')); + } finally { + submitting.value = false; + } }); }; diff --git a/src/views/hospital/points.vue b/src/views/hospital/points.vue index e61b80c..2d4e5ff 100644 --- a/src/views/hospital/points.vue +++ b/src/views/hospital/points.vue @@ -1,33 +1,136 @@ - - - - {{ summary.totalPoints ?? 0 }} - {{ $t('points.title') }} + + + 🎁 我的积分 + + + 🔄{{ $t("points.refresh") }} + + + 📖{{ $t("points.rule") }} + + + + + + + + + + 💰 当前可用积分 + 🏆 已获 {{ rewardCount }} 次奖励 + + + + {{ totalPoints }} + 分 + + + + 📅 本月 + +{{ monthPoints }} + + + ⬆️ 今日 + +{{ todayPoints }} + + + + + + + 🎁 兑换进度 + {{ goalText }} + + + + + + {{ progressPercent }}% - - - {{ summary.rewardCount ?? 0 }} - {{ $t('points.rewards') }} + + 🧸 + + 康小虎 AI 吉祥物 + 限量款 · 智能语音互动 + + + {{ exchangeButtonText }} + - + + + + + + + 📅 + 签到 + +1 积分 + 今日已签到 + + + 🎰 + 抽奖 + +1 ~ 10 积分 + + 今日已抽奖 + + + 📝 + 提交工单 + +1 积分 + - - {{ $t('points.detail') }} + + + + + 🕘 积分变动记录 + + 📦查看兑换记录 + + + + - - - + + + + + {{ sourceEmoji(row.source) }} + {{ row.source || "-" }} + + + + + {{ row.orderNo || "-" }} + + - - {{ row.changeAmount >= 0 ? "+" : "" }}{{ row.changeAmount }} + + {{ formatAmount(row.changeAmount) }} - - + @@ -42,12 +145,134 @@ /> + + + + + 填写收件信息,即可兑换「康小虎 AI 吉祥物」 + + + 🎯 兑换消耗 + -{{ EXCHANGE_GOAL }} 积分 + + + + + + + + + + + + + + + + + 取消 + + 确认兑换 + + + + + + + 已成功兑换的「康小虎 AI 吉祥物」清单 + + + + 📭 + + + + 快去积攒积分兑换「康小虎」吧! + + + + + + + 🧸 {{ item.itemName || REWARD_NAME }} + + 👤 {{ item.recipientName }} | 📞 {{ item.recipientPhone }} | + 📍 {{ item.recipientAddress }} + + + 🕒 {{ formatLogTime(item.createdAt) }} | 备注:{{ + item.remark || "无" + }} + + + 已兑换 + + + + diff --git a/src/views/hospital/workbench.vue b/src/views/hospital/workbench.vue index db072a3..9643758 100644 --- a/src/views/hospital/workbench.vue +++ b/src/views/hospital/workbench.vue @@ -3,9 +3,8 @@ - {{ $t('common.today') }} - {{ $t('common.thisWeek') }} {{ $t('common.thisMonth') }} + {{ $t('common.thisQuarter') }} {{ $t('common.thisYear') }} {{ $t('common.customDate') }} @@ -25,7 +24,7 @@ - + @@ -40,10 +39,24 @@ - {{ $t('chart.title') }} - - {{ $t('chart.submit') }} - {{ $t('chart.complete') }} + {{ $t('chart.title') }} + + + + {{ $t('chart.bar') }} + + + + {{ $t('chart.line') }} + @@ -53,27 +66,31 @@
+ 快去积攒积分兑换「康小虎」吧! +