This commit is contained in:
2025-07-28 17:19:51 +08:00
parent 2908620516
commit b97ab73e02
6 changed files with 235 additions and 119 deletions

View File

@@ -14,8 +14,9 @@
"
:visible.sync="dialogVisible"
:close-on-click-modal="false"
:wrapperClosable="false"
custom-class="yianDrawer"
size="60%"
size="1200px"
>
<div
v-if="dialogVisible"
@@ -25,7 +26,10 @@
"
>
<!-- 触发按钮 -->
<p style="cursor: pointer;margin: 0;margin-bottom: 10px;" v-if="isShowWord">
<p
style="cursor: pointer;margin: 0;margin-bottom: 10px;"
v-if="isShowWord"
>
<span @click="triggerUpload">上传 Word</span>
<img
src="../../../assets/img/word-iocn.png"
@@ -38,7 +42,7 @@
@click="messageList = []"
>
<i class="el-icon-delete"></i>
清空
清空已识别的医案
</span>
</p>
<!-- 隐藏上传框 -->
@@ -50,11 +54,13 @@
style="display: none"
/>
<div
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;" v-if="isShowWord"
style="display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;"
v-if="isShowWord"
>
<div
v-for="(v, i) in messageList"
class="wordItem" @click="insertMessage(v)"
class="wordItem"
@click="insertMessage(v)"
style="width: 32%;margin-right: 15px;margin-bottom: 10px;cursor: pointer;"
>
<div
@@ -69,7 +75,6 @@
type=""
plain
icon="el-icon-plus"
style="margin-left: 10px; padding: 2px;float: right;"
>快速填入</el-button
>
@@ -238,7 +243,7 @@
>
</div>
<template
v-if="type == 'detail'&&currentNode.data.id=='wait'"
v-if="type == 'detail' && currentNode.data.id == 'wait'"
style="display:flex;align-items:center;justify-content:space-between"
>
<!-- <el-form-item
@@ -278,7 +283,6 @@
}"
:options="cateOptions"
placeholder="医案分类"
></el-cascader></div
></el-form-item>
</template>
@@ -326,7 +330,7 @@
<el-form-item
label="医案详情:"
label-width="110px"
prop="title"
class="form_item"
>
<div style="padding-top: 15px;">
@@ -370,23 +374,14 @@
>
</quill-editor> -->
</el-form-item>
<el-form-item
label="上传图片:"
prop="title"
label-width="110px"
class="form_item custom-upload-box"
v-if="dialogVisible"
>
<el-image v-if="type == 'detail'&&fileList.length>0"
:key="index"
class="el-upload-list__item-thumbnail"
v-for="(item, index) in addCertificateForm.img.split(',')"
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
:src="item"
:preview-src-list="addCertificateForm.img.split(',')"
>
</el-image>
<!-- <template v-for="(file, i) in fileList" v-if="type == 'detail'">
<img
@@ -443,6 +438,24 @@
</div>
</div>
</el-upload>
<template v-if="addCertificateForm.img !== ''&&type == 'detail'">
<el-image
v-if="
fileList.length > 0
"
:key="index"
class="el-upload-list__item-thumbnail"
v-for="(item, index) in addCertificateForm.img.split(',')"
style="width: 60px;height: 60px;border-radius: 6px;margin: 0 8px 8px 0;"
:src="item"
:preview-src-list="addCertificateForm.img.split(',')"
>
</el-image>
</template>
<!-- <div class="flexBox" style="width:100%;justify-content: space-between;">
<div class="" style="display:flex">
@@ -599,7 +612,7 @@ export default {
props: ["data", "pageType", "dataInfo", "labelId", "currentNode"],
data() {
return {
isShowWord:false,
isShowWord: false,
record: {},
loading: false,
tishi: false,
@@ -736,7 +749,7 @@ export default {
},
// 点击按钮触发上传
triggerUpload() {
this.messageList=[]
this.messageList = [];
this.$refs.uploadInput.value = null;
this.$refs.uploadInput.click();
},
@@ -894,12 +907,12 @@ export default {
};
this.isEdit = type == "edit" || type == "add" ? true : false;
if (type == "add") {
this.isShowWord=true
this.isShowWord = true;
this.record = {
...recordData
};
}else{
this.isShowWord=false
} else {
this.isShowWord = false;
this.showMessages = true;
}
if (data) {
@@ -983,10 +996,8 @@ export default {
// recordData[key] = titleHtml + this.editableMap[key];
// }
const label = this.addCertificateForm.labelId;
const value = Array.isArray(label)
? label[label.length - 1]
: label;
const value = Array.isArray(label) ? label[label.length - 1] : label;
var data = {
labelId: value,
img:
@@ -1043,8 +1054,10 @@ const value = Array.isArray(label)
this.$message.error("请输入医案详情");
return;
}
this.createChat()
//创建对话 获取sessionId
this.createChat();
},
//创建新对话
createChat() {
@@ -1052,7 +1065,7 @@ const value = Array.isArray(label)
url: this.$http.adornUrl("/common/medicalRecords/medicalRecordsSplit"),
method: "post",
data: this.$http.adornData({
userId: "13487",
userId: "1",
message: this.message
})
}).then(res => {
@@ -1076,8 +1089,8 @@ const value = Array.isArray(label)
var that = this;
//展示提示语
this.tishi = true;
this.isShowWord=false
this.messageList=[]
this.isShowWord = false;
this.messageList = [];
const poll = () => {
this.getMedicalDetail(() => {
// 停止轮询
@@ -1313,7 +1326,7 @@ const value = Array.isArray(label)
}
.el-form-item {
margin-bottom: 8px;
margin-bottom: 15px;
}
/deep/.el-upload-list--picture-card .el-upload-list__item {
width: 80px !important;