diff --git a/apps/web-antd/src/store/prescription.ts b/apps/web-antd/src/store/prescription.ts index 4fd8bf89..62e9a19d 100644 --- a/apps/web-antd/src/store/prescription.ts +++ b/apps/web-antd/src/store/prescription.ts @@ -1094,7 +1094,7 @@ export const usePrescriptionStore = defineStore('prescription', () => { }, userStore.currentUser.doctor_id, ); - // 在线复诊开方后自动连发购药指引与用药温馨提示 + // 在线复诊开方后自动连发购药指引与用药温馨提示(小助手发送) const tipTexts = [ '根据您的病情描述,已为您开具电子处方,请点击上方的‘立即支付’,进行购药;如有商品价格和订单等问题请咨询平台客服。', '温馨提示:用药前请详细阅读药品说明书,并严格按照线下医嘱用药。如用药过程中出现病情变化或其它不适症状,请立即停药并及时就医。(请您注意,如果您尚未在医院就诊或未曾使用过本次申请的药品,请暂时不要支付订单。我们建议您在医生的指导下使用药品,以确保用药安全。)', @@ -1102,7 +1102,7 @@ export const usePrescriptionStore = defineStore('prescription', () => { tipTexts.forEach((tip, tipIdx) => { sendMessage({ roomId: chatStore.currentFriend.room_id, - senderId: userStore.currentUser.doctor_id, + senderId: 'doctor_assistant', receiverId: chatStore.currentFriend.id, type: 'text', content: tip, @@ -1111,7 +1111,7 @@ export const usePrescriptionStore = defineStore('prescription', () => { { id: `${Date.now()}_tip_${tipIdx}`, room_id: chatStore.currentFriend.room_id, - sender_user_id: `doctor-${userStore.currentUser.doctor_id}`, + sender_user_id: 'doctor_assistant', receiver_user_id: chatStore.currentFriend.id, message_type: 0, message_content: tip, diff --git a/apps/web-antd/src/views/business/chat/components/FollowUpDrugAssistantCard.vue b/apps/web-antd/src/views/business/chat/components/FollowUpDrugAssistantCard.vue index ac6daf77..abc921af 100644 --- a/apps/web-antd/src/views/business/chat/components/FollowUpDrugAssistantCard.vue +++ b/apps/web-antd/src/views/business/chat/components/FollowUpDrugAssistantCard.vue @@ -43,6 +43,14 @@ const answeredLabel = computed(() => { return ''; }); +/** 是否就诊过:有明确 0/1 才展示 */ +const visitedLabel = computed(() => { + const v = data.value.has_visited; + if (v === 1 || v === '1') return '是'; + if (v === 0 || v === '0') return '否'; + return ''; +}); + const drugs = computed(() => Array.isArray(data.value.drugs) ? data.value.drugs : [], ); @@ -98,6 +106,11 @@ const canShowAddBtn = computed( {{ answeredLabel }} +