From ab6e2df186af2c3b95a8fd08784c568fe2f70cc1 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Wed, 12 Aug 2026 15:20:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- public/hnhlw.html | 19 ++++++-- .../rx-paper-drawer/rx-paper-drawer.vue | 29 +++++++++-- .../hlw-drug-manage/drug-detail-drawer.vue | 7 ++- src/views/hlw-drug-manage/drug-dict.js | 2 + src/views/hlw-drug-manage/drug-drawer.vue | 24 ++++++++-- src/views/hlw-drug-manage/hlw-drug-manage.vue | 8 ++++ .../hlw-hospital/chat-home/reject-modal.vue | 3 +- src/views/hlw-people-manage/people-drawer.vue | 48 ++++++++++++++++++- 9 files changed, 127 insertions(+), 15 deletions(-) diff --git a/.env.dev b/.env.dev index 147a552..68d4684 100644 --- a/.env.dev +++ b/.env.dev @@ -5,4 +5,4 @@ VITE_CORP_ID = "4G7H8J2K9L0M1N3P5Q6R7S8T9U" VITE_NEED_LOGIN = "true" VITE_NEED_IM = "true" VITE_NEED_CA = "true" -VITE_STORE_QRCODE_BASE="https://www.youcan365.com/hn/hnhlw?storeId=" \ No newline at end of file +VITE_STORE_QRCODE_BASE="https://www.youcan365.com/hn/hnhlw?type=store&storeId=" \ No newline at end of file diff --git a/public/hnhlw.html b/public/hnhlw.html index 482bc5f..b96d410 100644 --- a/public/hnhlw.html +++ b/public/hnhlw.html @@ -45,10 +45,23 @@ return null; } + function getPageQuery() { + const type = getQueryParam(location.href, 'type') || ''; + if (type === 'ybAuth') { + const id = getQueryParam(location.href, 'id') || '' + return encodeURIComponent(`pages/consult/self-auth/auth-action?id=${id}`); + } else if (type === 'store') { + const storeId = getQueryParam(location.href, 'storeId') || ''; + return encodeURIComponent(`pages/home/home?storeId=${storeId}`); + } + return '' + + } + + window.onload = function () { - const storeId = getQueryParam(location.href, 'storeId') || ''; - const query = encodeURIComponent(`pages/home/home?storeId=${storeId}`); - const scheme = `alipays://platformapi/startapp?appId=2021004129669493&page=${query}`; + const query = getPageQuery() + const scheme = `alipays://platformapi/startapp?appId=2021004129669493${query ? '&page=' : ''}${query}`; const href = `https://ds.alipay.com/?scheme=${encodeURIComponent(scheme)}`; location.href = href; // console.log(href); diff --git a/src/components/rx-paper-drawer/rx-paper-drawer.vue b/src/components/rx-paper-drawer/rx-paper-drawer.vue index 7f2f23b..c0c1482 100644 --- a/src/components/rx-paper-drawer/rx-paper-drawer.vue +++ b/src/components/rx-paper-drawer/rx-paper-drawer.vue @@ -17,7 +17,7 @@
姓名:{{ data.name }}
性别:{{ info.sex }}
-
年龄:{{ info.age }}
+
年龄:{{ data.age > 0 ? data.age + '岁' : '' }}
费别:{{ data.feeType === 'YB' ? '医保' : '自费' }}
@@ -73,7 +73,7 @@
-
审方: +
药师审方: {{ data.pharmacist }}
@@ -89,7 +89,7 @@ 发药:
-
注意:请勿丢失,处方当日有效,因特殊情况,该处方有效为天(签名:)
+
注意:请勿丢失,处方当日有效,因特殊情况,该处方有效为 天(签名:
@@ -163,7 +163,7 @@ const info = computed(() => { const info = { sex: sexCode % 2 === 0 ? '女' : '男' }; if (createTime) { info.age = createTime.diff(dayjs(birthDate), 'year') + '岁'; - info.time = createTime.format('YYYY-MM-DD'); + info.time = createTime.format('YYYY-MM-DD HH:mm'); } return info }) @@ -190,7 +190,8 @@ function waitForPrintImages(root) { function openPrintDialog() { printPaperSize.value = 'A5'; - printDialogVisible.value = true; + // printDialogVisible.value = true; + confirmPrint() } async function confirmPrint() { @@ -414,6 +415,24 @@ defineExpose({ print: openPrintDialog }); .no { margin-top: 5px; } +.write_line{ + position: relative; + display: inline-block; + height: 1em; + width: 40px; +} +.write_line + .write_line{ + width: 80px; +} +.write_line::after{ + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: -4px; + border-bottom: 1px solid currentColor; +} +