feat: 页面调整

This commit is contained in:
huxuejian 2026-08-25 13:38:40 +08:00
parent c7398599bf
commit 9b9c679283
5 changed files with 92 additions and 5 deletions

View File

@ -2,6 +2,7 @@
<view v-if="shouldRender">
<pass-rx-card v-if="payload && payload.data === 'AUDITPASS'" :extension="payload.extension" />
<open-rx-fail-card v-else-if="payload && payload.data === 'AUTORXFAIL'" :extension="payload.extension" />
<manual-rx-card v-else-if="payload && payload.data === 'AUTORXMANUAL'" :extension="payload.extension" />
<view v-else-if="isVideoConsult && videoConsultDisplayText" class="chat-row"
:class="[messageFlow === 'out' ? 'chat-row--end' : '']">
<image :src="avatarSrc" class="chat-avatar chat-avatar--square"
@ -22,6 +23,7 @@
import { computed } from "vue";
import PassRxCard from "./rx-pass-card.vue";
import OpenRxFailCard from "./rx-open-fail-card.vue";
import ManualRxCard from "./rx-manual-card.vue";
// messageItem.payload data: startChat , endChat ,
const props = defineProps({

View File

@ -0,0 +1,84 @@
<template>
<view class="manual-rx-card border shadow-lg rounded" :style="elderVarStyle">
<view class="manual-title-row">
<view class="warning-icon">!</view>
<text class="manual-title">需要人工开方</text>
</view>
<text class="manual-reason">{{ reason }}</text>
</view>
</template>
<script setup>
import { computed } from "vue";
import { storeToRefs } from "pinia";
import useElder from "@/hooks/useElder";
const { elderVarStyle } = storeToRefs(useElder());
const props = defineProps({
extension: {
type: [Object, String],
default: "",
},
});
const reason = computed(() => {
if (typeof props.extension === "string" && props.extension.trim()) {
return props.extension.trim();
}
if (
props.extension &&
typeof props.extension === "object" &&
typeof props.extension.reason === "string" &&
props.extension.reason.trim()
) {
return props.extension.reason.trim();
}
return "订单中含高风险药品,已停止自动开方,请医生人工开方。";
});
</script>
<style scoped lang="scss">
.manual-rx-card {
box-sizing: border-box;
max-width: 100%;
margin-bottom: 30rpx;
padding: 24rpx 30rpx;
background: #fff;
}
.manual-title-row {
display: flex;
align-items: center;
}
.warning-icon {
flex-shrink: 0;
width: 30rpx;
height: 30rpx;
color: #fff;
background: #f79009;
border-radius: 50%;
font-size: 22rpx;
font-weight: 700;
line-height: 30rpx;
text-align: center;
}
.manual-title {
margin-left: 12rpx;
color: #b54708;
font-size: var(--text-base);
font-weight: 500;
line-height: 1.4;
}
.manual-reason {
display: block;
margin-top: 18rpx;
color: #4b5563;
font-size: var(--text-base);
line-height: 1.75;
word-break: break-all;
}
</style>

View File

@ -43,13 +43,14 @@
}
},
"yidong": {
"title": "【移动云】支付宝",
"title": "【生产】支付宝",
"env": {
"UNI_PLATFORM": "mp-alipay",
"API_BASE_URL": "https://hlw.zytzymz.com",
"CORP_ID": "4G7H8J2K9L0M1N3P5Q6R7S8T9U0V1",
"APP_ID": "2021005110656858",
"API_BASE_URL": "https://hlwyy.hnkhhospital.com",
"CORP_ID": "4G7H8J2K9L0M1N3P5Q6R7S8T9U",
"APP_ID": "2021004129669493",
"ORDER_SOURCE": "ALIPAY_MINI",
"YB_AUTH_QRCODE": "https://hlwyy.hnkhhospital.com/hlwyy/hnhlw?type=ybAuth&id=",
"HOSPITAL_ID": 100002
}
}

View File

@ -68,7 +68,6 @@ function viewSummary() {
.doctor-dept {
font-size: 28rpx;
margin-left: 10rpx;
}
}
</style>

View File

@ -67,6 +67,7 @@ const drugKeys = [
"frequencyCode",
"memo",
"medication_proof_desc",
"dose_time_name"
];
export default defineStore("orderStore", () => {
const medTypeList = ref([]);