feat: 会员管理、在线复诊优化、新增配送仓库
This commit is contained in:
@@ -131,6 +131,18 @@
|
||||
<text class="block-label">主诉</text>
|
||||
<text class="block-content">{{ parsedObj.chief_complaint }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.illnessInfo" class="text-block">
|
||||
<text class="block-label">适用症/症状</text>
|
||||
<text class="block-content">{{ parsedObj.illnessInfo }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.illnessInfo" class="info-row">
|
||||
<text class="label">是否就诊过</text>
|
||||
<text class="value">{{ parsedObj.has_visited === 1 || parsedObj.has_visited === '1' ? '是' : '否' }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.illnessInfo" class="info-row">
|
||||
<text class="label">是否使用过药品</text>
|
||||
<text class="value">{{ parsedObj.has_used_drug === 1 || parsedObj.has_used_drug === '1' ? '是' : '否' }}</text>
|
||||
</view>
|
||||
<view v-if="registerCardDrugRows.length" class="drug-list-block">
|
||||
<text class="block-label">所选药品</text>
|
||||
<view v-for="row in registerCardDrugRows" :key="row._wxKey" class="info-row drug-spec-row">
|
||||
@@ -185,6 +197,21 @@
|
||||
<text class="label">患者选择</text>
|
||||
<text class="value">{{ followUpAnsweredLabel }}</text>
|
||||
</view>
|
||||
<view
|
||||
v-if="parsedObj.has_visited === 1 || parsedObj.has_visited === '1' || parsedObj.has_visited === 0 || parsedObj.has_visited === '0'"
|
||||
class="info-row"
|
||||
>
|
||||
<text class="label">是否就诊过</text>
|
||||
<text class="value">{{ parsedObj.has_visited === 1 || parsedObj.has_visited === '1' ? '是' : '否' }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.illness_info" class="text-block">
|
||||
<text class="block-label">适用症/症状</text>
|
||||
<text class="block-content">{{ parsedObj.illness_info }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.supplement" class="text-block">
|
||||
<text class="block-label">补充信息</text>
|
||||
<text class="block-content">{{ parsedObj.supplement }}</text>
|
||||
</view>
|
||||
<view v-if="parsedObj.answer_status === 'pending'" class="follow-up-pending-readonly">
|
||||
<text class="follow-up-pending-tip">请在挂号后的用药确认页完成选择,此处不可更改</text>
|
||||
</view>
|
||||
@@ -294,7 +321,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-body">
|
||||
<text class="desc-text">{{ parsedObj.reason || '本次服务已完成' }}</text>
|
||||
<text class="desc-text">{{ parsedObj.end_reason || parsedObj.reason || parsedObj.message || '本次服务已完成' }}</text>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
|
||||
@@ -2615,6 +2615,11 @@ export default {
|
||||
const doctorId = uni.getStorageSync('doctor_id') || uni.getStorageSync('user_id');
|
||||
if (!doctorId) return;
|
||||
const senderUserId = String(doctorId).startsWith('doctor-') ? String(doctorId) : `doctor-${doctorId}`;
|
||||
// 在线复诊开方后:电子处方卡 + 购药指引 + 用药温馨提示
|
||||
const tipTexts = [
|
||||
'根据您的病情描述,已为您开具电子处方,请点击上方的‘立即支付’,进行购药;如有商品价格和订单等问题请咨询平台客服。',
|
||||
'温馨提示:用药前请详细阅读药品说明书,并严格按照线下医嘱用药。如用药过程中出现病情变化或其它不适症状,请立即停药并及时就医。(请您注意,如果您尚未在医院就诊或未曾使用过本次申请的药品,请暂时不要支付订单。我们建议您在医生的指导下使用药品,以确保用药安全。)',
|
||||
];
|
||||
try {
|
||||
await sendToUserHttpApi({
|
||||
room_id: roomId,
|
||||
@@ -2624,6 +2629,17 @@ export default {
|
||||
message_content: JSON.stringify(inner),
|
||||
duration: 0
|
||||
});
|
||||
for (let i = 0; i < tipTexts.length; i++) {
|
||||
// 温馨提示由小助手发送,处方卡仍由医生发送
|
||||
await sendToUserHttpApi({
|
||||
room_id: roomId,
|
||||
sender_user_id: 'doctor_assistant',
|
||||
receiver_user_id: receiverUserId,
|
||||
message_type: 0,
|
||||
message_content: tipTexts[i],
|
||||
duration: 0
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('trySendPrescriptionChatMessage', e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user