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 @@ 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('label.colorTag') }}
+
+
+
+
+
+
- + - - - - - - + +
+ + + + + + + + + + + + + + + + + + +
- - - - - - - - - - + + - + + + + + +
+ + +
+
+ + + {{ $t('btn.upload') }} + + + {{ $t('common.submit') }} {{ $t('common.cancel') }}
+ + + +
+
✦ 奖励已发放
+
+ 🪙 +
+
+ +1 积分 +
+
🎉 到账通知
+
1 积分已放入您的钱包
+ +
+
+ 🏆 距兑换「康小虎 AI 吉祥物」 + + + + +
+
+
+
+
+ 当前 {{ 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 @@ 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 @@ @@ -53,27 +66,31 @@