diff --git a/pages.json b/pages.json
index 203a112..f9151e3 100644
--- a/pages.json
+++ b/pages.json
@@ -115,6 +115,12 @@
"navigationBarTitleText": "病历详情"
}
},
+ {
+ "path": "pages/case/medical-case-form",
+ "style": {
+ "navigationBarTitleText": "添加病历"
+ }
+ },
{
"path": "pages/case/service-record-detail",
"style": {
diff --git a/pages/case/medical-case-form.vue b/pages/case/medical-case-form.vue
new file mode 100644
index 0000000..c650169
--- /dev/null
+++ b/pages/case/medical-case-form.vue
@@ -0,0 +1,486 @@
+
+
+
+
+
+
+ 就诊机构
+
+
+
+
+ 就诊日期
+
+
+ {{ formData.visitTime || '暂无' }}
+
+
+
+
+
+ 门诊诊断
+
+
+
+
+ 治疗方案
+
+
+
+
+
+
+
+ 就诊机构
+
+
+
+
+ 入院日期
+
+
+ {{ formData.inhosDate || '暂无' }}
+
+
+
+
+
+ 住院主诊断
+
+
+
+
+ 手术名称
+
+
+
+
+ 手术日期
+
+
+ {{ formData.operationDate || '暂无' }}
+
+
+
+
+
+ 治疗方案
+
+
+
+
+
+
+
+ 就诊机构
+
+
+
+
+ 体检日期
+
+
+ {{ formData.inspectTime || '暂无' }}
+
+
+
+
+
+ 体检小结
+
+
+
+
+ 阳性发现及处理意见
+
+
+
+
+
+
+
+ 主诉
+
+
+
+
+ 现病史
+
+
+
+
+ 既往史
+
+
+
+
+
+
+ 1、门诊、住院病历记录生成,生成后支持医生在线编辑,并保存至档案,或者重新生成;
+
+
+ 2、若未来集到有效信息则以模板字段中默认项写无内容生成,医生可以直接在存字段上进行编辑。
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/message/chat.scss b/pages/message/chat.scss
index d35fe0c..a5f27fb 100644
--- a/pages/message/chat.scss
+++ b/pages/message/chat.scss
@@ -348,23 +348,30 @@ $primary-color: #0877F1;
.text-input,
.voice-input-btn {
flex: 1;
- padding: 0 46rpx;
+ padding: 16rpx 46rpx;
background-color: #f3f5fa;
border-radius: 20rpx;
margin: 0 16rpx;
font-size: 28rpx;
- height: 80rpx;
+ min-height: 80rpx;
+ max-height: 200rpx;
border: none;
outline: none;
box-sizing: border-box;
- display: flex;
- align-items: center;
- line-height: 96rpx;
+ line-height: 1.5;
color: #333;
}
+.voice-input-btn {
+ height: 80rpx;
+ display: flex;
+ align-items: center;
+ padding: 0 46rpx;
+}
+
.voice-input-btn {
text-align: center;
+ line-height: 80rpx;
}
.more-panel {
diff --git a/pages/message/components/ai-assistant-buttons.vue b/pages/message/components/ai-assistant-buttons.vue
new file mode 100644
index 0000000..d097a4c
--- /dev/null
+++ b/pages/message/components/ai-assistant-buttons.vue
@@ -0,0 +1,356 @@
+
+
+
+
+ {{
+ button.loading && button.loadingText ? button.loadingText : button.text
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/message/components/chat-input.vue b/pages/message/components/chat-input.vue
index 41f1bcb..b6727d1 100644
--- a/pages/message/components/chat-input.vue
+++ b/pages/message/components/chat-input.vue
@@ -6,8 +6,9 @@
-
+
@@ -25,7 +26,6 @@
{{ btn.text }}
-
@@ -95,6 +95,11 @@ const cloudCustomData = computed(() => {
return arr.filter(Boolean).join("|");
});
+// 流式输入文本
+const appendStreamText = (char) => {
+ inputText.value += char;
+};
+
// 录音相关扩展状态(特效 + 取消逻辑)
const recordingDuration = ref(0);
let recordingTimer = null;
@@ -165,9 +170,22 @@ const sendTextMessageFromPhrase = async (content) => {
});
};
+// 设置输入框文本(覆盖原内容)
+const setInputText = (text) => {
+ inputText.value = text;
+};
+
+// 清空输入框
+const clearInputText = () => {
+ inputText.value = '';
+};
+
// 暴露方法给父组件调用
defineExpose({
- sendTextMessageFromPhrase
+ sendTextMessageFromPhrase,
+ appendStreamText,
+ setInputText,
+ clearInputText
});
// 发送图片消息
@@ -432,6 +450,13 @@ function handleInputFocus() {
});
}
+function handleInput(e) {
+ // textarea 输入时触发,可以在这里处理额外逻辑
+ nextTick().then(() => {
+ emit("scrollToBottom");
+ });
+}
+
onMounted(() => {
// 初始化录音管理器
initRecorderManager();
diff --git a/pages/message/components/medical-case-progress.vue b/pages/message/components/medical-case-progress.vue
new file mode 100644
index 0000000..5bd762e
--- /dev/null
+++ b/pages/message/components/medical-case-progress.vue
@@ -0,0 +1,197 @@
+
+
+
+
+ ✕
+
+
+
+ {{ progressTitle }}
+
+
+
+
+
+ {{ progress }}%
+
+
+
+ 检测到以下{{ caseTypeName }}信息:
+
+
+ ✓
+ {{ item }}
+
+
+
+
+
+ 正在生成结构化{{ caseTypeName }}...
+
+
+
+
+
+
+
+
+
diff --git a/pages/message/components/medical-case-type-selector.vue b/pages/message/components/medical-case-type-selector.vue
new file mode 100644
index 0000000..9b696a2
--- /dev/null
+++ b/pages/message/components/medical-case-type-selector.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+
+ {{ type.name }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/message/index.vue b/pages/message/index.vue
index 131a069..210933e 100644
--- a/pages/message/index.vue
+++ b/pages/message/index.vue
@@ -125,6 +125,16 @@
@cancel="handleRejectReasonCancel"
/>
+
+
+
{
const sendCommonPhrase = (content) => {
if (chatInputRef.value) {
- chatInputRef.value.sendTextMessageFromPhrase(content);
+ // 覆盖输入框内容,而不是直接发送
+ chatInputRef.value.setInputText(content);
}
};
+
+// 处理流式文本输入
+const handleStreamText = (char) => {
+ if (chatInputRef.value) {
+ chatInputRef.value.appendStreamText(char);
+ }
+};
+
+// 处理清空输入框
+const handleClearInput = () => {
+ if (chatInputRef.value) {
+ chatInputRef.value.clearInputText();
+ }
+};
+
// 暴露方法给常用语页面调用
defineExpose({
sendCommonPhrase,
diff --git a/static/icon/buchong.png b/static/icon/buchong.png
new file mode 100644
index 0000000..7dd053b
Binary files /dev/null and b/static/icon/buchong.png differ
diff --git a/static/icon/kaiqiAI.png b/static/icon/kaiqiAI.png
new file mode 100644
index 0000000..bd77156
Binary files /dev/null and b/static/icon/kaiqiAI.png differ
diff --git a/static/icon/zhuiwen.png b/static/icon/zhuiwen.png
new file mode 100644
index 0000000..d95bbd8
Binary files /dev/null and b/static/icon/zhuiwen.png differ
diff --git a/utils/api.js b/utils/api.js
index 9e897cc..5c1d5c1 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -90,7 +90,9 @@ const urlsConfig = {
acceptConsultation: "acceptConsultation",
sendArticleMessage: "sendArticleMessage",
getChatRecordsByGroupId: "getChatRecordsByGroupId",
- getGroupList: "getGroupList"
+ getGroupList: "getGroupList",
+ followUpInquiry: "followUpInquiry",
+ supplementMedicalCase: "supplementMedicalCase"
},
todo: {
getCustomerTodos: 'getCustomerTodos',