feat: 页面调整
This commit is contained in:
parent
c7398599bf
commit
9b9c679283
@ -2,6 +2,7 @@
|
|||||||
<view v-if="shouldRender">
|
<view v-if="shouldRender">
|
||||||
<pass-rx-card v-if="payload && payload.data === 'AUDITPASS'" :extension="payload.extension" />
|
<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" />
|
<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"
|
<view v-else-if="isVideoConsult && videoConsultDisplayText" class="chat-row"
|
||||||
:class="[messageFlow === 'out' ? 'chat-row--end' : '']">
|
:class="[messageFlow === 'out' ? 'chat-row--end' : '']">
|
||||||
<image :src="avatarSrc" class="chat-avatar chat-avatar--square"
|
<image :src="avatarSrc" class="chat-avatar chat-avatar--square"
|
||||||
@ -22,6 +23,7 @@
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import PassRxCard from "./rx-pass-card.vue";
|
import PassRxCard from "./rx-pass-card.vue";
|
||||||
import OpenRxFailCard from "./rx-open-fail-card.vue";
|
import OpenRxFailCard from "./rx-open-fail-card.vue";
|
||||||
|
import ManualRxCard from "./rx-manual-card.vue";
|
||||||
|
|
||||||
// messageItem.payload data: 消息类型 startChat 会话开始 , endChat 会话结束 ,
|
// messageItem.payload data: 消息类型 startChat 会话开始 , endChat 会话结束 ,
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
84
components/custom-message/rx-manual-card.vue
Normal file
84
components/custom-message/rx-manual-card.vue
Normal 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>
|
||||||
@ -43,13 +43,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yidong": {
|
"yidong": {
|
||||||
"title": "【移动云】支付宝",
|
"title": "【生产】支付宝",
|
||||||
"env": {
|
"env": {
|
||||||
"UNI_PLATFORM": "mp-alipay",
|
"UNI_PLATFORM": "mp-alipay",
|
||||||
"API_BASE_URL": "https://hlw.zytzymz.com",
|
"API_BASE_URL": "https://hlwyy.hnkhhospital.com",
|
||||||
"CORP_ID": "4G7H8J2K9L0M1N3P5Q6R7S8T9U0V1",
|
"CORP_ID": "4G7H8J2K9L0M1N3P5Q6R7S8T9U",
|
||||||
"APP_ID": "2021005110656858",
|
"APP_ID": "2021004129669493",
|
||||||
"ORDER_SOURCE": "ALIPAY_MINI",
|
"ORDER_SOURCE": "ALIPAY_MINI",
|
||||||
|
"YB_AUTH_QRCODE": "https://hlwyy.hnkhhospital.com/hlwyy/hnhlw?type=ybAuth&id=",
|
||||||
"HOSPITAL_ID": 100002
|
"HOSPITAL_ID": 100002
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,6 @@ function viewSummary() {
|
|||||||
|
|
||||||
.doctor-dept {
|
.doctor-dept {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-left: 10rpx;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -67,6 +67,7 @@ const drugKeys = [
|
|||||||
"frequencyCode",
|
"frequencyCode",
|
||||||
"memo",
|
"memo",
|
||||||
"medication_proof_desc",
|
"medication_proof_desc",
|
||||||
|
"dose_time_name"
|
||||||
];
|
];
|
||||||
export default defineStore("orderStore", () => {
|
export default defineStore("orderStore", () => {
|
||||||
const medTypeList = ref([]);
|
const medTypeList = ref([]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user