fix: 处方笺页面调整
This commit is contained in:
parent
19cad00b30
commit
3decb6ab48
@ -44,6 +44,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 药品处方区域 -->
|
<!-- 药品处方区域 -->
|
||||||
|
<view class="stamp">
|
||||||
|
<image class="stamp-img" src="/static/stamp.png" mode="aspectFit"></image>
|
||||||
|
</view>
|
||||||
<view class="medicine-section">
|
<view class="medicine-section">
|
||||||
<view class="rp-symbol">Rp</view>
|
<view class="rp-symbol">Rp</view>
|
||||||
<view class="medicine-list">
|
<view class="medicine-list">
|
||||||
@ -64,9 +67,7 @@
|
|||||||
<image v-if="data.doctorSignImg" class="signImage" :src="data.doctorSignImg"></image>
|
<image v-if="data.doctorSignImg" class="signImage" :src="data.doctorSignImg"></image>
|
||||||
<text v-else>{{ data.doctorName }}</text>
|
<text v-else>{{ data.doctorName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="stamp">
|
|
||||||
<!-- <image class="stamp-img" src="/static/stamp.png"></image> -->
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="signature-item" style="min-width: 33%">
|
<view class="signature-item" style="min-width: 33%">
|
||||||
<view>审方药师:<image v-if="data.pharmacistSignImg" class="signImage" :src="data.pharmacistSignImg"></image>
|
<view>审方药师:<image v-if="data.pharmacistSignImg" class="signImage" :src="data.pharmacistSignImg"></image>
|
||||||
@ -75,12 +76,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="signatures">
|
<view class="signatures">
|
||||||
|
<view class="signature-item" style="width: 33%">审核:</view>
|
||||||
<view class="signature-item" style="width: 33%">调配:</view>
|
<view class="signature-item" style="width: 33%">调配:</view>
|
||||||
<view class="signature-item" style="width: 33%">核对:</view>
|
<view class="signature-item" style="width: 33%">核对/发药:</view>
|
||||||
<view class="signature-item" style="width: 33%">发药:</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="notice">注意:请勿丢失,处方当日有效,因特殊情况,该处方有效为天(签名:)</view>
|
<view class="footer-notice footer-notice--first leading-normal text-sm">1.根据《处方管理办法》规定,本处方开具三天有效;</view>
|
||||||
|
<view class="footer-notice leading-normal text-sm">2.本处方仅供患者{{ order?.drugStoreName || '' }}使用,本处方金额以实际药店成交金额为准;
|
||||||
|
</view>
|
||||||
|
<view class="footer-notice leading-normal text-sm">3.请仔细阅读药品使用说明,服药谨遵医嘱,如有不适请立即停药并前往医院就诊。</view>
|
||||||
|
<!-- <view class="notice">注意:请勿丢失,处方当日有效,因特殊情况,该处方有效为天(签名:)</view> -->
|
||||||
</view>
|
</view>
|
||||||
<image v-if="isExpired" class="expired-icon" src="/static/icons/expired.svg" />
|
<image v-if="isExpired" class="expired-icon" src="/static/icons/expired.svg" />
|
||||||
</view>
|
</view>
|
||||||
@ -95,13 +100,14 @@ import { computed, ref } from "vue";
|
|||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import useUser from '@/hooks/useUser';
|
import useUser from '@/hooks/useUser';
|
||||||
import { getRxDetail, getSealImage, getRxMedicinePurchaseOrderId } from '@/utils/api'
|
import { getConsultOrder, getRxDetail, getSealImage, getRxMedicinePurchaseOrderId } from '@/utils/api'
|
||||||
import fullPage from "@/components/full-page.vue";
|
import fullPage from "@/components/full-page.vue";
|
||||||
import footerButton from "@/components/footer-button.vue";
|
import footerButton from "@/components/footer-button.vue";
|
||||||
import { loading as showLoading, hideLoading, toast } from "@/utils/widget";
|
import { loading as showLoading, hideLoading, toast } from "@/utils/widget";
|
||||||
|
|
||||||
const { userInfo } = useUser();
|
const { userInfo } = useUser();
|
||||||
const data = ref(null);
|
const data = ref(null);
|
||||||
|
const order = ref(null);
|
||||||
|
|
||||||
const id = ref('');
|
const id = ref('');
|
||||||
const serviceTime = ref(0);
|
const serviceTime = ref(0);
|
||||||
@ -152,11 +158,28 @@ async function getRx() {
|
|||||||
data.value = rx;
|
data.value = rx;
|
||||||
serviceTime.value = typeof res.now === 'number' ? res.now : 0;
|
serviceTime.value = typeof res.now === 'number' ? res.now : 0;
|
||||||
data.value.time = rx.createTime ? dayjs(rx.createTime).format('YYYY-MM-DD HH:mm') : '';
|
data.value.time = rx.createTime ? dayjs(rx.createTime).format('YYYY-MM-DD HH:mm') : '';
|
||||||
|
await getOrder();
|
||||||
} else {
|
} else {
|
||||||
toast(message || '获取处方详情失败');
|
toast(message || '获取处方详情失败');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function getOrder() {
|
||||||
|
const orderId = typeof data.value?.orderId === 'string' ? data.value.orderId.trim() : '';
|
||||||
|
order.value = null;
|
||||||
|
if (!orderId) return;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const { data: orders } = await getConsultOrder({ orderId, page: 1, pageSize: 1 });
|
||||||
|
if (data.value?.orderId === orderId && Array.isArray(orders)) {
|
||||||
|
order.value = orders.find((item) => item?.orderId === orderId) || null;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
// 获取失败时不影响处方页展示,店铺名称保持为空。
|
||||||
|
order.value = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function handleInsurancePayment() {
|
async function handleInsurancePayment() {
|
||||||
showLoading();
|
showLoading();
|
||||||
const res = await getRxMedicinePurchaseOrderId({
|
const res = await getRxMedicinePurchaseOrderId({
|
||||||
@ -337,6 +360,7 @@ function viewOrder() {
|
|||||||
|
|
||||||
.stamp {
|
.stamp {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 1px;
|
||||||
/* margin-top: 50rpx; */
|
/* margin-top: 50rpx; */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -348,8 +372,8 @@ function viewOrder() {
|
|||||||
|
|
||||||
.stamp-img {
|
.stamp-img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
right: 0;
|
||||||
top: -150rpx;
|
top: -80rpx;
|
||||||
width: 280rpx;
|
width: 280rpx;
|
||||||
height: 280rpx;
|
height: 280rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
static/stamp.png
Normal file
BIN
static/stamp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
@ -63,14 +63,6 @@ export default defineStore("userStore", () => {
|
|||||||
authCode,
|
authCode,
|
||||||
});
|
});
|
||||||
const data = await getUserByAuthCode(authCode);
|
const data = await getUserByAuthCode(authCode);
|
||||||
// const data = {
|
|
||||||
// "avatar": "https://tfs.alipayobjects.com/images/partner/T1bC0cXmKeXXXXXXXX",
|
|
||||||
// "certNo": "330523199506266439",
|
|
||||||
// "mobile": "17855833126",
|
|
||||||
// "userName": "胡学俭",
|
|
||||||
// "userId": "2088612594454930"
|
|
||||||
// }
|
|
||||||
console.log(data)
|
|
||||||
uni.setStorageSync("hasAuthed", "hasAuthed");
|
uni.setStorageSync("hasAuthed", "hasAuthed");
|
||||||
const maskData = {
|
const maskData = {
|
||||||
name: data.userName,
|
name: data.userName,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user